Download MetaTrader 5

weekend and static

To add comments, please log in or register
HongDi s& t development co.,ltd.
1605
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