| 
 PureBytes Links 
Trading Reference Links 
 | 
1)  If Go  crosses above HIT then buy at close;
2)  If CurrentContracts = 1 and Go crosses below HIT then exitlong;
3)  If Go[1] crosses below LIT and Go crosses above LIT then buy at close;
4)  If Currentcontracts = 1 then exitlong after 5pts;
vars:
S5(0),  {...identifier for type 5 sell entry}
S7(0),   {...identifier for type 7 sell entry}
SEP(0)   {...sell entry price}
; 
 
5) 
 If Go crosses below LIT
 and SEP=0 then begin
    sell on the close;S5=1;SEP=C;
 end;
6) 
 If CurrentContracts = 1
 and Go crosses above LIT
 and S5=1 then begin
    exitshort on the close;S5=0;SEP=0;
 end;
7) 
 if Go[2]<HIT[2] 
 and Go[1]>HIT[1]
 and Go crosses below HIT
 and SEP=0 then begin
   Sell on the close;S7=1;SEP=C;
 end;
8) 
 If Currentcontracts = 1 then begin
   {...exitshort after 5pts;}
   if SEP-C>=5 then begin
      exitshort on the close;S5=0;S7=0;SEP=0;
   end;
  end;
if SEP=0 then begin
  S5=0;S7=0;
end;
 |