Create

It creates the indicator with the specified parameters.

CIndicator*  Create(
   const string           symbol,     // Symbol name
   const ENUM_TIMEFRAMES  period,     // Period
   const ENUM_INDICATOR   type,       // Indicator's type
   const int              count,      // Number of parameters
   const MqlParam&        params      // Parameters array reference
   )

Parameters

symbol

[in]  Symbol name.

period

[in]  Period (ENUM_TIMEFRAMES enumeration).

type

[in]  Indicator's type (ENUM_INDICATOR).

count

[in]  Number of parameters for the indicator.

params

[in]  Reference to the parameters array for the indicator.

Returned value

If successful, it returns the reference to the created indicator, and NULL if the indicator hasn't been created.