The primary is a 266 Tick chart. I try to add a secondary bar object using AddKagi() or AddLineBreak(), and got the index out of range error.
Can a different type of chart be added this way?
Basically I want the Tick chart get the Kagi's or P&F's bar data information. Any suggestions? Thanks.
protectedoverridevoid Initialize()
{
// AddKagi("ES 12-11", PeriodType.Tick,266,2,ReversalType.Tick,MarketData Type.Last);
}
protectedoverridevoid OnBarUpdate()
{
if (CurrentBar <50)return;
// if (BarsInProgress == 1)
// {
//
// if(Open[0]>Close[0]) myColor = Color.Red;
// if(Open[0]<Close[0]) myColor = Color.Green;
//
// }
Comment