![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
|
I have two strategies running on TF. One on a TF 15min and one on a TF 60min. I set both to "Sync account position" true. I was flat, and these are both using the "Sim101" account. When I enabled them, the one that was currently flat showed an order entry "Synchronize 1@792". The one that was currently long showed nothing. Why are they confused? Is there some way to trace why it decided to put the wrong one as long?
There is an ID and an Order ID in the "Executions" but I don't know how to relate these back to the respective strategies. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
|
I tried shutting down and restarting from scratch. I then found that enabling the 60 min strategy that had a long position correctly bought one contract. When I enabled the 15min strategy that was supposed to be flat it sold the 1 long position purchased by the other strategy!
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
|
So what I'm seeing is that the last strategy to be enabled, clears all positions and syncs the account with the newly enabled strategy. This means it is clearing other strategies positions!
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Thanks for your patience. This is exactly the case. This is the reason why each strategy has its own internal position. If you sync this to the account position this will then cause the strategy position to == the Account Position. You never want to use Sync account position when your running multple strategies on the same account and same instrument. You would always want to check account sync manually in this case.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
|
Can I setup another Sim account like Sim102? Then I can use different accounts and have it sync automatically?
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Yes you can do this. Control Center->Tools->Options->Simulator->Accounts to create a new account. You need a live license to use this feature. This will not work on the free version of NInjaTrader. (Since it requires changing accounts which isnt allowed in the free version). I look forward to assisting you further.
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Synchronization | skyholder84 | Automated Trading | 13 | 01-17-2011 03:53 AM |
| RC1 and inconsistent synchronization | Stopped | Version 7 Beta General Questions & Bug Reports | 9 | 11-11-2010 09:52 AM |
| Problem with synchronization... | ecorderob | Indicator Development | 1 | 05-02-2010 12:00 PM |
| Order Synchronization with NinjaScript | billr | Version 7 Beta General Questions & Bug Reports | 5 | 04-28-2010 12:06 PM |
| Trade Synchronization | glam_100 | Automated Trading | 2 | 06-15-2006 01:37 AM |