Doji Candlestick Pattern Strategy
Daily S&P 500 futures doji setup: 15% body-ratio dojis with close-direction filters; exit longs at RSI 2 above 80 or after 10 bars, timed short exits.
Published · Updated · Methodology: Technical Indicators
Part of: RSI Strategies
- Methodology: Technical Indicators
- Content type: strategy
- Timeframes: Daily
- Markets: S&P 500 futures
Indicators used
- Doji Candlestick Pattern
- RSI 2
Source video
Decoded from: 🧐 Doji Deep Dive: Trade the S&P 500 Like a Pro! 💡 by Ali Casey | StatOasis — watch the original
Key timestamps:
- 0:30 - Doji pattern definition
- 1:20 - Doji pattern measurement function
- 2:10 - Optimization parameters (BLS, position, ratio)
- 3:00 - Short strategy findings (position 1, ratio 15)
- 4:30 - Long strategy findings (position 2, ratio 15)
- 5:10 - Exit strategies for short trades
- 6:50 - Optimized short exit (High lower than previous High)
- 7:30 - Exit strategies for long trades
- 8:50 - Optimized long exit (RSI 2 above 80)
- 9:30 - Combined strategy with 10-bar exit
Strategy overview
A doji is a bar whose open and close sit at effectively the same price, leaving a candle with almost no body — traditionally read as indecision. What makes this entry distinct is that the source video refuses to leave the pattern at that level of description. "Doji Deep Dive: Trade the S&P 500 Like a Pro!", from Ali Casey's StatOasis channel, opens with a definition and then immediately moves to a measurement function: before a doji can be researched, it has to stop being a shape you recognize and become a number you can threshold.
That reframing drives the rest of the video. The pattern is broken into adjustable quantities — how small the body is relative to the bar's full range, and where that body sits inside the range — and those quantities are then swept as optimization parameters rather than assumed. The consequence is that long and short are handled as two separate research questions with their own pattern configurations, not as one symmetric setup traded in both directions. The RSI in this entry sits on the exit side of that structure, not the entry side: a very short-period oscillator deciding when to leave a position that a candlestick event opened, on daily S&P 500 bars.
The usual caution for optimization-driven work applies here as it does anywhere — parameters chosen because they looked best over a specific instrument and a specific history are a hypothesis about the future, not a measurement of it, and the video's own findings are presented for one market on one timeframe. No trade rules or settings were extracted from this video, so this page covers the concept and the research framing the video applies to it rather than a reconstructed rule set.
Topics
doji candlestick pattern · trading strategy · s&p 500 futures strategy · pine script strategy · technical indicators · daily trading strategy · swing trading · price action · tradingview strategy · es futures · candlestick strategy · doji strategy s&p 500 · futures trading strategy
Frequently asked questions
What is a doji candlestick pattern?
A doji is a candle whose close finishes at or very near its open, leaving a minimal body and signalling that neither buyers nor sellers finished the period in control. It is a single-bar pattern, which is why context — where it forms and what follows it — usually matters more than the candle itself.
How do you define a doji objectively enough to backtest it?
By turning the visual description into measurements: how large the body is compared with the bar's total high-to-low range, and where that body is positioned within the range. The source video builds a measurement function for exactly this reason, so the pattern can be tested rather than eyeballed.
Why would a doji strategy use RSI?
In this entry the RSI is not the trade trigger — the candlestick event is. The oscillator appears on the management side, giving a momentum-based condition for closing a position that the pattern opened, which is a common way to pair a one-bar entry signal with an exit that is not itself pattern-dependent.
Are the exact rules and settings for this strategy available here?
No trade rules or parameter settings were extracted from this video, so this page presents the concept and the video's research approach rather than an executable rule set. Strategy Decoder catalogs strategies from video sources and extracts their structure where the source makes it explicit enough to do so.
About this strategy page
This trading strategy was decoded by Strategy Decoder's AI from a public YouTube trading video and turned into a structured, reviewable specification. In the interactive app this page shows the full entry and exit logic, risk management settings, the indicators involved with their parameters, AlgoWizard-compatible logic and a Pine Script export ready for TradingView backtesting — plus an automated backtest verdict when one has been computed for this strategy.
Strategy Decoder catalogs 2,229 decoded strategies. Each one is extracted with confidence scoring, cross-linked to the indicators it uses, and kept up to date as new videos are processed daily. Load this page with JavaScript enabled to use the interactive tools, or start from the strategy explorer to filter by methodology, market and timeframe.
Other versions of this strategy
- Cyclic RSI Indicator — Ali Casey | StatOasis
- RSI - Price Action Trading Strategy — JK Trading
- RSI, MACD, Stochastic Strategy — RSI Pro
- RSI 60/40 Rule — ICFM - Stock Market Institute
- Relative Strength Index (RSI) Indicator — investopedia.com
- Choppiness Index, Relative Strength Index Strategy — Quantified Strategies