Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

bug in ninja script copier help

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

    bug in ninja script copier help

    hello! I have a plugin that I'm developing and want to publish here in the future. which is basically supposed to duplicate my deals for the rest of my users I have Apex Tredify and other users of other providers and I try to control them at the same time briefing the software... It seems that if I duplicate trades, let's say to APEX users (example), it does duplicate and close trades and does exactly what the leader does. But if I have for example 3 different user types or 2 even and one of them, for example, Tradify... Here there are some problems, let's say if I'm already in a buy position on the leader and all the users, and then I close on the leader. Most users close a deal as it should be, but let's say Tradify does the opposite, and instead of closing a deal, it goes into a sell with twice the amount of contracts I put in... It seems to only happen if there are all sorts of different users/providers that I control and if it's one type like pex or others it does work... It must be noted that this only happens when you close a deal.

    The big question is whether something needs to be done to communicate with all the suppliers? Do the vendors receive different instructions from the ninja? I would like to hear more about it please help me a lot

    I can't share the code since it's really, really big and not a small piece of code​​

    #2
    the topic is in ninjatrader 8 desktop develop(not 7) sorry

    Last edited by Alipsa; 05-07-2025, 03:06 AM.

    Comment


      #3
      Hello Alipsa,

      "The big question is whether something needs to be done to communicate with all the suppliers?"

      May I have you clarify 'suppliers'? Are you meaning connected brokerage accounts?

      "Do the vendors receive different instructions from the ninja?"

      No, vendor addons do not receive different instructions from NinjaTrader. All addons get the same data, and use the same internal process to send and receive orders through the account adapter.

      To understand what is going on in your script you will need to add debugging prints so we may review the output.

      Below is a link to a support article on adding prints to understand behavior.


      If this is an addon, NinjaTrader.Code.Output.Process() would be used instead of Print().
      Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.


      Add an event handler method to the Account.OrderUpdate event.
      Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.


      Print the argument e.ToString() and e.Order.ToString() so we can see what orders are being submitted and how these progress.

      Save the output to a text file (right-click the output window, select Save as) and attach the output text file to your next post.


      Note, APEX through Rithmic is experiencing reports of missed position updates.


      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      547 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      323 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      99 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      543 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      545 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X