1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
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
Modern Portfolio Management Indicator calculates combined portfolio performance, asset correlation over a configurable length, and individual asset allocation weights based on share counts. Users can customize the evaluation timeframe, start and end dates, individual tickers, share quantities, and chart display modes. The tool does not generate automated trade execution signals or include risk-management stops, functioning strictly as an analytical visualization instrument for multi-asset equity tracking.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Start time
time
timestamp("20 Jul 2022 00:00 +000")
start_time
End time
time
timestamp("21 Jul 2022 00:00 +000")
end_time
Timeframe
timeframe
1W
timeframe
Correlation Length
int
14
corlen
Chart Display
string
Portfolio
chartpick
Show Portfolio Allocation
bool
true
showallo
Ticker One
symbol
AMEX:SPY
ticker1
Ticker 1 Shares
float
5
t1shares
Ticker Two
symbol
BATS:QQQ
ticker2
Ticker 2 Shares
float
5
t2shares
Ticker Three
symbol
BATS:AAPL
ticker3
Ticker 3 Shares
float
5
t3shares
Show all 16 settings
Setting
Type
Default
Variable
Ticker 4
symbol
BATS:IRDM
ticker4
Ticker 4 Shares
float
5
t4shares
Ticker 5
symbol
BATS:BA
ticker5
Ticker 5 Shares
float
5
t5shares
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.
Symbol Info Helper is an informational utility script that displays metadata about the currently selected instrument directly on the main price chart. It gathers built-in symbol properties including ticker identifier, description, instrument type, point value,
The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr
This indicator classifies each bar as bull, bear, or sideways from a rolling log return compared with adjustable percentage thresholds. It paints a regime ribbon on the price chart, shows a current-regime banner, and labels state changes after a minimum hold.
This indicator monitors multiple cryptocurrency symbols for trading signals. It calculates and plots entry prices, take profit, and stop loss levels for each symbol including BTCUSDT, ETHUSDT, BNBUSDT and others. Price crossovers trigger buy, sell or close ale
This indicator calculates theoretical options contract values and in-the-money probabilities using historical realized volatility across multiple standard deviations. It displays these metrics in a table overlay directly on the price chart. Users can adjust th
3938 Tracker visualizes historical buying and selling activity from ARK Invest funds directly on the main price chart. It plots labels at specific timestamps corresponding to trade dates, indicating buy or sell actions along with the count of participating ETF