Save button state

 
I created some buttons.
but if I restart mt5 the state resets
how do I save the state and read it when I restart?
.ini file
.xml file
or are there other methods?
thanks