Mathematical
Calculates an absolute/positive number.
- Abs(input)
Returns an absolute/positive number.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Calculates the angle whose cosine is the specified number.
- Acos(input)
Returns the angle whose cosine is the specified number.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Adds numbers/tables and returns the result number/table.
- Add(input1, [ input2 ])
Returns the total sum of a single value is provide, adds the 2 values if there are 2 provided.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | Input, Number |
input2 | NumberOrTable | False | Input, Number |
Add a percentage to the value.
- AddPerc(value, percentage)
Returns the value with the added percentage.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
value | NumberOrTable | True | - |
percentage | Number | True | Input, Number, SessionGet |
Add a percentage to the value.
- AddPercentage(value, percentage)
Returns the value with the added percentage.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
value | NumberOrTable | True | - |
percentage | Number | True | Input, Number, SessionGet |
Calculates the angle whose sine is the specified number.
- Asin(input)
Returns the angle whose sine is the specified number.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Calculates the angle whose tangent is the specified number.
- Atan(input)
Returns the angle whose tangent is the specified number.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Calculates the angle whose tangent is the quotient of two specified numbers.
- Atan2(input1, input2)
Returns the angle whose tangent is the quotient of two specified numbers.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | - |
input2 | NumberOrTable | True | - |
Calculates the average value of the array, two numbers or averages between 2 arrays.
- Average(input1, [ input2 ])
Returns the average value of the array, two numbers or averages between 2 arrays.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | - |
input2 | NumberOrTable | False | - |
Calculates the average value of the array for a certain period.
- Average2(input, [ period ])
Returns the average value of the array for a certain period.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | ListNumbers | True | - |
period | Number | False | - |
Calculates the smallest integral value greater than or equal to the specified number.
- Ceil(input)
Returns the smallest integral value greater than or equal to the specified number.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Calculates the absolute price changes between the values.
- Change(prices)
Returns the new-old change of the values in an array.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
prices | ListNumbers | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
Calculates the number or table of numbers clamped between the specified minimum and maximum.
- Clamp(input, min, max)
Returns number or table of numbers clamped between the specified minimum and maximum.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
min | Number | True | - |
max | Number | True | - |
Calculates the average values of every 2 values in an array. When the input is [10, 20, 30, 40] the result will be [15, 35].
- Compress(input)
Returns the compressed array.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
input | ListNumbers | True | - |
Calculates the cosine of the specified angle.
- Cos(input)
Returns the cosine of the specified angle.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Calculates the hyperbolic cosine of the specified angle.
- Cosh(input)
Returns the hyperbolic cosine of the specified angle.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Calculates the percentage between input1 and input2 or the percentage change between the values of input1.
- Delta(input1, [ input2 ])
Returns the percentage between input1 and input2. When for example input1 is 5 and input2 is 6, 20 is returned.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | - |
input2 | NumberOrTable | False | - |
Divides input1 with input2. If one of the parameters is a single value, the other is divided by this.
- Div(input1, input2)
Returns the divided numbers/tables.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | Input, Number |
input2 | NumberOrTable | True | Input, Number |
Enumeration, returns 1 Satoshi (=Epsilon).
- Epsilon
Returns 1 Satoshi (=Epsilon).
Return Type: Number
Calculates 'e' raised to the specified power.
- Exp(input)
Returns 'e' raised to the specified power.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Filters out all values above a specific value.
- FilterAbove(input, threshold)
Returns the filtered input.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
threshold | Number | True | - |
Filters out all values below a specific value.
- FilterBelow(input, threshold)
Returns the filtered input.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
threshold | Number | True | - |
Calculates the largest integral value less than or equal to the specified number.
- Floor(input)
Returns the largest integral value less than or equal to the specified number.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Gets the highest value.
- GetHigh(prices, depth, [ offset ])
Returns the highest value.
Return Type: Number
Parameter Name | Parameter Type | Required | Suggested |
prices | ListNumbers | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
depth | Number | True | Input, Number, SessionGet |
offset | Number | False | Input, Number, SessionGet |
Gets the highest values within lookback period.
- GetHighs(array, depth)
Returns the highest values within lookback period.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
array | ListNumbers | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
depth | Number | True | Input, Number, SessionGet |
Gets the lowest value.
- GetLow(prices, depth, [ offset ])
Returns the lowest value.
Return Type: Number
Parameter Name | Parameter Type | Required | Suggested |
prices | ListNumbers | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
depth | Number | True | Input, Number, SessionGet |
offset | Number | False | Input, Number, SessionGet |
Gets the lowest values within lookback period.
- GetLows(array, depth)
Returns the lowest values within lookback period.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
array | ListNumbers | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
depth | Number | True | Input, Number, SessionGet |
Calculates the logarithm of a specified number.
- Ln(input1, [ input2 ])
Returns the logarithm of a specified number.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | - |
input2 | NumberOrTable | False | - |
Calculates the base 10 logarithm of a specified number.
- Log10(input)
Returns the base 10 logarithm of a specified number.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
Returns the maximum value. If the input is a single array, it returns the biggest number in that array (single value). If inputs are both numbers, it returns the biggest number (single value). If inputs are array and number, it returns the biggest number (array[1] vs number, single value). If inputs are both arrays, it returns an array of the biggest numbers per cell (array, length determined by the shorter array).
- Max(values[])
Returns the biggest number or an array of biggest numbers per cell.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
values[] | NumberOrTableParams | True | - |
Returns the minimum value. If the input is a single array, it returns the minimum in that array (single value). If inputs are both numbers, it returns the smallest number (single value). If inputs are array and number, it returns the smallest number (single value). If inputs are both arrays, it returns an array of the smallest numbers per cell (array, length determined by shortest array)
- Min(values[])
Returns the smallest number or an array of smallest numbers per cell.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
values[] | NumberOrTableParams | True | - |
Multiplies input1 with input2. If one of the parameters is a single value, the other is multiplied by this.
- Mul(input1, input2)
Returns the multiplied numbers/tables.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | Input, Number |
input2 | NumberOrTable | True | Input, Number |
Multiplies input1 with input2. If one of the parameters is a single value, the other is multiplied by this.
- Mult(input1, input2)
Returns the multiplied numbers/tables.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | Input, Number |
input2 | NumberOrTable | True | Input, Number |
Enumeration, returns the maximum number.
- NumberMax
Returns a maximum value (2147483647).
Return Type: Number
Enumeration, returns the minimum number.
- NumberMin
Returns a minimum value (-2147483648).
Return Type: Number
Calculates the percentage between input1 and input2 or the percentage change between the values of input1.
- PercentageChange(input1, [ input2 ])
Returns the percentage between input1 and input2. When for example input1 is 5 and input2 is 6, 20 is returned.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | - |
input2 | NumberOrTable | False | - |
Enumeration, returns the number of PI.
- PI
Returns PI (3.14159265359).
Return Type: Number
Calculates a specified number/table raised to the specified power number/table.
- Pow(input1, input2)
Returns a specified number/table raised to the specified power number/table.
Return Type: NumberOrTable
Parameter Name | Parameter Type | Required | Suggested |
input1 | NumberOrTable | True | Input, Number |
input2 | NumberOrTable | True | Input, Number |
Creates a random number.
- Random([ min ], [ max ])
Returns a random number.
Return Type: Number
Parameter Name | Parameter Type | Required | Suggested |
min | Number | False | Input, Number |
max | Number | False | Input, Number |
Replaces any value above a specific value with another value.
- ReplaceAbove(input, threshold, newValue)
Returns the input with replaced values.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |
threshold | Number | True | - |
newValue | Number | True | - |
Replaces any value below a specific value with another value.
- ReplaceBelow(input, threshold, newValue)
Returns the input with replaced values.
Return Type: ListNumbers
Parameter Name | Parameter Type | Required | Suggested |
input | NumberOrTable | True | - |