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

Re: printing Previous values of Close



PureBytes Links

Trading Reference Links

An indicator has to search for the appropriate value of MaxBarsBack if you
have it set to "Auto-detect" (on the Properties tab).

The print log prints the results of these tries in addition to the correct
ones.

To fix it, try setting the MaxBarsBack setting to some user specified value.

Bob Fulks

----


At 5:45 AM -0400 9/29/98, Technical Trends wrote:
>There is some error in the following code:
>if date = lastcalcdate then begin
>
>for value1 = 5 downto 0  begin
> print(close[value1]);
>end;
>
>end;
>
>{ the plot1 statement is required to make this an indicator }
>plot1(close,"close");
>
>The last six closing prices are:
>218.65, 205.20, 205.90, 205.80, 197.80, and 201.25
>
>while executing the following lines the print log shows:
>218.65
>218.65
>218.65
>218.65
>205.20
>218.65
>201.25
>197.80
>205.80
>205.90
>205.20
>218.65
>
>Could someone tell me what the error in my code is, and why the printlog
>shows more lines than requested ?
>
>Sudarshan Sukhani