Exp_ColorZerolagTriXOSMA
This EA trades based on the ColorZerolagTriXOSMA custom indicator, which is a zero-lag composite of five weighted TriX (Triple Exponential Moving Average) oscillators smoothed with OSMA-style histogram logic. It opens buy positions when the histogram turns upward (value rising from below) and sell positions when the histogram turns downward, with configurable permissions for entry and exit on each side.
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 of this EA is based on the zero-lag TriX-OSMA composite indicator to capture momentum direction changes. Entry conditions: a buy signal triggers when the histogram's bar[2] value is less than bar[3] (downtrend) and bar[1] is greater than bar[2] (starting to rise); a sell signal triggers when bar[2] is greater than bar[3] (uptrend) and bar[1] is less than bar[2] (starting to decline). Exit conditions have two components: reverse signals close opposite positions (buy signal closes shorts, sell signal closes longs), and fixed stop-loss/take-profit in points. Position sizing supports four modes: percentage of free margin, percentage of balance, percentage of loss-based free margin, percentage of loss-based balance, and fixed lot size. Money management is controlled by the MM parameter, defaulting to 0.1 (10% of funds per trade). The strategy uses a weighted superposition of five TriX indicators with different periods and weight factors (0.05/0.10/0.16/0.26/0.43) to eliminate lag, which is its core innovation.
Strengths
- Zero-lag TriX composite indicator design effectively reduces traditional moving average lag, improving signal timeliness
- Five weighted factor superposition (weights sum to 1.00) balances short/medium/long-term momentum, reducing single-period noise
- Independent control of buy/sell entry and exit permissions offers high flexibility, enabling long-only or short-only strategies
- New bar detection mechanism (IsNewBar) prevents repeated position opening within the same bar
- Configurable stop-loss and take-profit parameters provide basic risk control
Weaknesses
- Relies solely on histogram turning points from a single indicator without multi-dimensional confirmation, prone to frequent false signals in ranging markets
- Default stop-loss of 1000 points and take-profit of 2000 points are excessively large, lacking adaptability to different instruments and volatility environments
- No spread filter or volatility filter, potentially causing frequent ineffective trades in high-spread or low-volatility conditions
- No position scaling or signal strength grading mechanism — all signals are treated equally
- Depends on external custom indicator file (ColorZerolagTriXOSMA), and the EA fails with insufficient error detail if the indicator is missing
Possible improvements
- Add spread filter and ATR volatility filter to avoid invalid entries in high-spread and low-volatility environments
- Introduce multi-timeframe confirmation, requiring higher timeframe trend direction alignment before entry
- Replace fixed stop-loss/take-profit with ATR-based dynamic stops for volatility-adaptive risk control
- Add signal strength assessment (e.g., histogram change magnitude) and adjust position size based on strength rather than fixed ratio
Risk assessment
Overall risk: Medium
- No spread filter — may frequently enter at unfavorable prices on instruments with poor liquidity or widened spreads
- Fixed stop-loss/take-profit does not adapt to different volatility environments, potentially too wide for low-volatility or too narrow for high-volatility instruments
- No maximum position count limit or daily loss limit — consecutive position openings during extreme market conditions could lead to significant losses
- When SignalBar=0, new bar detection is skipped, potentially triggering signals repeatedly on the same incomplete bar
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Trading capital as deposit ratio |
MMMode | LOT | Lot sizing method (free margin/balance/post-loss margin/post-loss balance/fixed lots) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximumallowpriceslippagepoints |
BuyPosOpen | true | Allow long entry |
SellPosOpen | true | Allow short entry |
BuyPosClose | true | Allow close long positions |
SellPosClose | true | Allow close short positions |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
smoothing1 | 15 | First smoothing period |
smoothing2 | 7 | Second smoothing period |
IPC | PRICE_CLOSE | Price constant (close price etc.) |
Factor1 | 0.05 | First TriX weight factor |
TriX_period1 | 8 | First TriX period |
Factor2 | 0.10 | Second TriX weight factor |
TriX_period2 | 21 | Second TriX period |
Factor3 | 0.16 | Third TriX weight factor |
TriX_period3 | 34 | Third TriX period |
Factor4 | 0.26 | Fourth TriX weight factor |
TriX_period4 | 55 | Fourth TriX period |
Factor5 | 0.43 | Fifth TriX weight factor |
TriX_period5 | 89 | Fifth TriX period |
SignalBar | 1 | Entry signal bar index |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.