Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Accounts using Esignal efs

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

    #16
    >> that 'CurOrderID' is in a terminated state and can't be changed;
    Not sure I follow. Error message say it all: order is terminal (filled, cancelled etc.) and can't be changed.

    Comment


      #17
      Dierk,

      I have 2 accounts within Ninja, Sim101 and AutoAccount.

      I have an esignal efs loaded on 2 different charts within Esignal. 1 chart is sending commands to Ninja's account Sim101 and the other chart is sending commands to Ninja's account AutoAccount.

      The last state of "CurOrderID" is filled in the Sim101 account and there is no trade in progress.

      The last state of "CurOrderID" is accepted in the AutoAccount and there is a stop limit order pending.

      The pending order was a result of this command:

      NTCommand("Place", TradeAccount, "Sell", Size, "StopLimit", EnterShort.toFixed(2), EnterShort.toFixed(2), "", "", "CurOrderID", "", "");

      The problem comes when I try and change it in this command:

      NTCommand("Change", TradeAccount, "Sell", Size, "StopLimit", EnterShort.toFixed(2), EnterShort.toFixed(2), "", "", "CurOrderID", "", "");

      Hope this clarifies the problem.

      Thanks

      Comment


        #18
        Try using unique order IDs.

        Comment


          #19
          Dierk,

          Thanks. That appears to work great. I thought the ID was account specific, not global.

          Thanks again.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by f.saeidi, Today, 11:02 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by geotrades1, Today, 10:02 AM
          4 responses
          12 views
          0 likes
          Last Post geotrades1  
          Started by rajendrasubedi2023, Today, 09:50 AM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by lorem, Today, 09:18 AM
          2 responses
          11 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by geddyisodin, Today, 05:20 AM
          4 responses
          30 views
          0 likes
          Last Post geddyisodin  
          Working...
          X