Using array of ticks in a strategy

Forums ProRealTime English forum ProOrder support Using array of ticks in a strategy

Viewing 4 posts - 1 through 4 (of 4 total)
  • #176896

    Hi Nicolas,

    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?

    Thanks

    #176898

    (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

    #176907

    Thanks for the reply. jC.

    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?

    #176908

    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.

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login