Can someone please advise where the error is in the following simple code:-

        fbr = Status("firstvisiblebar");
        Lbr = Status("lastvisiblebar")-1;

        x0 = fbr;
        x1 = Lbr;
        y0 = H[fbr];
        y1 = L[Lbr];
        Line = LineArray(x0,y0,x1,y1);
        Plot(Line,"Line",colorGreen);

The compiler produces an "out of range" error for the subscript in y1.
Hard to see how, since the status calls should return array index values, which 
obviously should be within the range used.
Thanks.

Reply via email to