struggeling with accessing a series of a lower timeframe while progressing the higher timeframe.
Hope anyone could help.
So I'm building an indicator with multitimeframe.
E.g. this indicator is basicly running in an 1 minute chart.
And I've added a custom series within the 1min chart.
if (State == State.DataLoaded)
{
myseries = new Series<double>(this, MaximumBarsLookBack.TwoHundredFiftySix);
}
and added a second higher timeframe
if (State == State.Configure)
{
AddDataSeries(this.Bars.Instrument.FullName, barType, <higher>, Data.MarketDataType.Last);
}
Now I'm progressing an this additional higher timeframe in the onBarUpdate event:
if (BarsInProgress == 1)
{
var mydata = myseries[how to get the last corresponding bar of the lower timeframe?];
}
How do I get the last barId to access the data of the series of the corresponding bar with the same date/time?
Hope I could explain what I'm searching for.
Thanks in advance.
Cheers
Comment