Indicators: Automatic Fixed Scale with Top/Bottom Margins - page 2

 
Sajiro- Yoshizaki #:

When using this indicator together with the Trade Panel, it freezes(or slow) when switching time periods or closing MT4.

Is there any solution to this problem?

I have resolved it myself.

void OnChartEvent(const int id,         // Event ID
                  const long& lparam,   // Parameter of type long event
                  const double& dparam, // Parameter of type double event
                  const string& sparam  // Parameter of type string events
                  )
  {
  if(id!=CHARTEVENT_CHART_CHANGE){ return; } // <= Add
  
   int pos,xpos;
   double priceHigh,priceLow,priceMax,priceMin,priceRange,headClose,midRange;

I hope this solution helps others who may be experiencing a similar problem. Thanks to everyone who took the time to read my question.

Regards