not to lose variable value when changing timeframe or re-connect in INDICATOR?

 

Hi,

Static, global, which should I use? ---- I want that variable keeps its value if I change timeframe or if auto re-connection.

This is for an INDICATOR.

Could anybody please help?

 
joshatt: Static, global, which should I use? -
If the variable is only used inside one function, make it static inside the function.
 
whroeder1:
If the variable is only used inside one function, make it static inside the function.

Thank you, sir.