Could someone please help to fix it? Thanks.
I think it is an issue with Legacy Charts. The indicator works fine on New Charts: