Login Page - Create Account

Support Board


Date/Time: Tue, 30 Apr 2024 18:15:35 +0000



Post From: Number bars calculate values 2 confusion

[2023-05-21 00:18:05]
j4ytr4der_ - Posts: 918
I just came upon this thread as I was trying to make sense of the "difference per tick" calculation, that keeps coming out wrong by my math. I believe this thread has explained why.

The documentation states:

Ask Volume Bid Volume Difference Per Tick: This displays the difference between the total Ask Volume and the total Bid Volume divided by the range of the data in the bar per tick.

For example, if the Total Ask Volume is 1000 and the Total Bid Volume is 1500 and the data spans prices from 2600.50 to 2602.00 with a Tick Size of 0.25, then the displayed value would be -83.33 ((1000 - 1500) / ((2602.00 - 2600.5) / 0.25).

But from this thread, it appears that the result is actually divided by the number of ticks in the bar *minus 1*, rather than the number of ticks in the bar, as indicated in the documentation. Adding the minus 1 to my calculation has produced the same result the software is producing. As with the OP here I can't imagine why anyone wanted it to be minus 1, but that's their prerogative obviously. I do think the documentation could use updating to reflect this however.

Also a small mathematical expression error:

((1000 - 1500) / ((2602.00 - 2600.5) / 0.25)

should be

((1000 - 1500) / ((2602.00 - 2600.5) / 0.25))

Note the extra parenthesis at the end, since you were essentially mentioning a math expression as a parenthetical. A small thing sure, but in a formula those parenthesis are critical to get correct.