NinjaTrader 8 indicator, NinjaScript

The trendlines a chartist would draw, and a score on every break

Hand-drawn trendlines are slow, subjective and easy to fool: you draw the line after the fact and then every close near it looks like a break. Apex Break PRO draws the line through consecutive confirmed pivots, waits for a close through it by an ATR margin, and asks four filters whether the break is worth a signal. On NinjaTrader 8, the volume filter reads real contract volume.

  • Resistance and support lines through confirmed pivots, dashed once broken
  • Every BUY and SELL rated by EMA, volume, RSI and ADX on the closed bar
  • ATR stop and three targets with their risk and reward zones
  • Nine alerts, and Signal and TradeDirection series for your strategies

$77one payment, lifetime licence

Get the lifetime licence
Read the user guide (PDF)
Apex Break PRO on an MNQ 1-minute chart in NinjaTrader 8: resistance lines through confirmed pivots, a scored BUY on the breakout close, the entry, stop and three targets with their zones, and the dashboard
  1. Broken resistanceTwo resistance lines through consecutive pivot highs, dashed since the bar that broke them.
  2. BUY, 2 of 3The break scored by the enabled filters: EMA side and RSI agreed, volume was low.
  3. Entry 30777.50The close of the breakout bar; the risk zone below it is shaded red.
  4. Three targetsTP1, TP2 and TP3 at 1:1, 1:2 and 1:3, the reward zone shaded green.
  5. DashboardLast signal, the live state of each filter, the tracked trade.

Why hand-drawn trendlines let you down

A trendline is only as good as the two points it goes through, and by hand you pick them with hindsight. You see the swing, you draw the line, and from then on every candle that pokes through it looks like the breakout you were waiting for. Half of those pokes close back inside the line.

The fix is not a better eye. It is a rule: a pivot counts only after enough bars have closed on its right, a line exists only through two such pivots, and a break counts only when a bar closes beyond the line by more than a margin of the current volatility. Then ask whether the trend, the volume, the momentum and the strength of the move agree.

That is what this indicator does on every bar, on MNQ, ES, CL and every other instrument NinjaTrader charts, and it tells you how many of the filters agreed before you act.

PlatformNinjaTrader 8.1 Desktop, tested on 8.1.8.2
TypeChart indicator, compiled NinjaScript Add-On
SignalsOn closed bars only
InstrumentsFutures, forex, stocks, indices: any NinjaTrader instrument
BarsAny interval; time-based bars recommended
Alerts9 events, Alerts Log, sound and email
SeriesTrendEma, Signal, TradeDirection for your strategies
LicenceLifetime, one NinjaTrader login, all your PCs
Price77 USD, one payment

The user guide is public: every parameter, the dashboard rows and the verification are in it. Read it before you pay.

What you get

Nine things it does that a drawing tool cannot

One indicator on the chart, in the price panel, and the lines redraw themselves as the market makes new pivots.

Pivot trendlines

Every confirmed pivot high extends a resistance line through the previous pivot high, every pivot low a support line. A pivot is confirmed only after the right-hand window of bars has closed, so a line never appears before the market has shown its shape.

Lines that retire honestly

A line stays solid while it is live and turns dashed on the bar that broke it, or once it is older than the extension limit. The oldest are dropped so the chart never fills up.

ATR breakout margin

A close has to clear the line by a multiple of the current ATR before it counts. Wicks through the line and closes a tick beyond it are not breaks.

Four confluence filters

Close on the right side of the trend EMA, volume above a multiple of its average, RSI clear of the boundary, ADX above its threshold. Each one you enable adds a point; you set the minimum.

Star rating on every signal

The label prints the banner, the close and the stars with the fraction, for example three of three. A cooldown stops a second signal of the same side printing right after the first.

ATR stop and three targets

Entry, a stop at a multiple of ATR or a percentage, and TP1, TP2, TP3 at your risk-reward ratios, drawn with the signal. The risk zone is shaded red, the reward zone green, and a reached target is ticked in the dashboard.

Nine alert events

Buy, sell, any signal, resistance break, support break, TP1, TP2, TP3 and stop. They land in the Alerts Log with a sound, and by email through NinjaTrader's Mail share service, with JSON bodies if you want them.

Live filter dashboard

Two columns in the corner you choose: the last signal with its stars, each enabled filter with its current value and a tick or cross, and the tracked trade's entry, stop and targets.

Series for your strategies

TrendEma, Signal (+1, -1, 0) and TradeDirection (+1 long, -1 short, 0 flat) are exposed to NinjaScript strategies and the Market Analyzer, so you can automate or scan on the same values the chart shows.

