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 CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          16 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          120 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          174 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          92 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          134 views
          0 likes
          Last Post cmoran13  
          Working...
          X