How to calculate EMA (average)?

 

I have problem with following:


ie.

double MyValue = close*2 - low* 98/100;

i want Exponential Moving Average of MyValue...

How to calculate?

 
https://ta.mql4.com/indicators/trends/moving_average
Reason: