If BarsSinceEntry(0) = 0 Then begin
PosLow = Low;
end;
If MarketPosition <0 Then begin
If Low < PosLow Then begin
PosLow = Low;
end;
buytocover("TSP1") Next Bar at PosLow +15 Stop;
end else begin
buytocover("TSP2") Next bar at Low + 15 Stop;
end ;
If BarsSinceEntry(0) = 0 Then begin
PosHigh = High;
end;
If MarketPosition >0 Then begin
If High > PosHigh Then begin
PosHigh = High;
end;
sell("TSP3") Next Bar at PosHigh -15 Stop;
end else begin
sell("TSP4")Next Bar at PosHigh -15 Stop;
end;