Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sync account position after re-enable of strategy

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

    sync account position after re-enable of strategy

    I would like to understand the behaviour of this option:
    Sync account position:

    Today I had a strategy running. This strategy has 1 position open and 1 stop order active. The stop order is on the exchange.

    Now I disconnect the LAN and then I reconnect the LAN to generate a disconnect- reconnect to the broker account.

    There is still 1 position (FGBL [email protected] ) and 1 stop order buy [email protected] active (since my orders are on the exchange)

    Now I see my strategy disabled in the strategies tab. So I edit the strategy and set sync account position to true.

    Then I enable the strategy. The strategy is running now and the position is synched with the strategy.

    REAL QUESTION:

    Not only I have 1 position, but I also have 1 stp order which should be sync'd with my strategy.
    What happens to the stp order ?
    Could you please explain?

    Currently my trade is still open and the strategy should trail the stp order, but from my debug prints it looks like that this stp order is orphaned now and not updated by my strategy.

    Please explain what I need to to to sync also this stp order.

    regards
    Andreas

    #2
    Andreas,

    The sync account position does not influence stop/target orders. That is determined by your WaitUntilFlat/SubmitImmediately options.

    Sync account position literally just means syncing of your account position to your strategy position. If your strategy started up that means it was able to recover your stop/target, but your code needs to be done properly for it to be able to move this order though. Please be sure you are using the new style of IOrder comparisons.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,986 views
    0 likes
    Last Post rene69851  
    Started by Fitspressorest, Today, 01:38 PM
    0 responses
    2 views
    0 likes
    Last Post Fitspressorest  
    Started by Jonker, Today, 01:19 PM
    0 responses
    2 views
    0 likes
    Last Post Jonker
    by Jonker
     
    Started by futtrader, Today, 01:16 PM
    0 responses
    9 views
    0 likes
    Last Post futtrader  
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,792 views
    0 likes
    Last Post aligator  
    Working...
    X