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 chbruno, Today, 04:10 PM
      0 responses
      3 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by josh18955, 03-25-2023, 11:16 AM
      6 responses
      436 views
      0 likes
      Last Post Delerium  
      Started by FAQtrader, Today, 03:35 PM
      0 responses
      6 views
      0 likes
      Last Post FAQtrader  
      Started by rocketman7, Today, 09:41 AM
      5 responses
      19 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by frslvr, 04-11-2024, 07:26 AM
      9 responses
      127 views
      1 like
      Last Post caryc123  
      Working...
      X