The Strat [LuxAlgo]

LuxAlgo Wizard 업데이트됨   
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.


  • 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.


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

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

    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

    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)

    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.
릴리즈 노트:
Fixed execution error when setting an alert with the dashboard enabled.

Get access to our exclusive tools:

Join our 150k+ community:

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.


이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?