Hi, I am new to MT5 and need some guidance to get started in programming MQL5. I am trying to write a simple indicator that:
1) Puts a Green Up arrow at the low of a bar when: the given bar's range (close - open) is more then that of bar 3 periods before
2) Puts a Red Down arrow at the high of a bar when: the given bar's range (close - open) is less then that of bar 3 periods before
For eg: if bar is the current bar and if bar is the bar 3 periods ago and
IF (bar.open - bar.close) > (bar.open - bar.close)
then put a GREEN UP arrow at the low of bar
put a RED DOWN arrow at the high of bar
Would be very helpful if someone can provide MQL5 code for this.
Thanks in advance !