Download MetaTrader 5

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

To add comments, please log in or register
Your conversation partner speaks foreign language? Automatic translation will help you!
Brian Kester
818
Brian Kester 2015.10.09 13:04 
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.
Keith Watford
Moderator
9619
Keith Watford 2015.10.09 13:17  

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 

Brian Kester
818
Brian Kester 2015.10.09 13:21  
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.
Keith Watford
Moderator
9619
Keith Watford 2015.10.09 13:36  
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 

Brian Kester
818
Brian Kester 2015.10.09 17:02  
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.

To add comments, please log in or register