Prestasi

Penunjuk Prestasi memaparkan perubahan peratusan terkini dalam harga untuk satu atau lebih simbol, sepanjang satu tempoh masa dipilih, dalam jadual menggunakan gaya peta suhu. Penunjuk mempunyai input teks di mana anda boleh memberikan senarai diasingkan koma untuk mensesuaikan simbol dan rangka masa di mana ia akan memaparkan data prestasi.

Pengiraan

The indicator requests daily close prices for each symbol from the user-defined symbol list, then calculates the percentage change in those prices (the performance value) across each time period specified in the timeframe list. Each row in the table corresponds to a symbol, and each column corresponds to a timeframe. The cell at the intersection of a row and column shows the relative amount by which a specific symbol's price increased or decreased over one of the time periods. 

For each listed timeframe and symbol, the indicator determines an anchor time for the performance calculation based on the opening time of the symbol's latest daily bar. The anchor time calculation depends on the type of timeframe:

  • For day-based or week-based timeframes, the indicator subtracts the specified number of 24-hour or 7-day periods from the current daily bar's opening time. For example, if the symbol's current bar opens on Oct 10, 2025, the anchor time for the "1W" timeframe is on Oct 3, 2025.
  • For month-based or year-based timeframes, the indicator subtracts the number of months or years but selects the same day and time, adjusting the final date as necessary. For example, for a daily bar that opens on Oct 10, 2025, the "6M" anchor time is on Apr 10, 2025, and the "2Y" anchor time is on Oct 10, 2023.
  • For "year to date" ("YTD"), the anchor time is midnight on the first day of the current daily bar's opening year. For example, the YTD anchor for any bar that opens in 2025 is midnight on Jan 1, 2025. 

After determining a symbol's anchor time for one of the specified timeframes, the indicator uses that time to find the anchor bar for the symbol's change percentage. The anchor bar is the daily bar that opens at the calculated time, if one exists for that symbol, or the latest available bar that opened before that time.

For each symbol-timeframe combination, the indicator calculates the performance value using the following formula:

100 * (CurrentValue - PastValue) / PastValue

Where CurrentValue is the symbol's latest price, and PastValue is the closing price of the anchor bar.

For example, if the symbol's latest price is 215.00 and the "1M" anchor bar's closing price is 193.00, the resulting performance value is 100 * (215 - 193) / 193 = 11.40%. This value indicates that the symbol's price increased by over eleven percent across the latest one-month period.

! Tip: To view the date of a performance value's anchor bar, hover over its cell in the table to reveal a tooltip. The tooltip shows the date in the "dd MMM yyyy" format.

Inputs

Include chart symbol

If enabled, the indicator automatically adds a table row for the current chart's symbol if that symbol is not already included in the symbol list. 

Symbol list

A comma-separated list of symbols or ticker IDs, with optional spaces. Each item can specify an exchange prefix (e.g., "NASDAQ:AAPL") or use just the symbol name (e.g., "AAPL"). If a listed symbol does not include an exchange prefix, the indicator automatically selects the most popular exchange for that symbol. 

Timeframe list

A comma-separated list of timeframes, with optional spaces, which define the periods over which the indicator calculates performance values for each symbol.

Each listed timeframe must use one of the following units:

  • "D" for days
  • "W" for weeks
  • "M" for months
  • "Y" for years
  • "YTD" for year to date

All timeframes except for "YTD" can include a multiplier prefix to specify the number of days, weeks, months, or years in the performance period. For example, "3D" represents a period of three days, and "5Y" represents five years.

Positive color

The base color of the table cells that contain positive performance values.

Negative color

The base color of the table cells that contain negative performance values. 

Color intensity cutoff (%)

The maximum absolute percentage for color intensity calculations. The table cells with absolute values at or above this level have the highest intensity (opacity) in the heatmap display. For example, a cutoff value of 10% means that cell colors become increasingly opaque as the corresponding values approach 10%, but all cells with values above 10% share the same opacity.

Table position

These settings specify the horizontal and vertical position of the heatmap table relative to its pane. The defaults are "center" and "middle", which position the table in the center of the pane. Use the first input to move the table left or right, and use the second to move it up or down. 

Table width (%)

The table width, expressed as a percentage of the indicator's pane width. The default is 100, which means that the table is as wide as the pane. If the value is 0, the width automatically adjusts to fit the table's contents. Note that if the timeframe list includes a large number of timeframes, the table's width might exceed the width of the pane.

Table height (%)

Tinggi jadual, dijelaskan sebagai peratusan panel penunjuk. Nilai lalai adalah 95, yang bermaksud jadual adalah sedikit pendek daripada tinggi panel. Jika nilai ini adalah 0, tinggi akan dilaraskan secara automatik untuk memuatkan kandungan jadual. Ambil maklum bahawa juka senarai simbol mengandungi bilangan simbol yang banyak, tinggi jadual mungkin melepasi tinggi panel. 

Penunjuk Prestasi menunjukkan perubahan peratusan dalam harga untuk satu atau lebih simbol pada masa yang ditetapkan. Harga dipaparkan dalam jadual di bawah carta. Senarai simbol dan senarai rangka masa adalah ditentukan oleh input.

Pengiraan

Penunjuk mengira perubahan untuk setiap simbol dalam keadaan di mana mereka ditentukan. Untuk setiap rangka masa, penunjuk memilih satu bar sauh yang dibuang dari bar akhir pada carta oleh satu rangka masa tertentu. Sebagai contoh, jika bar akhir carta adalah 15 Mei, 2024, sauh 3B nya adalah 15 Feb, 2024, sauh 1T nya adalah 15 Mei, 2023. Jika tiada bar pada masa sauh, bar seterusnya akan digunakan sebagai sauh (anchor).

