Joseph What a clever bit of code. Thanks for sharing Best Regards Rick
________________________________ From: J. Biran <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, November 13, 2008 8:40:04 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:[EMAIL PROTECTED] ps.com [mailto:amibroker@ yahoogroups. com] On Behalf Of Ken Close Sent: Thursday, November 13, 2008 5:01 PM To: [EMAIL PROTECTED] 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. Thanks.
