Exp_RSI_Histogram
This EA trades based on the RSI Histogram custom indicator, opening buy positions when the histogram crosses above the low level zone and sell positions when it crosses below the high level zone. It uses configurable money management modes, fixed stop loss and take profit, and processes signals on new bar formation to avoid redundant trading.
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 momentum trading based on the RSI Histogram custom indicator. Entry conditions are: when indicator buffer 2 equals 0 (RSI in low zone) and buffer 0 is greater than 0, a buy signal is generated; when buffer 2 equals 2 (RSI in high zone) and buffer 0 is less than 2, a sell signal is generated. Exit conditions are triggered by opposing signals — a long position is closed when a sell signal appears, and a short position is closed when a buy signal appears. Position sizing supports five modes: based on free margin, balance, loss-adjusted free margin, loss-adjusted balance, and fixed lot size. Stop loss and take profit use fixed point values of 1000 and 2000 points respectively. Signal processing only executes on new bar formation or initial load, preventing duplicate entries within the same bar.
Strengths
- Uses closed bar signal (SignalBar=1) to avoid repaint issues, making signals more reliable
- Supports five money management modes offering flexibility for different risk preferences
- New bar detection prevents duplicate entries within the same bar, reducing overtrading
- Independent buy/sell switches for opening and closing provide granular strategy control
- Stop loss to take profit ratio of 1:2 provides a positive expectancy risk management structure
Weaknesses
- Depends on custom RSI_Histogram indicator which must be installed separately and is not in the standard library
- Fixed stop loss of 1000 points and take profit of 2000 points do not adapt to market volatility (e.g. ATR)
- No spread filter which may lead to unfavorable entries in high-spread environments
- Lacks position existence check which may cause duplicate entries in the same direction
- Indicator handle failure only prints a log but EA continues running, potentially trading without signals
Possible improvements
- Add ATR-based dynamic stop loss and take profit to automatically adjust distances based on market volatility
- Add position existence check to prevent duplicate entries in the same direction
- Return INIT_FAILED in OnInit when indicator handle is invalid to stop EA execution instead of continuing
Risk assessment
Overall risk: Medium
- EA does not stop running when indicator handle fails, potentially executing without signals
- No position existence check creates risk of duplicate entries in the same direction
- Fixed stop loss does not account for market volatility — too wide in low volatility, too tight in high volatility
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management parameter controlling risk percentage per trade or fixed lot size |
MMMode | LOT | Lot calculation mode: free margin, balance, loss-adjusted free margin, loss-adjusted balance, or fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage in points |
BuyPosOpen | true | Allow opening buy positions |
SellPosOpen | true | Allow opening sell positions |
BuyPosClose | true | Allow closing buy positions |
SellPosClose | true | Allow closing sell positions |
InpInd_Timeframe | PERIOD_H4 | Timeframe for indicator calculation |
RSIPeriod | 14 | RSI indicator period |
RSIPrice | PRICE_CLOSE | Price type used for RSI calculation |
HighLevel | 60 | RSI high threshold for overbought zone detection |
LowLevel | 40 | RSI low threshold for oversold zone detection |
SignalBar | 1 | Bar index for signal retrieval; 0=current bar, 1=last closed bar |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.