I'm having issues using CrossAbove within my entry conditions for a short entry. What I want to see is price:
- CrossAbove myLevel - we'll call this Candle A
- And then, close below myLevel (can be candle A or next candle(s))
- Current Delta[0] < Delta [1]
What is the best way to insure the CrossAbove condition happens first and then the Close[1] < myLevel happens next (never counting a candle as closed before CrossAbove is made)?
I've tried different Look Back periods, but same issue. I'm sure it's simple but I'm not seeing it....
if (CrossAbove(Close, myLevel, 5)) { enableTrade = true; } if ((enableTrade == true) && (Close[1] < myLevel) && (cumulativeDelta.DeltaLow[0] < cumulativeDelta.DeltaLow[1])) { EnterShort() }
Comment