MATH Functions - MATH
Description:
This plugin is only used in CUS
type formulas. This plugin is used to either add, divide, multiply or
subtract data arrays or value constants. You can select up to 5
seperate data arrays or constants. The math follows a linear logic in
the way the arrays are used. The plugin goes from data1 to data2 to
data3 all the way to data5. So the order of how you set the various
data arrays is critical for the result desired.
For example: We decide to add some data. We set data1 to use step 1. We
set data2 to use step 2. We set data3 to a constant value of 1.5. This
means the plugin would take the data1 array and then add the data2
array to it. Finally the value constant of data3 is added to the sum of
data1 and data2. This works the same for all the math functions of
Add/Subtract/Divide/Multiply. In written math it would like this
((data1 + data2) + data3).
Using the above example and multiplying instead. The logic would take
data1 and multiply it by data2. Then data3 would be multiplied with the
result of data1 x data2. In written math it would like this ((data1 *
data2) * data3).
Parameters:
- Color - plot color
- Line Type - The type of plot to draw
- Label - The text that identifies the plot
- Data1 - The step # in a CUS formula.
- Method - The math function to apply.
- ADD - addition
- DIV -
division
- MUL - multiplication
- SUB - subtraction
- MIN - The minimum value found of the previous x bars.
- MAX - The maximum value found of the previous x bars.
- Data2
- The step # or constant value in
a CUS formula
- Data3 - The step # or constant value in
a CUS formula
- Data4 - The step # or constant value in
a CUS formula
- Data5 - The step # or constant value in
a CUS formula
- Period - The period used for MIN and MAX functions only.
