i am going to backtest kind of yearly price levels and in order to becktest it i need to plot lines not in Ray format and becouse of number of lines i can't use buffer format
my question is : can we define start and end of a year included past and current years as timedate variables in mt4
do you have any other solutions
like this that i use for monthly periods :
my question is : can we define start and end of a year included past and current years as timedate variables in mt4
do you have any other solutions
like this that i use for monthly periods :
Inserted Code
Mtime1=iTime(NULL,Mperiod,Mshift); // if (Month()==1 || Month()==3 ||Month()==5 ||Month()==7 || Month()==8 || Month()==10 || Month()==12) Mtime2=Mtime1+(PERIOD_MN1+PERIOD_D1)*60; if (Month()==2) Mtime2=Mtime1+(PERIOD_MN1-PERIOD_D1)*60; if (Month()==4 || Month()==6 || Month()==9 || Month()==11) Mtime2=Mtime1+PERIOD_MN1*60;