PlotVOL =
ParamToggle("plot Volume?","No|Yes",0);
VolColor =
(C>O OR (C==O AND
(H-C)<=(C-L)))*ParamColor("VUpColor",colorBlueGrey)+
(C<O OR (C==O AND
(H-C)>(C-L)))*ParamColor("VDnColor",colorPink);
VolScale =
Param("1/Vol.Height (TimeBar chart)(fraction of window) 5=1/5=20%",5, 2, 100,
1.0) ; // Timebars
if (PlotVOL
>0)
{
Vheight =
VolScale;
Plot(Prec(Volume
,0),"V",VolColor,
styleNoTitle|styleOwnScale|styleThick|ParamStyle("VStyle",styleHistogram,
maskHistogram),Vheight );
}
On some charts but
not all, the volume bars, overlaid on a candle price chart, extend too far up
the height of the pane and overlap the candles. I have tried in vain to
adjust the Plot statement to make the bars shorter. I have tried the
maximum and minimum flags as explained in Help but it does not seem to
work. Tried to make the max and min parameters but again
nothing.