Code: Select all
[IntrabarOrderGeneration = false]
variables: MyLo1(0), MyLo2(0);
condition1 = l < l[1] ;
if condition1 then
begin
MyLo2 = MyLo1;
MyLo1 = l;
end;
if MyLo1 < MyLo2 then
Buy ( "2LoLE" ) next bar at market ;