Help need in Simple MA EA
-
Hello,
I'm creating a EA with simple EA with SMA 5,16,50.
Is it possible to specify the distant between the 50 and 5 when the cross happend?I want to ignore this trades with this

-
@vishaal Hi!
Try using the envelopes indicator in combination with the cross condition, so you can visually see the restriction.
-
Yes, you can specify a minimum distance separating MA. If the envelopes indicator doesn't work, just let us know.
-
@roar said in Help need in Simple MA EA:
velopes indi
Can you give me example for this envelope indicator?
-

Dotted red: 144-MA
Red lines: envelopes of 144-MA with 0.1 deviation
Blue: 5-MA
Green: 13-MARule: Open buy when blue is below lower envelope AND crosses above green.
Project: https://fxdreema.com/shared/WKQyhyvecThis is not a good trading strategy, though.
I can tell that you don't actually want to specify a distance between moving averages - what you actually want is to find volatility. This is done via RSI or some combination of ATR and standard deviation, for example.