• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem when the strategy stops

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

    Problem when the strategy stops


    Talking with IB support, once a week they do maintenance of the platform, therefore ninjatrader strategies will be disconnected. By implementing them again as you could do so that your next action is a exit position (If I had previously entered).

    #2
    Hello 7robert, thanks for your post.

    For the strategy startup, you would need to set your start behavior to "Adopt Account Position". This startup behavior requires you to program your strategy such that your orders are handled with Order objects such that GetRealtimeOrder() can be used to get any real account positions that might exist. This startup behavior also requires IsAdoptAccountPositionAware be set to true.

    See this reference sample for an example of using GetRealTimeOrder().

    I look forward to hearing of your results.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by EnveousColnago, Yesterday, 05:43 PM
    7 responses
    37 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Started by PeterGolz, 01-17-2020, 10:42 AM
    11 responses
    73 views
    0 likes
    Last Post reubenlasky  
    Started by utilizator, Today, 11:36 AM
    0 responses
    6 views
    0 likes
    Last Post utilizator  
    Started by EnveousColnago, Today, 07:24 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by tornadoatc, Today, 10:31 AM
    0 responses
    4 views
    0 likes
    Last Post tornadoatc  
    Working...
    X