Download MetaTrader 5

Volume_Spread_Change

To add comments, please log in or register
Format text in the messages editor. It is convenient!
mima
385
mima 2014.04.26 12:48 

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
Alain Verleyen
Moderator
30736
Alain Verleyen 2014.04.27 17:01  

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.


mima
385
mima 2014.04.27 20:12  
angevoyageur:

Thank you I did not know...first time doing this ...still hope someone will lhelp
To add comments, please log in or register