Didi index alerts
Jan 19, 2022

The Didi index alerts indicator provides a comprehensive signaling system based on the Didi Index to help traders identify high-probability trend reversals and momentum shifts through "needle" patterns.
Usage
The script is designed to identify specific convergences between three moving averages (Fast, Normal, and Slow) normalized around a central zero line. Traders can use the indicator to spot four primary signals:
- Long Needles: Occur when the Fast average crosses above the Normal average while the Slow average simultaneously crosses below it (or meets proximity criteria), signaling bullish momentum.
- Short Needles: Occur when the Fast average crosses below the Normal average while the Slow average simultaneously crosses above it, signaling bearish momentum.
- Fake Long/Short: These signals act as filters to warn traders when a crossover occurs but the underlying trend or momentum is not supportive, potentially preventing false entries.
It is recommended to use these alerts in conjunction with trend filters like the DMI or volatility measures like Bollinger Bands to confirm the context of the needle signals.
Details
The indicator calculates three Simple Moving Averages (SMA). The "Normal" average acts as the baseline (0 line), while the Fast and Slow averages are plotted relative to it as percentage deviations.
A unique feature of this tool is its use of trigonometric projections to detect "needles." Traditional Didi Index signals require exact simultaneous crossovers. This script uses retroactive projection to determine how many bars ago a crossover occurred (or would have occurred). If these projections fall within the user-defined "Minimum and Maximum needle distances," a signal is triggered even if the averages do not cross at the exact same price tick. This allows for the detection of patterns like the "Spider Woman's Kiss" or "Queijo Minas," where averages pinch together tightly without a perfect cross.
Settings
Didi index config
- Fast average: Sets the period for the fast-moving average (default is 3).
- Normal average: Sets the period for the baseline moving average (default is 8).
- Slow average: Sets the period for the slow-moving average (default is 20).
Minimum needle distance
- Fast average: The minimum number of previous bars where the projected fast crossover occurred to be considered a needle.
- Slow average: The minimum number of previous bars where the projected slow crossover occurred to be considered a needle.
Maximum needle distance
- Fast average: The maximum lookback for the projected fast crossover.
- Slow average: The maximum lookback for the projected slow crossover.
FAQ
How do I use the Didi index alerts?
You can add the indicator to your chart and set alerts by pressing Alt+A. Select the indicator from the condition dropdown and choose between Long Needle, Short Needle, Fake Long, or Fake Short alerts.
What are "Fake" signals?
Fake signals occur when a crossover happens, but the direction of the Slow average or the relative position of the averages suggests the move lacks genuine momentum, serving as a warning to traders.
How can I get access to Didi index alerts?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

