Volume_Spread_Change

 

Hello 

 

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[1] != 0 && (i == rates_total - 1) && (LastAlertTime != Time[rates_total - 1])) Alert("BUY!!!!"); 

            LastAlertTime = Time[rates_total - 1];

            LastCounted = rates_total;
Files:
cash_flow.png  85 kb
BVCB_A-3.mq5  10 kb
 

Forum on trading, automated trading systems and testing trading strategies


Hello,

Please use the SRC button when you post code. Thank you.


This time, I edited it for you.


 
angevoyageur:

Thank you I did not know...first time doing this ...still hope someone will lhelp
Reason: