New AI Backtesting Assistant Launch!

The Strat

Mar 3, 2023
Static chart image
Signals
Candlestick
Patterns

Works on the Following Platforms

tradingviewSymbolTradingView
For free use on the TradingView platform
ninjatraderNinjaTrader
For free use on the NinjaTrader platform
metatrader4MetaTrader 4
For free use on the MetaTrader 4 platform
metatrader5MetaTrader 5
For free use on the MetaTrader 5 platform
thinkorswimThinkorswim
For free use on the Thinkorswim platform

The Strat indicator is a full toolkit regarding most of the concepts within "The Strat" methodology with features such as candle numbering, pivot machine gun (PMG) highlighting, custom combo highlighting, and various statistics included.

Alerts are also included for the detection of specific candle numbers, custom combos, and PMGs.

SETTINGS

  • Show Numbers on Chart: Shows candle numbering on the chart.
  • Style Candles: Style candles based on the detected number. Only effective on non-line charts and if the script is brought to the front.

Custom Combo Search

  • Combo: User defined combo to be searched by the script. Combos can be composed of any series of numbers including (1, 2, -2, 3), e.g : 2-21. No spaces or other characters should be used.

Pivot Machine Gun

  • Show Labels: Highlight detected PMGs with a label.
  • Min Sequence Length: Minimum sequence length of consecutive higher lows/lower highs required to detect a PMG.
  • Min Breaks: Minimum amount of broken previous highs/lows required to detect a PMG.
  • Show Levels: Show levels of the broken highs/lows.

Pivot Combos

  • Pivot Lookback: Lookback period used for detecting pivot points.
  • Right Bars Scan: Number of bars scanned to the right side of a detected pivot.
  • Left Bars Scan: Number of bars scanned to the left side of a detected pivot.

Dashboard

  • Show Dashboard: Displays statistics dashboard on chart.
  • Numbers Counter: Displays the numbers counter section on the dashboard.
  • Pivot Combos: Displays pivots combo section on the dashboard.
  • %: Display the percentage of detected pivot combos on the dashboard instead of absolute numbers.
  • Pivot Combos Rows: Number of rows displayed by the "Pivots Combo" dashboard section.
  • Show MTF: Showa MTF candle numbering on the dashboard.
  • Location: Location of the dashboard on the chart.
  • Size: Size of the displayed dashboard.

USAGE

indicator image

This script allows users with an understanding of The Strat to quickly highlight elements such as candle numbers, pivot machine guns, and custom combos. The usage for these concepts is given in the sub-sections below.

Candle Numbers

indicator image

The Strat assigns a number to individual candles, this number is determined by the current candle position relative to the precedent candle, these include:

  • Number 1 - Inside bar, occurs when the previous candle range engulfs the current one.
  • Number 2 Up - Upside Directional Bar, occurs when the current price high breaks the previous high while the current low is lower than the previous high.
  • Number 2 Down - Downside Directional Bar, occurs when the current price low breaks the previous low while the current high is higher than the previous low.
  • Number 3 - Outside bar, occurs when the current candle range engulfs the previous one.

The script can highlight the number of a candle by using labels but can also style candles by depending on the candle number. Inside bars (1) only have their candle wick highlighted, directional bars (2) (-2) only have their candle body highlighted. Outside bars have their candle range highlighted.

Note that downside directional bars are highlighted with the number -2.

Users can see the total amount of times a specific candle number is detected on the historical data on the dashboard available within the settings, as well as the number of times a candle number is detected relative to the total amount of detected candle numbers expressed as a percentage.

It is also possible to see the current candle numbers returned by multiple timeframes on the dashboard.

Searching For Custom Combos

indicator image

Combos are made of a sequence of two or more candle numbers. These combos can highlight multiple reversals/continuation scenarios. Various common combos are documented by The Strat community.

This script allows users to search for custom combos by entering them on the Combo user setting field.

When a user combo is found, it is highlighted on the chart as a box highlighting the combo range.

Pivot Combos

indicator image

It can be of interest to a user to display the combo associated with a pivot high/low. This script will highlight the location of pivot points on the chart and display its associated combo by default. These are based on the Pivot Combo lookback and not displayed in real-time.

Users can see on the dashboard the combos associated with a pivot high/low, these are ranked by frequency.

Pivot Machine Gun (PMG)

indicator image

Pivot Machine Guns (PMG)s describe the scenario where a single price variation breaks the value of multiple past successive higher lows/lower highs. This can highlight a self-exciting behavior, where even more past successive higher lows/lower highs get broken.

Users can select the minimum sequence length of successive higher lows/lower highs required for a PMG to be detected, as well the amount of these successive higher lows/lower highs that must be broken.

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.