The only way I can figure the restriction is like this, but is there a more concise way than stating the value needed to be above 20 the last 5 bars (in order to be sure it didnt crossup on that 4th bar back) by writing it for 1 bar back at a time like in red bold below?
if (CrossAbove(DiPlus, 25,1)&& DiPlus[1]<=25 && DiPlus[0]>=DiMinus[0]
&& DiPlus[1]>20 && DiPlus[2]>20 && DiPlus[3]>20 && DiPlus[4]>20 && DiPlus[5]>20 )
Comment