protected override void Initialize()
{
#region contract 1
Add(PeriodType.Day, 1);//Add Day Bars with index location 1
Add(PeriodType.Minute, 1);//Add 1 min Bars with index location 2
this.indPivAverage = PivotAverage(false, iPivotAverage);
this.indPivAverage.Plots[0].Pen.Width = 2;
Add(this.indPivAverage);
MaximumBarsLookBack = MaximumBarsLookBack.Infinite;
CalculateOnBarClose = true;
BarsRequired = 3;
ClearOutputWindow();
#endregion
#region contract 2
if(start2)
{
Add("FGBM 06-13",PeriodType.Day, 1); // Day Bars for contarct 2, SYMBOL AND EXPIRY CAN BE CHANGED HERE
Add("FGBM 06-13",PeriodType.Minute, 1); // Min Bars for contarct 2, SYMBOL AND EXPIRY CAN BE CHANGED HERE
this.indPivAverage2 = PivotAverage(false, iPivotAverage2);
}
#endregion
In regards to the index locations am i correct in thinking that the sceond contact would have index location 4 for day bars and 5 for min bars?
My main question is how can I code for a sub-chart to be added with the min bars of contact 2 ,"FGBM 6-13", and how do I force indicators to plot in that chart?

Comment