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 ....
Volume Indicator 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 | _SECTION_BEGIN ( "Simple Volume bkWhite" ); GfxSetBkMode (0); _SECTION_BEGIN ( "Volume" ); BarsColor = ParamList ( "ChartColor" , "Price|Mono|Volume|Bull_Bear" ); HistWidth = Param ( "Histogram Width" , -40, -60, 0, 10); BullCond = V > Ref ( V ,-1) AND C > Ref ( C ,-1) OR V < Ref ( V ,-1) AND C < Ref ( C ,-1); BearCond = V > Ref ( V ,-1) AND C < Ref ( C ,-1) OR V < Ref ( V ,-1) AND C > Ref ( C ,-1); BuBeColor = IIf (BullCond, colorGreen , IIf (BearCond, colorRed , colorBlue )); if (BarsColor == "Mono" ) { BarColors= colorBlue ; Txt = "Colored Mono" ; } else if (BarsColor == "Price" ) { BarColors= IIf ( C == O , colorBlue , IIf ( C > O , colorGreen , colorRed )); Txt= "Colored by Price" ; } else if (BarsColor == "Volume" ) { BarColors= IIf ( V == Ref ( V ,-1), colorBlue , IIf ( V > Ref ( V , -1), colorGreen , colorRed )); Txt= "Colored by Volume" ; } else if (BarsColor == "Bull_Bear" ) { BarColors=BuBeColor; Txt = "Colored by Bull_Bear" ;} SetBarFillColor (BarColors); Plot ( V , "Volume (" + Txt+ ")" , BarColors, styleHistogram , Null , Null , 0, 1, HistWidth); VL = LastValue ( Volume ); VLCol = LastValue (BarColors); VAv = ( round ( MA ( V , Param ( "Average Period" , 40, 5, 400, 5)) )/10)*10; Shft = Param ( "x-Shift" , 6, 0, 60, 1); Plot (VAv, "Average Volume" , colorBlue , styleLine , Null , Null , -Shft, 0, 2); PlotOHLC (0,VAv,0,VAv, "" , colorTurquoise , styleCloud | styleNoLabel , Null , Null , -Shft, 0, 1); _SECTION_END (); |