Close price - EMA
-
Hi all,
How to create a formula that becomes true when the closing price - EMA10 (close price for example) > 3 ?
Thanks -
-
@trader-philipps , thank you for shining light on this. so I got as far as below
so now this means the variables will be updated for each tick with the difference of closing price and EMA of closing price. now how to do the BuyLastEMA > 3 for example (that can be optimized later on in EA)?
I tried to find where to put in condition for BuyLastEMA > 3 but can not find where or how to do it.
Thanks alot.
Rhang -
@rhang You mean you want to check if the variable BuyLastEMA is bigger than 3? Use a condition block like that.

In order to get the variable in the input field, right-klick on it an choose your BuyLastEMA variable.
-
@trader-philipps , exactly. Super, thank you. it works.

