OPEN-SOURCE SCRIPT
Telah dikemas kini Mark specific candle (e.g. bar 20)

This Pine Script indicator, "Mark specific candle (e.g. bar 20)" (short title "Mark candle"), is a simple yet powerful tool to visually highlight a particular candle on your chart.
What it does:
It marks a specific candle (e.g., the 20th, 10th, or any number you choose) counting backwards from the most recent candle on your chart. The marked candle will be colored in a subtle light grey and also feature a tiny, matching grey arrow pointing down from above it.
Why it's useful:
This indicator helps you quickly identify and track a consistent reference point in recent price action. It's great for strategies that depend on fixed look-back periods or for simply keeping an eye on a specific historical candle's position as new data comes in.
Key Features:
How to use:
Simply add this script to your TradingView chart. Then, open the indicator's settings to set your desired candle number.
What it does:
It marks a specific candle (e.g., the 20th, 10th, or any number you choose) counting backwards from the most recent candle on your chart. The marked candle will be colored in a subtle light grey and also feature a tiny, matching grey arrow pointing down from above it.
Why it's useful:
This indicator helps you quickly identify and track a consistent reference point in recent price action. It's great for strategies that depend on fixed look-back periods or for simply keeping an eye on a specific historical candle's position as new data comes in.
Key Features:
- Adjustable Candle Number: Easily change which candle is marked (e.g., 20th, 10th, 5th) directly from the indicator settings using the "Candle Number to Mark (from end)" input.
- Clear Visuals: Both the candle color and a small arrow provide a subtle, yet effective, visual cue.
How to use:
Simply add this script to your TradingView chart. Then, open the indicator's settings to set your desired candle number.
Nota Keluaran
v2changed chart
Nota Keluaran
v3changed chart
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.