Exp_ColorStochNR
This EA trades based on the ColorStochNR custom stochastic indicator, offering five distinct entry algorithms including level breakthrough, oscillator direction change, signal line twist, oscillator crossing signal line, and signal line crossing the 50 level. It opens and closes positions on new bars using the selected algorithm and delegates trade execution to an included TradeAlgorithms library for position sizing and order management.
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 trades momentum signals from the ColorStochNR stochastic indicator. Entry conditions offer five modes: Breakdown mode enters when the stochastic breaks the 50 level; OscTwist enters on oscillator direction change; SignalTwist enters on signal line direction change; OscDisposition enters when the oscillator crosses the signal line; SignalBreakdown enters when the signal line crosses the 50 level. Exit conditions rely on fixed StopLoss and TakeProfit in points, plus reverse signal-triggered position closes. Position sizing is controlled by the MM parameter where negative values represent fixed lot size and positive values calculate lots as a deposit share. Money management is handled uniformly by the TradeAlgorithms library, which includes deviation control to prevent excessive slippage. The strategy detects signals only on new bars, avoiding per-tick trading and reducing trade frequency.
Strengths
- Five distinct entry algorithm modes provide high strategy flexibility to adapt to different market conditions
- New bar-based signal detection avoids per-tick redundant trading and reduces transaction costs
- StopLoss, TakeProfit, and deviation controls provide a basic risk management framework
- Buy and sell permissions are independently controllable, allowing flexible unidirectional or bidirectional trading
- Uses iCustom for indicator handle retrieval, decoupling the indicator from the EA for easy replacement
Weaknesses
- Depends on external TradeAlgorithms.mqh library and ColorStochNR custom indicator; without these files it cannot compile or run
- OscDisposition mode has redundant logic such as 'Signal[0]==2 || Signal[0]' which is always true when Signal[0] is non-zero
- OscTwist mode conditions are complex and hard to read, prone to logical errors
- No spread filter, potentially entering at unfavorable prices during wide spread conditions
- No trailing stop or dynamic take-profit mechanism; fixed SL/TP cannot adapt to changing market volatility
Possible improvements
- Add a spread filter mechanism to pause new entries when spread exceeds a threshold, avoiding unfavorable slippage
- Refine the condition logic in OscDisposition and OscTwist modes to improve code readability and correctness
- Add a trailing stop feature to let winning positions lock in more profit as trends continue
Risk assessment
Overall risk: Medium
- Depends on external library and custom indicator; missing any file causes EA failure
- Redundant conditions in OscDisposition mode may generate unexpected entry signals
- Fixed SL/TP may trigger stops frequently or miss profits in high volatility markets
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | -0.1 | Money management ratio or fixed lot size |
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 |
Mode | OscDisposition | Entry algorithm mode |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
Kperiod | 5 | K period |
Dperiod | 3 | D period |
Slowing | 3 | Smoothing period |
Dmethod | MODE_SMA_ | Smoothing method |
PriceFild | STO_LOWHIGH | Stochastic calculation method |
Sens | 0 | Sensitivity in points |
SignalBar | 1 | Bar index for entry signal |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.