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
BTC 4h FVG/iFVG Automated Strategy detects three-candle fair value gaps and inverted gaps, and it defines a check for price near a gap midpoint within a percentage tolerance. An optional filter compares price with a weekly and a daily exponential moving average. Average true range is multiplied to form a stop distance, and a risk-percent input is exposed, but the excerpt ends before entry, exit, or sizing orders are defined.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Risk per trade (%)
float
1.0
riskPercent
ATR stop multiplier
float
1.75
atrMultiplierSL
ATR period
int
14
atrLength
FVG lookback (bars)
int
20
fvgLookback
CE proximity tolerance (%)
float
15.0
ceProximity
Enable multi-timeframe trend filter
bool
true
useTrendFilter
Long term EMA period (Weekly)
int
50
emaLong
Medium term EMA period (Daily)
int
20
emaMedium
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 strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC
This overlay strategy combines EMA trend following with simple Smart Money Concepts filters. It reads H4 and H1 bias, then looks for a liquidity sweep plus a displacement candle in that direction, gated by ADX, ATR, and volume. Entries are allowed only in Lond
This overlay strategy estimates trend with a selectable TEMA, Hull, or ALMA basis and optional higher-timeframe or Heikin Ashi sources. It plots a regression estimator with ATR near and far boundaries, can color bars by trend, and can show order blocks. Entrie
This strategy identifies trend alignments and Smart Money Concept (SMC) setups across major currency pairs and gold. It calculates a customized Q-Trend filter combined with higher-timeframe trend confirmation, liquidity sweep detection, swing points, and fair
This strategy draws on the price chart and sizes positions from account equity, a risk percent, and a leverage multiplier. It tracks long and short stops, pending add-on entries, limit and stop order offsets, and a percentage profit target. Settings change lin
This market structure strategy identifies trading opportunities using Change of Character (CHoCH) gates, liquidity sweeps, and structural breaks. It combines exponential moving averages, RSI, and ATR volatility filters, with optional higher-timeframe trend che