Exp_ColorJLaguerre
This EA trades based on the ColorJLaguerre indicator, which is a Laguerre-filtered JMA oscillator that outputs trend states as integer values. It opens buy positions when the indicator transitions from state 1 to 2 and sell positions when it transitions from state 2 to 1, with configurable position closing on opposite signals. Money management and stop-loss/take-profit are handled via the included TradeAlgorithms library.
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 core strategy is based on the ColorJLaguerre indicator, a momentum oscillator combining Laguerre filtering with JMA smoothing that outputs discrete trend states of 1 or 2. Entry conditions: when the indicator buffer transitions from 1 to 2, a buy signal is generated to open long positions and optionally close short ones; when it transitions from 2 to 1, a sell signal opens shorts and optionally closes longs. Exit conditions include stop-loss (default 1000 points) and take-profit (default 2000 points), plus optional closing on opposite signals. Position sizing is controlled by the MM parameter (default 0.1) with five money management modes: free margin, balance, loss-free margin, loss balance, and fixed lot size. The strategy includes a new bar detection mechanism to prevent duplicate signals within the same bar, and uses SignalBar to specify which bar confirms the signal.
Strengths
- Clean and unambiguous strategy logic based on discrete trend state transitions
- Flexible money management with 5 different position sizing modes
- New bar detection effectively prevents duplicate entries within the same bar
- Independent toggle controls for buy/sell direction and open/close operations provide high flexibility
- Laguerre filtering effectively reduces price noise for better signal quality
Weaknesses
- Default SL/TP values of 1000/2000 points are excessively large and may not suit all instruments or timeframes
- No spread filter, which could cause losses on smaller timeframes when spreads widen
- Heavy dependency on external TradeAlgorithms.mqh library and ColorJLaguerre custom indicator reduces portability
- No position check before opening, potentially leading to duplicate entries in the same direction
- Indicator handle creation failure only prints a warning without stopping EA execution, risking invalid handle access
Possible improvements
- Add position checking logic to avoid duplicate entries in the same direction and prevent over-leveraging
- Add spread filter and trading session filter to improve live trading adaptability
- Return INIT_FAILED in OnInit when indicator handle creation fails instead of continuing with invalid handle
Risk assessment
Overall risk: Medium
- Indicator handle creation failure does not prevent EA from running, potentially causing CopyBuffer failures and unexpected behavior
- Large default SL/TP values may lead to excessive risk exposure on low-volatility instruments
- No open position count check may cause over-sizing through repeated same-direction entries
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or fixed lot size |
MMMode | LOT | MM mode (free margin/balance/loss margin/loss balance/fixed lot) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum price deviation in points |
BuyPosOpen | true | Allow buy |
SellPosOpen | true | Allow sell |
BuyPosClose | true | Allow close long position |
SellPosClose | true | Allow close short position |
InpInd_Timeframe | PERIOD_H1 | Indicator timeframe |
gamma | 0.7 | Laguerre filter smoothing parameter |
HighLevel | 85 | Overbought level threshold |
MiddleLevel | 50 | Neutral level threshold |
LowLevel | 15 | Oversold level threshold |
JLength | 3 | JMA smoothing length |
JPhase | 100 | JMA phase parameter |
IPC | PRICE_CLOSE_ | Applied price type |
SignalBar | 1 | Bar index for entry signal |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.