How to define candle open in relation to moving average
Created at 17 Mar 2019, 08:03
AN
How to define candle open in relation to moving average
17 Mar 2019, 08:03
HI guys,
I am trying to code on Cautomate.
I can define the moving average crosses. But I don't know how to define "if commands" for the candles above MA.
example: if ( price is above MA && previous candle open is above the MA && previous previous candle open is also above MA)
{ OP BUY }
can someone guide me with this particular logic?
In mql4 I just used "open0, open1, open2 ... etc"
thank you in advance
PanagiotisCharalampous
18 Mar 2019, 12:13
Hi anjan babu,
See below an example
Best Regards,
Panagiotis
@PanagiotisCharalampous