I get confused.
Since I put on Initialize()
Add(PeriodType.Range, 16);//This is 16 ticks Range Bars chart as secondary Time frame on Primery Chart (8 ticks)
BarsInProgress==1 (Is this the secondary Time frame bar on Primery Chart (8 ticks)?)
So everything that I want from CurrentBar of secondary time frame bar must start on primery at this bar (BarsInProgress==1) Does Ninja Trade knows where it is on Primery Chart?
Is BarsInProgress==0 the 1st bar on primery chart?
I don't know to express the DrawLine StartBar. I tried to do
barsAgoOpen = MRO(delegate{return Close [0] ==Opens[1][0];},1,CurrentBar);
Doesn't work. I tried 0 (zero) and BarsInProgress==1 doesn't work as well
if (BarsInProgress == 1)
DrawLine("OpenRange16", false, 0, Opens[1][0], 0,
Opens[1][0], Color.Cyan, DashStyle.Dash, 1);
}
Can you please help me on this, I already read
http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?MultiTimeFrameInstruments
Thanks
Comment