Hi, I attach the image with two volume indicators.
The one above is the standard volume that Amibroker brings to which I´ve added a Bollinguer bands.
The one below is the same as the one above but configured with this code:
_SECTION_BEGIN("Volume Bollinguer");
Periods = Param("Periods", 21, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
ColorBB = ParamColor("ColorBB", colorCycle );
StyleBB = ParamStyle("StyleBB");
Plot(Volume,"Volume",ParamColor("Color", colorBlueGrey ), ParamStyle( "Style", styleHistogram | styleOwnScale | styleThick, maskHistogram ) );
Plot( BBandTop( Volume, Periods, Width ), "BBTop" + _PARAM_VALUES(), ColorBB, StyleBB );
_SECTION_END();
The BBandTop of all the periods are the same in both indicators but in the upper indicator it is not well aligned, the volume doesn´t exceed the band, being the volume > BBandTop..
What´s happening?
Thanks.