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

Re: [amibroker] Colored Volume Bars



PureBytes Links

Trading Reference Links


Mohan,
 
Using the candlestick for volume, this is a good idea, I think 
I will start to use it in all my chart that use histogram !
here the modified code for you graph:<FONT 
color=#000000>

upbar =C > 
<FONT 
color=#0000ff>Ref(C,-<FONT 
color=#ff00ff>1<FONT 
face="Courier New">);
<FONT 
face="Courier New">downbar = C< <FONT 
face="Courier New">Ref<FONT 
color=#000000>(C,-1<FONT 
color=#000000>);
<FONT face="Courier New" 
size=2>barcolor=<FONT 
color=#0000ff>IIf(downbar, <FONT 
color=#ff00ff>4, <FONT 
color=#0000ff>IIf(upbar, <FONT 
color=#ff00ff>5,<FONT 
color=#ff00ff>19) 
);
O = 
<FONT 
color=#0000ff>iif(downbar, V, <FONT 
color=#ff00ff>0<FONT 
face="Courier New" size=2>); 
C = 
<FONT 
color=#0000ff>iif(downbar, <FONT 
color=#ff00ff>0<FONT 
face="Courier New" size=2>, V);
L=<FONT 
face="Courier New">0<FONT 
color=#000000>; H = V;<FONT 
color=#000000>
<FONT face="Courier New" 
size=2>Graph2=<FONT face="Courier New" color=#000000 
size=2>C; 

<FONT face="Courier New" 
size=2>Graph2Style=<FONT 
color=#ff00ff>64;<FONT 
color=#000000>
<FONT face="Courier New" 
size=2>Graph2BarColor=barcolor;
Jon.
<FONT face="Courier New" 
size=2> 
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
<A title=yellayi@xxxx 
href="">yellayi@xxxx 
To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, October 27, 2001 9:14 
AM
Subject: [amibroker] Colored Volume 
Bars
I am interested in seeing colored volume bars . I wrote the 
following afl code. Is there anyway to increase the width of the barseven 
more? Using th candlestick option (Graph2style = 64). Thanks for any 
comments and help.upbar = C > Ref(C,-1);downbar = C< 
Ref(C,-1);barcolor=IIf(downbar, 4, IIf(upbar, 5,19) 
);Graph2=Volume;  Graph2Style=2+4; /* histogram + Thick */ 
Graph2BarColor=barcolor;Graph1=MA(Volume,16); /* Matches with 
default volume indicator in AMI */Graph1Color = 
19;mohanYour 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.