OPEN-SOURCE SCRIPT

Example - Switching Line

Updated
Example of manipulating a float series to:

• switch from one source to another
• maintain a level by referencing itself

This script publication is intended for:

• Educational Purposes

Who is it for?

Anyone who wants to learn how to change the position or state of an active float series.
Release Notes
Made a small simplification to the boolean checks, although the original implemention was not exactly "wrong", there was indeed no need for the use of the pre-initiation using the var keyword.

Thanks PineCoders for pointing it out.

Edumacation!
educationallogicPivot PointsseriesSupport and Resistanceswitch

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