dbo.fn_TickDiff

Syntax:
dbo.fn_TickDiff(price1, price2)

Output:
(decimal) Returns the difference in ticks between price1 and price2. When price2 is greater than price1 the result is positive, otherwise is negative.

Input parameters:
price1 (decimal)First price of the range.
price2 (decimal)Second price of the range.

Example:

dbo.fn_TickDiff(7.4, 9)
returns 8.00

Example:
dbo.fn_TickDiff(10, 9.8)
returns -1.00