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

Re: [amibroker] Changing Styles in AFL



PureBytes Links

Trading Reference Links

Thanks Graham.  I alway find your posts helpful look for you name when I'm screening the posts.
 Like this style change - I may not need at this time but
I've got a folder that I keep all these great techniques stored for future use.

Best regards
JOE
----- Original Message -----
From: Graham
Sent: Monday, May 23, 2005 7:08 PM
Subject: [amibroker] Changing Styles in AFL

I recall past posts asking about varying the style of chart from
within AFL using variables. The style must of course be constant
throughout the chart, but it is possible to alter the chart styles.
Here are a couple of examples

based on type of stock, in this case if is Index

if( IsIndex() ) { mystyle=styleBar; }
else{ mystyle=styleCandle; }
Plot(C, "", colorWhite, mystyle);

or baesd on price

if( LastValue(C)>10 ) { mystyle=styleBar; }
else{ mystyle=styleCandle; }
Plot(C, "", colorWhite, mystyle);

--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Yahoo! Groups Links