Strategy · Pine Script v6 · On the chart

Dskyz Adaptive Futures Elite (DAFE)

by mushroom-men-Trading

Dskyz Adaptive Futures Elite (DAFE) is an automated strategy designed for intraday trading.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code390
Settings29inputs
LicenceNone stated
Last update9 months ago25 Jan 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

Dskyz Adaptive Futures Elite (DAFE) generates long and short entries by pairing fast and slow moving average crossovers with candlestick pattern detection, filtered by RSI, volume, volatility, and a higher-timeframe trend filter. Trades are restricted to configurable trading hours and can optionally scale in using dollar-cost averaging (DCA). Exits are managed using ATR-based profit targets, fixed stop losses, and trailing stops. Visual markers display directly on the price chart.

Details

Published by

mushroom-men-Trading on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Moving averages, Candlestick patterns, Trend, Sessions & time

Markets

Any symbol

Timeframes

M1-M5, M15-H1

Risk Notes

  • The strategy can add several entries in the same direction

Settings

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

SettingTypeDefaultVariable
[MA] Fast MA Lengthint9fastLength
[MA] Slow MA Lengthint19slowLength
[RSI Settings] Use RSI FilterboolfalseuseRSI
RSI Lengthint14rsiLength
RSI Overboughtint60rsiOverbought
RSI Oversoldint40rsiOversold
RSI Lookbackint1rsiLookback
[Pattern Settings] Use Candlestick PatternsbooltrueusePatterns
Pattern Lookback Barsint19patternLookback
[Filter Settings] Use 15m Trend FilterbooltrueuseTrendFilter
Minimum Volumeint10minVolume
Volatility Threshold (%)float1.0volatilityThreshold
Show all 29 settings
SettingTypeDefaultVariable
Trading Start Hour (24h)int9tradingStartHour
Trading End Hour (24h)int16tradingEndHour
[DCA Settings] Use DCAboolfalseuseDCA
Max Total Entries per Directionint4maxTotalEntries
DCA ATR Multiplierfloat1.0dcaMultiplier
[Signal Settings] Signal PrioritystringMAsignalPriority
Min Bars Between Signalsint5minBarsBetweenSignals
Plot ModestringPotential SignalsplotMode
[Exit Settings] Trailing Stop Offset ATR Multiplierfloat0.5trailOffset
Trailing Stop Points ATR Multiplierfloat0.5trailPointsMult
Profit Target ATR Multiplierfloat1.2profitTargetATRMult
Fixed Stop Multiplierfloat1.3fixedStopMultiplier
[General Settings] Enable Debug LoggingbooltruedebugLogging
Trade Quantityint2fixedQuantity
Cooldown Minutesint0cooldownMinutes
Use Dynamic ATRbooltrueuseDynamicATR
ATR Period (if not using dynamic)int7userATRPeriod
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

Pin Bar Magic v1

by Alorse
330 stars

This strategy trades price action pin bar patterns aligned with moving average trend alignment on the main price chart. It defines uptrends or downtrends using a fan arrangement of three moving averages (6 EMA, 18 EMA, and 50 SMA). Entry conditions require a b

Strategy v4 Candlestick patternsTrend
Updated 2 months ago · None stated GitHub repository of Pin Bar Magic v1
257 stars

Donald - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald - Test Logic Futures
106 stars

This strategy trades the three-candle strike pattern filtered by trend direction and time sessions. It calculates market regime using linear regression and exponential or smoothed moving averages to distinguish between ranging and trending conditions. Risk man

Strategy v5 Candlestick patternsTrend
Updated 2 years ago · GPL-3.0 GitHub repository of 3 Candle Strike Strategy

DI Engulfing A002

by ruckard
13 stars

This strategy executes trades based on candlestick engulfing patterns aligned with a 200-period exponential moving average trend filter. It enters long positions when a bullish engulfing candle follows three consecutive bearish candles while price trades above

Strategy v5 Candlestick patternsTrend
Updated 1 year ago · None stated GitHub repository of DI Engulfing A002

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