(HT) HalfTrend
HalfTrend is a trend-following indicator that calculates dynamic levels based on price action and market volatility. It uses the Average True Range (ATR) multiplied by a user-defined amplitude to identify potential trend reversals and determine the current market direction.
Key Features:
-
Trend Detection: The indicator identifies uptrends and downtrends by comparing current price levels to dynamic thresholds.
-
ATR-Based Volatility Adjustments: ATR is used as a volatility measure, with adjustable parameters (AtrLength, Amplitude) to suit different markets and trading conditions.
-
Dynamic Level Calculation: HalfTrend dynamically adjusts trailing levels, allowing it to adapt to changing market conditions and provide more accurate trend signals.
-
Clear Outputs: It outputs a single trend line that visually highlights the current trend direction, making it easy to follow in real-time.
Parameters:
-
AtrLength: Specifies the number of bars to use for ATR calculation.
-
Amplitude: A multiplier applied to ATR that defines the distance needed to signal a trend change.
-
Shift: (Optional) An offset applied to the indicator output.
Practical Use:
The HalfTrend indicator is best used as part of a trend-following strategy. You can use it identify the current trend, set stop-loss levels, or confirm entries and exits. By combining a moving-average style approach with volatility-based thresholds, HalfTrend offers a reliable, adaptive method for capturing trending market conditions.
Indicator Availability:
This indicator is implemented for MT4, MT5, TradeStation, and MultiCharts.
Using Custom Blocks for Conditions:
You can easily define your own conditions in StrategyQuant X using Custom Blocks. This allows you to set up parameters such as periods or steps to fine-tune the indicator to your strategy. For more detailed information, refer to the following resources:
Importing Custom Indicators into SQX:
To import custom indicators into StrategyQuant X, follow the step-by-step instructions provided here:
Import & Export Custom Indicators and Other Snippets
Excellent ! Thank you Ivan !