See it working

A closer look, on real NinjaTrader charts

Every picture below is a NinjaTrader 8 capture with numbered notes added. Nothing on the charts is drawn by hand, and the dashboard sits in the chart margin so no signal is covered. Click any image to enlarge it.

ES 5-minute chart in NinjaTrader 8 with an Apex Break PRO SELL through the support line and a BUY through the resistance line, both rated two of three
  1. SELL, 2 of 3A close below the support line; EMA and RSI agreed, volume did not.
  2. The line it brokeA resistance line through two pivot highs, dashed once the BUY closed above it.
  3. BUY, 2 of 3The rebound through the resistance line, with the risk and reward zones drawn.
  4. TP1 reachedThe first target, ticked in the dashboard on the bar that reached it.
Scored breaks

A break only counts when the filters agree

Two signals on one ES session. Each label carries the star rating and the fraction: how many of the enabled filters agreed with the break. Both had the EMA side and the RSI on their side while volume stayed low, so both print two of three, and the dashboard shows which filter was missing.

The rating is a count of agreement, not a probability of profit. What it gives you is a consistent reason to take the three-of-three breaks seriously and to treat the one-of-three breaks as noise, on every chart, without redrawing anything.

  • EMA side, volume spike, RSI clear of the boundary, ADX strength
  • Minimum confluence score and cooldown in the parameters
  • A disabled filter adds no point and no dashboard row, so ratings stay comparable
The Apex Break PRO dashboard on NinjaTrader 8, captured in the chart margin: signal, filters and trade rows
Live dashboard

The state of every filter, right now

The SIGNAL rows hold the last signal's direction, tagged active or closed, and its star rating with the fraction. The FILTERS rows are live: for each enabled filter its current value and a tick or cross, using the same test the scoring uses, so you can see conditions change since the signal printed.

The TRADE rows hold the tracked trade's entry, stop and three targets, with a check mark on each one reached. A tick records that price traded through the level on the loaded history; there is no spread, commission or slippage in it, and it is not a filled order.

  • Signal: direction, active or closed, stars and fraction
  • Filters: EMA, volume, RSI and ADX with their live value and verdict
  • Trade: entry, stop, TP1 to TP3, ticked when reached
  • Six positions, scaled with your Windows display setting, or hide it
SI silver 30-minute chart in NinjaTrader 8 with an Apex Break PRO live resistance line, a broken support line turned dashed and the SELL that closed through it with its risk and reward zones
  1. Live resistanceSolid while active, through two consecutive confirmed pivot highs.
  2. Broken support, dashedThe support line turned dashed on the bar that closed through it.
  3. SELL 66.125, 2 of 3The close below the support line, rated by the enabled filters.
  4. Reward zoneGreen from the entry to the furthest target; the red zone of the stop above it.
Trendlines by rule

Drawn through confirmed pivots, retired when broken

Every confirmed pivot high extends a resistance line through the previous pivot high, every pivot low a support line. A pivot counts only after its right-hand window of bars has closed, so a line never appears before the market has shown its shape, and it never moves once drawn.

A line stays solid while it is live and turns dashed on the bar that closed through it, then stays for reference until the oldest are dropped. On this silver chart the descending resistance is still live while the flat support below it was broken by the SELL, whose reward zone runs down to the third target.

  • Pivot windows and the maximum line extension are yours to set
  • Lines per side capped, oldest dropped first
  • Broken lines dashed, never deleted behind your back
Any market

The same rules on everything NinjaTrader charts

The calculations are not tied to an instrument. Twelve captures below, all taken on the same afternoon in NinjaTrader 8 on the free simulation feed: index, energy, metal, currency and rate futures, from 1-minute to 30-minute bars, with the defaults on every one.

On a futures chart the volume filter reads real contract volume against its own average, a better input for the same test than the tick volume forex feeds supply.

