I just notice that when I use an Indicator declared inside a strategy, every time I try to make a simulation with Strategy Analyzer, I see this behavior:
1. first all the calls to OnBarUpdate() for Strategy class for the period considered
2. then calls to the OnBarUpdate() for the indicator.
But for my has no sense as Strategy would make decisions based on Indicator status, I mean, both OnBarUpdate() calls should be called for both within the same bar (actually I'd prefer to call to all indicator before call Strategy to have fresh data.
What I missing?
I 'd tried to instantiate indicator on Configure, DataLoaded, Historical, with the same results.
Thanks in advance
--
Asterio
Comment