Indicator · Pine Script v6 · On the chart

Portfolio Performance Summary

by lumduan

A Thai-language indicator that builds a portfolio summary from user-entered holdings and shows it as tables and a small chart on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code641
Settings40inputs
LicenceNone stated
Last update1 year ago29 Apr 2025

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 indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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

Portfolio Performance Summary compares portfolio return against a benchmark symbol, groups results by period such as quarter, and supports an initial capital, optional rebalancing and dividend adjustment. A reference rate symbol is used for risk adjusted figures. Colours, table size and position are adjustable.

Details

Published by

lumduan on GitHub

Draws

On the price chart

Markets

Stocks

Timeframes

H4 and above

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
ตำแหน่งตารางstringTop Rightin_table_pos
ขนาดตารางstringSmallin_table_size
สีหัวข้อcolor#525252tBgCol
สีพื้นหลังตารางcolor#7c7c7ccBgCol
สีตัวอักษรcolorcolor.whitetxtCol
สีค่าตัวเลขบวกcolorcolor.greenUpCol
สีค่าตัวเลขลบcolorcolor.redDnCol
ตารางรายละเอียดbooltrueshowRS
ตารางความเสี่ยงและผลตอบแทนbooltrueshowPP
ตารางผลตอบแทนของพอร์ตbooltrueshowPI
ตำแหน่งวางกราฟstringBottom Leftin_plot_pos
 colorcolor.graypltCol
Show all 40 settings
SettingTypeDefaultVariable
ค่าอ้างอิง (Benchmark) colorcolor.rgb(207, 139, 29)bnchCol
 Portfolio colorcolor.rgb(0, 88, 220)prtfCol
ความสูงกราฟfloat0.8barHigh
ความกว้างกราฟfloat1.0barWdth
แบ่งช่วงเวลาแบบstringไตรมาสperiod
กราฟของผลตอบแทนเทียบกับค่าอ้างอิงbooltrueshowPB
วันที่ เริ่มtimetimestamp("02 JAN 2020")sTime
วันที่ สิ้นสุดtimetimestamp("01 DEC 2050")eTime
เงินลงทุนเริ่มต้น (Initial Capital)float100000cptl
ค่ามาตรฐานอ้างอิง (Benchmark)symbolSETs00
ปรับสมดุลพอร์ตทุก (Rebalance)boolfalsereblMrk
reblstringไตรมาสrebl
รวมเงินปันผล (Adjust Stock Price for Dividends)booltrueadjst
ผลตอบแทนปราศจากความเสี่ยง (Risk Free)symbolTH10YriskFree
u01booltrueu01
u02booltrueu02
u03booltrueu03
u04booltrueu04
u05booltrueu05
u06booltrueu06
u07booltrueu07
u08booltrueu08
u09booltrueu09
u10booltrueu10
w01float10w01
w02float10w02
w03float10w03
w04float10w04
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

Symbol Info Helper

by everget
947 stars

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,

Indicator v4 Screeners & dashboards
Updated 11 days ago · GPL-3.0 GitHub repository of Symbol Info Helper
575 stars

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

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Indicator
330 stars

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

Indicator v5 Support & resistanceScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of Multi Alert Long/Short [Alorse]

Pricing Table

by namuan
318 stars

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

Indicator v4 Volatility & bandsScreeners & dashboards
Updated 2 months ago · MIT GitHub repository of Pricing Table

3938 Tracker

by Allen1212
303 stars

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

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of 3938 Tracker

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