Swing Breakout Sequence Indicator

NinjaTrader 8 Indicator Published 23 June 2024 - Updated 29 November 2024
FREE

We highly recommend joining our discord community by following this invite link discord-invitation

Description

The NinjaTrader 8 Swing Breakout Sequence indicator is inspired from Stoic Trader's trading model presented by Stoic himself here : Link to youtube video

This indicator implements a high probability entry model with a defined risk reward ratio. This entry model is based on a sequence of 5 swing sequence as illustrated on the image below

sbs-definition
Click to enlarge

The image above represents the long model entry, for the short model entry, it is the inverse of this as we will see later

Examples

Here are few examples of how the indicator works:

  • Detection of entries based on the Swing Breakout Sequence
  • On the below examples, you can see some instances of entry signals both long and short detected on the NQ instrument on the 15 seconds timeframe

    swing-breakout-sequence-1
    Click to enlarge

    On this first example you can see a long Swing Breakout Sequence ending with a confirmed long entry signal with a 1:1 win-loss ratio

    You can aslo see on the left on the beginning of the sequence the potential stop loss level drawn in the color Cyan with a dashed line


    swing-breakout-sequence-2
    Click to enlarge

    This second example illustrates a short entry sequence with a confirmed entry signal drawing a 1:1 winloss ratio


    swing-breakout-sequence-3
    Click to enlarge

    When the market is volatile and chunky the indicator can detect multiple interfering sequences and some of those are losing trades, as shown on the image above

    Features

    The Swing Breakout Sequence indicator has a set of unique features

    • Free. The indicator is completely free to use.
    • Plots Swing Breakout Sequence of all timeframes
    • Highly customizable, lightweight and can be adapted to wide range of instruments
    Parameters

    We always try to keep the parameters to minimum.

    License
    License This is the free license key you get when you create an account on automated-trading.ch. After creating an account, copy your license key from the billing page. You need to set this parameter only once per month, once the license key is validated it will be remembered for the rest of the month.
    Market Structure
    Swing Period Swings are higher lows,higher highs, lower highs and lower lows. After each price bar close, a swing can be detected. But just after that, the next bar can cancel the swing at the previous bar by creating a new swing of the same type. Or this can happen on the second bar, or the third, etc... The swing period sets how many bars is enough to seperate two swings of the same type. The more you increase this parameter, the more you decrease the number of swings overall. The more you decrease this parameter, the more you increase the number of overall swings. I personally use the value of 3 or 4 for this parameter.
    Breakout Swing
    • Prior Swing: This option will make the Swing sequence pattern gets validated and drawn when the price closes above/below the last Higher High/Lower Low that formed right before the 1st swing of the sequence
    • Swing 1: This option will make the Swing sequence pattern gets validated and drawn when the price closes above/below the first swing of the sequence
    • Swing 2: This option will make the Swing sequence pattern gets validated and drawn when the price closes above/below the second swing of the sequence
    • Swing 3: This option will make the Swing sequence pattern gets validated and drawn when the price closes above/below the third swing of the sequence
    • Swing 4: This option will make the Swing sequence pattern gets validated and drawn when the price closes above/below the fourth swing of the sequence
    • Fibonacci Retracement: This option will make the Swing sequence pattern gets validated and drawn when the price closes above/below the Fibonacci retracement level specified by the below Breakout Fibo Level
    Breakout Fibo Level

    This parameter is only used if the Breakout Swing is selected as Fibonacci Retracement

    • 23.60%: This option will make the SBS pattern gets validated and drawn when the price hits the 0.236 Fibo level calculated from Swing4 in the sequence
    • 38.20%: This option will make the SBS pattern gets validated and drawn when the price hits the 0.382 Fibo level calculated from Swing4 in the sequence
    • 61.80%: This option will make the SBS pattern gets validated and drawn when the price hits the 0.618 Fibo level calculated from Swing4 in the sequence
    • 76.40%: This option will make the SBS pattern gets validated and drawn when the price hits the 0.764 Fibo level calculated from Swing4 in the sequence
    • 50%: This option will make the SBS pattern gets validated and drawn when the price hits the 0.5 Fibo level calculated from Swing4 in the sequence
    Quality Filter

    This parameter will allow you to set a filter on the quality of detected SBS based on certain criteria

    • Only High Quality: This option will filter out SBS patterns that doesn't repsect certain ratio rules and will only keep high quality SBS
    • No Filter: This option will deactivate the filter and will show all detected SBS
    Invalidation Method
    • Bar Wick: This option will make an SBS invalid if a bar wick mitigate the prior swing level
    • Bar Close: This option will make an SBS invalid if a its prior swing level is mitigated by a bar close
    Min SBS Bars Count This parameter can be used as a filter to set the minimum number of bars that composes the SBS structure. This can be useful to filter out small SBS structures that don't occupy a sufficient number of bars and are insignificants
    Max SBS Bars Count This parameter can be used to filter out SBS structures that are too big in numbe of bars. In general, SBS strucutres that span on a very big number of bars don't generate profitable signals
    Rendering
    Render Opacity (1-100) The opacity to render objects on the chart. I personally prefer the value of 20 for this parameter
    Prior Level Bearish Color Draw Color of bearish prior level to draw on the chart
    Prior Level Bullish Color Draw Color of bullish prior level to draw on the chart
    Show SBS Prior Swing Levels Enable/Disable drawing of prior higher highs and lower lows of each swing sequence. The color of those levels is fixed to Gold
    Bearish Color Draw Color of bearish items to draw on the chart
    Bullish Color Draw Color of bullish items to draw on the chart
    Show Price Swings Enable/Disable drawing of Swing points on the chart
    Show Sequence Numbers Enable/Disable drawing of numbers labels below/above each swing sequence point
    Show Sequence Lines Enable/Disable drawing of lines connecting the swing sequence points
    Show Signal Arrow Enable/Disable drawing of the arrow on each valid swing sequence breakout
    Show Risk/Reward Enable/Disable drawing of the risk reward tool on each valid swing sequence breakout
    Risk/Reward Ratio When drawing of risk/reward is enabled, the parameter sets the risk reward ratio value
    General
    Play Sound This parameter will enable playing and alert sound when a swing sequence is detected
    Play Sound File This parameter will set the file name to be played on sound alert. This can be set to any .wav file on your computer
    Download & Installation Instructions

    The indicator can be downloaded for free. To download and install the indicator follow the instructions below

    • Click on the below download button to download the Indicator file
    • This file was downloaded 1049 times. Last download was 2 hours ago
    • Import the downloaded .zip file into NinjaTrader using the import NinjaScript menu item
    • how to import add on to NinjaTrader
    • Next, open a new chart window
    • image
    • After installing the indicator and opening a new Chart window you should add the indicator to the chart. Right-click on the chart and click on Indicators...
    • image
    • Copy/Paste your license key that you can find on the Billing page into the license parameter
    • After adding the indicator to the chart, the indiactor will be run on Historical data loaded in the chart.
    • After that, the indicator is added with success and will continue to run on live market data
    Frequantly Asked Questions
    General
    Can I ask you to modify/add a new feature to this Indicator?

    Yes, If you have an idea that you believe can improve this indicator, I will be more then happy to hear from you. Please use the contact page to send me a message

    Will I get the source code of the indicator when I download it?

    No, the source code of the indicator is protected for copyright reasons

    Can this indicator be used in a strategy?

    No, this indicator only do rendering and doesn't provide data that can be used from within a strategy.

    Can I use this indicator without the TickReplay mode enabled?

    Yes you can use this indicator without TickReplay

    Release Notes
    Release 1.7.0.0 - 29 November 2024

    • Drawing of SBS sequence numbers is pixel based. This fixes the issue with numbers drawn far away on instruments like CL (oil)
    • Added new parameters : Invalidation Method, Min SBS Bars Count, Max SBS Bars Count
    • SBS sequences started on invalidated price swing are removed, this allow respecting the swing period

    Release 1.6.0.1 - 06 October 2024

    • Added Brush selection for prior swing levels
    • Stop Loss calculation updated to include Prior Swing, Swing4 and Swing5

    Release 1.6.0.0 - 15 Sep 2024

    • Removed strong condition on Swing5 price. Before this update, Swing5 required to be below/above Swing4. This condition was removed which now means that Swing4 and Swing5 are only required to be successive Swing Lows (for bullish) or Swing Highs (for bearish) regardless of whether Swing5 is higher or lower than Swing4

    Release 1.5.0.0 - 07 Sep 2024

    • Added Quality Filter option

    Release 1.4.0.0 - 30 Auguste 2024

    • Detection Rule less strict for more pattern detection
    • Added Fibonacci Retracement Breakout method

    Release 1.3.0.1 - 30 June 2024

    • Bug Fixed Prior Swing Logic

    Release 1.3.0.0 - 30 June 2024

    • Fixed Null reference exception
    • Added Swing Breakout option parameter

    Release 1.2.0.0 - 27 June 2024

    • Fixed init error with Swing Period param
    • Improving speed by resetting search on new day

    Release 1.1.0.0 - 23 June 2024

    • Added Play sound option

    Release 1.0.0.0 - 23 June 2024

    • First Release of the indicator

    User Comments & Feedback