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 strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
272 lines of Pine Script v5 from Tradingview/psychological-levels-v4.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
A rounding value sets the level spacing, and each level type can be toggled with its own color, line style, and width. Buy and sell volume thresholds, a price offset, and an optional delay between signals shape when entries are considered. An optional moving-average filter supports several average types and a separate timeframe. Targets and stop losses are enabled by default and can be expressed as a price distance or a percent, with optional entry and position lines.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Rounding Value
float
0.1
rounding_value
Sell Volume <
int
7500
sell_volume
Buy Volume >
int
7500
buy_volume
Price Offset
float
0.0021
price_offset
Delay Between Signals
bool
true
use_signal_delay
int
10
signal_delay
MA Filter
bool
true
show_ma
int
50
ma_length
string
EMA
ma_type
timeframe
ma_tf
Quarter Levels
bool
true
use_qtr_levels
css_qtr
color
color.new(color.yellow,70)
css_qtr
Show all 40 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
0.02
tp_amount
tp_type
string
Price
tp_type
Stop Loss
bool
true
use_sl
sl_amount
float
0.02
sl_amount
sl_type
string
Price
sl_type
Position Lines to Show
string
Current & Past
line_showing
Entry Line
bool
true
use_entryline
css_entryline
color
color.blue
css_entryline
style_entryline
string
Dotted
style_entryline
width_entryline
int
1
width_entryline
Target Line
bool
true
use_targetline
css_targetline
color
color.green
css_targetline
style_targetline
string
Dotted
style_targetline
width_targetline
int
1
width_targetline
Stop Line
bool
true
use_stopline
css_stopline
color
color.red
css_stopline
style_stopline
string
Dotted
style_stopline
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 overlay strategy is built for ES futures on the one-minute chart. It plots a volume-weighted moving average of price opens and standard-deviation bands at Fibonacci ratios, plus a second longer volume-weighted average from a higher-timeframe open. Call an
This strategy combines volume surge detection, Fibonacci retracements, moving averages, and ATR volatility for trade execution. Long positions trigger when price exceeds the 0.618 Fibonacci level, price stays above a 200-period SMA, a fast EMA crosses above a
The VWAP EMA Trend Continuation strategy plots VWAP and multiple EMAs on the price chart. It generates long signals on fast EMA crossover with VWAP or price crossover with both when in uptrend with volume filter and slope confirmation. Short signals mirror for
This strategy plots a volume-weighted average price, Bollinger Bands built on that VWAP, a 200-period simple moving average, and Fibonacci pivot levels in a separate pane. It opens a long position when VWAP crosses above the band basis and the close is at or a
Omar Edited WF is a trading strategy overlay built around Williams Fractals and multiple Exponential Moving Averages. It detects high and low fractal pivot points over configurable lookback periods alongside three adjustable EMA trendlines. Long entries are ma
This strategy enters long when a faster moving average crosses above a slower one and short when it crosses below, unless long-only mode is on. An optional volume filter requires volume above a 20-bar average times a multiplier. Exits use a percentage stop los