Exp_PA_Oscillator
This EA trades based on the PA_Oscillator custom indicator, which uses dual smoothing of price data to generate momentum-based buy and sell signals. It opens buy positions when the oscillator crosses above zero and sell positions when it crosses below a threshold, with configurable position closing on signal reversal. The EA supports multiple smoothing algorithms and applied price types for flexible signal generation.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
The strategy concept is based on momentum signals generated by the PA_Oscillator indicator, which applies dual smoothing (configurable methods like EMA, JJMA, JurX, T3, VIDYA, AMA, etc.) to price data. Entry conditions: a buy signal triggers when the oscillator's buffer 1 crosses above zero (Col[1]==0 and Col[0]>0), while a sell signal triggers when buffer 1 crosses below the threshold of 2 (Col[1]==2 and Col[0]<2). Exit conditions rely on signal reversal: a buy signal simultaneously triggers sell position closure, and a sell signal triggers buy position closure, each independently controllable via BuyPosClose and SellPosClose parameters. Position sizing is handled through TradeAlgorithms.mqh functions supporting four margin modes: free margin-based, balance-based, loss-free-margin-based, and fixed lot sizing. Money management uses the MM parameter (default 0.1) for risk proportion and MMMode for margin calculation mode, supplemented by a 1000-point stop loss and 2000-point take profit for risk control.
Strengths
- Supports up to 10 smoothing algorithms and 9 applied price types for high strategy flexibility
- Buy/sell open and close signals are independently controllable, facilitating strategy optimization and backtesting
- Includes stop loss, take profit, and slippage control providing a basic risk management framework
- Uses IsNewBar for new bar detection to prevent duplicate trades within the same candle
- Money management supports multiple modes accommodating different risk preferences
Weaknesses
- Depends on external custom indicator PA_Oscillator file; signal logic cannot be verified without its source code
- Stop loss of 1000 points and take profit of 2000 points are large, potentially causing excessive losses on smaller timeframes
- Lacks position adding, trailing stop, and breakeven functionality limiting profit potential
- Signal logic is simplistic (based only on buffer value crossings at 0 and 2), likely generating frequent false signals in ranging markets
- No spread filter or trading session filter, may open positions under unfavorable conditions
Possible improvements
- Add spread filter and trading session filter to avoid trading during high-cost periods
- Add trailing stop and breakeven functionality to better protect profits on winning trades
- Add trend/range market identification filter to reduce false signals in sideways markets
Risk assessment
Overall risk: Medium
- No spread filter; high spread environments may cause slippage losses
- Fixed stop loss and take profit do not account for market volatility changes
- Depends on external indicator file; insufficient error handling if indicator fails to load
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management parameter for lot calculation |
MMMode | LOT | Lot mode: free margin / balance / margin after loss / balance after loss / fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H8 | i-GAP indicator timeframe |
MA_Method1 | MODE_EMA | First-level smoothing method |
Length1 | 12 | First-level smoothing period |
Phase1 | 15 | First-level smoothing phase parameter |
MA_Method2 | MODE_EMA | Second-level smoothing method |
Length2 | 26 | Second-level smoothing period |
Phase2 | 15 | Second-level smoothing phase parameter |
IPC | PRICE_CLOSE | Indicator applied price type |
SignalBar | 1 | Signal bar index |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.