MQL4 How to change chart zoom level from 1 to 32 one by one ?

 

MT4 has a total 32 step of chart zoom levels, but we usually can change only 6 zoom levels( 1 > 2 > 4 > 8 > 16 > 32) from chart menu.

I tried the script below, but only the above 6 zoom levels are shown.

//------------------------------------------------------------------
void OnStart()
  {
   for(int zoom = 1; zoom <= 32; zoom ++)
     {
      ChartSetInteger(ChartID(), CHART_SCALE, zoom);
      Sleep(1000); // a small delay to see the change
     }
  }
//------------------------------------------------------------------

Is there any way to set zoom level 3 for example on chart from MQL4 code ?

Any hints or thoughts would be appreciated. 

 
cloudwandering: MT4 has a total 32 step of chart zoom levels, but we usually can change only 6 zoom levels( 1 > 2 > 4 > 8 > 16 > 32) from chart menu.

Wrong, It only has those six widths (whole pixels).

 

I attach video here, which made me wonder if there is any way to set chart zoom level other than normal 6 widths.

I would like to use this feature in my own indicator, but cannot figure out how this indicator in screen is working.

Files: