Strategy · Pine Script v5 · On the chart

Donald - AI Futures

by dearvn

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.

View on GitHub

Repaints

GitHub stars43on the repository
Pine versionv5runs as is
Lines of code568
Settings40inputs
LicenceNone stated
Last update2 years ago9 Jun 2024

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 builds bullish and bearish momentum signals, optionally compares volume with a volume-weighted moving average, and filters fair value gaps by width while showing mitigation. Entries are limited to a session window and a previous-day volume threshold, with separate long and short toggles and an optional trailing stop. It recalculates on every tick, so signals can change on the live bar, and no stop loss is attached by default.

Details

Published by

dearvn on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

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

Markets

Crypto

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

binancebinance-futuresbnbc98coinfutures

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 Windowsession0700-1245tradeTimes
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

XAUUSD SMC Bot

by GifariKemal
15 stars

This strategy plots on the XAUUSD price chart and looks for Smart Money Concepts entries on the fifteen-minute timeframe. It scores fair value gaps, order blocks, liquidity sweeps, break of structure, and change of character, plus EMA, RSI, MACD, and higher-ti

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of XAUUSD SMC Bot

Daily Bias + FVG Strategy

by TradersPost
218 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy

ARR VWAP Intraday

by hasnocool
106 stars

This strategy plots VWAP on the price chart and trades only between a start hour and an end hour. It enters long when VWAP is rising and RSI is above a threshold, and short when VWAP is falling and RSI is below a threshold. If the reversal option is on, it clo

Strategy v4 Oscillators & momentumVolume Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of ARR VWAP Intraday
105 stars

This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints
104 stars

This overlay strategy combines a machine-learning distance model with a MACD oscillator to open trades on the price chart. It compares recent history using cosine similarity or Euclidean and Lorentzian distance, then filters direction with selectable moving-av

Strategy v5 AI / machine learningOscillators & momentum
Updated 3 years ago · MIT GitHub repository of MLCEL and MACD Strategy

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