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

RE: [amibroker] Custom Indicator Problem



PureBytes Links

Trading Reference Links

Title: Normal.dot Template

 

I recently spent some time trying to figure out the nuances of the scaling on plot command.


I thought that I might save others some time by sharing the information I got from Marcin
from AB tech support :

 

Please find the answers below:

 

 

 

A)
I therefore understand that in a statement like:

plot(..,..,styleLine,min,max) (without styleOwnScale)

min and max have NO effect, and the plot will auto-scale.

Is this 100% correct?

YES - correct

(provided that you don't use StyleLeftaxisScale or StyleNoRescale)

 

 

B)
If I have 2 regular-scaled plot statements, the 1st one will set
the scaling (and Y axis label). The 2nd plot will be truncated
if it exceeds the auto-scaled values of the 1st statement. Right?

NO - it's not correct - both graphs will have common scale.

So the display range will be from the lowest value of these two charts

to the highest value of these two charts. So if 1st plot moves from

100 to 150 and the 2nd plot from 200 to 300, the display range will be

from:100    

to:300.

 

 

C)
If I have 2 plot statements, the 1st one is of a variable that
has a range of -100 to 100, but is regular scaled, the second
plot command uses  styleOwnScale with min=-50 max=+150,
actually I can NOT guarantee the plots relative vertical position. Right?

CORRECT

 

D)
In case C above, when I drag the mouse to change vertical scales
only the first plot will change scales, the 2nd one can NOT be changed.
Right?

CORRECT

 

E)
That being the case, it is allowed to have 2 or more custom scaled plots
in one indicator and they will ALL plot correctly?
(assume each variable fits it’s min/max range)  i.e.:

plot(x1,.., styleOwnScale,-100, 100);
plot(x2,..,
styleOwnScale,-50, 150);
plot(x3,..,
styleOwnScale, 0, 30);
Right?

CORRECT

 

 

Best regards

 

Marcin Gorzynski
Amibroker.com Technical Support

 



Joseph Biran
____________________________________________

 


From: Graham [mailto:kavemanperth@xxxxxxxxx]
Sent: Friday, April 01, 2005 11:44 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Custom Indicator Problem

 

One way I found to get around this was to use stylenorescale for all
but the main plot

On Apr 2, 2005 3:32 PM, mrdavis9 <mrdavis9@xxxxxxxxxx> wrote:
>  TJ and others shamed me into upgrading to the latest version of Amibroker.
> Now I really need help. I did watch the drag and drop video.

>  I am  having problems in that the plots in my custom indicators will not
> adjust themselves to fill  the available space from top to bottom of the
> screen. One has 28 Plot lines of all oscillator values that obviously top
> out at 99.999 and bottom out at almost zero.

> When all 28 lines are being displayed, the highest value that shows at the
> top of the window pane is almost 200, even though the highest plotline
> actual value is just shy of 99.  Also the lowest value that shows at the
> bottom of the pane is almost -200, so there is a LOT of wasted space above
> and below my plot lines.  With all 28 plot lines showing, the number of
> horizontal grid lines showing is 6, with the SECOND from top, and SECOND
> from bottom grid lines acting as barriers. 

> I then commented out all but 7 plot lines, and this caused  the highest
> value that shows at the top of the window pane to be about 115, and the
> lowest value at the bottom of the window became about -115.  With these 7
> plot lines showing, the number of horizontal grid lines showing is 9, with
> the FIRST from top, and FIRST from bottom grid lines acting as barriers. 

> Now it really gets strange, If I have the plot of Rsi(2) at the bottom of a
> Plot stack of only 5, there are 6 horizontal grid lines showing, and the
> plot lines are extending to touch both the top and bottom grid lines each of
> which are located very close to the top and bottom of the pane, resulting in
> very little wasted space.

> I then relocated Rsi(2) to the top of the plot stack of 5, and the
> horizontal grid lines are still 6, however, the first from top, and first
> from bottom grid lines are NOT very close to the top of the pane. Therefore,
> I still am looking at substantial wasted pane space.

> How can I remedy this situation so that my plotlines will fill all of a
> custom indicator window from top to bottom like they did before I upgraded.
> Ron D




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