I don’t have my platform open at the moment and I have not used the indicator you mention before – but you can use the output of any indicator (even ones you create yourself) in strategies by calling them.
https://www.prorealcode.com/documentation/call/
In your example I think this would be overcomplicating things as it is such a simple calculation.
Are you aware of the ProRealTime programming language documentation that can be found here or under the ‘Help’ menu on this site?
https://www.prorealcode.com/prorealtime-documentation/
It is a great reference source.