i have written a program to find the break out of 15 mins or any longer time frame which is run in 1 minute time frame ,.
TimeFrameSet(in15Minute); R=H-L; Ra=MA(R,100); BC = R > (Ref(RA,-2)*3) AND C > O ; PShort = BC; ShortL = ValueWhen(PShort, L , 1); ShortH = ValueWhen(PShort, H, 1); TimeFrameRestore(); PShort = TimeFrameExpand(PShort,in15Minute,expandLast); ShortL= TimeFrameExpand(ShortL,in15Minute,expandLast); ShortH = TimeFrameExpand(ShortH,in15Minute,expandLast); HC = H > ShortH ; LC = L < ShortL; Filter = PShort ; AddColumn(PShort,"Condition",1.2); AddColumn(HC,"HC",1.2); AddColumn(LC,"LC",1.2);
now the results display a time error of the 15 mins here below ,.
My question is Why is the condition active at 11:29 and why does it end at 11:43 ,. Now i m missing the trades if the condition occurs at 11 : 44 candle (1 minute timefame) which is still the next 15 minute candle.
Could someone please clarify ,.