PureBytes Links
Trading Reference Links
|
Thanks Graham!
Here is a good one that TJ wrote for me when I first bought AB. It handles
any situation where your data provider fills in the O, H, and L with the C,
making AB think it is displaying continuous quotations, which results in
little flat bars on the price chart. This will display true continuous
quotes as candles, and all others as a line (or change them to whatever you
want).
Style = LastValue( IIf( LastValue( Cum( Open != Close ) == 0 ), styleLine,
styleCandle) );
Plot( Close, "Close", colorBlack, Style );
Steve
----- Original Message -----
From: "Graham" <kavemanperth@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, May 23, 2005 8: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
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ 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
--------------------------------------------------------------------~->
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
<*> 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/
|