1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Range Filter Buy and Sell 5min calculates a smoothed average range using a sampling period and multiplier, then applies a filter to detect upward and downward trends. Signals trigger on breakouts above the filter when price exceeds the previous bar for long conditions, and similar logic for shorts. It draws colored fills between bands and applies bar colors based on trend direction and position relative to the filter. Main inputs adjust the session hours, backtest date range, price source, whether to use Heiken Ashi candles, sampling period, and range multiplier. It includes a session filter to highlight trading hours but lacks explicit stop loss, take profit, or position sizing rules.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Session Hours
session
0920-1505
sessionHours
---------------- Use Date ----------------
bool
true
useDate
From Month
int
7
FromMonth
From Day
int
25
FromDay
From Year
int
2019
FromYear
To Month
int
1
ToMonth
To Day
int
1
ToDay
To Year
int
9999
ToYear
Source
source
close
sources
Use HA Candles
bool
false
isHA
Sampling Period
int
50
per
Range Multiplier
float
3.0
mult
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 Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,
The indicator detects bullish and bearish Cup and Handle patterns directly on the price chart using pivot points. It integrates a Volatility Matrix based on Bollinger Bands squeezes alongside a 200-period simple moving average trend filter to identify breakdow
This overlay indicator draws trendlines on the price chart and marks breakouts with optional targets. It builds a slope from successive changes in a wick or body source over a user-set period, then extends the line by a selected multiple of the bar interval. P
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high
Sideway Zones Live is an overlay indicator that estimates inner and outer sideways bands from recent highs and lows with a rational quadratic kernel. It tracks swing pivots over a loopback period and counts bars that remain between the outer high and low. Afte
Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin