Precision Trend Scalping
Dec 13, 2025

The Precision Trend Scalping indicator is a specialized technical analysis tool designed to identify potential trend reversals on Heikin Ashi charts by detecting high-volume doji formations relative to a long-term moving average.
Usage
The Precision Trend Scalping tool is primarily used for identifying entry points in fast-moving markets. It generates signals based on the confluence of trend direction, candle structure, and volatility:
- Bullish Signals: Represented by a green upward triangle below the bar. These appear when the price is fully above the EMA, following a sequence of flat-top Heikin Ashi candles, and concluding with a large doji candle.
- Bearish Signals: Represented by a red downward triangle above the bar. These appear when the price is fully below the EMA, following a sequence of flat-bottom Heikin Ashi candles, and concluding with a large doji candle.
Users should look for these signals as potential exhaustion points or trend continuations where a high-volume "pause" (the doji) suggests a shift in momentum.
Details
The script utilizes Heikin Ashi price data requested via security functions to analyze candle geometry. It specifically looks for "flat" candles—a hallmark of Heikin Ashi trends—where the absence of a wick indicates strong directional momentum.
The core logic requires a specific sequence:
- Trend Filter: An Exponential Moving Average (EMA) determines the primary trend bias.
- Momentum Sequence: A user-defined number of consecutive candles must show momentum (flat tops for bearish bias, flat bottoms for bullish bias).
- The Trigger: A Doji candle must form that is larger than the previous candle, signifying a "high volume" indecision point that often precedes a reversal in the immediate scalping timeframe.
Settings
- EMA Length: Sets the period for the trend-filtering Exponential Moving Average.
- Min Consecutive Candles: The required number of prior Heikin Ashi candles that must exhibit a "flat" side to establish momentum before a signal can trigger.
- Max Flat Wick Ratio: The maximum allowable ratio of a wick relative to the total candle size for it to be considered "flat."
- Max Flat Wick (ticks): An absolute price tolerance in ticks to define a flat wick.
- Max Doji Body Ratio: Defines the maximum size of the candle body relative to the total range for it to be classified as a Doji.
- Min Doji Wicks Ratio: The minimum combined size of the upper and lower wicks relative to the total candle range.
FAQ
How do I interpret the triangle signals?
A green upward triangle suggests a bullish reversal or continuation opportunity above the EMA, while a red downward triangle suggests a bearish opportunity below the EMA.
What chart type should I use?
While the script calculates Heikin Ashi values internally, it is specifically designed to be viewed and used on Heikin Ashi candle charts for the most accurate visual alignment.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.