PureBytes Links
Trading Reference Links
|
Tomasz,
Thank you for your reply. I tried your suggestion, and the volume peaks appear correct when I use LastValue().
What confused me is that in your reference guide, you state that LastValue() accepts an ARRAY and Highest() returns a NUMBER. In fact, I think Highest() SHOULD return a number. I still do not understand why LastValue() should have an effect. (I agree that it DOES have an effect, I just don't understand why). Can you tell me, does Highest() actually return an ARRAY?
As always, thank you very much for your help.
jim
--- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> Hello,
>
> LastValue is used to guarantee the same scaling is applied
> to all bars. Otherwise you would get distorted chart (different scaling
> for different bars) - please take a look at the levels of volume peaks without
> LastValue() and you will see what I mean.
>
> As for your second question - AFL does not provide a method
> to get display parameters.
> The scaling is done automatically by AmiBroker and you can not
> control "automatic" scaling mode.
>
> Best regards,
> Tomasz Janeczko
> ===============
> AmiBroker - the comprehensive share manager.
> http://www.amibroker.com
>
> ----- Original Message -----
> From: <dreamcircle60@xxxx>
> To: <amibroker@xxxx>
> Sent: Friday, November 30, 2001 5:34 PM
> Subject: [amibroker] Re: Scaling volume to fit on price chart
>
>
> >
> > 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/
> > > >
> > > >
> > > >
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
> >
|