I'm using VisualSMA successfully, representing an 8 range SMA on a 6 range chart...
However, I want to use the same settings in a strategy to tell me if price is close to the SMA.
I'm using the following code:
To comment on your findings, I would need to test the strategy.
There are limitations that apply to range bars, because a range bar is only closed after the first tick of the next bar has been detected. We have discussed the issue here:
I have made some tests with various multi-timeframe indicators, how they behave when they are called from other indicators or strategies. Let us consider three different cases:
(1) You have a multi-timeframe indicator which loads minute bars.
(2) You …
Please download the access indicator and check whether it behaves in a similar way as your strategy.