// Condition set 2,
if (beginLongs == buyStep
&& Variable1 >= Variable3
&& Close[4] >= Variable3 //The close of 4 bars ago must be above the Lowest EMA
&& Close[3] >= Variable3 //The close of 3 bars ago must be above the Lowest EMA
&& Close[2] >= Variable3 //The close of 2 bars ago must be above the Lowest EMA
&& Close[1] >= Variable3 //The close of 1 bars ago must be above the Lowest EMA
&& CrossAbove(High, Variable2, 1))
Sample Codes Please.
Thank You!!

Comment