Hii
Is there a way to write monthnum == current month so that whenever month num changes the script updates automatically.
Regards,
Deepak
Hii
Is there a way to write monthnum == current month so that whenever month num changes the script updates automatically.
Regards,
Deepak
Hi Deepak,
You can use the following, which will trigger when the month number is not the same as the previous bar’s month number:
MONTHNUM() <> MONTHNUM()[1]
Does that work?
Hi
I think no. I am using below script in show plot.
M1 = MONTHNUM() =8;
M2 = CHANGE(INT_TYPE=Month);
IF(M1 == 1,M2,0)
Every month i have to manually change month num.
Regards,
Deepak
Hi Deepak,
Try this:
M1 = MONTHNUM();
M2 = CHANGE(INT_TYPE=Month);
//If the monthnum is the same as the last bar, use that month's % change;
IF(M1==LAST(M1),M2,0)