API Applied Prices constants

From NakedMarkets
Jump to navigation Jump to search

Summary

The Applied Price constants are mainly used in Moving Average functions (ie: GetMA() function) to set the type of the Moving Average Price

Definition

Constant name Description
Applied_Price.PRICE_CLOSE Close
Applied_Price.PRICE_OPEN Open
Applied_Price.PRICE_HIGH High
Applied_Price.PRICE_LOW Low
Applied_Price.PRICE_MEDIAN (High + Low)/2
Applied_Price.PRICE_TYPICAL (High + Low + Close)/3
Applied_Price.PRICE_WEIGHTED (High + Low + Close + Close)/4

Examples

C# code snippet :
double MA_Value = iMA(Symbol(), Period(), PeriodIndicator, 0, MA_Method.MODE_SMA, Applied_Price.PRICE_CLOSE, index);