Need help !! I need to change the core indicator of bollinger bands to EMA

But i can't change to ema mode because I can't get the prev_value 
Files:
Bands.mq5  10 kb
Can you better specify what are you trying to do?
I need to change from SimpleMa to ExponentialMA
You should use an EMA function to replace the MA.
Here you go
Files:
BB_EMA.mq5  10 kb
Thanks! I was looking for this exact same thing!
Conor Mcnamara #:
Here you go
This used for MT5 sir? U have for MT4 sir. Thnks!