Hello Lupe and thanks for this awesome TA-Lib.
I was experimenting using it and noticed that the Trader::bbands method was returning wrong results when supplied with relatively small numbers. I am using binance data so for example the figures will be of the form "0.00004300".
I have looked into it and it seems that the C implementation is suffering from the same issue.
I noticed that it works correct by commenting out the if statement code in the lines below in the links so only code in lines 493 and 502 will be executed respectively.
|
if (!($tempReal < 0.00000001)) { |
|
if (!($tempReal < 0.00000001)) { |
I have attached a screenshot of the commented code.

I was wondering if you could test that and provide a fix
Thanks again for you time and I am happy to contact me for any further clarification needed
Hello Lupe and thanks for this awesome TA-Lib.
I was experimenting using it and noticed that the Trader::bbands method was returning wrong results when supplied with relatively small numbers. I am using binance data so for example the figures will be of the form "0.00004300".
I have looked into it and it seems that the C implementation is suffering from the same issue.
I noticed that it works correct by commenting out the if statement code in the lines below in the links so only code in lines 493 and 502 will be executed respectively.
phpTraderNative/source/TALib/Core/StatisticFunctions.php
Line 492 in d990281
phpTraderNative/source/TALib/Core/StatisticFunctions.php
Line 501 in d990281
I have attached a screenshot of the commented code.

I was wondering if you could test that and provide a fix
Thanks again for you time and I am happy to contact me for any further clarification needed