Code: Select all
vars:
cond1(false),cond2(false),cond3(true),
val1(0),val2(0);
once (LastBarOnChart) begin
cond1=true;
cond2=true;
val2=realBarNumber;
end;
once (cond1) begin
print("I work");
print("cond1: ",cond1," cond2: ",cond2," Bar Num: ",val2);
end;
if cond1 then print("I still work");
if d=1230323 and t>1415 then print(realBarNumber);
Code: Select all
I work
cond1: TRUE cond2: TRUE Bar Num: 15895.00
I still work
15895.00 value: 15895.00
15895.00 value: 0.00
15895.00 value: 0.00
15895.00 value: 0.00
15895.00 value: 0.00
15896.00 value: 0.00