Library "math_utils" Collection of math functions that are not part of the standard math library num_of_non_decimal_digits(number) num_of_non_decimal_digits - The number of the most significant digits on the left of the dot Parameters: number : - The floating point number Returns: number of non digits num_of_decimal_digits(number) ...
Custom f_nDecimals() function returns precision of decimal numbers of the following forms: const, input, simple, and series of the following types: float, integer, and string. Error checking is performed for valid numbers and invalid values return NaN. NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any...
This is a script where I tried to check the following things: Even thought the tick of an asset is, for example 0.5, there are calculated prices, like SMA's that have even more decimals. Leading to crosses happening that for example happen at the same price. Consequently triggering totally useless in side markets. What happens if SMA values are restricted to...