Thanks to all who commented on this basic question for me.  Curious, now
that I know the answer, is to go and search in Help for the instruction that
tells you that you can control the height of the volume bars to 1/x the
space of the pane.  Maxvalue and Minvalue are clearly mentioned but the
connection to the height of the bars is not easily found (I never found it).
 
But, that is what this list is for...thanks again.
 
Ken

  _____  

From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of J. Biran
Sent: Thursday, November 13, 2008 8:40 PM
To: amibroker@yahoogroups.com
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@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Ken Close
Sent: Thursday, November 13, 2008 5:01 PM
To: amibroker@yahoogroups.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.

Thanks.

 

Reply via email to