Thanks <span class=”bbp-author-name”>robertogozzi</span>
What I mean by 2nd question is that, sometimes an indicator may not have values.
For example, ExponentialAverage[100](close) don’t have values for the initial bars, not sure if it’s exactly 100 bars or some other value. If you move your mouse cursor to the bars in the beginning, in the values displayed(open, close etc) it doesn’t have a value. Not sure if this is something I’m doing wrong.
And the weird thing is, when I try make a simple indicator that checks if some indicator has value, such as ema100 > 0, it correctly detects that at first the indicator doesn’t have value for certain number of bars. But when I try to use the exact checking logic to do backtest, it would generate orders at bars where clearly there’s no indicator value.