Hi all,
apologies if this is a basic question that was answered before, but I am trying to create a strategy that enters long/short depending on Fib retracement crossings and MA and am struggling to find the right code.
Basically, I am defining 20 conditions (10 for long, 10 for short). 1 and 11 are conditions that I always want to be met (c1 for long, c11 for short). For long entry, I want c1 AND either of c2-c10 met, for short c11 AND either of c12-20. I have tried everything from using OR, ELSIF or separate IF ENDIF statements but nothing works.
Does anyone know how to write this?
Thanks a lot in advance! 🙂