Let's assume my strategy gets a long trigger after 3 consecutive red bars and and the trigger to enter long occurs intrabar as soon as the next bar ticks 1 tick above the previous red bar. So my code would be like this:
Calculate = OnPriceChange // If Close[3] < Open[3] && Close[2] < Open[2] && Close[1] < Open[1] && Close[0] > High[1] // Long triggered // do this EnterLong(1, "mySignal")
//if Closes[0][3] < Opens[0][3] && Closes[0][2] < Opens[0][2] && Closes[0][1] < Opens[0][1] && Closes[1][0] > Highs[0][1] // Long triggered // do this EnterLong(1, 1, "mySignal")
//if BarsInProgress == 0 && Close[3] < Open[3] && Close[2] < Open[2] && Close[1] < Open[1] // do this myInt = high[1] // set the trigger level on the primary bar series //if BarsInProgress == 1 && Close[0] > myInt // do this EnterLong(1, 1, "mySignal")
thank you.
Comment