How to turn chart grid on or off – MQL4

Here is a MQL4 script that will toggle your chart grid on or off.

This is the same as checking and unchecking the ‘Show grid’ box in the properties window in Metatrader 4.

MT4 show grid checkbox