OPEN-SOURCE SCRIPT

Period Separator & Candle OHLC

This script combines two powerful tools for traders: period separators and custom timeframe-based OHLC (Open, High, Low, Close) data visualization. Here's what it does:

Period Separators:

The script draws vertical lines to indicate the start of new time periods based on a user-defined timeframe (e.g., hourly, daily, weekly).
Users can customize the separator color, line style (solid, dashed, dotted), and width to suit their preferences.

Fetches OHLC data from a higher or custom timeframe (e.g., 4 hours) and overlays it on the current chart.
Users can choose to display the open, high, low, and close prices as dots or circles for easy visualization.
Optionally, the open and close dots can be visually connected with a filled bar for a candlestick-like effect.
The script color-codes the close price relative to the open (green if higher, red if lower) to highlight price direction at a glance.

Fully Customizable:
Users have full control over which OHLC values to display and whether the dots should be filled.
Transparency settings for plotted dots and fills are also adjustable for optimal visibility on different chart styles.


How It Is Useful for Trading:


Timeframe Analysis:
The period separators make it easy to distinguish trading activity across custom time intervals. This is crucial for intraday, swing, and long-term traders who analyze price movements within specific periods.

Multi-Timeframe Insights:
By overlaying OHLC data from a higher timeframe on a lower timeframe chart, traders can identify key support and resistance levels, pivots, and trends that are not immediately visible on the current timeframe.

Trend Recognition:
The color-coded close dots (green for bullish, red for bearish) provide an instant visual cue of market sentiment, helping traders confirm or refute their bias.

Whether you're a scalper, day trader, or position trader, the flexibility in timeframe selection, styling, and data presentation ensures this tool can adapt to your trading strategy.
Candlestick analysismultitimeframePivot points and levels

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità