PureBytes Links
Trading Reference Links
|
I'm trying to insert code that will prevent a long or short entry on the
bar after exiting a losing trade in the same direction. I've tried the
following (for longs; similar for shorts), but it eliminates all trades
by the system:
If Signal1 or Signal2 and (ExitTime(1) <> Time of 1 bar ago and
MarketPosition(1) = 1) then
Begin
If MarketPosition(0) = 0 then
Buy 1 Contract;
End;
Any suggestions as to what I've done wrong or how I could do this better
would be appreciated.
|