Code: Select all
if barstatus(1)=0 then
begin
messagelog(Symbol_CurrentBar data1); // print only one time, and only last bar !
end;
if barstatus(3)=0 then
begin
messagelog(Symbol_CurrentBar data3); // never print !
end;
if barstatus(4)=0 then
begin
messagelog(Symbol_CurrentBar data4); // never print !
end;
Code: Select all
MESSAGELOG(Symbol_CurrentBar data1);
?