Some of the built-in oscillator indicator (such as RSI) has options for adding horizontal lines. In the configuration panel, one can add horizontal lines into the chart. See attached screenshot.
How do I include this feature in the custom indicator I build?
Thks.
You can add a horizontal line either with a variable added for that purpose to those in the “return” line of your custom indicator (then you can access it in the properties window), or if you don’t need to access it later on in the properties window, with the drawHline command: https://www.prorealcode.com/documentation/drawhline/