OPEN-SOURCE SCRIPT
[dom] % change correlation

a lightweight way to compare % change across stocks, futures, volatility, rates, spreads, and other markets from the same view.
add symbols into any of the 5 groups with commas. each group can show the individual lines, an equal-weight cumulative basket, or both. the included groups are just editable defaults — mag 7, vol, implied correlation, rates/curve, and futures.
by default, % change uses tradingview-style close-to-close based on the selected anchor timeframe. d compares current price to the previous daily close, w to the previous weekly close, etc. you can switch a group to open-to-current instead, with an optional hard-coded globex session open for futures.
expressions work directly in the symbol box, so things like tvc:us10y - tvc:us02y (2s10s) or ratios can be plotted alongside normal tickers. parentheses are just the display name for an expression. tf can be added to an individual symbol when its data needs a minimum source timeframe.
each group has its own visual scaling. linear is untouched data, while soft cap / outlier compression are useful when one market blows out the scale. scaling is display-only — the % values and cumulative calculations stay uncompressed.
endpoint labels show the ticker/value/% and [l##], which matches the corresponding line in the style tab. colors, line appearance, text size/color, cumulative names, anchors, and group contents are all editable.
slower macro/reference feeds are automatically handled on intraday charts when needed, while exchange-traded symbols can use their normal tradingview session context.
performance change detection uses optipine by alien_algorithms, licensed under cc by-nc-sa 4.0.
add symbols into any of the 5 groups with commas. each group can show the individual lines, an equal-weight cumulative basket, or both. the included groups are just editable defaults — mag 7, vol, implied correlation, rates/curve, and futures.
by default, % change uses tradingview-style close-to-close based on the selected anchor timeframe. d compares current price to the previous daily close, w to the previous weekly close, etc. you can switch a group to open-to-current instead, with an optional hard-coded globex session open for futures.
expressions work directly in the symbol box, so things like tvc:us10y - tvc:us02y (2s10s) or ratios can be plotted alongside normal tickers. parentheses are just the display name for an expression. tf can be added to an individual symbol when its data needs a minimum source timeframe.
each group has its own visual scaling. linear is untouched data, while soft cap / outlier compression are useful when one market blows out the scale. scaling is display-only — the % values and cumulative calculations stay uncompressed.
endpoint labels show the ticker/value/% and [l##], which matches the corresponding line in the style tab. colors, line appearance, text size/color, cumulative names, anchors, and group contents are all editable.
slower macro/reference feeds are automatically handled on intraday charts when needed, while exchange-traded symbols can use their normal tradingview session context.
performance change detection uses optipine by alien_algorithms, licensed under cc by-nc-sa 4.0.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.