NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

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.

Reply
 
Thread Tools Display Modes
Old 03-18-2011, 01:06 PM   #1
tradetree
Senior Member
 
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
Default Strategy synchronization

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.
tradetree is offline  
Reply With Quote
Old 03-18-2011, 01:46 PM   #2
tradetree
Senior Member
 
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
Default

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!
tradetree is offline  
Reply With Quote
Old 03-18-2011, 01:50 PM   #3
tradetree
Senior Member
 
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
Default

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!
tradetree is offline  
Reply With Quote
Old 03-18-2011, 02:01 PM   #4
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

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.
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-18-2011, 02:19 PM   #5
tradetree
Senior Member
 
Join Date: Dec 2009
Location: New England
Posts: 320
Thanks: 3
Thanked 2 times in 2 posts
Default

Can I setup another Sim account like Sim102? Then I can use different accounts and have it sync automatically?
tradetree is offline  
Reply With Quote
Old 03-18-2011, 02:25 PM   #6
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

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.
NinjaTrader_Brett is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 03:19 PM.