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 ....
Easy live Smoll Target 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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | _SECTION_BEGIN ( "Background_Setting" ); SetChartBkGradientFill ( ParamColor ( "BgTop" , colorBlack ), ParamColor ( "BgBottom" , colorBlack ), ParamColor ( "titleblock" , colorBlack )); _SECTION_END (); TimeFrameSet ( inDaily ); DayHigh = LastValue ( H ); DayLow = LastValue ( L ); TimeFrameRestore (); Title = EncodeColor ( colorWhite )+ Name ()+ "--" + Date () + ", Op=" + Open + ", Hi=" + High + ", Lo=" + Low + ", LTP=" + Close + ", Change= " + SelectedValue ( ROC ( C , 1 ) ) + "%" + "\n Today`s High=" + DayHigh + ", Today`s Low=" + DayLow ; prev= AMA2 ( C ,1,0); d= IIf ( C > Ref ( Max ( Max ( H , Ref ( H ,-20)), Max ( Ref ( H ,-10), Ref ( H ,-15))),-1), Min ( Min ( L , Ref ( L ,-20)), Min ( Ref ( L ,-10), Ref ( L ,-15))), IIf ( C < Ref ( Min ( Min ( L , Ref ( L ,-20)), Min ( Ref ( L ,-10), Ref ( L ,-15))),-1), Max ( Max ( H , Ref ( H ,-20)), Max ( Ref ( H ,-10), Ref ( H ,-15))),PREV)); a= Cross ( Close ,d); b= Cross (d, Close ); state= IIf ( BarsSince (a)< BarsSince (b),1,0); s=state> Ref (state,-1); ss=state< Ref (state,-1); sss=state== Ref (state,-1); col= IIf (state == 1 ,51, IIf (state ==0,4,1)); Plot ( C , "" ,Col,64); Buy = s; Sell = ss; shape = Buy * shapeUpArrow + Sell * shapeDownArrow ; PlotShapes (shape, IIf ( Buy , colorGreen , colorRed ), 0, IIf ( Buy , Low , High )); PlotShapes ( IIf ( Buy , shapeSquare , shapeNone ), colorGreen , 0, L , Offset=-10); PlotShapes ( IIf ( Buy , shapeSquare , shapeNone ), colorLime , 0, L , Offset=-20); PlotShapes ( IIf ( Buy , shapeUpArrow , shapeNone ), colorWhite , 0, L , Offset=-15); PlotShapes ( IIf ( Sell , shapeSquare , shapeNone ), colorRed , 0, H , Offset=20); PlotShapes ( IIf ( Sell , shapeSquare , shapeNone ), colorOrange , 0, H , Offset=30); PlotShapes ( IIf ( Sell , shapeDownArrow , shapeNone ), colorWhite , 0, H , Offset=-25); dist = 0.8* ATR (10); dist1 = 2* ATR (10); for ( i = 0; i < BarCount ; i++ ) { if ( Buy [i] ) { //PlotText( "\nBuy:" + L[ i ] + "\nT= " + (L[i]*1.0033) + "\nSL= " + (L[i]*0.9975), i, L[ i ]-dist[i], colorGreen, colorWhite ); t1 = ( L [i]*1.0025); frac_t = ( frac (t1)*10000); var_t = round ((frac_t % 25)); t1 = (t1 -( var_t / 10000)); t2 = ( L [i]*1.0035); frac_t = ( frac (t2)*10000); var_t = round ((frac_t % 20)); t2 = (t2 -( var_t / 10000)); t3 = ( L [i]*1.0040); frac_t = ( frac (t3)*10000); var_t = round ((frac_t % 25)); t3 = (t3 -( var_t / 10000)); PlotText ( "\nBuy:" + L [ i ] + "\nT1= " + t1 + "\nT2= " + t2 + "\nT3= " + t3, i, L [ i ]-dist[i], colorGreen , colorWhite ); sl = ( L [i]*0.9992); frac_sl = ( frac (sl)*10000); var_sl = round ((frac_sl % 25)); sl = (sl -( var_sl / 10000)); PlotText ( "\n\n\n\n\nSL= " + sl, i, L [ i ]-dist[i], colorYellow , colorBlack ); } if ( Sell [i] ) { //PlotText( "Sell:" + H[ i ] + "\nT= " + (H[i]*0.995) + "\nSL= " + (H[i]*1.0025), i, H[ i ]+dist1[i], colorRed, colorWhite ); t1 = ( H [i]*0.9975); frac_t = ( frac (t1)*10000); var_t = round ((frac_t % 25)); t1 = (t1 -( var_t / 10000)); t2 = ( H [i]*0.9970); frac_t = ( frac (t2)*10000); var_t = round ((frac_t % 25)); t2 = (t2 -( var_t / 10000)); t3 = ( H [i]*0.9955); frac_t = ( frac (t3)*10000); var_t = round ((frac_t % 25)); t3 = (t3 -( var_t / 10000)); PlotText ( "Sell:" + H [ i ] + "\nT1= " + t1 + "\nT2= " + t2 + "\nT3= " + t3, i, H [ i ]+dist1[i], colorRed , colorWhite ); sl = ( H [i]*1.0008); frac_sl = ( frac (sl)*10000); var_sl = round ((frac_sl % 25)); sl = (sl -( var_sl / 10000)); PlotText ( "\n\n\n\nSL= " + sl, i, H [ i ]+dist1[i], colorYellow , colorBlack ); } } Filter = s OR sss OR sss ; AddColumn ( C , "close" ,1.2); AddColumn ( IIf ( s, 66,1 ), "buy" , formatChar, 1, bkcolor = IIf (s, colorYellow , colorPink )); AddColumn ( IIf ( Ss, 83,1 ), "sell" , formatChar, 1, bkcolor = IIf (Ss, colorPink , colorWhite )); AddColumn ( IIf ( sss, 87,1 ), "wait" , formatChar, 1, bkcolor = IIf (sss, colorYellow , colorRed )); _SECTION_BEGIN ( "swing" ); no=20; res= HHV ( H ,no); sup= LLV ( L ,no); avd= IIf ( C > Ref (res,-1),1, IIf ( C < Ref (sup,-1),-1,0)); avn= ValueWhen (avd!=0,avd,1); supres= IIf (avn==1,sup,res); a= Cross ( C ,supres); b= Cross (supres, C ); style = a * styleStaircase + b * styleStaircase ; PlotShapes (a,style, IIf (a, colorGreen , colorRed ), 0, IIf (a, Low , High )); Plot (supres, "Swing" , colorYellow , styleStaircase ); _SECTION_END (); _SECTION_BEGIN ( "trend" ); uptrend= PDI (20)> MDI (10) AND Signal (29)< MACD (13); downtrend= MDI (10)> PDI (20) AND Signal (29)> MACD (13); Plot ( 2, /* defines the height of the ribbon in percent of pane width */ "ribbon" , IIf ( uptrend, colorGreen , IIf ( downtrend, colorRed , 0 )), /* choose color */ styleOwnScale | styleArea | styleNoLabel , -0.5, 100 ); _SECTION_END (); Buy = s AND a AND uptrend ; Short = ss AND b AND downtrend ; Sell = ss AND b AND downtrend ; Cover = s AND a AND uptrend ; Buy = ExRem ( Buy , Sell ); Sell = ExRem ( Sell , Buy ); Cover = ExRem ( Cover , Short ); Short = ExRem ( Short , Cover ); Filter = Buy OR Sell ; Filter = Cover OR Short ; AddColumn ( Buy , "Buy" , 1); AddColumn ( Sell , "Sell" , 1); AddColumn ( Close , "Close" ,1.2); AddColumn ( Volume , "Volume" ,1.0); // Plot the Buy and Sell arrows. shape = Buy * shapeUpArrow + Sell * shapeDownArrow ; PlotShapes ( IIf ( Buy , shapeSquare , shapeNone ), colorGreen , 0, L , Offset=-10); PlotShapes ( IIf ( Buy , shapeSquare , shapeNone ), colorLime , 0, L , Offset=-20); PlotShapes ( IIf ( Buy , shapeUpArrow , shapeNone ), colorWhite , 0, L , Offset=-15); PlotShapes ( IIf ( Sell , shapeSquare , shapeNone ), colorRed , 0, H , Offset=20); PlotShapes ( IIf ( Sell , shapeSquare , shapeNone ), colorOrange , 0, H , Offset=30); PlotShapes ( IIf ( Sell , shapeDownArrow , shapeNone ), colorWhite , 0, H , Offset=-25); //plot volume graph _SECTION_BEGIN ( "Volume" ); // Plot( Volume, _DEFAULT_NAME(), ParamColor("Color", colorLightGrey ), styleNoTitle | ParamStyle( "Style", styleHistogram | styleOwnScale | styleNoLabel, maskHistogram ), 2 ); _SECTION_END (); GraphXSpace = 5; |