MQL how to do 5EMA shift + 3

 

How do I code 5EMA shift + 3

I tried the following

double emaCHECK = iMA(Symbol(),0, 5, 0, MODE_EMA, PRICE_CLOSE, 3);

 

but the results seems not like what shown on my chart when I do shift +3 on a 5EMA

 
baokydev:

How do I code 5EMA shift + 3

I tried the following

but the results seems not like what shown on my chart when I do shift +3 on a 5EMA

See iMA()

double emaCHECK = iMA(Symbol(),0, 5, 3, MODE_EMA, PRICE_CLOSE, which_candle);