Strategy · Pine Script v6 · Own pane

TN Multilateral Sovereign Corr

by raybird

A strategy that watches correlation between assets in a separate pane.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code64
Settings7inputs
LicenceNone stated
Last update2 months ago15 Aug 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

TN Multilateral Sovereign Corr builds a correlation matrix for four symbols, defaulting to BTC, ETH, SOL and BNB, and shows it as a colour-shaded table. The first two symbols form the main pair, and when their correlation over the lookback falls below a threshold after being above it, the strategy opens a long position. It has no stop loss or exit rules, and the asset cluster selector does not appear to change the symbols.

Details

Published by

raybird on GitHub

Draws

Separate pane below the chart

Markets

Crypto

Timeframes

Any timeframe

Risk Notes

  • The strategy enters trades without a stop loss

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
資產集群選擇enumAssetCluster.Cryptocluster
資產 1symbolBINANCE:BTCUSDTs1
資產 2symbolBINANCE:ETHUSDTs2
資產 3symbolBINANCE:SOLUSDTs3
資產 4symbolBINANCE:BNBUSDTs4
相關性計算長度int20corrLength
脫鉤警戒閾值float0.5decoupleThresh
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Test Swing Screener

by TPCharts
10 stars

This script functions as a multi-symbol swing screener calculating the Relative Strength Index across up to 40 user-selected stock tickers using security calls. It evaluates whether each symbol's RSI exceeds a specified overbought threshold level. Inputs allow

Strategy v4 Screeners & dashboardsOscillators & momentum
Updated 5 years ago · GPL-3.0 GitHub repository of Test Swing Screener
8 stars

This strategy calculates a StockCharts Technical Rank metric alongside an O'Neil-style relative strength rating, plotting both curves in a separate pane. It evaluates long-term, medium-term, and short-term exponential moving average deviations, rate-of-change

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of SCTR & ONeil + RSI strategy

Noob's MTF multi-EMA

by InNoobWeTrust
4 stars

This strategy draws up to three exponential moving averages, default lengths 34, 89 and 610, across as many as seven user-chosen timeframes in a separate pane. Each series uses a gradient by timeframe, and optional smoothing or variable line width changes how

Strategy v5 Moving averagesScreeners & dashboards Repaints
Updated yesterday · None stated GitHub repository of Noob's MTF multi-EMA

This strategy calculates intraday volatility mean reversion using session VWAP standard deviation bands, RSI overbought and oversold levels, and candle wick exhaustion ratios. It enters trades when price reaches statistical extremes filtered by RSI and wick co

Strategy v6 Mean reversionVolatility & bands
Updated 7 months ago · MIT GitHub repository of Intraday Volatility Reversion Z-Score

Limit Verification Probe R2

by GammaExpansion
1 stars

This strategy probes limit order verification across four modes in a cycling pattern. It opens positions using resting limits, marketable limits, stop-limits, or exit limits with an offset. The script runs cycles to verify order behavior and plots probe values

Strategy v6 Screeners & dashboardsSupport & resistance
Updated 6 days ago · MIT GitHub repository of Limit Verification Probe R2
106 stars

This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status

Strategy v4 Screeners & dashboardsBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 1St Bar GAP+BkOut Screener v2 by RM

More Screeners & dashboards scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers