# ptr-strategy-ea

Automated Expert Advisor based on Peter Johansson's 4-indicator trading system for MetaTrader 4

Canonical: https://prismaticalgos.com/compendium/algo/11264-ptr-strategy-ea
Record ID: 11264
Catalog rank: 1741 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://github.com/NadirAliOfficial/ptr-strategy-ea
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## 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 profile

- symbols: GBPCHF, EURCHF
- timeframes: H1, H4
- sessions: Not specified
- market_regime: any

## Indicators

- Ptr Mega Trend: {"applied_to": "close", "mode": "LWMA", "period": 48}; applied to: close
- Yellow Ptr Arslan: {"applied_to": "close", "deviation": 1.8, "half_length": 21, "repaint": false, "timeframe": 60}; applied to: close
- Norepaint zone 3 green: {"applied_to": "close", "deviation": 1.8, "half_length": 40, "repaint": false, "timeframe": 60}; applied to: close
- White Ptr Arslan: {"applied_to": "pr_weighted", "half_length": 32, "multiplier": 2.8, "period": 100}; applied to: pr_weighted

## 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)

## Risk controls

- Stop loss: Fixed Stop Loss in pips (InpStopLossPips = 50)
- Take profit: Fixed Take Profit in pips (InpTakeProfitPips = 50)
- Position sizing: Not specified
