Hello,
replace this line
if (TradeLong && bullCross && rsi >= RSI_Buy_Thresh && !hasPos) with this
if (TradeLong && !hasPos) and this line:
if (TradeShort && bearCross && rsi <= RSI_Sell_Thresh && !hasPos) with this:
if (TradeShort && !hasPos) no solution, that's just essentially removing the signal logic and making it trade randomly.
I have attached a fixed version
Files:
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register




EMA_RSI_RISK-EA:
Expert Advisor for MetaTrader 5 that combines Exponential Moving Averages (EMA) and Relative Strength Index (RSI) to generate trading signals. Includes risk management features and trading time filter.
Author: solyemam