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 ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Volume Histogram Area with MA for Amibroker (AFL)

Rating:
5 / 5 (Votes 2)
Tags:
amibroker, volume, histogram, area

Plotting volume histogram in a more beautiful area histogram chart

Indicator / Formula

Copy & Paste Friendly
Overlay = ParamToggle("MA Overlay Volume?", " No | Yes ", 1);
GraphZOrder = Overlay;

_SECTION_BEGIN( "Volume" );
SetBarFillColor( IIf( Close > Open, colorLime, colorRed ) );
Plot( Volume, _DEFAULT_NAME(), colorWhite, styleArea |styleNoTitle );
_SECTION_END();

_SECTION_BEGIN( "VolMA" );
Periods = Param( "Periods", 50, 2, 300, 1, 10 );
VolMA = MA(Volume,Periods);
Plot( VolMA, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle( "Style" ) );
_SECTION_END();

 _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}}, Volume = ") + EncodeColor(colorGreen) + WriteVal(V,1.0) + StrFormat("  {{VALUES}}"));

2 comments

1. hohoyu

Hi, Bursana

If I want to add one more MA parameter in the indicator.
How to write?
Thanks

2. Bursana

hohoyu,
Just duplicate this part and add to the code:

_SECTION_BEGIN( "VolMA2" );
Periods2 = Param( "Periods2", 100, 2, 300, 1, 10 );
VolMA = MA(Volume,Periods2);
Plot( VolMA, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle( "Style" ) );
_SECTION_END();

Leave Comment

Please login here to leave a comment.

Back