• 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

strategy and connection management

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

    strategy and connection management

    Hi all!
    I use ninja with zenfire, frequently during the weekend the connection on datafeed fall (maybe for server maintenance).
    After this, the connection don't restore itself and if I restore it manually my strategies lose control on eventually orders...
    There is a method to do this automatically???
    Thanks for all!!

    #2
    Hello kantkant2,

    I would not rely on a method to do this automatically for you but you should be able to change some settings so that NinjaTrader will enable your strategy and submit orders for you like the strategy was processing it before.

    If you have set NinjaTrader to "Immediately submit live working historical orders" (under Tools -> Options -> Strategy tab -> NinjaScript tab) then on startup the strategy will begin executing orders immediately.

    • Any active orders on the account previously generated by the strategy that does not match* an active strategy order will be cancelled. Should the strategy be unable to cancel and receive confirmation on the cancellation of these orders within 40 seconds the strategy will not start and an alert will be issued.
    • The matching active orders on the account will then be mapped to the active strategy orders
    • Any remaining active strategy orders that cannot be successfully paired will be submitted live and the strategy will begin managing your Strategy Position assuming your Account Position is in sync with it.

    * A previously generated order is considered to match an active strategy order when the order action, order type, quantity, limit price, and stop price are exactly identical.

    Here is a link to our Help Guide that goes over the different Syncing Account Position settings that you may view for more information.
    http://www.ninjatrader.com/support/h..._positions.htm

    Let us know if this will work for you.
    JCNinjaTrader Customer Service

    Comment


      #3
      many many thanks JC!!

      and there are options to reconnect zenfire automatically after shut down?? because in weekend time frequently the bar of connection became orange (if I remember well) and the log say:

      "Connection to NinjaTrader historical market data server lost: An existing connection was forcibly closed by the remote host"
      and I must to disconnect and reconnect manually.
      thanks

      Comment


        #4
        Hello kantkant2,

        You will still need to manually disconnect and reconnect to Zen-Fire, but changing these settings will help your strategy remained synced to your account position when you re-enable your automated strategy. By default NinjaTrader is set to "Wait until flat before executing live" which is going cancel any orders that your strategy previously generated.

        Happy to be of further assistance.
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by b16_aln, Today, 08:53 AM
        0 responses
        3 views
        0 likes
        Last Post b16_aln
        by b16_aln
         
        Started by learningnt, Yesterday, 10:52 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by U0000999, Today, 07:31 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by TheGameOfProbabilities, Today, 06:56 AM
        5 responses
        22 views
        0 likes
        Last Post NinjaTrader_Tyler  
        Started by emuns, Today, 06:40 AM
        2 responses
        11 views
        0 likes
        Last Post emuns
        by emuns
         
        Working...
        X