Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

copy trades on ninja

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

    copy trades on ninja

    Hi guys, I was wondering if it is possible to make a code that allows me to replicate my traders within td ameritrade using NinjaTrader for stocks, I have a swing strategy that I open manually in one account, but since I have 3 accounts it is somewhat complicated and time spent on open each of the accounts and are opening the same operations, is this possible and feasible?

    Thanks a lot!

    #2
    Originally posted by TRADEONECLIC View Post
    Hi guys, I was wondering if it is possible to make a code that allows me to replicate my traders within td ameritrade using NinjaTrader for stocks, I have a swing strategy that I open manually in one account, but since I have 3 accounts it is somewhat complicated and time spent on open each of the accounts and are opening the same operations, is this possible and feasible?

    Thanks a lot!
    Hi,
    Look at here:
    Account Groups for NT8 - NinjaTrader Support Forum

    Comment


      #3
      Hello TRADEONECLIC,

      Thank you for your post.

      I understand that you would like to submit an order to one TD Ameritrade account and have the same order submitted on a second TD Ameritrade account.

      TD Ameritrade does support multiple connections to be used simultaneously in NinjaTrader. Something you could do is use AddOn framework methods to copy trades that are placed on one account and have those trades submitted to a second account.

      Account-level OrderUpdate events could be used to pick up orders from one account and submit orders to another account. To accomplish this, you would need to create a script that subscribes to account-level OrderUpdate events to monitor orders sent to the first account. Then, in OnOrderUpdate you could check if an order is filled and if the order is long or short. If the order IsLong, then you can use CreateOrder() to create a buy order and use Submit() to submit the order to the second account. If the order IsShort, you could use CreateOrder() to create a sell order and use Submit() to submit the order to the second account.

      Please see the attached example script that demonstrates how this is accomplished.

      Also, please see the following help guides linked below for more information.
      OrderUpdate — https://ninjatrader.com/support/help...rderupdate.htm
      Submit() — https://ninjatrader.com/support/help...t8/?submit.htm

      Let us know if we may further assist.
      Attached Files
      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,789 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      837 views
      0 likes
      Last Post emuns
      by emuns
       
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,293 views
      1 like
      Last Post jgualdronc  
      Started by Touch-Ups, Today, 10:36 AM
      0 responses
      13 views
      0 likes
      Last Post Touch-Ups  
      Started by geddyisodin, 04-25-2024, 05:20 AM
      11 responses
      63 views
      0 likes
      Last Post halgo_boulder  
      Working...
      X