I call your help to get the beginning of the last year in mt4.
here is an example for the month :
Code: Select all
datetime PREV_MONTH_OPEN_DATE=iTime(Symbol(),PERIOD_MN1,1);
Code: Select all
datetime PREV_YEAR_OPEN_DATE=D'2017.01.001 0:00';
Regards