talib library SAR function calculation results are inconsistent with retested K-line interface

Author: tt8604, Created: 2022-10-08 01:19:27, Updated:

Please ask why the SAR function calculations in the TALIB library, with arguments for ((2,20) or ((0.02,0.2)), cannot match the K-line calculations of the retest system, as shown below.

img

Function parameters as shown above

img

K-line calculated SAR value at 8.04 at 20 hours on 31 January 2021

img

The same K line on the retest system K line graph with a SAR value of 7.84


More

The Little DreamSeveral prerequisites are required for comparing indicators from two different computational sources (e.g. in a graph and computed by a program): 1, the K-line data of the calculation indicator must be perfectly consistent and may be affected by K-line cycles. 2, indicator parameters. 3, indicator algorithm. There are also several factors to compare: 1, whether the indicator values of the contrast are on the same BAR on the same time frame, whether the BAR cycle is the same, whether the contrast varieties, contracts, etc. are consistent. 2, the contrast BAR is whether the state is complete. This kind of question is often raised and you can search for past posts.