OPEN-SOURCE SCRIPT

EasyToggleStudy

Here's an example og toggle study
Inside the script you can find the toggle function that can help you to create series that maintain value or change value
each time a source crosses some level
In the example I applied the function to RSI plot changing the color each time a fund an overbuy or underbuy level
Please, don't exitate to contact me if you need more help.
OscillatorsTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer