Quote from RoughTrader:
Yes, it's quite easy using stop orders. I doubt it would be profitable though. I'll code it quick and post the results.
RoughTrader
This is my code:
Variables:
SessionMark(0),
InitMark(0),
TickValue(MinMove / PriceScale);
SessionMark = IFF(Time = CalcTime(SessionStartTime(0,1), BarInterval), 1, 0);
If InitMark = 0 and SessionMark = 1 Then
InitMark = 1;
If InitMark = 1 Then
Begin
If MarketPosition < 1 Then
Buy ("LE_Stop") Next Bar at H + TickValue Stop;
If MarketPosition > -1 Then
SellShort ("SE_Stop") Next Bar at L - TickValue Stop;
SetExitOnClose;
End;