Penunjuk mengira nilai prestasi menggunakan formula berikut:

(Nilai semasa - Nilai sebelum) / Nilai sebelum * 100

Di mana:

Nilai semasa adalah tutup terkini pada carta, sejarah atau masa nyata.

Nilai sebelum adalah penutup untuk bar yang mendahului bar sauh.

Sebagai contoh, jika hari ini adalah 15 Mei, 2024, rangka masa 1B menggunakan bar 15 April, 2024 sebagai sauhnya dan penutup bar sebelum – 14 April, 2024 – sebagai Nilai Sebelum untuk pengiraan prestasi. Jika harga tutup masa nyata semasa adalah 215.00 dan harga tutup pada 14 April adalah 193.00, nilai prestasi yang terhasil adalah (215 - 193) / 193 * 100 = 11.40%, menunjukkan harga telah naik sebelas peratus dalam tempoh satu bulan.

Logik yang digunakan oleh penunjuk untuk mencari sauh adalah berbeza bergantung kepada jenis sauh:

  • Untuk rangka masa berasaskan hari dan minggu, bar sauh dikira dengan menolak bilangan tertentu tempoh 24 jam atau 7 hari, dari lilin buka terakhir.
  • Untuk rangka masa bulanan, penunjuk menolak bulan tetapi memilih hari yang sama. Sebagai contoh, jika hari ini adalah 15 April, 2024, 3B sebelumnya adalah 15 Jan, 2024, dan ofset 6B adalah 15 Oct, 2023. 
  • Untuk setiap rangka masa berasaskan tahun, bar akhir adalah bar dengan hari dan bulan yang sama dengan tahun. Sebagai contoh, jika bar akhir pada carta adalah 14 Julai, 2024, rangka masa 2T memilih 14 Julai, 2022.
  • Untuk “year to date” (YTD), 1 Januari adalah tahun semasa yang digunakan sebagai sauh.

Untuk melihat tarikh sauh untuk satu simbol tertentu dan kombinasi rangka masa, gerakkan kursor ke atas nilai peratusan dalam jadual Prestasi di mana mereka bertemu.

Nota: Skrip menjelaskan sauh sekali, apabila skrip dimuatkan. Sauh tidak berubah selepas itu kecuali halaman dimuatkan semula, simbol diubah atau tetapan penunjuk ditukar. Ini bermaksud, dari masa ke semasa, sauh akan menjadi tidak segerak dengan input rangka masa. Sebagai contoh, jika skrip dimuatkan pada 1 Sept, dengan rangka masa 1B, selepas dua hari tutup semasa (dikemas kini) pada 3 Sept masih dibandingkan kepada tutup dari 1 Ogos, tetapi tarikh itu sekarang adalah 1B + 2 hari lalu.

Input


Masukkan Simbol Carta

Apabila pilihan ini dipilih, penunjuk menambahkan simbol semasa kepada bahagian atas jadual simbol jika ia masih tidak dimasukkan dalam input Senarai Simbol.

Senarai simbol

Satu senarai simbol atau ID ticker, diasingkan dengan koma, bersama selang pilihan. Satu ID ticker boleh menjelaskan awalan bursa (cth. "NASDAQ:AAPL") atau hanya ticker ("AAPL"), di mana bursa paling popular untuk simbol ini dipilih secara automatik.

Senarai Rangka Masa

Satu senarai rangka masa, diasingkan dengan koma,bersama selang pilihan. Satu rangka masa sah mengandungi bilangan yang diikuti dengan D, W, M, or Y, e.g., "7D", "1W", "3M", "5Y". Selain daripada itu, "YTD" – yang bermaksud "year to date" – adalah disokong.

Warna Positif

Warna sel jadual yang mengandungi nilai-nilai positif. 

Warna Negatif

Warna sel jadual yang mengandungi nilai-nilai negatif.

Potongan Keamatan Warna (Color Intensity Cutoff)

Menentukan peratusan mutlak maksimum untuk pengiraan keamatan warna. Nilai mutlak atau di atas had ini akan mempunyai keamatan tertinggi (kelegapan) dalam paparan peta suhu. Sebagai contoh, satu nilai potongan 10% bermaksud warna menjadi lebih legap apabilai nilai berkaitan menghampiri 10%, tetapi semua nilai di atas 10% akan berkongsi kelegapan yang sama. 

Posisi Jadual

Menentukan posisi jadual Peta Suhu relatif kepada panel di mana ia dilukis. Secara lalai, posisi adalah ditetapkan kepada "Tengah" dan Peta Suhu disauhkan kepada pertengahan panelnya. Menukar tetapan ini ke "Kiri" atau "Kanan" menyauhkan jadual kepada bucu kiri atau kanan kepada panel.

Lebar Jadual (%)

Lebar jadual sebagai peratusan panel di mana jadual diletakkan. Nilai lalai adalah 100, yang bermaksud jadual adalah sama lebar dengan panel. Jika nilai ini adalah 0, lebar memuatkan kandungan jadual dan jadual boleh menjadi lebih lebar daripada panel.

Tinggi Jadual (%)

Tinggi jadual sebagai peratusan panel di mana jadual diletakkan. Nilai lalai adalah 95, yang bermaksud jadual adalah sedikit pendek daripada tinggi panel. Jika nilai ini adalah 0, lebar memuatkan kandungan jadual dan jadual boleh menjadi lebih tinggi daripada panel.