Alternatively you may use without TimeFrame functions (if you do not want to get results as per calendar month basis but period of n-days back from current day for each day). Then you should use business days, so not 90 calendar days but rather e.g. 3 times 20.
// if inDaily interval
rc_3mth = ROC(Close, 60);
or
// if inDaily interval
rc_3mth = ROC(Close, 62);
or whatever you like.
And please use code tags when inserting code. It is mandatory rule according "How to use this site" thread. It is important so that code does get posted correctly (without formatting issues).