compiling EA on a chart reverts settings to default, how to stop that?

 
Hi, Sorry i was not able to find the answer, compiling my EA on a chart reverts external variables to default, what allows the EA on a chart after compiling to keep the settings user had input? Thanks alot.
 

I rarely use extern for input parameters nowadays, I tend to use input.

I find that the inputs do not revert to default after compiling unless a new input has been added or one has been removed 

 
GumRai:

I rarely use extern for input parameters nowadays, I tend to use input.

I find that the inputs do not revert to default after compiling unless a new input has been added or one has been removed 

thanks ill try it.
 
c3po:

thanks ill try it.

I also have 

#property strict

in all my codes, I don't know if that makes a difference or not 

 
GumRai:

I also have 

in all my codes, I don't know if that makes a difference or not 


I dont have property strict in mine.

switching "extern" to "input" did not fix. trying property strict.

Reason: