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 NullPointStrategies, Today, 05:17 AM
          0 responses
          30 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          124 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          64 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X