MA cross below/above baseline
-
Greetings all!
Trying to create and EA that has a MA as a baseline (for this example EMA 100) if a moving average cross happens below the baseline it will take sell’s but not buys. If it happens above the baseline it takes buys and not sells. Here’s what I have so far but it doesn’t appear to be working.
-
Try set all Candle ID = 1
-
@biztet thanks for the reply! Just tried setting the candle ID to 1 but unfortunately isn’t working =/
-
Have you check the MA value see if it's crossing or not?
-
Your example seems to be working just fine

-
@biztet yes to be safe I made the value of the fast EMA 1 so it would trigger every time the candle crossed the slow EMA as a test
-
@roar that’s strange I’m running it in demo now and no trades are opening