In NT6.5 a multi-timeframe strategy required each of the timeframes to be set as a dataseries and synced to the primary dataseries before applying any strategy criteria (as roughly detailed below). Are the same syncing requirements present in NT7? Alternatively, does the NT7 CurrentBar internal points being updated earlier do away with all the syncing requirements, and thus pretty much all of the code below.
A worked example may be a simple way to clearly explain.
As always, thanks
Shannon
BTW, top job on NT7 from what I've seen thus far.
#region Variables private DataSeries primarySeries; private DataSeries secondarySeries; #endregion protected override void Initialize() { primarySeries = new DataSeries(this); Add("^SP500",PeriodType.Minute,5); } protected override void OnBarUpdate() { // Sync another DataSeries object to the secondary bar object if (secondarySeries == null) { secondarySeries = new DataSeries(SMA(BarsArray[1],10)); } if (BarsInProgress == 0) .... [I]Strategy Criteria[/I]
Comment