else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Minute, 1);/// Closes[1]
AddDataSeries(Data.BarsPeriodType.Minute, 5);/// Closes[2]
}
}
I need to add the following into my configure region
{
// Define the TimeAdd method here
DateTime TimeAdd(DateTime dateTime, TimeSpan timeSpan)
{
return dateTime.Add(timeSpan);
}
}
I plan then to add to onBarUpdate area
DateTime time30minAgo = Time[1].TimeAdd(TimeSpan.FromMinutes(-30));
any help appreciated
DTSSTS

Comment