weekend and static

 

static double MaxProfit;

 

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

 
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? 
Reason: