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
BFI Reversal offers balanced or aggressive early-reversal modes and a continuation-breakout mode, with asset profiles for auto, stocks, or crypto. Structure inputs set pivot period, zone width, minimum tests, and setup expiry. Flow inputs require relative volume, activity, size, and delta against score thresholds. Follow-through can demand a VWAP hold, limited retrace, and close location, while footprint confirmation stays optional and off by default. It does not place trades or define stop loss.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Signal Mode
string
Early Reversal Balanced
modePreset
Asset Profile
string
Auto
assetProfileInput
Pivot Period
int
5
prdInput
Max Structure Length
int
200
boLenInput
Zone Width %
float
3.0
zoneWidthPctInput
Minimum Number of Tests
int
2
mintestInput
Cluster Candidate Limit
int
24
clusterCandidateLimitInput
Trigger Lookback Bars
int
3
confirmLookbackInput
Setup Expiry Bars
int
6
setupExpiryBarsInput
Lower Timeframe
timeframe
1
lowerTf
Relative Lookback
int
20
lookback
Min Relative Volume
float
1.50
minRelVolInput
Show all 40 settings
Setting
Type
Default
Variable
Min Relative Activity
float
1.20
minRelActInput
Min Relative AvgSize
float
0.80
minRelSizeInput
Min Absolute Delta %
float
0.05
minDeltaAbsPctInput
Setup Score Threshold
int
4
setupScoreThresholdInput
Confirm Score Threshold
int
3
confirmScoreThresholdInput
Follow-Through Window Bars
int
3
followThroughWindowBarsInput
Follow-Through Score Threshold
int
3
followThroughScoreThresholdInput
Min Close In Range %
float
0.65
minCloseInRangePctInput
Require VWAP Hold
bool
true
requireVwapHoldInput
Event VWAP Start
string
Setup Bar
eventVwapStartInput
Confirm Score Source
string
Setup Score
confirmScoreModeInput
Require Retrace Filter
bool
true
requireRetraceFilterInput
Bull Max Retrace %
float
0.30
bullMaxRetracePctInput
Bear Max Retrace %
float
0.40
bearMaxRetracePctInput
Continuation Retest Width Factor
float
0.50
continuationRetestWidthFactorInput
Require Footprint Confirm
bool
false
requireFootprintConfirmInput
Require Footprint Setup
bool
false
requireFootprintSetupInput
Require Footprint Support Signal
bool
false
requireFootprintSupportSignalInput
Require Reversal Context For Setup
bool
true
requireContextForSetupInput
Use Footprint Delta Improvement
bool
true
useFootprintDeltaImprovementInput
Require Imbalance Stack Confirm
bool
false
requireImbalanceStackConfirmInput
Require POC/VA Confirm
bool
false
requireFootprintStructureConfirmInput
Footprint Trigger Mode
string
POC + VAH/VAL
footprintTriggerModeInput
Footprint Ticks Per Row
int
25
footprintTicksPerRowInput
Footprint Value Area %
int
70
footprintValueAreaPctInput
Footprint Imbalance %
int
300
footprintImbalancePctInput
Min Imbalance Stack
int
2
minImbalanceStackInput
Setup Min Footprint Delta %
float
0.02
footprintSetupMinDeltaPctInput
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 script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu
This indicator identifies and plots price compression zones directly on the price chart using multi-module scoring. It measures ATR compression, ADX chop levels, boundary touches, volume dry-up, and historical pivot levels to identify consolidation areas and s
This indicator plots opening range breakout levels across multiple timeframes, including five, fifteen, thirty, and sixty minutes, directly on the price chart. It also displays the session open and overnight high and low levels. The script calculates an openin
This indicator identifies dynamic support and resistance levels using pivot highs and lows. It plots resistance and support lines directly on the price chart once pivot points are confirmed. Additionally, it calculates a volume oscillator using 9-period and 26
This overlay indicator approximates a Bookmap-style liquidity view from price and volume. It draws heatmap boxes where volume exceeds a rolling average, volume dots above a relative-volume filter, and a smoothed cumulative-delta proxy. Optional signals use abs
This indicator draws a daily-anchored volume-weighted average price on the price chart and marks the first long or short reclaim of that level. A long needs a bar below the average whose high reaches it, a later close above it, and confirmation after at least