200EMA keeps giving value of "11"

 
Hi, I really don't know what went wrong here:

// Get EMA200 value

    double ema200 = iMA(_Symbol, PERIOD_CURRENT, 200, 0, MODE_EMA, PRICE_CLOSE);


It keeps returning value of "11" on all symbols/timeframe/brokers

 
kietsinhnguyen:
Hi, I really don't know what went wrong here:

// Get EMA200 value

    double ema200 = iMA(_Symbol, PERIOD_CURRENT, 200, 0, MODE_EMA, PRICE_CLOSE);


It keeps returning value of "11" on all symbols/timeframe/brokers

Sigh! Place the cursor on iMA and press F1 - study the doc. and the example!

 
Carl Schreiber #:

Sigh! Place the cursor on iMA and press F1 - study the doc. and the example!

omg I'm so stupid I forgot it needs a handle *face palm* I created handles for other indicators but totally forgot this one
 
Carl Schreiber #:

Sigh! Place the cursor on iMA and press F1 - study the doc. and the example!

Perfect reply, this should be the next reply for all similar questions