Strategy · Pine Script v5 · On the chart

Try Trading Future

by dearvn

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).

View on GitHub

Repaints

GitHub stars257on the repository
Pine versionv5runs as is
Lines of code516
Settings37inputs
LicenceNone stated
Last update6 weeks ago11 Sep 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

dearvn on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Moving averages, Sessions & time, Trend

Markets

Indices

Timeframes

M1-M5, M15-H1

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Topics

futures-markettradingviewtradovatetrading-futureses1best-indicator-tradingviewnq1trading-futurerus-stock-market

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Fair Value Gap Width Filterfloat.5fvgTH
Bullish, Imbalancecolorcolor.new(#089981, 55)fvgBC
Mitigationcolorcolor.new(#787b86, 77)fvgAC
Bearish, Imbalancecolorcolor.new(#f23645, 55)fvgSC
Mitigationcolorcolor.new(#787b86, 77)fvgFC
Display Percentage of MitigationbooltruefvgPR
Historical Fair Value GapsbooltruefvgVF
From Monthint1fromMonth
Dayint1fromDay
Yearint2018fromYear
To Monthint1thruMonth
Dayint1thruDay
Show all 37 settings
SettingTypeDefaultVariable
Yearint2300thruYear
Position Entry Windowsession0900-1455tradeTimes
Previous Day Volume Thresholdint1000minPrevDayVolume
Default Contract Quantityint1defaultQty
Close Above 8 EMA within X Barsint6retestBars
Attach Broker Trailing StopboolfalseattachTrail
Allow Longsbooltrueallow_long
Trail Long Loss (%)float0.75longTrailPerc
Trail Long SourcesourcehighlongTrailSrc
Allow Shortsboolfalseallow_short
Trail Short Loss (%)float1shortTrailPerc
Trail Short SourcesourcelowshortTrailSrc
5m EMA 1 Lengthint8ema1len
5m EMA 2 Lengthint55ema2len
15m EMA Lengthint165ema15len
EMA Sourcesourceclosesrc
Show Pivot Pointsboolfalseshow_pivot_labels
Pivot Highint10leftLenH
/int10rightLenH
Pivot Highcolorcolor.blacktextColorH
labelColorHcolorcolor.whitelabelColorH
Pivot Lowint10leftLenL
/int10rightLenL
Pivot Lowcolorcolor.blacktextColorL
labelColorLcolorcolor.whitelabelColorL
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.

Similar Pine Scripts

Andean Scalping

by hasnocool
106 stars

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

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Andean Scalping

P404 Smoke

by Musyimi97
16 stars

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

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of P404 Smoke

FilledValueGap E002

by ruckard
13 stars

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

Strategy v5 SMC / ICT / price actionTrend
Updated 1 year ago · None stated GitHub repository of FilledValueGap E002

XXX

by MeridianAlgo
9 stars

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

Strategy v5 TrendMoving averages Repaints
Updated 4 months ago · MIT GitHub repository of XXX

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers