Hello,
I need some help please.
This mt5 expert code gives alerts when last H4 high/low is breaked. The alert rings all the time when previous high/low is breaked. How to make it ring just a few times?
And last, how to select a time from when the alert can start ? For example, if I want the alert to start when the 04:00 bar closes, so that when the 08:00 bar starts, the alert can start also.
Any help will be very much appreciated.
Thank you
I need some help please.
This mt5 expert code gives alerts when last H4 high/low is breaked. The alert rings all the time when previous high/low is breaked. How to make it ring just a few times?
And last, how to select a time from when the alert can start ? For example, if I want the alert to start when the 04:00 bar closes, so that when the 08:00 bar starts, the alert can start also.
Any help will be very much appreciated.
Thank you
Inserted Code
int OnInit() { return(INIT_SUCCEEDED); } void OnDeinit(const int reason) { } void OnTick() { double high = iHigh(Symbol(),PERIOD_H4,1); double low = iLow(Symbol(),PERIOD_H4,1); double bid = SymbolInfoDouble(_Symbol,SYMBOL_BID); { if(bid > high) { Alert (Symbol() + "" + " Breaking High " + bid); } if(bid < low) { Alert (Symbol() + "" + " Breaking Low " + bid); } } return