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

Re: [amibroker] Auto fitting



PureBytes Links

Trading Reference Links

You are amazing Tomasz. I can't say how much I appreciate your quick response to all my
questions and your equally as quick entailing fixes. You and AmiBroker are leagues ahead of
the other stock analysis developers and their programs. I think I am home.

Many Thanks Tomasz
TomE

Tomasz Janeczko wrote:

> Hello,
>
> The solution to this problem is to change the numbering of graphs as
> shown in the modified formula below:
>
> r = L*0.0125; Llr = L-r; Lur = L+r;
> f = H*0.0125; Hlr = H-f; Hur = H+r;
> ret = LastValue(((HHV(H,5) - LLV(L,5))/2) + LLV(L,5)>L);
>
> /* using Close for the first graph ensures proper scaling */
> Graph0 = Close;
> Graph0Style = 64;
> Graph0Color = 1;
>
> Graph1 = IIf (ret == 1, LastValue(Llr),LastValue(Hlr));
> Graph1Color = 4;
> Graph2 = IIf (ret == 1, LastValue(Lur),LastValue(Hur));
> Graph2Style = 1;
> Graph2Color = 5;
>
> I simply changed the order of graphs so first plot (graph0) shows price.
> The reason of this behaviour is as follows:
> Charting engine scans graphs in the order graph0, graph1, ...
> and modifies min/max values for scaling based on the maximum and minimum
> values given in graphX arrays.
>
> There is one problem however - if the array holds THE VERY SAME
> value through all bars - maximum and minimum are the same which would
> lead to problems when displaying grid - so AmiBroker sets the maximum to
> 2 * minimum.
>
> The process is continued for the next graph lines.
>
> So in your case, when graph0 was assigned a constant value of 10000,
> the min was set to 10000 and max to 20000. When the close array gets
> analysed the scaling engine lowers min to 7000 (min from price) but the upper
> bound is OK (it is not adjusted because prices fit in 20000 range).
> So the result is that you get 7000-20000 scale.
>
> If you change the order of graphs so close is evaluated first -
> a proper range for closing price is detected 7000-12000 (for example) and
> further checks of constant values do not affect lower and upper bounds
> because the value fits inside the range.
>
> Hope this helps.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
>
> ----- Original Message -----
> From: "Thomas and Theresa Eyre" <tnt.eyre@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, December 06, 2001 12:17 AM
> Subject: Re: [amibroker] Auto fitting
>
> > Hi Tomasz. No gif available in paint. Have tried sending it JPEG and bitmap. not
> > accepted by yahoo. Here is theformula.
> >
> > r = L*0.0125; Llr = L-r; Lur = L+r;
> > f = H*0.0125; Llr = H-f; Hur = H+r;
> > ret = Lastvalue(((HHV(H,5) - LLV(L,5))/2) + LLV(L,5)>L);
> >
> > Graph0 = IIf (ret = = 1, Lastvalue((Llr),Lastvalue(Hlr));
> > Graph1 = IIf (ret = = 1, Lastvalue((Lur),Lastvalue(Hur));
> > Graph2 = close; Graph2style = 64 + 32;
> >
> > Thanks
> > TomE
> >
> > Tomasz Janeczko wrote:
> >
> > > Hello,
> > >
> > > Click on the chart pane that is displayed wrong. Choose Edit->Copy
> > > from the menu. Now open Paint program (Start->Programs->Accessories)
> > > and choose "Edit->Paste" - then save the file (as .GIF)
> > > and attach it to the e-mail.
> > >
> > > Best regards,
> > > Tomasz Janeczko
> > > amibroker.com
> > >
> > > ----- Original Message -----
> > > From: "Thomas and Theresa Eyre" <tnt.eyre@xxxx>
> > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > Sent: Wednesday, December 05, 2001 1:48 PM
> > > Subject: Re: [amibroker] Auto fitting
> > >
> > > > Could you give me directions on how to send a screenshot please Tomasz.
> > > >
> > > > Thanks
> > > > TomE
> > > >
> > > > Tomasz Janeczko wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > Could you send a screenshot of the chart pane that is scaled wrong?
> > > > >
> > > > > Best regards,
> > > > > Tomasz Janeczko
> > > > > amibroker.com
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Thomas and Theresa Eyre" <tnt.eyre@xxxx>
> > > > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > > > Sent: Wednesday, December 05, 2001 12:17 AM
> > > > > Subject: Re: [amibroker] Auto fitting
> > > > >
> > > > > > Yes. Scaling Auto is on.
> > > > > > TomE
> > > > > >
> > > > > > Tomasz Janeczko wrote:
> > > > > >
> > > > > > > Hello,
> > > > > > >
> > > > > > > Check if you have "Scaling: Automatic" set in the Indicator Builder.
> > > > > > >
> > > > > > > Best regards,
> > > > > > > Tomasz janeczko
> > > > > > > amibroker.com
> > > > > > >
> > > > > > > ----- Original Message -----
> > > > > > > From: <tnt.eyre@xxxx>
> > > > > > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > > > > > Sent: Tuesday, December 04, 2001 3:42 AM
> > > > > > > Subject: [amibroker] Auto fitting
> > > > > > >
> > > > > > > > Hi. I put a custom indicator in sheet 2 and i notice it doean't auto
> > > > > > > > fit on the y axis. If I add all the quotes onto the window that are
> > > > > > > > currently availabe to load, it fills the the window to the top, so the
> > > > > > > > graph is not auto sizing to fit the window when I go forward in time.
> > > > > > > > Am I making sense?
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > > TomE
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 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/
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 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/
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 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/
> >
> >
> >
> >
> >
> > 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/