amibroker

Month function and its understanding in Amibroker code


me = Month();
me1 = Ref(me, -1);
MFC = me != me1;
BSMFC = BarsSince(MFC)+1;

Can someone help me understand this piece of code?


Solution

  • newmonth=month()!=ref(month(),-1);
    

    Basically Is MFC (==newmonth) checking for change of Month ?