Announcement

Collapse
No announcement yet.

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 JakeOfSpades, Today, 08:55 AM
      0 responses
      1 view
      0 likes
      Last Post JakeOfSpades  
      Started by IndieTrader, Today, 05:29 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by ballboy11, Today, 08:09 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by kempotrader, 05-03-2019, 10:52 AM
      8 responses
      89 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by waldoalvarez, Today, 07:53 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Working...
      X