Stochastic and Moving average EA compilation issues
-
Hello,
I'm trying to make a EA with these main conditions:
Only take buys above 120 SMA
Only take sells below 120 SMATake buys when stochastic signal line is at 20 or 1.
Take sells when stochastic signal line is at 80 or 100.Also i'd I would only want to open one position at a time. (I don't know if it's already set to that)
I think the issue is with the conditions but I'm not sure. Any help would be appreciated.
-
No position will be limited to 1 at a time, I would use < or > rather than X< or X> until everything works. Use a standard condition to check stoc level, for example, main is >80 on id 1, then in the next condition main <81, yellow if not true check for your next condition, opposite tree for 1-20.
-
@jstap Ok thank you, I will implement this.