Extracted algorithm research record
APB Channel EA
A reversal EA using Heikin-Ashi bars and Keltner-style channels with swing-structure stops.
Source & extraction context
Evidence label: source_code (source claim, not independent verification). Recorded completeness: 85.0/100. Neither is a performance result.
Names identify source records. Inclusion is not an endorsement or a claim of authorship, ownership or reuse permission. Check the source license before reusing any implementation.
Extraction warnings
Build warnings
- MT4_ONLY: the captured source is MQL4 / written for MetaTrader 4. It needs porting (order functions, indicator handles) before it runs on MT5.
Recorded market & execution profile
- Recorded markets
- XAUUSD
- Recorded timeframes
- M15
- Recorded sessions
- TradeStartHour 7:00, TradeEndHour 21:00 GMT, Avoids Friday close after 20:00 GMT
- Recorded regime
- any
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| Heikin-Ashi | {"period": 60} | close |
| EMA | {"period": 20} | close |
| ATR | {"period": 20} | close |
Extracted strategy rules
Recorded long-entry rules
- Heikin-Ashi bar colour changes from bearish to bullish
- Price closes at or above the lower band of the Keltner channel
Recorded short-entry rules
- Heikin-Ashi bar colour changes from bullish to bearish
- Price closes at or below the upper band of the Keltner channel
Recorded exit rules
- 1.5R take profit
- Stop loss at the lowest low of the last SwingLookbackBars closed bars plus a buffer
- Break-even move to entry plus a small lock once price covers BreakEvenTriggerPct of the distance to target
- Close on an opposite-direction arrow
Recorded filters
- Time window — only trade between TradeStartHour and TradeEndHour (server time)
- Liquidity — the signal bar's tick volume must be at least MinVolumeRatio × the recent average
- Large-candle / volatility — if ATR exceeds MaxATRPips, entries are skipped
- Stop loss
- Beyond the lowest low (for buys) or highest high (for sells) of the last SwingLookbackBars closed bars, plus a configurable buffer
- Take profit
- RR_Ratio × the risk distance (1.5 by default)
- Position sizing
- Lot size is calculated from the distance between entry and stop, so the monetary risk stays constant regardless of how wide the structural stop happens to be
Questions about this record
What entry rules are recorded for APB Channel EA?
Long: Heikin-Ashi bar colour changes from bearish to bullish Price closes at or above the lower band of the Keltner channel Short: Heikin-Ashi bar colour changes from bullish to bearish Price closes at or below the upper band of the Keltner channel These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: XAUUSD. Timeframes: M15. These are source-recorded labels, not verified execution behavior.