API MA Method constants: Difference between revisions
Jump to navigation
Jump to search
Created page with "=== Summary === The MA Method constants are used in Moving Average functions to set the type of the Moving Averag <br> === Definition === {| class=wikitable cellpadding="10"..." |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=== Summary === | === Summary === | ||
The MA Method constants are used in Moving Average functions to set the type of the Moving | The MA Method constants are used in Moving Average functions to set the type of the Moving Average | ||
<br> | <br> | ||
=== Definition === | === Definition === | ||
{| class=wikitable cellpadding="10" style="border-style: solid; border-width: 2px" | {| class=wikitable cellpadding="10" style="border-style: solid; border-width: 2px" | ||
Line 18: | Line 19: | ||
=== Examples === | === Examples === | ||
C# code snippet : | C# code snippet : | ||
<br><code> double | <br><code> double MA_Value = iMA(Symbol(), Period(), PeriodIndicator, 0, MA_Method.MODE_SMA, Applied_Price.PRICE_CLOSE, index); |
Latest revision as of 10:59, 5 January 2023
Summary
The MA Method constants are used in Moving Average functions to set the type of the Moving Average
Definition
Constant name | Description |
---|---|
MA_Method.MODE_SMA | Simple Moving Average (SMA) |
MA_Method.MODE_EMA | Exponential Moving Average (EMA) |
MA_Method.MODE_SMMA | Smoothed Moving Average (SMMA) |
MA_Method.MODE_LWMA | Weighted Moving Average (LWMA) |
Examples
C# code snippet :
double MA_Value = iMA(Symbol(), Period(), PeriodIndicator, 0, MA_Method.MODE_SMA, Applied_Price.PRICE_CLOSE, index);