Exp_Laguerre_ROC
This EA trades based on the Laguerre ROC (Rate of Change) custom indicator, opening buy positions when the indicator's color buffer transitions upward to level 4 and sell positions when it transitions downward to level 0. It uses configurable overbought/oversold levels (0.75/0.25) and a gamma smoothing parameter to generate signals, with separate controls for opening and closing long/short positions.
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
This EA uses a Laguerre-filter-smoothed Rate of Change (ROC) indicator as its core strategy. Entry conditions: a buy signal triggers when the indicator's color buffer transitions from below 4 to exactly 4, and a sell signal triggers when it transitions from above 0 to exactly 0, representing a decisive momentum shift. Exit conditions: long positions close when the color buffer drops below 2, and short positions close when it rises above 2, reflecting a trend exhaustion exit logic. Position sizing is controlled by the MM parameter defaulting to 0.1, with support for both LOT and MARGIN calculation modes. Money management employs fixed stop loss (1000 points) and take profit (2000 points), with the 2:1 reward-to-risk ratio embodying the trend-following principle of letting profits run. The strategy also uses an IsNewBar mechanism to ensure signal calculation occurs only once per bar, preventing duplicate entries, while offering boolean toggles for BuyPosOpen/SellPosOpen to flexibly control trading direction.
Strengths
- Laguerre filter smoothing on ROC effectively reduces false signals and market noise
- Independent toggles for buy/sell and open/close provide high flexibility
- New bar detection mechanism prevents duplicate trades within the same bar
- 2:1 take-profit to stop-loss ratio follows sound trend-following risk-reward principles
Weaknesses
- Stop loss of 1000 and take profit of 2000 points are large for H8 timeframe and may not suit all instruments
- Lacks position checking logic, potentially opening duplicate positions in the same direction
- No spread filter mechanism, which could lead to unfavorable entries on high-spread instruments
- Signal relies on custom indicator color buffer (integer levels 0-4), making logic opaque and difficult to backtest independently
Possible improvements
- Add position checking logic to avoid duplicate same-direction entries causing over-concentration
- Implement spread and volatility filters to improve entry quality and adapt to different instruments
- Replace fixed stop loss/take profit with ATR-based dynamic levels to adapt to market volatility changes
Risk assessment
Overall risk: Medium
- No position count check may lead to excessive risk exposure from duplicate same-direction entries
- Fixed 1000-point stop loss may be insufficient for high-volatility instruments and too wide for low-volatility ones
- Dependency on external custom indicator file; EA will fail to initialize if the indicator is missing, though this is checked
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or lots |
MMMode | LOT | Lot calculation mode (fixed lots/capital ratio) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum slippage deviation |
BuyPosOpen | true | Allow buy position opening |
SellPosOpen | true | Allow sell position opening |
BuyPosClose | true | Allow buy position closing |
SellPosClose | true | Allow sell position closing |
InpInd_Timeframe | PERIOD_H8 | Indicator timeframe |
SignalBar | 1 | Signal calculation bar index |
vPeriod | 5 | ROC calculation period |
gamma | 0.500 | Laguerre smoothing parameter |
UpLevel | 0.75 | Overbought level (percentage) |
DnLevel | 0.25 | Oversold level (percentage) |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.