OPEN-SOURCE SCRIPT

PCHLM with Timeframe

This indicator plots the previous candle's high, low, and midpoint on the chart with customizable line thickness and distinct colors for better visualization. It allows traders to choose the timeframe from which these levels are derived, providing flexibility to adapt to different trading strategies.

Features:
Timeframe Selection: Users can select any desired timeframe (e.g., daily, weekly) to define the previous candle's high, low, and midpoint.
Color-Coded Lines:
The high level is marked with a red line.
The low level is marked with a green line.
The midpoint is marked with a grey line.
Adjustable Line Thickness: Traders can set the thickness of the lines between 1 and 5, allowing for better visual customization according to their preferences.
Dynamic Updates: The lines update automatically with each new candle, ensuring the levels are always current based on the selected timeframe.
Candlestick analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer