OPEN-SOURCE SCRIPT
Weekly pecentage tracker by PRIVATE

https://www.tradingview.com/x/makLtbaF/
Settings Picture below this link: 👇
[img]https://i.ibb.co/j909FVWk/Screenshot-2025-08-25-182702.png[/img]
What it is
A lightweight “Weekly % Tracker” overlay that lets you manually enter weekly performance (in percent) for XAUUSD + up to 10 FX pairs, then shows:
a small table panel with each enabled symbol and its % result
one TOTAL row (Sum / Average / Compounded across all enabled symbols)
an optional mini badge showing the % for a single selected symbol
Nothing is auto-calculated from price—you type the % yourself.
Key settings
Panel: show/hide, position, number of decimals, colors (background, text, green/red).
Total mode:
Sum – adds percentages
Average – mean of enabled rows
Compounded –
(
∏
(
1
+
𝑝
/
100
)
−
1
)
×
100
(∏(1+p/100)−1)×100
Symbols:
XAUUSD (toggle + label + % input)
10 FX pairs (each has On/Off, label text, % input). You can rename labels to any symbol text you want.
Mini badge: show/hide, position, and symbol to display.
How it works
Overlay indicator: overlay=true; just draws UI on the chart (no plots).
Arrays (syms, vals, ons) collect the row data in order: XAU first, then FX1…FX10.
Helpers:
posFrom() converts a position string (e.g., “Top Right”) into a position.* constant.
wp_col() picks green/red/neutral based on the sign of the %.
wp_round() rounds values to the selected decimals.
calc_total() computes the TOTAL with the chosen mode over enabled rows only.
Table creation logic:
Counts how many rows are enabled.
If none enabled or panel is off: the panel table is deleted, so no box/background is visible.
If enabled and on: the panel is (re)created at the chosen position.
On each last bar (barstate.islast), it clears the table to transparent (bgcolor=na) and then fills one row per enabled symbol, followed by a single TOTAL row.
Mini badge:
Always (re)created on position change.
Shows selected symbol’s % (or “-” if that symbol isn’t enabled or has no value).
Colors text green/red by sign.
Notes & limits
It’s manual input—the script doesn’t read trades or P/L from price.
You can rename each row’s label to match any symbol name you want.
When no rows are enabled, the panel disappears entirely (no empty background).
Designed to be light: only draws tables; no heavy plotting.
If you want the TOTAL row to be optional, or different color thresholds, or CSV-style export/import of the values, say the word and I’ll add it.
Settings Picture below this link: 👇
[img]https://i.ibb.co/j909FVWk/Screenshot-2025-08-25-182702.png[/img]
What it is
A lightweight “Weekly % Tracker” overlay that lets you manually enter weekly performance (in percent) for XAUUSD + up to 10 FX pairs, then shows:
a small table panel with each enabled symbol and its % result
one TOTAL row (Sum / Average / Compounded across all enabled symbols)
an optional mini badge showing the % for a single selected symbol
Nothing is auto-calculated from price—you type the % yourself.
Key settings
Panel: show/hide, position, number of decimals, colors (background, text, green/red).
Total mode:
Sum – adds percentages
Average – mean of enabled rows
Compounded –
(
∏
(
1
+
𝑝
/
100
)
−
1
)
×
100
(∏(1+p/100)−1)×100
Symbols:
XAUUSD (toggle + label + % input)
10 FX pairs (each has On/Off, label text, % input). You can rename labels to any symbol text you want.
Mini badge: show/hide, position, and symbol to display.
How it works
Overlay indicator: overlay=true; just draws UI on the chart (no plots).
Arrays (syms, vals, ons) collect the row data in order: XAU first, then FX1…FX10.
Helpers:
posFrom() converts a position string (e.g., “Top Right”) into a position.* constant.
wp_col() picks green/red/neutral based on the sign of the %.
wp_round() rounds values to the selected decimals.
calc_total() computes the TOTAL with the chosen mode over enabled rows only.
Table creation logic:
Counts how many rows are enabled.
If none enabled or panel is off: the panel table is deleted, so no box/background is visible.
If enabled and on: the panel is (re)created at the chosen position.
On each last bar (barstate.islast), it clears the table to transparent (bgcolor=na) and then fills one row per enabled symbol, followed by a single TOTAL row.
Mini badge:
Always (re)created on position change.
Shows selected symbol’s % (or “-” if that symbol isn’t enabled or has no value).
Colors text green/red by sign.
Notes & limits
It’s manual input—the script doesn’t read trades or P/L from price.
You can rename each row’s label to match any symbol name you want.
When no rows are enabled, the panel disappears entirely (no empty background).
Designed to be light: only draws tables; no heavy plotting.
If you want the TOTAL row to be optional, or different color thresholds, or CSV-style export/import of the values, say the word and I’ll add it.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.