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

Re: Colored Volume Bars



PureBytes Links

Trading Reference Links

Jon

Thanks for showing me how to use the candlestick option to draw volume

mohan

--- In amibroker@xxxx, "jonf" <jonf_ca@xxxx> wrote:
> 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:
> upbar = C > Ref(C,-1);
> downbar = C< Ref(C,-1);
> barcolor=IIf(downbar, 4, IIf(upbar, 5,19) );
> O = iif(downbar, V, 0); 
> C = iif(downbar, 0, V);
> L=0; H = V;
> Graph2=C; 
> Graph2Style=64;
> Graph2BarColor=barcolor;
> Jon.
> 
> ----- Original Message ----- 
> From: yellayi@xxxx 
> To: amibroker@xxxx 
> 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 bars even 
> 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;
> 
> mohan
> 
> 
> 
> Yahoo! Groups Sponsor 
> 
> 
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.