Stock Portfolio Organizer
The ultimate porfolio management solution.
Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
-1 to -10 days High & Low for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | _SECTION_BEGIN ( "Price" ); SetChartOptions (0, chartShowArrows | chartShowDates ); _N (Title = StrFormat ( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}" , O , H , L , C , SelectedValue ( ROC ( C , 1 ) ) )); Plot ( C , "Close" , ParamColor ( "Color" , colorDefault ), styleNoTitle | ParamStyle ( "Style" ) | GetPriceStyle () ); _SECTION_END (); //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\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//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^// //Use Parameter accordingly. //Peruse mar ketlogy.com for better unique AFL codes |