Strategy · Pine Script v5 · On the chart

Donald - AI Futures 5M 15M Timeframe

by dearvn

Donald - AI Futures 5M 15M Timeframe is an overlay trading strategy designed for intraday futures trading.

View on GitHub

Repaints

GitHub stars257on the repository
Pine versionv5runs as is
Lines of code645
Settings40inputs
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

Donald - AI Futures 5M 15M Timeframe utilizes rational quadratic kernel regression to construct dynamic momentum zones and smoothed price boundaries on the main price chart. The strategy generates entry signals based on kernel zone crosses, volume filters, and optional Fair Value Gap (FVG) detections during specified trading sessions. Exit management includes optional percentage-based trailing stops. Note that kernel regression calculations cause historical signals to repaint.

Details

Published by

dearvn on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Trend, Oscillators & momentum, AI / machine learning

Markets

Indices, Oil & commodities

Timeframes

M15-H1

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)
  • The strategy enters trades without a stop loss

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
Show SignalsbooltrueshowSignals
Factor VolumeboolfalsefactorVolume
Zone Inside Lengthint50zoneLengths
Zone Outside Lengthint75zoneOutsideLengths
Smoothing lengthint14smoothingLength
Lookback Windowint8lookbackWindow
Relative Weightingfloat8.relativeWeighting
Start Regression at Barint25startBar
Fair Value Gap Width Filterfloat.5fvgTH
Bullish, Imbalancecolorcolor.new(#089981, 55)fvgBC
Mitigationcolorcolor.new(#787b86, 77)fvgAC
Bearish, Imbalancecolorcolor.new(#f23645, 55)fvgSC
Show all 40 settings
SettingTypeDefaultVariable
Mitigationcolorcolor.new(#787b86, 77)fvgFC
Display Percentage of MitigationbooltruefvgPR
Historical Fair Value GapsbooltruefvgVF
From Monthint1fromMonth
Dayint1fromDay
Yearint2018fromYear
To Monthint1thruMonth
Dayint1thruDay
Yearint2300thruYear
Position Entry Windowsession0730-1430tradeTimes
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
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
43 stars

Donald - AI Futures is a price-chart strategy that estimates inner and outer high-low zones and a smoothed close with rational quadratic kernel regression. It builds bullish and bearish momentum signals, optionally compares volume with a volume-weighted moving

Strategy v5 Oscillators & momentumSMC / ICT / price action Repaints
Updated 2 years ago · None stated GitHub repository of Donald - AI Futures
330 stars

2 EMA/SMA + RSI Strategy [Alorse] combines three configurable moving averages with a short-period Relative Strength Index filter. It plots fast, slow, and trend moving averages on the price chart. Long entries trigger when the fast moving average is above the

Strategy v4 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of 2 EMA/SMA + RSI Strategy [Alorse]

Acrypto - Weighted Strategy

by AlbertoCuadra
318 stars

This strategy plots on the price chart and opens long or short positions when a weighted score from MACD, Stochastic RSI, RSI, Supertrend and a moving-average crossover exceeds a user-set trigger. Each component has its own weight and candle delay. Entries can

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · Custom licence GitHub repository of Acrypto - Weighted Strategy
285 stars

Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish

Strategy v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Strategy
218 stars

This strategy generates trading signals based on a selectable momentum engine, supporting MACD, RSI, Stochastic, or Rate of Change. Entries trigger on signal crosses, zero-line crosses, or threshold crosses, with an optional moving average trend filter. Risk m

Strategy v6 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Momentum Strategy Template

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