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 pvincent, 06-23-2022, 12:53 PM
      14 responses
      238 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      382 views
      1 like
      Last Post Gavini
      by Gavini
       
      Started by oviejo, Today, 12:28 AM
      0 responses
      1 view
      0 likes
      Last Post oviejo
      by oviejo
       
      Started by pechtri, 06-22-2023, 02:31 AM
      10 responses
      125 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Working...
      X