Download MetaTrader 5

Create

Creates the indicator with specified parameters. Use Refresh() and GetData() to update and get the indicator values.

bool  Create(
   string           symbol,          // symbol
   ENUM_TIMEFRAMES  period,          // period
   int              calc_period      // calculation period
   )

Parameters

symbol

[in]  Symbol.

period

[in]  Timeframe (ENUM_TIMEFRAMES enumeration value).

calc_period

[in]  Period for calculation.

Return Value

true - successful, false - cannot create the indicator.


Updated: 2016.05.23