Exp_XKRI_Histogram
This EA trades based on the XKRI_Histogram custom indicator, opening buy positions when the histogram rises and sell positions when it falls. It uses configurable money management, fixed stop-loss and take-profit, and provides separate toggles for opening and closing positions on both sides. Signal generation occurs on new bar formation with a one-bar signal delay by default.
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 EA's core strategy trades on momentum changes detected by the XKRI_Histogram indicator. Entry conditions: a buy is opened when the histogram value rises from a prior decline (Value[0]>Value[1] and Value[1]<Value[2]), and a sell is opened when the histogram value falls from a prior rise (Value[0]<Value[1] and Value[1]>Value[2]). Exit conditions rely on fixed stop-loss (default 1000 points) and take-profit (default 2000 points), with optional signal-based position closing via BuyPosClose and SellPosClose toggles. Position sizing supports five modes: free margin percentage, balance percentage, net free margin percentage, net balance percentage, and fixed lot size. Money management is controlled by the MM parameter with a default risk ratio of 0.1. The indicator itself combines KRI period, MA smoothing method, and XMA smoothing algorithm with multiple configurable parameters. Signal generation triggers only on new bar formation by default, avoiding redundant per-tick computation, though setting SignalBar=0 enables tick-level signal evaluation.
Strengths
- Clear strategy logic based on momentum direction changes, simple and straightforward
- Independent buy/sell open and close toggles provide flexible control over trade direction and exit method
- Five position sizing modes offer rich and configurable money management options
- Default new-bar signal triggering avoids per-tick redundant computation, improving execution efficiency
- Configurable stop-loss and take-profit with default TP at 2x SL ratio, exhibiting positive expectancy characteristics
Weaknesses
- Default 1000-point stop-loss is large, potentially incurring significant single-trade losses in volatile markets
- No trailing stop or breakeven functionality, which may miss opportunities to lock in floating profits
- No check for existing same-direction positions, potentially causing duplicate entries and position stacking
- No spread filter mechanism, entry costs may be excessive in high-spread environments
- SignalBar=0 triggers signal evaluation on every tick, inconsistent with the default new-bar logic and prone to misuse
Possible improvements
- Add same-direction position check logic to prevent duplicate entries and excessive position stacking
- Implement trailing stop or breakeven functionality to better protect floating profits and optimize exit strategy
Risk assessment
Overall risk: Medium
- Default 1000-point stop-loss is large, single-trade loss can be significant
- No same-direction position check, risk of position stacking from duplicate entries
- No spread filter, trading costs are uncontrolled in high-spread environments
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 |
KRIPeriod | 20 | KRI indicator period |
MA_Method_ | MODE_SMA | MA smoothing method for KRI indicator |
Ratio | 1.0 | KRI indicator ratio parameter |
IPC | PRICE_CLOSE_ | Price type: close/open/high/low/median/typical/weighted |
XMA_Method | MODE_JJMA | XMA smoothing algorithm: SMA/EMA/SMMA/LWMA/JJMA/JurX/ParMA/T3/VIDYA/AMA |
XLength | 7 | XMA smoothing depth/period |
XPhase | 15 | XMA smoothing phase parameter |
SignalBar | 1 | Signal confirmation bar index |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.