Apex Break PRO on a MNQ, Micro Nasdaq 100 chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
MNQ, Micro Nasdaq 100Index futures, 1 min
Apex Break PRO on a ES, E-mini S&P 500 chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
ES, E-mini S&P 500Index futures, 5 min
Apex Break PRO on a NQ, E-mini Nasdaq 100 chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
NQ, E-mini Nasdaq 100Index futures, 15 min
Apex Break PRO on a MES, Micro S&P 500 chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
MES, Micro S&P 500Index futures, 3 min
Apex Break PRO on a YM, E-mini Dow chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
YM, E-mini DowIndex futures, 5 min
Apex Break PRO on a RTY, E-mini Russell 2000 chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
RTY, E-mini Russell 2000Index futures, 15 min
Apex Break PRO on a CL, crude oil chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
CL, crude oilEnergy futures, 5 min
Apex Break PRO on a NG, natural gas chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
NG, natural gasEnergy futures, 15 min
Apex Break PRO on a GC, gold chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
GC, goldMetal futures, 15 min
Apex Break PRO on a SI, silver chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
SI, silverMetal futures, 30 min
Apex Break PRO on a 6E, euro FX chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
6E, euro FXCurrency futures, 30 min
Apex Break PRO on a ZB, 30-year T-bond chart in NinjaTrader 8, with its trendlines, signals, levels and dashboard
ZB, 30-year T-bondRate futures, 15 min
Under the hood

How a break becomes a signal

Five rules, applied in order on every closed bar. Nothing hidden and nothing exotic.

  1. A pivot is confirmed

    A high counts as a pivot only after the right-hand window of bars has closed below it, the left-hand window likewise. Twenty bars each way by default.

  2. A line is drawn

    The new pivot high extends a resistance line through the previous pivot high; a pivot low does the same on the support side. Up to a set number of lines per side stay on the chart.

  3. A close clears the margin

    A bar must close beyond a live line by more than a multiple of the current ATR. Anything less is not a break, and a broken line turns dashed for reference.

  4. The filters vote

    Each enabled filter adds one point: EMA side, volume above its average by a multiple, RSI clear of the boundary, ADX above its threshold. The stars are the score scaled to five.

  5. The cooldown clears

    No signal of the same side within the cooldown window, and the score reaches your minimum. Only then does the label print, the levels draw and the alert fire.

What it does

  • Draws and retires trendlines by a rule you can read, not by eye
  • Marks breaks on closed bars, and leaves them where they were
  • Tells you how many filters agreed, in a rating you can filter on
  • Draws a stop and three targets you can size a position from

What it does not do

  • It does not place orders. It is an indicator, not a strategy or a bot
  • It does not predict price, and the stars are not a probability of profit
  • It does not fix a line the moment a pivot prints: a pivot needs its window, on every platform
  • It does not replace position sizing and a risk limit of your own
Side by side

Trendlines by hand compared with Apex Break PRO

Trendlines by handApex Break PRO
Which pivotsThe ones you noticedEvery confirmed pivot, by a fixed window
When the line appearsAfter you see the swingOn the bar that confirms the second pivot
What counts as a breakAny candle through the lineA close beyond it by an ATR margin
Signal strengthYour gutFour filters, a star rating on the label
Stop and targetsYou work them outATR stop and three targets, zones shaded
Old linesClutter, or deleted by handDashed when broken, dropped when old
For your strategiesNothingTrendEma, Signal and TradeDirection series
AlertsA price alert you set by handNine events, with JSON bodies

How this edition was verified

Two stages, stated separately because they measure different things. The engine that computes everything is the same C# code as the cTrader edition's engine, apart from its namespace line. That engine was replayed on 20,561 EURUSD M5 bars read from the TradingView chart model and compared with a probe copy of the original script: 46 internal series equal on every bar, both trendline collections equal across 1,439,270 field comparisons, and every break, signal, drawn line and label on the same bars. The report is on the cTrader page.

The NinjaTrader host is the second stage. With its diagnostic dump switched on it writes every committed bar with the values it drew, in exactly the columns the reference harness writes; those bars are replayed through the engine outside NinjaTrader, and the two files are diffed value by value. On 5,058 MNQ 1-minute bars all 119 series compared were equal on every bar, the trendline books included, slot by slot.

What that proves: the host feeds the engine exactly one closed bar per chart bar with the right open, high, low, close and volume, never double-feeds or skips a bar, and draws the lines and levels the engine produced. What it does not claim: there is no comparison against the original on futures bars, because TradingView's CME feed and NinjaTrader's feed do not carry the same bars, so no such comparison exists to make. And nothing here says anything about future performance.

NinjaTrader bars compared5,058
Series compared119, both trendline books included
Cells compared601,902
Mismatches0
Engine vs the original20,561 EURUSD M5 bars, 46 series and both line books
ConditionsMNQ 1-minute, NinjaTrader 8.1.8.2, September 2026

The full method, with the columns compared, is in the user guide: User Guide (PDF) and Installation and Quick Start (PDF).

Get the licence

One payment. Lifetime licence.

No subscription and no renewal. Pay once and the indicator stays licensed to your NinjaTrader account, updates included.

