How to access indicator from script?

I'd like to write a script that uses values from some of the built-in indicators (say, Total Revenue)

I don't see any way to access indicators from scripts.

How can I reference the Total Revenue series from a script?
1 person has
this question