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

RE: [amibroker] Re: Volume Bar Widths and Colors!



PureBytes Links

Trading Reference Links




Might 
as well throw mine out as well. It offers colored bars and feedback on the days 
vol as compared to the volumes  MA and today's price move as compared to 
its ATR. Both the look back for MA and ATR are parameter 
adjustable....
<FONT face=Arial color=#0000ff 
size=2> 
Regards, 
Jayson
 
ATRparm=<FONT 
color=#0000ff>Param("ATR 
Look Back",14<FONT 
size=2>,10,<FONT 
size=2>50<FONT face=Arial 
color=#0000ff>);
x=<FONT face=Arial 
color=#0000ff size=2>ATR<FONT face=Arial 
color=#0000ff>(atrparm);
y=(x/<FONT 
face=Arial color=#0000ff>C<FONT 
color=#0000ff>)*100<FONT 
color=#282828 size=2>;
z=(<FONT 
color=#0000ff>ATR(<FONT 
size=2>1)/<FONT 
size=2>C<FONT 
size=2>)*100<FONT color=#282828 
size=2>;
Vparm=<FONT 
color=#0000ff>Param("Vol 
MA",50,<FONT 
size=2>10,200<FONT 
color=#282828 size=2>);<FONT 
color=#0000ff size=2>
Plot<FONT color=#282828 
size=2>(V<FONT 
color=#282828 size=2>,"Volume"<FONT 
color=#282828 size=2>,IIf<FONT 
color=#282828 size=2>(C<FONT 
face=Arial>><FONT color=#0000ff 
size=2>Ref(<FONT 
size=2>C<FONT color=#282828 
size=2>,-1<FONT color=#282828 
size=2>),colorBrightGreen<FONT 
face=Arial>,<FONT 
size=2>colorRed<FONT color=#282828 
size=2>),2<FONT color=#282828 
size=2>|styleThick<FONT color=#282828 
size=2>);
Plot<FONT color=#282828 
size=2>(MA<FONT color=#282828 
size=2>(V<FONT 
color=#282828 size=2>,vparm),"Vol Average 
" ,<FONT 
size=2>colorYellow<FONT color=#282828 
size=2>,4<FONT color=#282828 
size=2>); 
Value1=<FONT 
color=#0000ff>ATR(<FONT 
size=2>1)/y*10<FONT 
color=#282828 size=2>;<FONT 
color=#0000ff size=2>
Plot<FONT color=#282828 
size=2>(y,"% of Vol Average "<FONT 
color=#282828 size=2>+WriteVal<FONT 
color=#282828 size=2>(V<FONT 
face=Arial>/<FONT color=#0000ff 
size=2>MA(<FONT 
size=2>V<FONT color=#282828 
size=2>,vparm)*100<FONT color=#282828 
size=2>,1.0) 
+"%"<FONT color=#282828 
size=2>+" ATR %"<FONT color=#282828 
size=2> ,colorWhite<FONT 
face=Arial>,<FONT 
size=2>styleOwnScale<FONT color=#282828 
size=2> |1<FONT color=#282828 
size=2>);
GraphXSpace<FONT 
face=Arial>=<FONT 
size=2>3<FONT face=Arial 
color=#0000ff>;
Title<FONT 
color=#0000ff>="% of Vol Average = 
"+WriteVal<FONT 
size=2>(V/<FONT 
size=2>MA(V<FONT 
size=2>,vparm)*100,<FONT 
size=2>1.0) +<FONT 
size=2>"%"<FONT face=Arial 
color=#0000ff>+
"\nToday's Percent of ATR 
("+<FONT 
size=2>WriteVal(ATRparm,1.0<FONT 
size=2>)+")"+<FONT 
size=2>WriteVal(z/y)+ "%"<FONT 
size=2>+ "\n ATR % = "+<FONT 
size=2>WriteVal(y)+WriteIf<FONT 
size=2>(V<FONT 
color=#0000ff><MA<FONT 
size=2>(V<FONT 
color=#0000ff>,50<FONT 
size=2>)/2," Very 
Little Volume",""); 
WriteVal(Value1)+ " 
Percent of the normal ATR"<FONT 
face=Arial color=#0000ff>; 


 
<FONT face=Tahoma 
size=2>-----Original Message-----From: indiana0352 
[mailto:cs_winn@xxxxxxxxxxx]Sent: Sunday, September 21, 2003 10:16 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
Volume Bar Widths and Colors!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> <A 
href="">http://groups.msn.com/ASXShareTrading> 
<A 
href="">http://groups.msn.com/FMSAustralia> 
> > -----Original Message-----> From: run_for_your_life2003 
[mailto:run_for_your_life2003@xxxx] > 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> > <A 
href="">http://groups.msn.com/ASXShareTrading> 
> <A 
href="">http://groups.msn.com/FMSAustralia> 
> > > > > -----Original Message-----> > From: 
run_for_your_life2003 [mailto:run_for_your_life2003@xxxx]> > 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: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)> 
> --------------------------------------------> > Check group FAQ 
at:> > <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > > Your use of Yahoo! Groups is subject to> <A 
href="">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: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)> 
--------------------------------------------> Check group FAQ at:> 
<A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > Your use of Yahoo! Groups is subject to <A 
href="">http://docs.yahoo.com/info/terms/Send 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.