Trading Tools
The TradingTools
class is a useful tool class that allows you to manage trading data
Author
N7ghtm4r3 - Tecknobit
Functions
Link copied to clipboard
Method to get percent between two values
Method to get percent between two values and round it
Link copied to clipboard
Method to get proportion between two values
Method to get proportion between two values and round it
Link copied to clipboard
open fun computeTPTOPIndex(historicalValues: Array<Double>, lastValue: Double, intervalDays: Int, offsetRange: Double): Double
open fun computeTPTOPIndex(historicalValues: ArrayList<Double>, lastValue: Double, intervalDays: Int, offsetRange: Double): Double
Method to get forecast of an asset in base of days gap inserted
open fun computeTPTOPIndex(historicalValues: Array<Double>, lastValue: Double, intervalDays: Int, offsetRange: Double, decimalDigits: Int): Double
open fun computeTPTOPIndex(historicalValues: ArrayList<Double>, lastValue: Double, intervalDays: Int, offsetRange: Double, decimalDigits: Int): Double
Method to get forecast of an asset in base of days gap inserted and round it
Link copied to clipboard
open fun getPercentualizedValue(startValue: Double, percentualizer: Double, decimalDigits: Int): Double
Method to percentualize a value
Link copied to clipboard
Method to round a value
Link copied to clipboard
Method get percent between two values and textualize it
Method to get percent between two values and textualize it