BEST Trend Direction Helper (Strategy Edition)
Jan 7, 2020

The BEST Trend Direction Helper (Strategy Edition) indicator provides a comprehensive trend-following strategy that combines price action pivots, ZigZag reversals, and support/resistance levels to identify market direction. It utilizes labeled entries based on volatility-adjusted momentum and employs a moving average crossover system for trend exits.
Usage
The Usage section describes how the script can be used for automated strategy testing and manual analysis. Users can configure the tool to display trend labels, ZigZag lines, and dynamic support/resistance levels.
- Entry Signals: The strategy generates Long or Short entries based on the Trend Direction labels (defaulted to "B" for buy and "S" for sell). These labels appear when price action shifts based on internal momentum calculations.
- Exit Logic: Trades are closed when a Simple Moving Average (SMA) crossover occurs in the opposite direction of the open trade.
- Directional Filtering: Users can toggle between "Longs+Shorts," "Longs Only," or "Shorts Only" to align with higher timeframe trends or specific market biases.
- Market Structure: By enabling the HH/LL labels, traders can visually confirm if the market is making Higher Highs or Lower Lows, which provides additional confirmation for the trend signals.
Details
The strategy integrates several technical concepts to provide a holistic view of the market:
- Trend Direction Mechanism: The core signal logic uses a custom range-based calculation and Williams Percent Range (WPR) to determine trend exhaustion and reversals.
- ZigZag Reversals: A percentage-based ZigZag algorithm identifies significant structural pivots. This helps in filtering out noise and focusing on meaningful price swings.
- Dynamic S/R: The script calculates horizontal support and resistance levels using pivot highs and lows over specific lookback periods (left and right bars). These levels act as visual targets or areas of potential consolidation.
- Fractal Analysis: Bill Williams Fractals are utilized to label market structure points like Higher Highs (HH), Lower Highs (LH), Higher Lows (HL), and Lower Lows (LL).
Settings
Trend Direction Settings
- What type of Orders: Filters the strategy to execute only Longs, only Shorts, or both.
- Fast/Slow Length SMA: Defines the periods for the Simple Moving Averages used for the exit crossover logic.
- Risk: Adjusts the sensitivity of the Trend Direction signal labels.
- TEXT Buy/Sell: Customizable text for the entry labels on the chart.
Pivot & Structure Settings
- Show Supports & Resistances: Toggles the visibility of horizontal S/R levels.
- Left/Right Pivot: Determines the number of bars required to confirm a major pivot point.
- Quick Right Pivot: A shorter lookback for identifying more recent, sensitive support and resistance levels.
- Show Higher/Highs and Lower Lows labels: Enables labels for market structure identification.
ZigZag Settings
- Show ZIG ZAG Lines: Toggles the visual ZigZag lines connecting price pivots.
- Percent of last pivot price for zigzag reversal: Sets the percentage threshold required for the ZigZag to plot a new leg.
FAQ
How do I use the exit signals?
The strategy automatically exits positions when the Fast SMA crosses the Slow SMA in the opposite direction of the entry. You can adjust these lengths in the settings to tighten or loosen the exit timing.
Can I use this for manual trading?
Yes, while this is the Strategy Edition, all visual components like Trend Labels, S/R lines, and ZigZag can be used for manual technical analysis.
How do I get access to the BEST Trend Direction Helper?
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.

