API Applied Prices constants: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
=== Examples === | === Examples === | ||
C# code snippet : | C# code snippet : | ||
<code> double value = GetMA(Symbol(), Period(), index, 0, period, MAType, PRICE_WEIGHTED, MA[index + 1]);</code> | <br><code> double value = GetMA(Symbol(), Period(), index, 0, period, MAType, PRICE_WEIGHTED, MA[index + 1]);</code> |
Revision as of 10:46, 5 January 2023
Summary
The Applied Price constants are mainly used in Moving Average functions to set the type of the Moving Average Price
Definition
Constant name | Description |
---|---|
PRICE_CLOSE | Close |
PRICE_OPEN | Open |
PRICE_HIGH | High |
PRICE_LOW | Low |
PRICE_MEDIAN | (High + Low)/2 |
PRICE_TYPICAL | (High + Low + Close)/3 |
PRICE_WEIGHTED | (High + Low + Close + Close)/4 |
Examples
C# code snippet :
double value = GetMA(Symbol(), Period(), index, 0, period, MAType, PRICE_WEIGHTED, MA[index + 1]);