I merged 2 MT5 indicators and have 0 errors and 0 warnings but outcome is not good : it shows all arrows and same alert all the time...
Please help me to correct error. Supposed to be up arrow only on red bar ( then gives alert "buy"), down arrow only on white bar ( then gives alert "sell").
This part of code is of my concern: In my opinion should give arrow only on red bars and then alert
if ((Value2 == HiValue2) && (Close[i] > (High[i] + Low[i]) / 2))
HistogramColor[i] = 0; // Red
if ((AlertOnBarClimax ) && D != 0 && (i == rates_total - 1) && (LastAlertTime != Time[rates_total - 1])) Alert("BUY!!!!");
LastAlertTime = Time[rates_total - 1];
LastCounted = rates_total;
Forum on trading, automated trading systems and testing trading strategies
Please use the SRC button when you post code. Thank you.
This time, I edited it for you.