Once I have good enough Indicator B, I will cut-paste-move it to strategy.
Amongst the very unusual thing that Indicator A does is that it defers calculation until the very last candle. This has been confirmed by its developer and I don't know why he is doing it that way.
protected override void OnBarUpdate()
{
int currentBar = CurrentBar;
...
if (currentBar >= Bars.Count - 1) && (currentBar > minimumBarsNeeded))
{
... // Bulk of processing.
}
}
Ninja sometimes calls OnBarUpdate of Indicator B before Indicator A and this results in a disaster.
Therefore, I want to add something in code of Indicator B so that its execution will always be synchorized with execution of Indicator A.
Indicator B must never run before Indicator A is done updating all of its values.
How do I do that?

Comment