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 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
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
Fair Value Gap Strategy generates trading signals when price retraces into active gap zones using a customizable entry ratio coefficient. Stop loss levels are placed relative to candles prior to the gap formation, while target exits are set using a fixed risk-to-reward ratio. Key inputs allow customization of gap sensitivity, visible box limits, and entry depth.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Mode
string
Present
i_mode
Show FVGs
bool
true
shwFVG
Balance Price Range
bool
false
i_BPR
range_FVG
float
20
range_FVG
i_FVG
string
FVG
i_FVG
# Visible FVG's
int
5
visBxs
缺口开单位置系数(数值越大价格越保守)
float
0.5
entryRatio
缺口前面第几根k线做止损
int
1
StopLossCandle
盈亏比
float
1.5
profitLossRatio
Bullish FVG
color
color.new(#00e676, 0)
cFVGbl
Break
color
color.new(#808000, 0)
cFVGblBR
Bearish FVG
color
color.new(#ff5252, 0)
cFVGbr
Show all 15 settings
Setting
Type
Default
Variable
Break
color
color.new(#FF0000, 0)
cFVGbrBR
Fibonacci between last:
string
NONE
iFib
Extend lines
bool
false
iExt
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 plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
Gold Scalping BOS & CHoCH is an overlay strategy designed for detecting market structure shifts. It calculates rolling swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH) events. Long signals trigger when bullish BOS and C
P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for
FairValueGap C003 is an overlay strategy that identifies Fair Value Gaps (FVG) and opens trades expecting price to return and fill the gap. It calculates the distance between current price levels and recent gap boundaries to aim for partial or full gap fills.
SMC Strategy is a Pine Script v5 overlay strategy based on smart money concepts. It flags market structure shifts from ten-bar highs and lows, draws bullish and bearish order blocks as rectangles when that option is on, and marks liquidity sweeps with short li
This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt