My strategy often holds positions over the weekend. And the problem is that my data connection (CQG/NinjaTrade Continuum) is usually disconnect from your end over the weekend. (I understand this happens so you can run server maintenance.)
Specifically, I want to handle cases where my strategy is in, say, a long position (that was submitted via EnterLong()) on Friday at market close. Also submitted and working/accepted is a profit target via SetProfitTarget().
Now my data connection disconnects and with it the strategy is disabled (correct?).
After the server maintenance, I re-connect to CQG and want to re-enable the strategy in such a way that it goes back to the state it was in on Friday at market close. I.e. long position is open, and profit target is submitted.
Which StartBehavior will do that? I've tried "Wait until flat" and "Adopt account position" which both didn't achieve what I need.
Many thanks!

Comment