Type/to search

Trend Following Strategy Based on Hull MA and STC Indicator

Cryptocurrency
Created: 2023-10-07 10:20:06
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy combines Hull MA smooth moving average and STC indicator to precisely track the trend. It goes long when Hull MA line turns green and STC indicator turns from red to green and is below 25; it goes short when Hull MA line turns red and STC indicator turns from green to red and is above 75. Meanwhile, the strategy also integrates UT Bot indicator to further confirm trend signals.

Strategy Logic

The strategy uses Hull MA smooth moving average line to determine the price trend direction. The color change of Hull MA line from green to red or vice versa can be used to judge the trend reversal.

The STC indicator is similar to MACD indicator. Its indicator line can be used to determine bullish/bearish reversals. When the indicator line breaks above 25 from below, it's a buy signal; when it breaks below 75 from above, it's a sell signal.

By combining Hull MA and STC indicators, when both indicators concurrently generate buy/sell signals, it indicates a trend reversal for trade entry.

In addition, the strategy also incorporates the UT Bot indicator, which outputs bullish/bearish bias based on the price's relationship with the dynamic stop loss line based on ATR, to further confirm trend signals.

Specifically, the strategy logic is:

  1. When Hull MA line turns green and STC indicator line turns from red to green, below 25, it's a long signal.

  2. When Hull MA line turns red and STC indicator line turns from green to red, above 75, it's a short signal.

  3. When above criteria are met, require UT Bot shows bullish to open long position.

  4. When above criteria are met, require UT Bot shows bearish to open short position.

Advantage Analysis

The strategy combines 3 indicators to determine the trend, which can improve the reliability of signals.

The smooth Hull MA curve can accurately determine the trend direction and avoid whipsaws. The STC indicator can capture trend reversal points to enhance the real-time performance of the strategy. UT Bot can further filter out false signals.

The combination of the 3 indicators enables precise trend tracking while enhancing stability. This is the biggest strength of the strategy.

Risk Analysis

Main risks of the strategy:

  1. STC indicator tends to generate false signals, causing unnecessary entries.

  2. Incorrect Hull MA parameter settings may also misjudge the trend.

  3. Improper combination of the 3 indicators may interfere with each other.

Risks can be mitigated by optimizing Hull MA parameters, adjusting STC parameter mix, testing UT Bot parameters.

In addition, stop loss can be used to control single trade loss. More indicators can be introduced for combo verification to reduce false signal rates.

Optimization Directions

The strategy can be optimized in the following aspects:

  1. Optimize Hull MA parameters to find the optimal length for the smooth curve to fit the trend better.

  2. Adjust STC parameter mix to find more accurate combinations for detecting reversals.

  3. Optimize UT Bot parameters to improve trend judgment accuracy.

  4. Test introducing other indicators for combo verification to further improve signal reliability.

  5. Optimize stop loss strategy to keep profits while controlling single trade loss within acceptable range.

  6. Optimize position sizing strategy for higher reward/risk ratios.

Conclusion

The strategy precisely tracks the trend by combining Hull MA, STC and UT Bot indicators. It has the advantage of indicator diversity, which reduces misjudgment risks and enhances stability. The strategy can be further improved by continuously optimizing parameters, introducing other indicators, perfecting stop loss strategies etc.

Source
Pine
/*backtest
start: 2023-09-06 00:00:00
end: 2023-10-06 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © myn

//@version=5
Strategy parameters
Strategy parameters
Key Vaule. 'This changes the sensitivity'
ATR Period
Signals from Heikin Ashi Candles
░░░░░░░░░░░░░░░░░░░░░░░░░
Length
FastLength
SlowLength
AAA
░░░░░░░░░░░░░░░░░░░░░░░░░
Source
Hull Variation
Length(180-200 for floating S/R , 55 for swing entry)
Length multiplier (Used to view higher timeframes with straight band)
Show Hull MA from X timeframe? (good for scalping)
Higher timeframe
Color Hull according to trend?
Color candles based on Hull's Trend?
Show as a Band?
Line Thickness
Band Transparency
Date Range
Start
startPeriodTime
End
endPeriodTime
Trade Direction
Trade Direction
Take Profit
Take Profit 1 - Target %
% Of Position
Take Profit 2 - Target %
% Of Position
Take Profit 3 - Target %
% Of Position
Take Profit 4 - Target %
Stop Loss
Stop Loss (%)
Leverage
Leverage
ProfitView Alert Syntax
Alert Syntax Prefix
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)