how to dynamical resize the HeiKen Ashi width?

 

when i use the HeiKen Ashi indicator will be normal in the default windows.

like the following.

  default

 But Heiken Ashi won't map the k-bar width because the indicator width is fixed to 3. as following.

 

because the code is

   SetIndexStyle(0,DRAW_HISTOGRAM,0,1,ExtColor1);

   SetIndexBuffer(0,ExtLowHighBuffer);

   SetIndexStyle(1,DRAW_HISTOGRAM,0,1,ExtColor2);

   SetIndexBuffer(1,ExtHighLowBuffer);

   SetIndexStyle(2,DRAW_HISTOGRAM,0,3,ExtColor3);

   SetIndexBuffer(2,ExtOpenBuffer);

   SetIndexStyle(3,DRAW_HISTOGRAM,0,3,ExtColor4);

   SetIndexBuffer(3,ExtCloseBuffer); 


It will casue my illusion.  So there are any methods to refix it following the zoom in/out.