Skip to content

Swing Indicator Price Breakout

Swing Indicator Price Breakout

Overview

Trades the break of the last swing - the price closing beyond the high or low the market last turned from, taken as the start of a new leg.

How it trades

  1. A close above the last swing high (strength Swing strength) is a long, below the last swing low a short.
  2. Optional: a buffer, a trend filter (EMA).
  3. The stop can trail to the last swing (Trail stop in Mode = Strategy, Swing trail offset).

Parameters

Parameter Default What it does
Signal bar offset (bars) 0 Which bar the breakout is looked for on: 0 = the last closed bar; 2 = the one two bars before it.
Swing strength (bars) 5 How many bars on each side a swing high must stand above (a swing low below) to count. 5; more gives fewer, bigger swings.
Swing source High low High/Low: the classic swings of the bars' highs and lows. Close: swings of the closes only - a wick past a level does not make a swing.
Breakout buffer (ticks) 0 How far beyond the swing the close must be to count as a breakout. 0 = any close beyond it.
Trend filter With trend The breakout's close against an EMA. With trend: long breakouts above it, short breakouts below. Reversal: the other way round. Off: no filter.
Trend EMA period 50 The period of the EMA the trend filter reads.
Swing trail offset (ticks) 0 With the Trail stop group's Mode = Strategy the stop follows the last swing low (a long) or high (a short); it sits this many ticks beyond it. 0 = right at the swing.

Core settings

Order handling, position size, stops and targets, trade management, trading hours, account limits and the ML Engine are core settings - the same in every strategy. Hover a group or a core term for a short explanation.

Core defaults

This strategy starts with these core settings; change any of them in its settings.

Group Setting Default
NinjaTrader Calculate On each tick
Quantity Quantity 1
General properties Stop loss On
Stop loss Mode Ticks
Stop loss Ticks 120
General properties Profit target On
Profit target Mode Ticks
Profit target Ticks 120
General properties Breakeven On
Breakeven Mode Ticks
Breakeven Trigger (ticks) 40
Breakeven Offset (ticks) 1
Breakeven Plus Off
Breakeven Plus trigger (ticks) 100
Breakeven Plus offset (ticks) 10
General properties Trail stop On
Trail stop Mode Strategy
Trail stop Trigger (ticks) 0
Trail stop Only in profit Off
Money management (off) Daily loss 500
Money management (off) Daily profit 500
General properties Days of Week On
Subsessions (off) S1 Start 09:30
Subsessions (off) S1 End 12:00
Subsessions (off) S2 Start 09:30
Subsessions (off) S2 End 12:00
Subsessions (off) S3 Start 13:00
Subsessions (off) S3 End 14:00
NinjaTrader Exit on session close On
NinjaTrader Exit on session close (s) 660

Version history

v.3.1.0.0 - October 2026

  • Changed: the signal follows NinjaTrader's Calculate setting - On each tick by default, so it is taken inside the bar, the moment it appears.
Earlier versions

v.3.0.0.0 - October 2026

  • Rebuilt on the Strategy Core: orders, sizing, stops and targets, trade management, sessions, limits and the ML Engine are core settings.
  • Added: Swing source, breakout buffer, trend filter, swing trail.

v.2.1.0.0 - May 25, 2026

  • Direction forecast: added COT (Commitment of Traders) features.
  • Added contract quantity forecast module.

v.2.0.0.0 - Mar 9, 2026

  • ML Engine filter feature added.

v.1.1.0.1 - Oct 26, 2025

  • Trading hours and days logic updated — if all sessions are disabled, the strategy now runs without time restrictions instead of stopping trading.

v.1.1.0.0 - May 27, 2025

  • Added ROI function for trade exit.
  • Added session end position closing function.
  • Added descriptive names to exit orders for better understanding of position closure conditions.
  • Sorted properties.

v.1.0.1.1 - July 30, 2024

  • Improved functions to raise position after connection loss.
  • Added new optional swing trailing function.
  • Added new parameter swing strength.

v.1.0.1.0 - Mar 14, 2024

  • Improved conditions for closing a position when the daily loss or profit is reached.
  • Changed parameter determining the priority of strategy position or account position.
  • Fixed the problem of strategy transition to the next state while placing an entry order.

v.1.0.0.9 - Dec 24, 2023

  • Improved conditions for partial fulfillment of orders.
  • Improved the function of raising the position after connection loss.

v.1.0.0.8 - Dec 1, 2023

  • Improved conditions for partial fulfillment of orders.
  • Improved the function of raising the position after connection loss.
  • Added functions for order execution log.

v.1.0.0.7 - Nov 12, 2023

  • Improved trading session time.
  • Improved the function of raising the position after connection loss.

v.1.0.0.6 - Sep 29, 2023

  • Improved the function of raising the position after connection loss.

v.1.0.0.5 - Sep 4, 2023

  • Added functions to raise position after connection loss.
  • Updated the manual for the bot.
  • Daily profit and drawdown functions can be used in backtest.
  • Added parameter for additional trading time.