Thanks a lot!
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!
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
NinjaTrader
copy trades on ninja
Collapse
X
-
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!Tags: None
-
Originally posted by TRADEONECLIC View PostHi 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!
Look at here:
Account Groups for NT8 - NinjaTrader Support Forum
-
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 FilesBrandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johnMoss, 03-04-2024, 01:53 PM
|
3 responses
46 views
0 likes
|
Last Post
by AndyM
Today, 06:13 PM
|
||
Started by algospoke, Today, 06:01 PM
|
0 responses
8 views
0 likes
|
Last Post
by algospoke
Today, 06:01 PM
|
||
Started by cre8able, Today, 05:53 PM
|
0 responses
8 views
0 likes
|
Last Post
by cre8able
Today, 05:53 PM
|
||
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
24 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
32 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
Comment