Search code examples
mql4

is there a function ( IndicatorRemove() just like ExpertRemove() ) to remove an indicator from chart if an indicator has expired?


   datetime startTime = D'24.01.2014';
   datetime endTime = D'15.09.2020 13:00';
   if(TimeCurrent()>=endTime){
      Alert("This EA has expired....Call 08145301211 for new order");
      IndicatorRemove();
   }

i only know about ExpertRemove(); that will remove an EA from chart. can someone help me i want to do the same for an indicator.


Solution

  • I believe ChartIndicatorDelete is what you are looking for.