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 > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-15-2011, 04:45 AM   #1
freewind
Senior Member
 
Join Date: Jan 2010
Posts: 276
Thanks: 16
Thanked 4 times in 3 posts
Default Syncronizing between many instruments

Hi All,

I'm working on a strategy that load many instruments(~100) and do some checking to enter a position on bar close in OnBarUpdate().
I want to do the check only once so I have:
Code:
 if (BarsInProgress != 0)
                return;
I know that NT is event driven so my issue is what happens if some of the instruments trades less frequent then the BarInProgress == 0 or vice versa, what data I'm referring to in the call for OnBarUpdate() when I'm using for example Closes[50][0]?

I hope I made my question clear :-)
Tx in advance!
freewind is offline  
Reply With Quote
 

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
Instruments x3000gold Installation and Licensing 4 03-16-2011 05:07 AM
Plot Two Instruments? jjthetrader Charting 2 06-24-2009 03:21 PM
available instruments rymondo Connecting 1 03-16-2009 07:54 AM
PreDefined Instruments mjuviler Charting 1 11-21-2008 01:57 PM
Mapping NinjaTrader's instruments Patsystems' instruments mgbloomfield Connecting 3 05-11-2008 04:28 AM


All times are GMT -6. The time now is 06:29 PM.