Add decimal overloads to cTrader API

Created at 27 May 2022, 12:48
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BI

BigManDave

Joined 02.12.2021

Add decimal overloads to cTrader API
27 May 2022, 12:48


All the methods in cAlgo use double, none of them use decimal.

Sometimes I may need to do operations in which I do not want to lose precision. Sometimes there may be some workarounds I can do with rounding, arithmetic and modulo, but seeing as cTrader is a financial application, it would be good in general for there to be methods that use decimal, and likewise for decimal to be used behind the scenes for these methods.

 


cTrader Automate
@BigManDave