PureBytes Links
Trading Reference Links
|
At 02:01 PM 5/3/99 EDT, you wrote:
>I discovered that TradeStation "does not always" properly exit at the last
>swing low with a strength of 1 when the following code is used:
>{
>If MarketPosition = 1 then ExitLong at SwingLow(1,L,1,50) stop;
>}
I would first suspect that your exit isn't happening because MarketPosition is not 1 on the bar where you need to place the stop order. Market position has the annoying quality that it is not 1 until the bar following a fill. Therefore you can't use it as a basis for placing an exit order to stop you out on the bar of an entry or for the bar following an entry.
Take a look and see if the exits fail on trades where you should get out on the bar following the bar of entry. If so, it's the marketposition latency that's responsible.
If you can, just do away with the marketposition test entirely. You'll find in many cases you don't need to test for being long at all before exiting. Just use the exit order by itself with no test.
Mike G.
|