OPEN-SOURCE SCRIPT
已更新

Multi-Timeframe Session Highlighter

281
What is the Multi-Timeframe Session Highlighter?
It’s a simple Pine Script indicator that paints two special candles on your chart, no matter what timeframe you’re looking at. Think of it as a highlighter pen for session starts and ends—can be used for session-based strategies or just keeping an eye on key turning points.

How it works:

Green Bar (Session Open): Marks the exact bar when your chosen higher-timeframe session kicks off. If you select “4H,” on the indicator, you’ll see green on every 4-hour open, even if you’re staring at a 15-minute chart.

Red Bar (Session Close): Highlights the very last lower-timeframe candle immediately before that session wraps up. So on a 1H chart with “Daily” selected, you’ll get a red band on the 23:00 hour before the new daily bar at midnight.

Customizable: Pick your own colors and transparency level to match your chart theme.

Getting started:

Add the indicator to your chart.

In the inputs, select the session timeframe (for example, “240” for 4H or “D” for daily).

Choose your favorite green and red shades.

That’s it.
版本注释
Minor changes for compliance

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。