I'm working with IB and every day it auto logs off. If I keep overnight positions I need a way to set a position on the strategy to match the real position.
When I worked with managed positions it was easy. When the historical bar matched with the time and date of the real entered position I launched an market order that appeared on the strategy but it didn't send a real enter order on the market.
With unmanaged when I send a SubmiOrder, even in an historical bar it sends a real market order. Thus, I'm duplicating the real position on the market.
Any hint on how to set an historical strategy position on unmanaged orders without sending a real market order?
Comment