Hi,
Can someone help me out here if possible, I have tried to code an indicator to print "BUY" or "SELL" Signal in experts tab to say if price has broken previous hours area, for example - I have attached a picture, the blue line is the previous hour high and red line is previous hour low (this is a 5 min chart) and shaded in blue where price has broken, therefore signal has changed from "BUY" to "SELL" and vice versa.
I have also attached the indicator that prints the RED and BLUE line.
Any help would be appreciated, I know barshift needs to be used, but I cannot put the logic in.
Thanks in advance,
Vip
Can someone help me out here if possible, I have tried to code an indicator to print "BUY" or "SELL" Signal in experts tab to say if price has broken previous hours area, for example - I have attached a picture, the blue line is the previous hour high and red line is previous hour low (this is a 5 min chart) and shaded in blue where price has broken, therefore signal has changed from "BUY" to "SELL" and vice versa.
I have also attached the indicator that prints the RED and BLUE line.
Any help would be appreciated, I know barshift needs to be used, but I cannot put the logic in.
Thanks in advance,
Vip
Attached File(s)
MTF_Prev_High_Low.mq4
3 KB
|
503 downloads