In Initialize(), I have
Add(MyIndicator());
I have placed the following print statement in OnBarUpdate() in the indicator …
If (this.CurrentBar == 100) Print (Current Bar + “|” + MyIndicator.Default[0]);
This implies that Strategy Analyzer runs the indicator twice over bar 100.
Is that correct?
The issue I particularly want to address is that the printed value of MyIndicator[0] (a double) is not the same in these two passes.
Why could that be?
Comment