Strategy · Pine Script v6 · On the chart

BTC 4h FVG/iFVG Automated Strategy

by Minara-AI

This strategy is titled for Bitcoin on the four-hour chart and is set to draw on the price chart.

View on GitHub

GitHub stars12on the repository
Pine versionv6current
Lines of code176
Settings8inputs
LicenceNone stated
Last update4 months ago11 Jun 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

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.

Details

Published by

Minara-AI on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Trend, Volatility & bands

Markets

Crypto

Timeframes

H4 and above

Risk Notes

  • The strategy enters trades without a stop loss

Settings

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

SettingTypeDefaultVariable
Risk per trade (%)float1.0riskPercent
ATR stop multiplierfloat1.75atrMultiplierSL
ATR periodint14atrLength
FVG lookback (bars)int20fvgLookback
CE proximity tolerance (%)float15.0ceProximity
Enable multi-timeframe trend filterbooltrueuseTrendFilter
Long term EMA period (Weekly)int50emaLong
Medium term EMA period (Daily)int20emaMedium
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

57 stars

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

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure MACD 4H + Trailing

Hedge Fund SMC Strategy - QuantAlgo

by thesenegalesehitch
4 stars

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

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · Custom licence GitHub repository of Hedge Fund SMC Strategy - QuantAlgo

Estimations-10min

by IAMATOMIC001
3 stars

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

Strategy v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of Estimations-10min

SMC Major Pairs Strategy

by middlechild0
2 stars

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

Strategy v6 SMC / ICT / price actionTrend
Updated 5 months ago · None stated GitHub repository of SMC Major Pairs Strategy

Startegy

by orenkats
2 stars

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

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Startegy

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