PureBytes Links
Trading Reference Links
|
try using the newer plot statements instead of graph. You will find it
easier to make charts.
this is easier, more straightforward way to write your colour statement
col = IIf( C>Ref(C,-1), colorBrightGreen, IIf( Close==Ref(Close,-1),
colorYellow, colorRed ));
Vol = V / MA( V, 50 ) * 100;
Plot( Vol, "Volume", Col, 2+4 );
plot( 0, "", 53, 1 );
plot( 100, "", 53, 1 );
plot( 200, "", 53, 1 );
plot( 300, "", 53, 1 );
On Sun, 23 Jan 2005 07:11:06 +0800, Clement Chin <clement@xxxxxxxxxx> wrote:
>
> Graham, thank you for the enhancement. I am trying to do a normalized
> version of the volume. To share the code here. I hope I am doing it
> correctly.
>
> MaxGraph = 10;
> Vol = V/MA(V,50)*100;
> col = IIf(C>=
> Ref(C,-1),IIf(Close==Ref(Close,-1),colorYellow,colorBrightGreen),colorRed);
> Plot(Vol,"Volume",Col,2+4 );
> Graph1 = 0;
> Graph2 = 100;
> Graph3 = 200;
> Graph4 = 300;
> Graph1Style = Graph2Style = Graph3Style =
> Graph4Style =1;
> Graph1Color = Graph2Color = Graph3Color =
> Graph4Color =53 ;
> Title = " Vol: "+ WriteVal(Vol,format=1.2)+"%";
>
> Welcome any comment. Thank you.
>
>
> -----Original Message-----
> From: Graham [mailto:kavemanperth@xxxxxxxxx]
> Sent: Sunday, January 23, 2005 7:02 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Plotting volume in different colors
>
> Your formula works fine for me
>
> You might like to add
> Plot(V, "Volume", IIf(C>O, colorGreen, IIf(C<O, colorRed, colorBlack
> )), styleHistogram );
>
> On Sat, 22 Jan 2005 23:18:56 +0100, ed nl <ed2000nl@xxxxxxx> wrote:
> > you approach is basicly OK. Can see what's wrong. Below I show one of
> mine,
> > maybe that help, rgds, Ed
> >
> >
> > col = IIf( Close >= Ref( Close, -1 ), IIf(Close ==
> > Ref(Close,-1),colorYellow,colorBrightGreen), colorRed );
> > Plot( Volume, "Volume", col, styleHistogram | styleThick);
> >
> >
> >
> > ----- Original Message -----
> > From: Clement Chin
> > To: amibroker@xxxxxxxxxxxxxxx
> > Sent: Saturday, January 22, 2005 11:11 PM
> > Subject: [amibroker] Plotting volume in different colors
> >
> > I am new to AB. I am trying to plot volume in different colors with this
> > formula. But, the histogram shows only one color. Anyone can show me a
> > workable way?
> >
> > Plot(V, "Volume", IIf(C>O, colorGreen, colorRed),styleHistogram );
> >
> > Thank you in advance.
> >
> > Manyit
> >
> >
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >
> > ________________________________
> > Yahoo! Groups Links
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/amibroker/
> >
> > To unsubscribe from this group, send an email to:
> > amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> --
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|