
Advanced Second Entry has always been a NinjaTrader 8 indicator. It tracks alternating up/down price legs, watches for a breakout attempt, and flags the classic second-attempt breakout — the “2nd entry” setup — once the leg structure confirms it’s real rather than noise.
That same detection logic is now available natively on TradingView, rebuilt from the ground up in Pine Script v6 as a faithful line-by-line port of the NT8 C# source. It’s free, open source, and installs in about a minute.
Short version: same core algorithm as the NinjaTrader 8 indicator, verified line-by-line against the original C# source, rebuilt natively for Pine rather than emulated. TradingView-appropriate visuals and inputs replace NT8-specific UI — no licensing screen, no NT8 sound picker.
Because it’s open source, there’s no marketplace listing to wait on and nothing to purchase. Installing it is three steps:

The core concept is unchanged from the NT8 version: the indicator maintains alternating up-leg/down-leg state, incrementing an entry counter each time price breaks the prior bar’s high (for longs) or low (for shorts) by a configurable tick offset. A leg’s count resets to 1 whenever price takes out that leg’s pivot extreme, so the counter only escalates within a genuine, unbroken structure — not random back-and-forth noise.
Once a 2nd-entry signal prints, optional HL / LH markers (Higher Low / Lower High) appear after price pulls back and resumes in the setup’s favor — a secondary confirmation that the structure is holding.
Show Projection Lines draws live Entry, Stop, and Target lines projecting forward from an active pending second-entry setup, so you can see the trade plan before it triggers. Target (Ticks) sets the distance from entry to the target line, and Projection Bars Forward controls how far the lines extend ahead of price.
An optional EMA overlay with configurable length adds trend-bias context alongside the entry signals, and Alerts Enabled fires a standard TradingView alert once per bar close when a signal prints — long #n or short #n.
Every input above is exposed through TradingView’s native Settings and Style panels — no separate config screen to learn. Label placement, offsets, and background opacity are independently adjustable for entry labels and HL/LH markers, and color controls cover long/short signal color, label background, HL/LH background, the EMA, and each projection line.


One thing worth calling out: Swap Label Placement flips entry-signal labels to the opposite side of the bar and flips the arrow direction to match, for traders who prefer labels sitting away from price action rather than hugging it.
This isn’t an emulation layered on top of Pine — it’s a native rebuild, verified line-by-line against the NT8 C# source so the detection logic matches exactly. The differences are limited to platform-specific UI that doesn’t have a Pine equivalent:
Every signal-detection input, confirmation marker, projection line, and color control from the NT8 indicator carries over.
The full Pine Script v6 source is published by Price Action Tools and free to use: