INVITE-ONLY SCRIPT
Updated

Elite Entries Heikin Doji Sensei

98
Elite Entries — Heikin Doji Sensei (HDS)

What it does:
HDS spots Harami-style Doji and stand-alone Doji inflection bars (optionally on Heikin Ashi data for cleaner structure), then lets you ride the move with a built-in ATR Trailing Stop (TSL). You get clean risk labels at entry, PnL labels on exits (currency), session gating for New York hours, and ready-to-use alerts.

How to use (quick start)

Apply the script to your chart. Works on any symbol/timeframe.

Choose your detection source:

Turn “Use Heikin Ashi Candles for Calculations” ON for smoother doji/harami detection (recommended).

Turn it OFF to detect directly from standard candles.

Turn on the TSL (default ON): HDS will start a trailing stop on the next valid Doji or Harami signal (per your toggles).

Read the labels:

At trail start, a Risk label is printed right at the stop price (no “+” sign).

On trail break, a PnL label prints in green (profit) or red (loss). You control position (above/below), style (label up/down), and offset separately for Long and Short.

Optionally restrict to NY session: enable “NY Session Filter (ET)” for 09:30–16:00 ET (configurable). Signals, trail starts, and TSL break labels will only occur during this session (with optional chart highlight).

Set alerts (see “Alerts” below).

Signals it plots

Bullish Harami / Bearish Harami (Doji inside previous bar with directional context)

Bullish Doji / Bearish Doji (stand-alone dojis with wick symmetry)

You can show text arrows, color “circle” markers, or both.

Gating: once a TSL is active, new signals are suppressed until the trail exits (prevents stacking entries). The only exception is the bar that actually starts the trail.

Trailing Stop (ATR)

Start conditions:

tslOnDojis: start on doji signals

tslOnHarami: start on harami signals

Formula: TSL = close ± ATR(atrLen) * atrMult

Long trail ratchets up but never down; Short trail ratchets down but never up.

Labels & colors:

Risk at start: prints at the stop price (fixed position).

PnL at exit: currency PnL from entry close → exit close.

Color: green if ≥ 0, red if < 0.

Placement (exit labels only): separate controls for Long and Short:

Above/Below candle

Label Up/Down

Offset in multiples of max(ATR, bar range)

Lines: TSL plotted with plot.style_steplinebr (supported).

⚠️ Note: PnL uses the chart’s actual closes (not Heikin “true” prices). If you want fills closer to exchange prices, keep your chart on standard candles while still using HA for detection via the script input.

Price Action (PA) settings

Doji wick % (Doji: Min % of Range for Wicks): increases wick symmetry requirement.

Previous body min size: ensures the lookback bars have meaningful bodies.

Lookback bars (1–3): direction filter—e.g., for a bullish doji, recent bars should be bearish (and sized if you set pipMin).

Show Only Harami-Style Doji’s: hides stand-alone dojis and focuses on inside-bar dojis.

Session filter (New York)

Toggle Enable NY Session Filter (ET)

Hours (default 09:30–16:00 ET) are editable. Handles DST via "America/New_York".

Weekdays only option and background highlight are included.

When enabled, signals, trail starts, and exit labels only print inside session.

Currency & sizing

$ per point:

Default is syminfo.pointvalue (toggle Use syminfo.pointvalue).

If that doesn’t match your instrument, set a Custom $ per 1.00 point and Contracts / Qty.

Currency symbol: customize (e.g., $, €, £).

Label size: Tiny → Huge.

Alerts (ready to add)

Create alerts in TradingView → Alerts → Condition = this indicator, then pick:

HDS: Bullish Doji — Doji buy signal (gated by TSL and session if enabled)

HDS: Bearish Doji — Doji sell signal (gated by TSL and session if enabled)

TSL Break Long — Long trail exit (session-filtered if enabled)

TSL Break Short — Short trail exit (session-filtered if enabled)

Tip: Add a second alert on TSL breaks to automate exits.

Workflow example

Turn HA detection ON, TSL ON, atrLen = 14, atrMult = 1.5–3.0 (volatility dependent).

Enable NY Filter for intraday equities or indices; keep disabled for crypto/FX 24/5.

Wait for a Bullish Doji in a short pullback (per lookback). Trail starts automatically.

Manage from the TSL—no new entries until the trail exits.

Read exit PnL label (green/red) at trail break. Adjust label placement if overlapping bars.

Best practices

Use on liquid markets; raise the doji wick % and min body size to cut noise on lower TFs.

For range days, reduce atrMult or skip trades via NY filter.

Align with HTF trend or a session bias (e.g., only take longs above VWAP).

This is an indicator, not a strategy: forward-test & manage risk.

Inputs cheat sheet

Detection: HA on/off, Doji wick %, Lookback bars, Min body size, Harami-only toggle.

TSL: Enable, Start on Doji/Harami, ATR Len/Mult, Show lines, Show labels.

Labels: Currency symbol, $/point source or custom, Qty, Label size.

PnL exit labels: Independent Long/Short controls for position, style, offset.

NY Session: Enable, hours, weekdays, background highlight.
Release Notes
trading presets added
Release Notes
external filters added

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.