Type/to search

Dual-directional Trailing Stop Moving Average Trend Strategy

Common strategy
Created: 2024-03-01 12:07:45
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

This strategy combines the Super Trend, SSL Hybrid Baseline Channel and QQE indicators to implement dual-directional position tracking stop loss and capture mid-to-long term trends.

Strategy Logic

The strategy is mainly based on the following key points:

  1. Use the Super Trend indicator to determine the overall trend direction and assist in judging entry timing.

  2. Use the SSL Hybrid Baseline Channel to determine specific entry points. Channel breakouts serve as the basic entry signal.

  3. Use QQE indicator crosses to provide confirmation for entry signals.

  4. Use the ATR indicator to aid in stop loss and take profit calculations.

  5. Employ percentage-based risk management and dynamic stop adjustment to control per-trade risk.

The entry logic requires a Super Trend reversal along with a price breakout of the baseline channel and a cross of the QQE indicator before entering a position.

This combined indicator system can effectively control entry timing and avoid unnecessary entries during market churns.

The exit logic is simple - a Super Trend reversal serves as the signal to close positions, in addition to triggered stop losses and take profits.

Advantage Analysis

The biggest advantage of this strategy is using a combination of indicators to filter out false breakouts and reduce invalid trades.

Another major highlight is the use of percentage-based stops to control per-trade risk.

By using ATR to calculate stop distance and combining that with a configurable multiplier, we can clearly see the risk taken per trade. This is critical for proper risk management.

We can even set a max tolerable loss percentage to limit total losses.

The use of a trailing stop to lock in profits is also a key part of enhancing returns.

Risk Analysis

The biggest risk of this strategy is the probability of combined signal errors. Despite our use of multi-indicator filtering, no indicator is perfect.

When Super Trend shows a false breakout, or QQE gives incorrect crosses, it becomes easy for this strategy to mistakenly enter positions and face increased likelihood of stopped out trades.

There is also some risk of over-optimization with this strategy. Care should be taken to avoid excessive reliance on historical patterns when setting parameters.

We need to pay attention to key settings like ATR period, stop multiplier, risk percentage etc. These require individual tuning for different instruments.

Optimization Opportunities

There remains room for further enhancements:

  1. Test combinations with more indicators like adding in the KD oscillator.

  2. Examine parameter stability under different configurations.

  3. Try auto-optimization techniques like machine learning.

  4. Introduce adaptive stop logic to adjust stop distance based on market volatility.

  5. Build re-entry logic to reduce missed opportunities after stops are triggered.

Source
Pine
/*backtest
start: 2024-02-22 00:00:00
end: 2024-02-27 00:00:00
period: 1m
basePeriod: 1m
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/
// © fpemehd
// Thanks to W3MCT - @simonFUTURE2 w3mct.com - 
// @version=5
Strategy parameters
Strategy parameters
RSI Source
Time
Start Date
End Date
Long / Short
Long?
Short?
Filters
ATR Filter On?
Length for ATR Filter
SMA Length for ATR SMA
EMA Filter On?
EMA Length
ADX Filter On?
DMI Filter On?
ADX Length
ADX Threshold
1: SuperTrend
ATR Length
Factor
2: SSL Hybrid
use true range for Keltner Channel?
Baseline Type
Baseline Length
Base Channel Multiplier
Volatility lookback length(for VAMA)
3: QQE MOD
RSI Length
RSI Smoothing
Fast QQE Factor
Thresh-hold
Bollinger Length
BB Multiplier
RSI 2 Length
RSI Smoothing
Fast QQE2 Factor
Thresh-hold
RSI Source
Stop Loss
Enable SL & TP?
Enable Trailing SL?
Stop Loss Type
ATR Length
ATR Multiplier
Percent
Lowest Price Before Entry
Take Profit
Use Take Profit?
R:R Ratio
Take Profit Quantity %
Quantity
Use Risk Manangement?
Risk Per Trade (%)
Strategy: Drawings
Show Simple Label for Entry?
Show Trade Exit Labels
Show Dashboard
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)