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
275 lines of Pine Script v5 from Tradingview/bars-move-indicator.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Bars%Move Indicator plots buy and sell signals directly on the price chart and can invert signals for counter-trend entries. Users can filter signals by a specific trading session, alternate consecutive trade directions, and display visual stop-loss and take-profit position boxes or lines calculated by percentage or price.
Bar movement threshold detection by percentage or price
Inverse signal option for mean reversion or trend following
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Buy Signals
bool
true
takeLongs
Buy Movement Bars
int
100
long_minBarsSignal
Movement
string
Percent
long_movementType
long_movementAmount
float
10.00
long_movementAmount
Sell Signals
bool
true
takeShorts
Sell Movement Bars
int
100
short_minBarsSignal
Movement
string
Percent
short_movementType
short_movementAmount
float
-10.00
short_movementAmount
Inverse Signals
bool
true
inverse_settings
Next Trade Cannot Be Same Side
bool
false
long_to_short_lock
use_sess
bool
false
use_sess
Trading Session
session
0900-1600
trading_session
Show all 22 settings
Setting
Type
Default
Variable
Target⠀⠀ ⠀⠀⠀⠀⠀
bool
false
use_tp
tp_amount
float
1.0
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
None
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.
Trend Score History calculates a composite trend metric ranging between -5 and +5 by evaluating session VWAP, EMA alignment, price-volume flow, lower-timeframe Donchian channel breakouts, and Opening Range breakouts. It plots the cumulative score as histogram
This overlay indicator marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c
This indicator identifies standard deviation breakout signals by comparing standard deviation against its simple moving average. A long signal triggers when standard deviation crosses above its moving average during a bullish candle, while a short signal occur
This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi
This indicator calculates and plots session ranges and key breakout levels for DAX futures directly on the price chart. It defines the overnight Globex session, the Frankfurt pre-market range, and the regular trading hours open using European timezone settings
Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA