StyleOwnScale allows you to specify min and max
limits of chart. See PLOT function.
Plot (,,,,, styleownscale, 0,Max);
where Max is full chart. So if Max is 100 and your
max data value is 50, then than highest data point would be at half the chart
(50/100).
Ara
----- Original Message -----
Sent: Thursday, November 13, 2008 5:40
PM
Subject: RE: [amibroker] Controlling
Hight of Volume Bars (corrected)
Plot
command has a special feature just for this. See
following:
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 );
}
--
Joseph
Biran
____________ _________ _________ _________ _____
From:
amibroker@xxxxxxxxx ps.com [mailto:amibroker@ yahoogroups. com] On Behalf Of
Ken Close
Sent: Thursday, November 13, 2008 5:01
PM
To: amibroker@xxxxxxxxx ps.com
Subject: [amibroker]
Controlling Hight of Volume Bars
Excuse the basic
question, but I have generally never dealt with volume as much as I am now
that I am downloading data with a real volume field.
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.
Can someone offer
some specific advice.