Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Any trick to start a strategy to act on the existing positions?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Any trick to start a strategy to act on the existing positions?

    Hello everyone,
    For the current 8.0.26.1, is it possible to program a strategy to act on exisiting positions? The IB Gateway daily server reboot (where time is not controllable by user) creates to me a lot of headaches as a running strategy (this means, a strategy that has already executed the Entry and order filled) could sometimes quit due to the IB disconnection. I find no way to carry on the strategy to manage the existing position.IB server reboot and ninja's strategy mechanism make overnight trading impossible.The only way to exit is by manual execution as far as I am aware of. (again, I am talking about IB Gateway's user uncontrollable server reboot, not the restart of Gateway that user can set time)

    So, is it really true that a strategy cannot act on exisiting positions or am i miss something? If it's true that a strategy can only manage its own run time positions, could Ninja make an improvement to make it possible?

    Any thought is very much appreciated!

    #2
    Hello timko,

    It is possible to resume orders or positions that the strategy previously made however this completely depends on your strategy and its requirements. Most strategies cannot resume positions/open orders because their logic will not equate exactly the same when re processing historical data. If you strategy can be re enabled and it can re create the exact series of events to submit those orders/create those positions then the strategies start behavior can be used for that process. If it cannot then it will manage the open orders by cancelling them which may leave unprotected positions.



    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    79 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X