If/When the first strategy becomes disabled, I'm thinking of running a second strategy (in addition to the primary strategy) that exits an account position if its detected as being Short. Aka if strategy is Flat & Account position is Short, exit the position. Am I correct in thinking that "Immediately submit, synchronize account" is the ideal synchronization setting for this purpose? Would this only sync at startup, or would it take the desired action if it detected the account position was Short at any time? Any high level concerns with taking this overall approach?
Regarding the implementation of stoplosses themselves (a problem that I hope I have now fixed), I am using SetStopLoss within OnBarUpdate at the time of entering a position, and using SetStopLoss to update the stoploss (say if the price goes up, the stoploss is moved up). I am ensuring that the SetStopLoss is always updated/reset before a new position is opened, however I read several posts that indicated that SetStopLoss may not be the best implementation of setting or updating Stop losses while a position is open. Is there a better/preferred method that I should be using for setting and updating the stoploss please?
Many thanks in advance
ChainsawDR
Comment