OPEN-SOURCE SCRIPT
ROBO STB Custom Weekly Candle (Fri-Thu)

Description:
This indicator creates custom weekly candles that start on Friday and end on Thursday, instead of the standard Monday–Friday weekly structure in TradingView. It aggregates the open, high, low, and close (OHLC) values from Friday to Thursday and displays them as candlesticks on the chart.
Features:
✅ Custom weekly candles from Friday to Thursday
✅ Dynamic calculation of open, high, low, and close
✅ Works on any timeframe
✅ Helps traders analyze market structure differently
How It Works:
Identifies the custom weekly session based on Friday's start and Thursday's end.
Aggregates OHLC values within this time range.
Resets the values when a new custom week begins.
Plots the calculated weekly candles on the chart.
Use Case:
This indicator is useful for traders who prefer to analyze weekly price movements based on a non-standard start and end day, especially those focusing on forex, crypto, or commodities where trading hours differ.
Notes:
This script does not modify existing candles but overlays new custom weekly candles on the chart.
It does not repaint and updates in real-time.
If you find this useful, like and share! 🚀
This indicator creates custom weekly candles that start on Friday and end on Thursday, instead of the standard Monday–Friday weekly structure in TradingView. It aggregates the open, high, low, and close (OHLC) values from Friday to Thursday and displays them as candlesticks on the chart.
Features:
✅ Custom weekly candles from Friday to Thursday
✅ Dynamic calculation of open, high, low, and close
✅ Works on any timeframe
✅ Helps traders analyze market structure differently
How It Works:
Identifies the custom weekly session based on Friday's start and Thursday's end.
Aggregates OHLC values within this time range.
Resets the values when a new custom week begins.
Plots the calculated weekly candles on the chart.
Use Case:
This indicator is useful for traders who prefer to analyze weekly price movements based on a non-standard start and end day, especially those focusing on forex, crypto, or commodities where trading hours differ.
Notes:
This script does not modify existing candles but overlays new custom weekly candles on the chart.
It does not repaint and updates in real-time.
If you find this useful, like and share! 🚀
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.