If I use a very simple test script
///////////////////////////////////////////////////////////
protected override void Initialize() {
CalculateOnBarClose = false;
Add(PeriodType.Range, 10);
}
protected override void OnBarUpdate(){}
public override void Plot(Graphics graphics, Rectangle bounds, double min, double max){
Print("total bar count= "+Bars.Count);
}
////////////////////////////////////////////////////////////////
Total bar count displayed will be from 10range data, not the 5range chart.
Is this the way it's supposed to be? How do I get it to give me total bar count of chart drawn?
If I put this print statement in the OnBarUpdate instead, it will print out two
total bar count values for both 5R and 10R. Not sure if this is correct either.
-Alex

Comment