i have problem with simple code:
Code: Select all
if (LastBarOnChart_s = True) then begin
RecalcLastBarAfter(0.001);
if marketposition<>1 then buy next bar at insidebid limit;
end;
if there is new last that someone buy or sell something, after the routine start not before.
maybe is one flag to put somewhere?