PureBytes Links
Trading Reference Links
|
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
|