TRT | Trading Ranch Time
15m, 1H and Daily candles beside your 5-minute chart

TRT displays higher-timeframe candles on the main TradingView chart so you can
keep their price action in view while using a 5-minute chart.

WHAT YOU GET

- 15 recent 15-minute candles.
- 5 recent 1-hour candles.
- 1 daily candle.
- The counts include the active candle, which updates until its timeframe closes.
- Green bullish candles, red bearish candles and labels above each group.
- Adjustable timeframes, candle counts, colors, widths and spacing.
- Candles projected to the right, with the saved 12-bar gap from current price.

INSTALL ON A COMPUTER

1. Download and extract TRT-Discord-Package.zip.
2. Open TRT-COPY-PASTE.txt in a plain-text editor and copy ALL of its contents.
   The first line must be //@version=6.
3. Open TradingView, sign in and open a standard candlestick chart. Set it to 5m.
4. Open Pine Editor and create a NEW indicator from its script menu. Depending
   on the layout, this is under Open > Templates > New indicator or
   Create new > Indicator.
5. Replace the new indicator's starter code with the code you copied.
6. Save it as tradingranchtime, then click Add to chart. Its chart label is TRT.
7. Leave enough empty space on the right of your chart for all three groups.
   Drag the chart left or increase its right margin if the groups are off-screen.

You only need to install one code file. TRT.pine and TRT-COPY-PASTE.txt contain
exactly the same source. The TXT copy is included for easy opening and copying.

DEFAULT SETTINGS

Chart timeframe:                5 minutes
15-minute group:                Timeframe 15 / Label 15m / Candles 15
1-hour group:                   Timeframe 60 / Label 1H / Candles 5
Daily group:                    Timeframe D / Label D / Candles 1
Project candles to right:       On
Right-side gap:                 12
Body width:                     2
Gap between candles:            1
Gap between groups:             5

Open TRT's settings to change these. If you change a group's timeframe, update
its label too; the labels are editable text and do not rename automatically.

READING THE DISPLAY

Each group runs from oldest on the left to newest on the right. The rightmost
candle is the active candle. The daily candle follows the symbol's TradingView
daily session; it is not necessarily a midnight-to-midnight local-time candle.

The right-side placement is display space, not a forecast. These are candles
from the chart's symbol. TRT supplies visual context and has no built-in entry
signals, trade execution or custom alerts.

LIVE AND HISTORICAL BEHAVIOR

An unfinished candle can change color, body and wick until it closes.
This saved version uses completed higher-timeframe candle shapes when loading
historical bars (lookahead_on). Historical/replay views can therefore show
information that was not available at that moment live. Do not use this version
as a non-repainting signal record or as evidence of historical trade results.

QUICK FIXES

Candles missing off the right edge:
Leave more empty space to the right. The default layout spans about 82 chart-bar
positions beyond the latest bar. Reduce candle counts or spacing for a tighter
layout. Increasing Right-side gap pushes the groups farther right.

Candles covering price:
Turn on Project candles to right, then leave enough chart space for the groups.

Timeframe warning or missing candle history:
Use a 5-minute chart with the default groups. In general, keep the chart
timeframe at or below the smallest selected group timeframe. Enough chart
history must be loaded to fill each group.

Paste/compile error:
Make sure you created a new indicator and replaced all of its starter code.
Copy the code file only, with //@version=6 on the first line. Do not include
Discord formatting marks or these instructions.

OFFICIAL TRADINGVIEW HELP

Creating a script:
https://www.tradingview.com/support/solutions/43000711497-how-to-create-new-script/

Saving and adding an indicator to a chart:
https://www.tradingview.com/pine-script-docs/primer/first-indicator/

Historical lookahead behavior:
https://www.tradingview.com/pine-script-docs/concepts/other-timeframes-and-data/
