Array works for indicator and I am able to capture the number of intrabar ticks. However, when I try to implement this as a strategy and run the backtest, the count cannot be captured in the array. It also looks like close is only update after a bar is completed. Is there any solution to implement a strategy with arrays storing the tick information?
(Topic moved from probuilder forum to proorder forum)
Strategy is run on server, and read once per bar at end of bar, so close update you describe is normal, intermediate values during bars is not read so can’t be stored for a strategy
I have already built the indicator and was able to capture the expected value. Can I just call the indicator in my strategy so that it can pick up the values at the close of each bar?
When you call it, it won’t have been used on intrabar intermediate values like in probuilder run on pc, only at bar close within the strategy run on server, so same code behaves differently because dataset is different to start with.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.