Exp_LaguerreFilter
This EA trades based on the Laguerre Filter indicator, opening buy positions when the indicator's signal line crosses above the filter line and sell positions when it crosses below. It uses a custom LaguerreFilter indicator with a gamma parameter to control smoothing, and includes configurable stop-loss, take-profit, and position sizing. The strategy is a trend-following system that enters on crossover signals and exits on reverse crossovers or SL/TP.
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 the Laguerre Filter indicator as its core strategy, utilizing crossovers between its two lines (signal line and filter line) to determine trend direction. Entry conditions: a buy position opens when the signal line crosses above the filter line from below, and a sell position opens when the signal line crosses below the filter line from above, with the SignalBar parameter specifying the bar offset for signal confirmation. Exit conditions include closing on reverse crossover signals and fixed stop-loss (1000 points) and take-profit (2000 points) levels. Position sizing is controlled by the MM parameter (default 0.1) supporting both LOT and MARGIN modes for lot calculation. Money management relies on the custom LaguerreFilter indicator accessed via iCustom, with values retrieved through CopyBuffer, and an IsNewBar mechanism ensuring signals are calculated only once per bar to prevent duplicate trades. The overall strategy logic is clear and follows a typical trend-following crossover system, but lacks advanced money management features such as pyramiding, partial closes, or trailing stops.
Strengths
- Uses Laguerre Filter indicator which offers better smoothness and lower lag compared to traditional moving averages
- Implements IsNewBar mechanism to prevent duplicate trades within the same bar, ensuring logical rigor
- Provides independent buy/sell switches for flexible control, allowing open-only or close-only configurations
- Configurable stop-loss and take-profit parameters provide a solid risk management framework
- Recount mechanism automatically retries when indicator data retrieval fails, improving robustness
Weaknesses
- Lacks trailing stop functionality, unable to lock in floating profits during trending markets
- Fixed 1000-point SL and 2000-point TP may not suit all market conditions, lacking dynamic adjustment
- No spread filter, crossover signals may produce false trades in high-spread environments
- Lacks multi-timeframe confirmation, single indicator signals are prone to frequent whipsaw trades in ranging markets
- Depends on external custom indicator LaguerreFilter; if the indicator file is missing, EA initialization fails
Possible improvements
- Add trailing stop functionality to dynamically track profits during trending markets and improve risk-reward ratio
- Add spread filter and multi-timeframe confirmation mechanism to reduce false signals and over-trading
Risk assessment
Overall risk: Medium
- No spread filter may cause frequent false crossover signals in high-spread environments leading to losses
- Fixed SL/TP does not adapt to all volatility conditions — SL too wide in low volatility, TP insufficient in high volatility
- Single indicator crossover strategy is prone to consecutive losing signals in ranging markets
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio controlling lot size |
MMMode | LOT | Position mode: fixed lot or margin percentage |
StopLoss_ | 1000 | Stop loss in pips |
TakeProfit_ | 2000 | Take profit in pips |
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_H4 | Indicator timeframe |
SignalBar | 1 | Signal confirmation bar index |
Gamma | 0.7 | Laguerre filter smoothing parameter |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.