Code: Select all
sell(“JobName”) next bar at <target> limit
Code: Select all
var: intrabarpersist mp(0);
if mp > 0 and marketposition=0 then
begin
// reset variable
end;
mp = marketposition;
Code: Select all
sell(“JobName”) next bar at <target> limit
Code: Select all
var: intrabarpersist mp(0);
if mp > 0 and marketposition=0 then
begin
// reset variable
end;
mp = marketposition;
Code: Select all
IntraBarOrderGeneration=True;
Code: Select all
[IntrabarOrderGeneration=true];
var: IntraBarPersist mp(0);
if BarStatus(1)=2 then
begin
// will calculate at end of bar
sell("JobName") next bar at xxx limit;
end;
if mp>0 and marketposition=0 then
begin
// reset variable
end;
mp=marketposition;
Code: Select all
var: mp(0);
if mp > 0 and marketposition=0 then
begin
// reset variable
end;
if marketposition>mp then mp = marketposition;
Code: Select all
[IntrabarOrderGeneration = true]
var: aa(0), intrabarpersist bb(0);
aa = aa + 1;
bb = bb + 1;
print(date, " | ", time_s, " |aa[1] = ", aa[1], ", |aa = ", aa, ", |bb[1] = ", bb[1], ", |bb = ", bb);