View Full Version : Do I need to sync a BoolSeries variable?
poseidon_sthlm
03-11-2010, 04:17 AM
Hi!
I use BoolSeries variables on a seccondary timeframe (BarsInProgress = 2) in my multiple timeframe/multiple instrument strategy. Do I have to sync BoolSeries variables the same way one has to sync DataSeries variables? If so, how can I do the sync?
/Regards
NinjaTrader_Bertrand
03-11-2010, 08:08 AM
poseidon_sthlm, you would not need the sync process since you're accessing the boolseries in the same script.
poseidon_sthlm
03-11-2010, 08:22 AM
Thanks for the prompt reply. I actually use the same BoolSeries variable in the primary time frame as well as in the seccondary time frame. Sorry if my previous post was unclear on this point. I'v already done a sync in the Initalize method.
myBoolSeries = new BoolSeries(this);
1 a) Do I have to sync the BoolSeries varaible in the seccondary time fram too?
1 b) If so, how do I sync a BoolSeries varaible in the seccondary time?
2) Is it correctly understod that sync is needed when you want to use the same DataSeries variables in different timeframes?
3) If not, when do you need to sync a DataSeries?
4) And if I only use the DataSeries variable in the same seccondary timeframe, should I keep from the sync in the Initialize method?
/Regards
NinjaTrader_Bertrand
03-11-2010, 08:50 AM
Thanks for clarifying, correct this syncs this series to the primary bars in your strategy.
You can sync the second series to the secondary, added series via this reference sample instructions -
http://www.ninjatrader-support2.com/vb/showthread.php?t=3572
Basically you can use any indicator offering an IDataSeries input field so you can sync to the added BarsArray[x] in the OnBarUpdate().