Download MetaTrader 5
To add comments, please log in or register
What are the latest MQL5.community news? The Wall section will tell you!
HongDi s& t development co.,ltd.
1579
hongbin fei 2013.01.10 13:32 

static double MaxProfit;

 

I have an EA, if I set MaxProfit=100 in Friday, Does MT5  will set MaxProfit =0  in next  Monday?

phi nuts
2184
phi nuts 2013.01.10 16:47  
codeidea:

static double MaxProfit;

 

I have an EA, if I set MaxProfit=100 in Friday, Does MT5  will set MaxProfit =0  in next  Monday?


No. Read this also : Will a static variable lose its value when EA restart from disconecting? 
/
To add comments, please log in or register