OPEN-SOURCE SCRIPT

Charting the US02Y-US10Y

Updated
Putting together a script that charts the US02Y - US10Y in visual format. First script I've ever written and would like some feed back as to how I could improve. Also currently have to turn on "Indicator Last Value Label, and Indicator Name Label" if you would like data to appear on the chart. Works best when the US02Y-US10Y chart is being displayed!
Release Notes
Working on a more visual chart for the US10Y-US02Y

**Update**
Formatted the precision on the label and cleaned up code
Trend 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