Thanks for your reply.
Regarding, "I noticed in Paul's MACrossover indicator you use many switch statements. Is my indicator of a similar type?" I have no basis with which to answer that. The MACrossover uses switch statements based on user selection of 1 of several possible moving averages to use (for fast and for slow).
When you have multiple bars objects, each bars object will call OnBarUpdate() and when it does, depending on your coding, your references can shift to that bars array. For example:
double test = High[0] - Low[0];
When OBU is called by the 100 tick series that would be the High[0] and Low[0] of that series. When the 200 or 300 tick call OBU then the High and Low will be of those series so this shows that without segregation (by barsInProgress) or without specification of which High and Low, the value of test will change based on who calls OBU.
Another example is
double test = Highs[1][0] - Lows[1][0]; In this example on each OBU, test will be and can only be the value of the current bar of the 200 tick High - low.
Again the above examples assume there is no BarsInProgress check.
Comment