Psychological Levels calculates and overlays key rounded price thresholds on the main chart, distinguishing between whole, half, and quarter price levels.
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
365 lines of Pine Script v5 from Tradingview/psychological-levels-v3.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Psychological Levels identifies potential trade setups filtered by defined session time windows, prior-day range conditions, and a configurable moving average filter. The indicator also plots position projection tools including target and stop-loss levels based on percentage, fixed price, or the next psychological level. Users can customize rounding steps, price offsets, time windows, and line visual styles.
Whole, half, and quarter psychological level overlays
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Inverse Signals
bool
false
inverse_settings
Time 1 (EST)
session
1100-1101
volume1_time
Time 2 (EST)
session
1400-1401
volume2_time
Prior Days Range
string
Outside
prev_day_range
MA Filter
bool
true
show_ma
int
50
ma_length
string
EMA
ma_type
timeframe
ma_tf
Rounding Value
float
1000
rounding_value
Price Offset
float
0.0021
price_offset
Quarter Levels
bool
true
use_qtr_levels
css_qtr
color
color.new(color.yellow,70)
css_qtr
Show all 32 settings
Setting
Type
Default
Variable
style_qtr
string
Solid
style_qtr
width_qtr
int
1
width_qtr
Half Levels
bool
true
use_half_levels
css_half
color
color.new(color.yellow,35)
css_half
style_half
string
Solid
style_half
width_half
int
1
width_half
Whole Levels
bool
true
use_whole_levels
css_whole
color
color.yellow
css_whole
style_whole
string
Solid
style_whole
width_whole
int
1
width_whole
Target
bool
true
use_tp
tp_amount
float
1.00
tp_amount
tp_type
string
Percent
tp_type
Stop Loss
bool
true
use_sl
sl_amount
float
1.00
sl_amount
sl_type
string
Percent
sl_type
Position Tool
string
Current & Past
line_showing
Profit
color
color.new(color.green,80)
css_targetline
Loss
color
color.new(color.red,80)
css_stopline
Text
color
color.white
css_toolcolor
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.
The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal
This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l
Edge Atlas draws a right-edge price-level atlas on the price chart. Modules produce day, week, and other period highs, lows, opens, and closes, plus pivot points, Fibonacci levels, support and resistance zones, session ranges, round numbers, and VWAP. A shared
LunarTick Levels plots key daily reference levels and multi-timeframe simple moving averages directly on the price chart. It highlights key price points including the Opening Print, Previous Day High and Low, and Overnight High and Low. Additionally, it projec
This indicator plots price action tools directly on the main price chart. It shades candles according to Internal Bar Strength (IBS) and optional wick-length thresholds to differentiate trend bars from trading ranges. The script tracks session bar counts durin
TradeKit is an all-in-one technical analysis indicator that consolidates multiple chart overlays into a single script on the price chart. It plots up to four customizable moving averages (SMA, EMA, SMMA, WMA, or VWMA), Bollinger Bands, VWAP, and reference leve