I am trying to build an EA for MT3 in ZeroCode and need some assistance. I am building an advisor that puts in a trade when the 3 EMAs cross and exit when the 3 EMAs cross in the opposite direction or hit the stoploss, whichever comes First. Below is what my imputs are in ZeroCode except the exit on the crossover. Can someone help me whith this to program this as a reliable advisor:
BUY LOGISTICS
AND MA (1) Current > MA (2) Current
AND MA (2) Current > MA (3) Current
SELL LOGISTICS
AND MA (1) Current < MA (2) Current
AND MA (2) Current < MA (3) Current
Thank you
Todd