Three Drive Pattern Detector
Aug 6, 2024

The Three Drives Pattern Detector indicator is a powerful trading tool designed to help traders identify and display the completion of Three Drives patterns on their trading charts. Known for its harmonic structure, this pattern is identifiable by a sequence of higher highs and lower lows adhering to specific proportional ratios. The detector employs a dynamic multi-length swing detection methodology, alongside adjustable ratios, ensuring traders can spot a maximum number of these distinctive patterns.
How to Trade the Three Drives Pattern Indicator?
In trading circles, the bullish or bearish Three Drives pattern is viewed as a potential reversal signal. It consists of three main moves or "drives" and two intermediate pullbacks which form consistent higher lows in a bullish scenario or lower highs in a bearish scenario. These patterns can be identified using our innovative swing detection approach that captures both short-term and longer-term patterns in one glance, significantly increasing the number of patterns visible to traders.
The indicator allows users to tweak settings such as the Minimum Swing length and Maximum Swing length, enabling them to define the swing point detection range. Adjusting these values allows users to filter for either short-term patterns or more long-term formations, depending on their trading strategy.
Another interesting feature is the possibility of encountering multiple dashed lines on the chart as the final segment. This denotes overlapping Three Drives patterns with shared swing points, distinguished by the concluding segment.
Understanding Retracement and Extension Ratios
The Three Drives pattern often aligns with specific Fibonacci levels, particularly 0.618 retracement and 1.272 extension ratios. Some sources recommend extending these boundaries to 0.786/1.618, encapsulating a retracement within the 0.618 to 0.786 span and extensions between 1.272 and 1.618.
Due to the rarity of finding a pattern that perfectly matches these ratios, the indicator offers adjustable settings, providing flexibility in pattern detection. Trades can become more frequent though less precise or remain limited but highly valid, depending on the chosen ratios.
For example, opting for "Ratios With Margin" displays possible reversal areas with flexibility, whereas "Ratios" isolates the most ideal reversal level. Traders may find that adjusting these ratios increases trading opportunities, even when patterns detected are less valid technically.
Smart Trading Techniques
While the indicator does not provide Stop Loss or Take Profit (TP) levels, traders often utilize the 1.618 Fibonacci Extension of the last drive as a strategic stop loss. Common TP engagements include:
- The initial point of the pattern
- Retracement levels (two occurrences)
- The 0.618 retracement mark of the full pattern
For instance, in bullish setups, the price trajectory may achieve all TP levels after a reversal at the pattern's lowest point.
Bearish examples demonstrate a similar TP process, with prices often spiking near SL levels before settling and reaching all logic-based profit points.
These cases assert that integrating additional Fibonacci strategies with the Three Drives pattern can yield effective long-term results.
Advanced Details of the Indicator
Multi-Length Swing Detection: A Comprehensive Approach
The essential feature of this indicator is its multi-length swing detection system. Designed to uncover as many Three Drives patterns as possible, this functionality allows up to 99 different swing length periods to be used for evaluating potential patterns.
By utilizing a broad range of swing settings, traders can detect patterns which may otherwise remain hidden due to limited swing configurations.
Adjustments can be made simply by setting the desired minimum and maximum Swing Length.
In specific scenarios, patterns that use swing lengths from 3 to 100 can be analyzed, facilitating a broad capture of potential drive formations
Note: Always ensure that the Maximum Swing length is greater than or equal to the Minimum Swing Length to prevent configuration errors.
Adjusting Width Margin for Better Pattern Recognition
The width margin filter assists users in refining patterns based on the duration of each segment of the drive pattern. Tighter width percentages lead to more symmetrical, timely segments, whereas broader settings reveal a greater variety of formations.
Retracement and Extension Customization
- "Show Ratios" set to "Ratios" reflects ideal Fibonacci levels, whereas "Ratios With Margin" extends these ranges.
- Hovering over the ratio labels unveils the corresponding upper and lower bounds.
- Dashed lines signal an old pattern, recently adapted with the latest swing data.
Last Pattern Detected: An Easy Reference
The indicator's dashboard conveniently offers the date for the last identified pattern, and if none exist, it will display "None."
Streamlined Calculation with "Calculated Bars"
The "Calculated Bars" function employs Pine Script's innovative calc_bars_count to minimize computation time.
For recent developments, narrowing to only the latest 1000 bars can expedite processes, whereas a "0" setting ensures all historical bars are analyzed.
Key Settings Overview
- Minimum Swing Length: Establishes the lower limit for swing detection.
- Maximum Swing Length: Defines the upper limit for swing evaluation.
- Retracement: Specifies desired retracement ratios.
- Extension: Outlines desired ratio windows for extensions.
- Width Margin: Dictates pattern symmetry.
Tailored Styles and Preferences
- Text Size: Defines the visibility of ratio labels.
- Show Ratios: Controls ratio visualization settings.
Efficient Dashboard Navigation
- Show Dashboard: Toggles visibility of the most recent pattern data.
- Location: Determines dashboard placement on chart.
- Size: Adjusts font size for clarity.
Calculation Enhancements
- Calculated Bars: Reduces data processing overhead for improved script speed.
FAQ
How to access the Three Drives Pattern Detector indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What are ideal width margin settings for balanced pattern detection?
For more symmetrical patterns, a lower width margin percentage is ideal. Conversely, higher percentages capture a broader range of patterns.
Can I use this indicator on all time frames?
Yes, the flexibility in length settings makes it suitable for various time frames.
Trading is risky and many will lose money in connection with trading activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other markets involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools for charting platforms, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content or tool we provide.
Charts used on this site are by TradingView in which the majority of our tools are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com. TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2025 LuxAlgo Global, LLC.