// Downloaded From https://www.WiseStockTrader.com See marketlogy.com for unique AFL Codes. //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\2/10 Day Before High & Low//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^// DayH11= TimeFrameGetPrice("H", inDaily, -1); DayH1I = LastValue (DayH11,1); DayL11= TimeFrameGetPrice("L", inDaily, -1); DayL1I = LastValue (DayL11,1); DayH21= TimeFrameGetPrice("H", inDaily, -2); DayH2I = LastValue (DayH21,1); DayL21= TimeFrameGetPrice("L", inDaily, -2); DayL2I = LastValue (DayL21,1); DayH31= TimeFrameGetPrice("H", inDaily, -3); DayH3I = LastValue (DayH31,1); DayL31= TimeFrameGetPrice("L", inDaily, -3); DayL3I = LastValue (DayL31,1); DayH41= TimeFrameGetPrice("H", inDaily, -4); DayH4I = LastValue (DayH41,1); DayL41= TimeFrameGetPrice("L", inDaily, -4); DayL4I = LastValue (DayL41,1); DayH51= TimeFrameGetPrice("H", inDaily, -5); DayH5I = LastValue (DayH51,1); DayL51= TimeFrameGetPrice("L", inDaily, -5); DayL5I = LastValue (DayL51,1); DayH61= TimeFrameGetPrice("H", inDaily, -6); DayH6I = LastValue (DayH61,1); DayL61= TimeFrameGetPrice("L", inDaily, -6); DayL6I = LastValue (DayL61,1); DayH71= TimeFrameGetPrice("H", inDaily, -7); DayH7I = LastValue (DayH71,1); DayL71= TimeFrameGetPrice("L", inDaily, -7); DayL7I = LastValue (DayL71,1); DayH81= TimeFrameGetPrice("H", inDaily, -8); DayH8I = LastValue (DayH81,1); DayL81= TimeFrameGetPrice("L", inDaily, -8); DayL8I = LastValue (DayL81,1); DayH91= TimeFrameGetPrice("H", inDaily, -9); DayH9I = LastValue (DayH91,1); DayL91= TimeFrameGetPrice("L", inDaily, -9); DayL9I = LastValue (DayL91,1); DayH101= TimeFrameGetPrice("H", inDaily, -10); DayH10I = LastValue (DayH101,1); DayL101= TimeFrameGetPrice("L", inDaily, -10); DayL10I = LastValue (DayL101,1); numbars = LastValue(Cum(Status("barvisible"))); hts = -40; TDBHL = ParamToggle("2/10 Days before HI LO","Hide|Show",1); if(TDBHL==1) { tn=TimeNum(); tm=100500; end=232900; cur=Day()==LastValue(Day()); mode2 = ParamList("Display Level ", " All | Today ",1); switch( mode2 ) { case " All ":tcond=(Tn >= tm AND Tn<= end) ;break; case " Today ":tcond=cur;break; } Plot(IIf(tcond,DayL11,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH11,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL21,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH21,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL31,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH31,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL41,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH41,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL51,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH51,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL61,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH61,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL71,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH71,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL81,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH81,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL91,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH91,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayL101,Null),"",colorBrightGreen,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); Plot(IIf(tcond,DayH101,Null),"",colorOrange,styleDashed|styleStaircase|styleNoRescale|styleNoLabel); PlotText(" D-1 " , LastValue(BarIndex())-(numbars/Hts), DayH1I, colorOrange); PlotText(" D-1 " , LastValue(BarIndex())-(numbars/Hts), DayL1I, colorBrightGreen); PlotText(" D-2 " , LastValue(BarIndex())-(numbars/Hts), DayH2I, colorOrange); PlotText(" D-2 " , LastValue(BarIndex())-(numbars/Hts), DayL2I, colorBrightGreen); PlotText(" D-3 " , LastValue(BarIndex())-(numbars/Hts), DayH3I, colorOrange); PlotText(" D-3 " , LastValue(BarIndex())-(numbars/Hts), DayL3I, colorBrightGreen); PlotText(" D-4 " , LastValue(BarIndex())-(numbars/Hts), DayH4I, colorOrange); PlotText(" D-4 " , LastValue(BarIndex())-(numbars/Hts), DayL4I, colorBrightGreen); hts = -15; PlotText(" D-5 " , LastValue(BarIndex())-(numbars/Hts), DayH5I, colorOrange); PlotText(" D-5 " , LastValue(BarIndex())-(numbars/Hts), DayL5I, colorBrightGreen); PlotText(" D-6 " , LastValue(BarIndex())-(numbars/Hts), DayH6I, colorOrange); PlotText(" D-6 " , LastValue(BarIndex())-(numbars/Hts), DayL6I, colorBrightGreen); PlotText(" D-7 " , LastValue(BarIndex())-(numbars/Hts), DayH7I, colorOrange); PlotText(" D-7 " , LastValue(BarIndex())-(numbars/Hts), DayL7I, colorBrightGreen); hts = -8; PlotText(" D-8 " , LastValue(BarIndex())-(numbars/Hts), DayH8I, colorOrange); PlotText(" D-8 " , LastValue(BarIndex())-(numbars/Hts), DayL8I, colorBrightGreen); PlotText(" D-9 " , LastValue(BarIndex())-(numbars/Hts), DayH9I, colorOrange); PlotText(" D-9 " , LastValue(BarIndex())-(numbars/Hts), DayL9I, colorBrightGreen); PlotText(" D-10 " , LastValue(BarIndex())-(numbars/Hts), DayH10I, colorOrange); PlotText(" D-10" , LastValue(BarIndex())-(numbars/Hts), DayL10I, colorBrightGreen); } //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\2/10 Day Before High & Low//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^//