PureBytes Links
Trading Reference Links
|
Need help with an S&P system exit technique:
If system generates an order and position becomes
profitable (even by 1 tick) then exit trade MOC.
Inputs: Factor(.40);
If (high-Low) > 0 then begin
If marketposition >=0 then sell at
the open of tomorrow - Factor *
(high-low) stop;
If marketposition <=0 then buy at
the open of tomorrow + Factor *
(high-low) stop;
End;
I tried this, but the thing keep's referencing the next bar:
If PositionProfitCustom(High, Low, True) >= 25 AND MarketPosition <> 0 Then
Begin
ExitLong This Bar on Close;
ExitShort This Bar on Close;
Any help is much appreciated...
Matt
|