Type/to search

Trend Reversal Strategy Based on Multiple Moving Averages

Cryptocurrency
Created: 2023-11-21 14:53:48
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy generates buy and sell signals based on reversals of multiple trend indicators including TDI, TCF, TTF and TII. The strategy allows selecting which indicator signal to use for entries and exits.

Strategy Logic

  • TDI Indicator

    The TDI indicator is constructed using price momentum with summing and smoothing techniques. It goes long when TDI direction crosses above TDI line and exits when crossing below.

  • TCF Indicator

    TCF indicator measures positive and negative price changes to gauge bullish and bearish forces. It goes long when positive change is greater than negative change, otherwise it exits.

  • TTF Indicator

    TTF indicator compares the power of highest and lowest prices to determine trend. The long signal is when TTF crosses above 100 and exit is when crossing below -100.

  • TII Indicator

    The TII combines moving average and price bands to identify trend reversals. It considers both short and long term trends. The long signal is above 80 and exit is below 80.

The entry long and close logic selects appropriate signals based on configured indicator.

Advantages

The strategy incorporates several commonly used trend trading indicators, which allows flexibility to adapt to changing market conditions. Specific advantages:

  1. Captures trend reversal opportunities in a timely manner using reversal signals
  2. Optimizable through configuring different indicators
  3. Rich indicator combinations can be used to confirm signals

Risks

The main risks this strategy faces:

  1. Indicator signals may have false signals resulting in losses
  2. Individual indicators cannot fully judge trends and are susceptible to market noise
  3. Incorrect configurations of indicators and trading parameters can misinterpret the market and generate erroneous trades

Risks can be reduced by:

  1. Optimizing indicator parameters to find best combinations
  2. Requiring multiple indicator signal confirmations to improve quality
  3. Adjusting position sizing to control single trade loss

Enhancement Opportunities

The strategy can be enhanced in several areas:

  1. Test optimal indicators and parameters across different market cycles
  2. Add or reduce indicators to find best combinations
  3. Filter out false signals
  4. Optimize position sizing strategies e.g. variable size, trailing stop loss
  5. Incorporate machine learning scoring to assist with signal quality

Conclusion

By combining multiple trend reversal indicators and optimizing configurations, this strategy is adaptable to varying market environments foroperating at trend turning points. The key is finding the optimum parameters and indicators while controlling risk. Continued optimizations and validations can build a steady alpha strategy.

Source
Pine
/*backtest
start: 2023-11-13 00:00:00
end: 2023-11-15 03:00:00
period: 5m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
//
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © kruskakli
Strategy parameters
Strategy parameters
Use Indicator
Length
Length
Lookback Length
Major Length
Minor Length
Upper Level
Lower Level
Back Testing Start Year
Back Testing Start Month
Back Testing Start Day
Back Testing Stop Year
Back Testing Stop Month
Back Testing Stop Day
Max Position %
Max Loss Risk %
ATR Length
Stop Offset
Limit Offset
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)