Apex Break PRONinjaTrader 8 indicator

$77one payment, lifetime licence

  • A lifetime licence on one NinjaTrader account login, valid on every PC you use it on
  • The compiled NinjaScript Add-On package and all future updates, at no extra cost
  • No machine ID and nothing to activate: log in to NinjaTrader and it runs
  • The two PDFs: installation and quick start, and the full user guide with every parameter
  • Direct support from me, the developer, by email
Pay by cardCard, Apple Pay or Google Pay, through Stripe
Pay with PayPalPayPal balance or card, through PayPal

The licence is issued to your NinjaTrader account through NinjaTrader's Vendor Licensing, by hand, normally within a few hours and always within 24 hours of your form arriving. You get an email with the download link when it is done.

Because a licence cannot be handed back once it is on your account, a sale is final once the licence has been issued. If you paid and the licence has not been issued yet, email me and I will refund you in full. The user guide is public, so you can read exactly what the indicator does before you pay.

The full terms of sale and the privacy notice for buyers are one page each, in plain language.

Trading carries risk of loss. This is an analysis tool, not financial advice, and no indicator can promise a profit.

Questions

Before you buy

Does Apex Break PRO repaint?

Signals, levels and alerts never repaint: they are fixed when the bar closes. A trendline is provisional on the forming bar until it closes, because a pivot's right-hand window includes the bar still forming; that is true of the original as well, and it is stated here rather than hidden.

Which NinjaTrader version do I need?

NinjaTrader 8.1 Desktop for Windows; the build is tested on 8.1.8.2. Any data connection that delivers bars works, including the free simulation connection. No Order Flow+ features, market depth or tick history are needed.

Do I need a funded broker account?

No. NinjaTrader 8 is free to download and use for charting and simulation, with free real-time futures data for the simulator. A live account with a broker of your choice is a separate step that this indicator does not need. NinjaTrader is the platform it runs inside, not a broker.

Is there a machine ID or an activation step?

No. The licence is tied to your NinjaTrader account login through NinjaTrader's Vendor Licensing, not to a PC. Log in on any installation and the indicator runs; a new PC needs no transfer.

How fast do I get the licence?

I issue it by hand in the NinjaTrader Vendor Dashboard. It is normally done within a few hours and always within 24 hours of your form arriving, including weekends.

Is this a subscription?

No. It is one payment of 77 USD for a lifetime licence on one NinjaTrader account, with future updates included.

How much history does it need?

With the defaults the EMA needs 200 bars and every trendline needs a pair of pivots, each confirmed 20 bars after the fact. A few days of 5-minute bars is plenty; set Days to load in the Data Series dialog accordingly.

Can my strategy use its signals?

Yes. The indicator exposes three series to NinjaScript strategies and the Market Analyzer: TrendEma, Signal (+1 on a BUY bar, -1 on a SELL bar, 0 otherwise) and TradeDirection (+1 while a long trade is tracked, -1 for a short, 0 when flat).

Can I get a refund?

Once the licence has been issued the sale is final, because a licence on your account cannot be handed back. That is why the user guide is public: read it first. If you paid and the licence has not been issued yet, email me and I will refund you in full.

Can I move the licence to another NinjaTrader account?

Yes. Email me from the address you bought with and I will move the licence to your new account login.

Is there a version for MetaTrader, cTrader or TradingView?

Yes. The same indicator is on the MQL5 Market for MetaTrader 4 and 5, on the cTrader Store, and as an invite-only script on TradingView. Each platform has its own licence; this page is the NinjaTrader 8 edition.

Will it make me money?

No indicator can promise that, and this one does not. It gives you trendlines drawn by a rule, breaks rated by how many filters agreed, and a stop and targets to plan around. What you do with that, and how you size positions, decides the outcome.

More tools

Other NinjaTrader 8 indicators I publish

Each one is a compiled NinjaScript Add-On, 77 USD once, with its own page, charts and public user guide.

NinjaTrader 8 indicator

Hyper Trend PRO

SuperTrend flips scored out of five by MACD, EMAs, ADX, volume and Hull slope, with a stop, three targets, an EMA cloud and a multi-timeframe dashboard.

$77 one payment, lifetime licence

NinjaTrader 8 indicator

Algo Shadow Matrix

Adaptive Supertrend with a Trend Quality Index for NinjaTrader 8, on the engine verified against the TradingView original.

$77 one payment, lifetime licence

See all NinjaTrader 8 indicators

Put it on your chart today

77 USD once. A lifetime licence on your NinjaTrader account, updates included, and the licence issued within 24 hours.