[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Volume Bar Widths and Colors!



PureBytes Links

Trading Reference Links

Here's what I use.  Up days are plotted in green adn down days in 
red.  There's also a EMA of volume overlaid with the PARAM function 
allowing you to adjust the Volume EMA period.

I don't think you can change the thichness of the bars though.

Chris

/*Volume Improved Version*/
/*by Christopher Winn*/
/*September 1st, 2003*/

/*Begin code*/

col = IIf ( Close > Ref (Close, -1), colorBrightGreen, colorRed);

Plot (Volume, "Volume +", Col, styleHistogram | styleThick);

VolumeEMA = Param ("Volume EMA", 26, 1, 50, 1);

Plot (EMA(Volume, VolumeEMA), "", colorBlue, styleLine | 
styleThick );

Title = Name() + "   " + Date() + "      Volume  " + WriteVal 
(Volume, 8.0) + " shares" + "        " + WriteVal (VolumeEMA, 1.0) 
+ " Bar Volume EMA:  " + WriteVal (EMA(Volume, VolumeEMA), 1.0);


/*end of code*/


--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> Here is code for volume that I use, but I don't think the bar 
width can be
> changed. The previous code at least varied with the price bars 
when zooming.
> 
> mycolor=IIf(C>O, colorBlue, IIf(C<O,colorRed,colorBlack));
> Title = EncodeColor(LastValue(mycolor)) + Name()+" "+Date()+" 
Volume: "+V;
> Plot(V,"", mycolor, styleHistogram+styleThick+styleNoLabel);  
> 
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
> 
> 
> -----Original Message-----
> From: run_for_your_life2003 [mailto:run_for_your_life2003@x...] 
> Sent: Monday, 22 September 2003 9:10 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Volume Bar Widths and Colors!
> 
> 
> Not exactly what I'm looking for....
> The color of the volume does not match the price color on an close 
> up day.
> When its volume is green the price color should be green!
> When its volume is red the price should match the same color.
> 
> How do I adjust those bars wider like double the width??
> The red shows up in the green volume bar on the code below??
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> > You could always try this in a custom indicator
> > You could try this in a custom indicator
> > 
> > PlotOHLC(0,V,0,V,"",colorblack,styleCandle);
> > Cheers,
> > Graham
> > http://groups.msn.com/ASXShareTrading
> > http://groups.msn.com/FMSAustralia
> > 
> > 
> > -----Original Message-----
> > From: run_for_your_life2003 [mailto:run_for_your_life2003@x...]
> > Sent: Monday, 22 September 2003 2:27 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Volume Bar Widths and Colors!
> > 
> > 
> > Is it possible to make the Volume bars wider or adjustable from
> the 
> > base or adjust the scale and when the stock close up (green bars)
> > and closes down (red bars)? With the price bar width the same as 
> the 
> > volume bar width. How do I do this???
> > 
> > In the program the price bars are adjusted as you look for the
> most 
> > recent days but the volume width is not changed in width.
> 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Special Sale: 50% off ReplayTV
Easily record your favorite shows!
CNet Ranked #1 over Tivo!
http://us.click.yahoo.com/WUMW7B/85qGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/