How do i maintain the value of a static variable despite closing the program

 
I have a static variable inside a function, how do i maintain its value even when the bot has been turned off and turned on?
 
Renz Carillo:
I have a static variable inside a function, how do i maintain its value even when the bot has been turned off and turned on?

Or specifically my problem: How do i differentiate a modified order and a non modified order/ How to determine if an order has been modified or not

 
Renz Carillo:
I have a static variable inside a function, how do i maintain its value even when the bot has been turned off and turned on?

Use terminal Global Variables.

 
Persistent storage (files, global variables w/flush)