This futures trading strategy combines Fair Value Gap (FVG) detection filtered by Average True Range (ATR) with multi-timeframe Exponential Moving Averages (8, 55, and 165 lengths).
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
Try Trading Future identifies entry setups during a defined intraday trading session window when previous day volume meets required thresholds. The strategy includes customizable trailing percentage stops for long and short positions and plots FVGs and moving averages on the price chart. Note that signal calculations repaint on live bar execution.
Fair Value Gap detection with ATR width filtering
Multi-timeframe Exponential Moving Average filters
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fair Value Gap Width Filter
float
.5
fvgTH
Bullish, Imbalance
color
color.new(#089981, 55)
fvgBC
Mitigation
color
color.new(#787b86, 77)
fvgAC
Bearish, Imbalance
color
color.new(#f23645, 55)
fvgSC
Mitigation
color
color.new(#787b86, 77)
fvgFC
Display Percentage of Mitigation
bool
true
fvgPR
Historical Fair Value Gaps
bool
true
fvgVF
From Month
int
1
fromMonth
Day
int
1
fromDay
Year
int
2018
fromYear
To Month
int
1
thruMonth
Day
int
1
thruDay
Show all 37 settings
Setting
Type
Default
Variable
Year
int
2300
thruYear
Position Entry Window
session
0900-1455
tradeTimes
Previous Day Volume Threshold
int
1000
minPrevDayVolume
Default Contract Quantity
int
1
defaultQty
Close Above 8 EMA within X Bars
int
6
retestBars
Attach Broker Trailing Stop
bool
false
attachTrail
Allow Longs
bool
true
allow_long
Trail Long Loss (%)
float
0.75
longTrailPerc
Trail Long Source
source
high
longTrailSrc
Allow Shorts
bool
false
allow_short
Trail Short Loss (%)
float
1
shortTrailPerc
Trail Short Source
source
low
shortTrailSrc
5m EMA 1 Length
int
8
ema1len
5m EMA 2 Length
int
55
ema2len
15m EMA Length
int
165
ema15len
EMA Source
source
close
src
Show Pivot Points
bool
false
show_pivot_labels
Pivot High
int
10
leftLenH
/
int
10
rightLenH
Pivot High
color
color.black
textColorH
labelColorH
color
color.white
labelColorH
Pivot Low
int
10
leftLenL
/
int
10
rightLenL
Pivot Low
color
color.black
textColorL
labelColorL
color
color.white
labelColorL
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.
Andean Scalping is a Pine Script v5 strategy template designed for backtesting trading signals. It features session and date-range filtering, directional trade toggles for long and short entries, and optional trend filtering tools including higher-timeframe EM
Gold Scalping BOS & CHoCH with MA Filter is a strategy that identifies market structure shifts using Break of Structure (BOS) and Change of Character (CHoCH) signals alongside exponential moving average trend filters. Long trades enter when bullish BOS, bullis
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
This strategy trades Nikkei 225 futures during a configurable overnight session, defaulting to 19:00–03:00 ET. It builds long and short trend conditions from an 8/21 EMA pair and a 200-period SMA, with RSI, momentum, an ATR-scaled breakout range, and a volume
FilledValueGap E002 is a trading strategy that enters positions opposite to the direction of a filled value gap, operating on the premise that the prevailing trend will resume after gap completion. It utilizes Curie closing moving averages as trend filters to
This multi-timeframe scalping strategy plots moving averages alongside Smart Money Concepts elements on the price chart. It calculates trend signals using configurable moving average types like ALMA, Hull MA, or TEMA across alternate timeframes. It also plots