--- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> As I wrote in previous post, you must have at least one Plot() (or
graph)
> statement in your formula to use axisminx/axismaxy. 
> This is so because the axis scaling is derived from plotted data.
> Your formula does not meet this requirement.
> 

Hi Tomasz,

I did have a plot statement in the formula, I just did not list it in
the code I displayed. I was adding the 'test' code to an already
working AFL and did not want to confuse the issue with irrelevant code.

Here is a very simple formula that shows the problem.

Title = "MinY="+Status("axisminy") + " MaxY=" + Status("axismaxy");
Plot(C-ATR(10), "ATR", colorGreen, styleLine);

"MinY="+Status("axisminy");
numVisBars=Status("lastvisiblebar")-Status("firstvisiblebar");
"numVisBars="+numVisBars;
"ATR="+ATR(10);

Title prints the correct values for MinY and MaxY.

MinY=161.567 MaxY=165.498

This is what prints in the Interpretation window:

MinY=0 MaxY=0
MinY=0
numVisBars=158
ATR=0.217287

Bill

Reply via email to