appearing a indicator such as RSI on chart by clik on chart

 

Hi every body

I have written an indicator which consist of two buttons . How I can appear another indicator such as RSI  on chart by clicking on 1.st button and disappear it by clicking 2.nd button  .please help me. thanks

 
How I can appear another indicator such as RSI  on chart by clicking on 1.st button
https://www.mql5.com/en/docs/chart_operations/chartindicatoradd
and disappear it by clicking 2.nd button
https://www.mql5.com/en/docs/chart_operations/chartindicatordelete
 

thanks  Anthony

I checked your mentioned link . function " ChartIndicatorAdd()" is for MQL5 . is there any similar function in MQL4.