Let's say I have the following statement in the indicator's OnBarUpdate() method:
Print("DEBUG0: " + indicator.value)
And I have
Print("DEBUG1: " + indicator.value)
in the strategy's OnBarUpdate() method.
When things work fine, I see the following output:
20060516 DEBUG0: 1.2957, 1.2685, 1.293, 1.2696
20060516 DEBUG1: 1.2957, 1.2685, 1.293, 1.2696
20060517 DEBUG0: 1.2957, 1.2693, 1.293, 1.2697
20060517 DEBUG1: 1.2957, 1.2693, 1.293, 1.2697
...
When things don't work, I see something like the following:
20060516 DEBUG1: 1.2685, 1.2685, 1.2685, 1.2685
20060517 DEBUG1: 1.2693, 1.2693, 1.2693, 1.2693
20060516 DEBUG0: 1.2957, 1.2685, 1.293, 1.2696
20060517 DEBUG0: 1.2957, 1.2693, 1.293, 1.2697
Please note that the indicator doesn't seem to get executed until aftere the strategy runs, which looks odd to me.
Can you please try to reproduce it on your end?
-Henry
Comment