Extracted algorithm research record
ptr-strategy-ea
Automated Expert Advisor based on Peter Johansson's 4-indicator trading system for MetaTrader 4
Source & extraction context
Evidence label: backtest_shown (source claim, not independent verification). Recorded completeness: 50.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 timeframes
- H1, H4
- Recorded sessions
- Not specified
- Recorded regime
- any
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| Ptr Mega Trend | {"applied_to": "close", "mode": "LWMA", "period": 48} | close |
| Yellow Ptr Arslan | {"applied_to": "close", "deviation": 1.8, "half_length": 21, "repaint": false, "timeframe": 60} | close |
| Norepaint zone 3 green | {"applied_to": "close", "deviation": 1.8, "half_length": 40, "repaint": false, "timeframe": 60} | close |
| White Ptr Arslan | {"applied_to": "pr_weighted", "half_length": 32, "multiplier": 2.8, "period": 100} | pr_weighted |
Extracted strategy rules
Recorded long-entry rules
- MegaTrend fast Hull MA (48) crosses slow Hull MA (78) in Ptr Mega Trend.mq4 (MODE_LWMA, PRICE_CLOSE)
- Yellow and Green have crossed or aligned past the White Dotted line within a lookback window (InpConfirmLookbackBars, default: 8 bars)
- Yellow lower band crosses / dips below Lower White band or Yellow TMA crosses up through White TMA
Recorded short-entry rules
- Yellow upper band crosses / pushes above Upper White band or Yellow TMA crosses down through White TMA
Recorded exit rules
- Fixed Stop Loss and Take Profit in pips (InpTakeProfitPips = 50, InpStopLossPips = 50), automatically normalized for 3/5-digit brokers
- Holds position until an opposite confirmed signal occurs, then automatically closes and reverses (EXIT_STOP_AND_REVERSE)
Recorded filters
- Max allowable spread filter (InpMaxSpreadPoints, default: 30 points)
- RealStochFilter (InpUseRealStochFilter, false by default)
- HmaStochFilter (InpUseHmaStochFilter, false by default)
- DivergenceFilter (InpUseDivergenceFilter, false by default)
- Stop loss
- Fixed Stop Loss in pips (InpStopLossPips = 50)
- Take profit
- Fixed Take Profit in pips (InpTakeProfitPips = 50)
- Position sizing
- Not specified
Questions about this record
What entry rules are recorded for ptr-strategy-ea?
Long: MegaTrend fast Hull MA (48) crosses slow Hull MA (78) in Ptr Mega Trend.mq4 (MODE_LWMA, PRICE_CLOSE) Yellow and Green have crossed or aligned past the White Dotted line within a lookback window (InpConfirmLookbackBars, default: 8 bars) Yellow lower band crosses / dips below Lower White band or Yellow TMA crosses up through White TMA Short: Yellow upper band crosses / pushes above Upper White band or Yellow TMA crosses down through White TMA These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: GBPCHF, EURCHF. Timeframes: H1, H4. These are source-recorded labels, not verified execution behavior.