Formulas are mainly composed by variables, constants, operators and functions. See Variables for a full list of available ranking and matching variables.
Elephant Indicator API also adds some functions to facilitate the formula edition.
Since variables return absolute values, being or not related to a second entity, the result treatment gets complicated. To palliate this, the weighted functions provide a more easy input.
weighted(value, meaning, weight)
Returns a weighted value based on:
reverseWeighted(value, meaning, weight)
Returns a weighted complementary value based on the same parameters that weighted
.
You can also use math functions to create your own calculations. Math functions are prefixed with Math
, for example Math.floor(2.3)
will return the parameter floor.
English | 11/08/20 09:04 | Lluís Turró Cutiller |