Type/to search

Flying Dragon Trend Strategy

Cryptocurrency
Created: 2023-11-07 14:57:23
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

The Flying Dragon Trend strategy generates trading signals by drawing trend bands in different colors based on the configuration of moving averages in terms of types, lengths and offsets. It can find the optimal parameter sets across different timeframes to balance trend accuracy and trading risk.

Strategy Logic

The strategy uses two moving averages to plot the trend bands, denoted as MA1 and MA4. MA1 is the faster moving average and MA4 is the slower one. Meanwhile, MA1 has 3 offset settings (Offset1, Offset2, Offset3) that form MA2 and MA3. Crossing different moving averages will generate trading signals with different risk levels.

There are 5 risk levels to choose from. A trading signal is only triggered when price crosses different moving averages under different risk levels, from high to low: MA1 Offset1, MA2, MA3, MA4, all trend bands in same color. The color of trend bands indicates the current trend direction, with green for uptrend and red for downtrend.

The strategy also allows stop loss and options for long only, short only or both directions.

Advantage Analysis

  • Finds optimal parameter sets across different timeframes, adaptable to more market conditions
  • Various MA types available for optimization for different products
  • The offset, the core of this strategy, makes trend judgement more accurate
  • Risk levels strike a balance between risk and reward
  • Highly customizable with various parameter combinations
  • Intuitive trend bands form clear visual trading signals
  • Stop loss controls risk

Risk Analysis

  • High risk levels may generate false signals, should lower risk level or adjust parameters
  • Risk of consecutive stop loss exits when trend reverses
  • Different products need separate parameter testing and optimization
  • For high frequency trading, fast MA should lead slow MA
  • Inadequate parameter optimization may cause oversensitivity or sluggishness

Risks can be managed by gradually lowering risk levels, testing more parameter combinations, and optimizing parameters separately for different products.

Optimization Directions

  • Test different combinations of moving average types
  • Try more length values to find optimal lengths
  • Carefully adjust offsets, the key to optimization
  • Optimize parameters separately for different products
  • Optimize stop loss points, consider taking profits
  • Test different entry rule combinations
  • Evaluate whether filters are needed for optimization
  • Consider adding trend strength indicators for assistance

Summary

The Flying Dragon Trend strategy cleverly combines moving averages into a visualizable trend trading system. Its high parameter tunability enables fine-grained optimization for different products and market regimes to strike an optimum balance between stability and sensitivity. The abundant parameter combinations provide sufficient optimization space. In summary, this strategy has a novel logic and high practical utility. When optimized properly, it can become a very powerful trend following system.

Source
Pine
/*backtest
start: 2022-10-31 00:00:00
end: 2023-02-14 00:00:00
period: 1d
basePeriod: 1h
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/
// © MarkoP010 2023

//@version=5
Strategy parameters
Strategy parameters
Strategy
Strategy Direction
Risk Level
Use Stop Loss
%
Leading Moving Average
ma1Type
ma1Length
ma1Source
ma1Color
Offset1 Steps
ma2Color
Offset2 Steps
ma3Color
Offset3 Steps
Lagging Moving Average
ma4Type
ma4Length
ma4Source
ma4Color
Offset Steps
Banding
Band Transparency
Band 1
Band 2
Band 3
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)