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

Re: [amibroker] AFL chart scaling question



PureBytes Links

Trading Reference Links

you could try adding styleownscale or styleleftaxisscale to the a3 plot
statement
alternatively instead of zero use null
a3=IIf(a1>a2,a1,null);
It all depends on what you really require

-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com

On 19/11/06, itmwh <toxutao@xxxxxxxx> wrote:
>
> Sometimes I have some indicators whose values fluctuate violently,
> I  want to know how to show the indicators approatiately in the
> chart.
>
> For example, I have the following indicator "a3"
>
>
> ---------------------------------
>
> a1=High;
> a2=EMA(Close,10);
>
> a3=IIf(a1>a2,a1,0);
>
>
> Plot(a3,"a3",colorRed);
>
> ----------------------------------
>
>
> My confusion is : the indicator a3 fluctuate violent between zero
> and near the current market price, the amibroker chart by default
> shows all the values within the whole range (  for the symbol i am
> looking at ,it is from 0 to 16250,), but I only want the chart sacle
> to be around the current market price, say 16000-16500, the detailed
> scale range to be judged by amibroker automatically).
>
> Is there a way of making it possbile in AFL ?
>
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 11/20/2006