My code currently does not test for the existance of a position
It just tests the exit condition and fires the appropriate exitlong/short.
I notice with traceorders on, that this generates a minor err msg saying order ignored.
So would you recommend testing for the existance of a postion first?
For example
This
// LSMA exit
if (Position.MarketPosition == MarketPosition.Long && Low[0] < (LinReg(25)[1] - 2*TickSize))
{
ExitLong("LSMA","");
}
vs
This
// LSMA exit
if (Low[0] < (LinReg(25)[1] - 2*TickSize))
{
ExitLong("LSMA","");
}

Comment