Forums ProRealTime English forum ProOrder support Inconsistency (bug?) between ProBuilder and Proorder. Please advise. Reply To: Inconsistency (bug?) between ProBuilder and Proorder. Please advise.

#125843

To further support the theory of an issue with BarIndex inconsistency between ProBuilder and ProOrder, I have done some more checks.

Using the formula for TR instead of the function in PRT as well as code provided by you Nicholas on Wilder smoothening code published in this forum, I can get identical results for most part between ProOrder and ProBuilder. This means there must be some inconsistency in the original function of the program. The only thing one has to take in account is to adapt the code with one bar less or more to represent the period one is looking at.

However, although hundreds of bars (including the first ones) are identical, I still find errors between some bars – see the marked boxed zone. In this case it is the Dow on the 1 minute chart. Error is on the second decimal, so it’s not the critical, but it is highly peculiar. Math is math. So it shouldn’t. It’s shouldn’t be a rounding error as it should happen on both the ProBuilder and ProOrder.

 

The code for ProBuilder:

 

The code I used for ProOrder based on:

For now I feel hesitant in launching real-money ATS as I can not verify what is going on with the code.

My queries are thus:

  • Does ProOrder DEFPARAM PRELOADBARS = 0 mean no prior data before Bar=1 get loaded? Is there a hidden bar=0? How otherwise does the data pull occur from the previous close?
  • Does ProBuilder reject using the Bar=0 even though it contains data?
  • Why is BarIndex for ProOrder and ProBuilder not synced, one starts with Bar=1 (ProOrder) and one iwth Bar=0 (ProBuilder)
  • Does this kind of inconsistency occur on “just” indicators / functions looking back at previous bars? Such as commands including [x] bar? These are quite a lot of functions (!)
  • Are ProRealTime aware of these issues? I believe it can’t just be me noticing this?

Many thanks for your assistance.