I have an Abstract MyCustomizedStrategy class which inherits from Strategy class. the idea is that the Code is extensive and I dont want to search through the entire code to look for my signals, besides makes it easier to create strategies within minutes( all I need to do is enter the Entry and Exit Signals). Inside MyCustomizedStrategy Class I have a Secondary Series, An Operating Mode( BackTest vs RealTime). All of My strategies inherit from MyCustomizedStrategy. When I initialize them( the strategies) I have the following:
protected override void Initialize()
{
CalculateOnBarClose = true;
base.Initialize();
//Adds another secondary series of UniRenkoBars
Add(Instrument.FullName,PeriodType.Custom5,0090180 09);
}
The issue That I am having is the Following... To call this BarArray, Does NT first calls the operation modes before this custom Bars? Would my index be BarsArray[2] in this case and the Operation mode BarsArray[1]? this is the way it was when my signals where inside the extensive code...
thank you
Comment