Type/to search

Multiple Trend Crossover-Strategie

Cryptocurrency
Created: 2023-09-21 16:50:23
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy generates trading signals by selecting fast and slow trend indicators and going long when the fast trend crosses over the slow trend, and going short when the fast trend crosses below the slow trend. The strategy incorporates over 20 different trend calculations to choose from.

Strategy Logic

The core of the strategy is the selection and combination of fast and slow trend indicators:

pine
FastTrend = User selected fast trend indicator SlowTrend = User selected slow trend indicator

Fast trend includes SMA, EMA, KAMA and 20+ trend algorithms. Slow trend can also be freely selected.

Trading signals are generated by judging the relationship between fast and slow trends:

pine
if FastTrend > SlowTrend: Go long if FastTrend < SlowTrend: Close position

Long signal is triggered when fast trend crosses over slow trend. Short signal is triggered when fast trend crosses below slow trend.

Advantage Analysis

  • Incorporates 20+ indicators for flexible combinations
  • Can identify trends over different timeframes
  • Parameters can be optimized to find best combination
  • Can go both long and short to capture trends in both directions
  • Stop loss can be used to control risk

Risk Analysis

  • Wrong fast/slow trend selection may cause strategy failure
  • Trend indicators have lags, may miss best entry points
  • Prone to generating false signals in ranging markets
  • Need parameter optimization to find best indicator combinations
  • Unable to quickly cut losses, risks of letting losses run

Optimization Directions

The strategy can be improved in the following aspects:

  1. Adjust fast/slow trends and parameters to find optimal combinations.

  2. Add filters like volume to avoid false signals during market choppiness.

  3. Incorporate stop loss strategies like trailing stop loss to control single trade loss.

  4. Combine with other indicators like MACD, KDJ to improve stability.

  5. Optimize entry timing, don't just rely on trend crossover.

Summary

The multi trend crossover strategy identifies trend changes across timeframes by combining fast and slow trends. But it is sensitive to market fluctuations and only works well in obvious trending markets. We need methods like parameter optimization and risk management to improve strategy stability and profitability.

[/trans]

Source
Pine
/*backtest
start: 2023-08-21 00:00:00
end: 2023-09-20 00:00:00
period: 3h
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/
// @version=5
// Author = TradeAutomation
Strategy parameters
Strategy parameters
Date Range
Start Time
End Time
Core Settings
Fast Trend Selector
Slow Trend Selector
Price Source
Fast Trend Length
Slow Trend Length
Line Width
Model Long Trades
Model Short Trades
Individual Trend Settings
ALMA Offset
ALMA Sigma
ATR Multiplier For SuperTrend
ATR Length For SuperTrend
DSMA Super Smoother Filter Length
DSMA Super Smoother Filter Poles
JMA Power Parameter
JMA Phase Parameter
KAMA's Alpha
Linear Regression Offset
VAMA Volatility lookback
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)