PureBytes Links
Trading Reference Links
|
Hi Tomasz,
Thank you very much for your prompt reply! Adding LastValue() did
not seem to change anything. Since Highest() returns a number and
LastValue accepts an array as the argument, I do not understand why
you added LastValue() to the formula. (I noticed that you also wrote
the formula that way in your Foreign example in the reference guide)
It appears to me that there is no way to detect the highest value
within the visible pane (only the highest value back to the beginning
of the data). If that is correct, then I don't think there is any
way to scale the volume in the same manner as the Price Pane (which
you already mentioned).
Thanks,
jim
--- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> Hello,
>
> You would need to write:
>
> Graph0 = Close;
> Graph0Style = 64;
> Graph1 = Volume;
> Graph1Style = 6;
> Graph1 = (LastValue(Highest(Graph0))/LastValue(Highest(Graph1))) *
Graph1;
>
> The price pane in AmiBroker is not implemented in AFL (yet)
> - it uses completely separate scaling for volume and price axes and
is somewhat
> "special" (buy/sell arrows go only there).
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
>
> ----- Original Message -----
> From: <dreamcircle60@xxxx>
> To: <amibroker@xxxx>
> Sent: Thursday, November 29, 2001 11:21 PM
> Subject: [amibroker] Scaling volume to fit on price chart
>
>
> >
> > Dear Tomasz and others,
> >
> > I am basically starting out learning about AFL, and I am trying
to
> > plot volume on the same panel as the price. Thus I need to scale
the
> > volume to fit and right now I am using the Highest() function to
> > scale.
> >
> > graph0 = close;
> > graph1 = volume;
> > graph1 = (Highest(graph0)/Highest(graph1)) * graph1;
> >
> > The problem is that I would like to use the highest value which
is
> > displayed (not the absolute highest value back to the beginning
of
> > time). Can anyone suggest how I might do that, or suggest a
better
> > method for scaling the volume?
> >
> > Tomasz: are you able to share the AFL code for the basic Price
> > Indicator (if there is AFL code) ? This would provide a good
example
> > for me to work off of.
> >
> > Thank you very much,
> >
> > jim
> >
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
|