Code inquiry

 
Hello everyone,

I was wondering if anyone has coded an EA or indicator to have the display and history chart bars reset to its allowable minimum to avoid sluggishness without restarting MT4.
All help and input will be appreciated.

Thanks in advance,
David
Reason: