1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
297 lines of Pine Script v5 from Time based level retracement - stats.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Users can configure up to five distinct time sessions alongside specific evaluation windows to measure price retracement targets calculated from open price levels. Input settings allow full customization of open time sessions, evaluation timeframes, target retracement percentages, line styles, and individual visual colors for each defined level.
Tracks price levels across configurable session open times
Calculates percentage retracements for specific time windows
Supports up to five independent configurable time levels
Customizable line styles and visual colors on the main chart
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Open time Level 1
session
0000-0001
open_time_1
Retracement during Level 1
session
0800-1600
ret_time_1
Retracement % Level 1
int
50
ret_pct_1
Retracement % color Level 1
color
color.rgb(98, 1, 255)
ret_pc_col_1
Open time color Level 1
color
color.rgb(98, 1, 255)
open_col_1
Show level 1 plots on the chart
bool
true
show_1
Target retracement line style
string
Dotted
Target retracement line style
Open time Level 2
session
0100-0101
open_time_2
Retracement during Level 2
session
0800-1600
ret_time_2
Retracement % Level 2
int
50
ret_pct_2
Retracement % color Level 2
color
color.rgb(195, 0, 255)
ret_pc_col_2
Open time color Level 2
color
color.rgb(195, 0, 255)
open_col_2
Show all 40 settings
Setting
Type
Default
Variable
Show level 2 plots on the chart
bool
true
show_2
Target retracement line style
string
Dotted
Target retracement line style
Open time Level 3
session
0300-0301
open_time_3
Retracement during Level 3
session
0800-1600
ret_time_3
Retracement % Level 3
int
50
ret_pct_3
Retracement % color Level 3
color
color.rgb(255, 0, 221)
ret_pc_col_3
Open time color Level 3
color
color.rgb(255, 0, 221)
open_col_3
Show level 3 plots on the chart
bool
true
show_3
Target retracement line style
string
Dotted
Target retracement line style
Open time Level 4
session
0400-0401
open_time_4
Retracement during Level 4
session
0800-1600
ret_time_4
Retracement % Level 4
int
50
ret_pct_4
Retracement % color Level 4
color
color.rgb(0, 4, 255)
ret_pc_col_4
Open time color Level 4
color
color.rgb(0, 4, 255)
open_col_4
Show level 4 plots on the chart
bool
true
show_4
Target retracement line style
string
Dotted
Target retracement line style
Open time Level 5
session
0700-0501
open_time_5
Retracement during Level 5
session
0800-1600
ret_time_5
Retracement % Level 5
int
50
ret_pct_5
Retracement % color Level 5
color
color.rgb(0, 183, 255)
ret_pc_col_5
Open time color Level 5
color
color.rgb(0, 183, 255)
open_col_5
Show level 5 plots on the chart
bool
true
show_5
Target retracement line style
string
Dotted
Target retracement line style
Table Position
string
top_center
tablePosition
Text Size
string
small
tableTextSize
Text color
color
color.white
text_color
Border color
color
color.teal
bd_color
Background color
color
color.rgb(40, 40, 40)
bg_color
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-
This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds
This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in
The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh
Indicatorv6SMC / ICT / price actionSessions & time
This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow
This indicator plots reference levels and session markers directly on the price chart. It calculates and draws lines for the daily open, weekly open, monthly open, previous day OHLC, and previous week extremes, along with a selectable day-of-week range and ini