Indicators: Toggleable Moving Average

 

Toggleable Moving Average:

I search Moving Average that can be hide and shown with button, just like in Trading View, but I cannot found it. Then I try to modify example of Moving Average code from MQL5 Metaeditor Help, and do some add for button and logic for toggleable the button to show or hide Moving Average. Just like in Trading View. For those who need this, please feel free to use or modify for your own requirement.

Toggleable Moving Average

Author: Stefanus Wardoyo

 

Minor revision on 20-02-2022 at 21.39 pm GMT+007

Original code was made an error when the bars < one of ma period defined.

 
Stefanus Wardoyo #:

Minor revision on 20-02-2022 at 21.39 pm GMT+007

Original code was made an error when the bars < one of ma period defined.

Good Job!

 
Good job, Thank you, 
 
Rohiko #:
Good job, Thank you, 

Any update from this need the right source code where can i download this please without error

 
Nice Work!! Thank you for this Indi