OPEN-SOURCE SCRIPT
Time Highlight

How This Works:
Time Conversion: The script converts the current time to HHMM format (e.g., 9:16 becomes 916) for easy comparison.
Timeframe Detection: It checks the current chart's timeframe:
For 1-minute charts: Exactly matches the target times
For 5-minute charts: Checks if the target time falls within the 5-minute window
For 15-minute charts: Checks if the target time falls within the 15-minute window
Highlighting: When the condition is met, it highlights the candle with a semi-transparent yellow color.
Note:
The script will work on 1-minute, 5-minute, and 15-minute timeframes only
The highlight appears on the candle that contains the specified time
The transparency is set to 70% so you can still see the candle through the highlight
You can adjust the transparency level by changing the transp parameter (0 = fully opaque, 100 = fully transparent).
make a pine script which change the color of the candle in yellow color in 1,5,15 timeframe at the time of 9:16, 9:31, 9:46
Time Conversion: The script converts the current time to HHMM format (e.g., 9:16 becomes 916) for easy comparison.
Timeframe Detection: It checks the current chart's timeframe:
For 1-minute charts: Exactly matches the target times
For 5-minute charts: Checks if the target time falls within the 5-minute window
For 15-minute charts: Checks if the target time falls within the 15-minute window
Highlighting: When the condition is met, it highlights the candle with a semi-transparent yellow color.
Note:
The script will work on 1-minute, 5-minute, and 15-minute timeframes only
The highlight appears on the candle that contains the specified time
The transparency is set to 70% so you can still see the candle through the highlight
You can adjust the transparency level by changing the transp parameter (0 = fully opaque, 100 = fully transparent).
make a pine script which change the color of the candle in yellow color in 1,5,15 timeframe at the time of 9:16, 9:31, 9:46
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.