MA Deviation Orders (Hot to do it?)
-
Hi, i'm trying to make an EA that open orders with this parameters :
Buy when : Price 100 pips < SMA 100 on M1
Sell when : Price 100 pips > SMA 100 on M1
i'm making something wrong. it is opening the order when price cross SMA.
the project :
Thanks by Now!
-
try this change for your condition block (1 and opposite for 11):

-
In Value -> Pips, for the "Pips" parameter you should put value such as 10. Let's say this value of 10 means 10 pips. The second value means how to transform this number of 10.
- "as price fraction" will transform it into something like 0.0010
- "this value, as is" will do nothing. It's the same as if you use Value -> Numeric
What kind of value does "dev" contain? It's Moving Average +/- some pips. This is price value. Ask is also a price value. On the right side better try Value -> Numeric and there select "dev"