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.
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.