Type/to search

Dynamic Trend Tracking Optimized Strategy

Common strategy
Created: 2024-01-12 11:20:04
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy calculates the CMO indicator and rate of change to dynamically plot support lines. Trading signals are generated when price breaks through the support lines. Meanwhile, the strategy also optimizes the stop loss range around support lines to lock in more profits.

Strategy Logic

  1. Calculate the CMO indicator to determine price trend
  2. Calculate rate of change Var to reflect price change trend
  3. Plot support line based on rate of change
  4. Calculate optimized stop loss lines longStop and shortStop
  5. Generate trading signals when price breaks support line

Advantage Analysis

  1. Use CMO indicator to determine price trend and avoid false breakouts
  2. Support line clearly indicates trend direction
  3. Optimized stop loss locks in more profits
  4. Clear and simple trading signals, easy to follow

Risk Analysis

  1. CMO indicator has lagging effect, may miss price turning points
  2. Breaks of support line may generate false signals
  3. Improper stop loss optimization may lead to larger losses

Risk Solutions:

  1. Adjust CMO parameters properly to reduce lagging
  2. Add more filters with other indicators to avoid false signals
  3. Test to determine suitable stop loss optimization ratio

Optimization Directions

  1. Add more indicators to filter out false signals
  2. AI automated optimization of stop loss range
  3. Auto adjust trading size

Summary

Overall this strategy works well, using support line to clearly determine trend direction. Combined with CMO indicator and optimized stop loss it achieves good results. But there are some risks of false signals, which can be improved by combining more indicators.

Source
Pine
/*backtest
start: 2024-01-04 00:00:00
end: 2024-01-11 00:00:00
period: 45m
basePeriod: 5m
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/
// © melihtuna

//@version=4
Strategy parameters
Strategy parameters
Source
OTT Period
OTT Percent
Condition
Show Support Line?
Show OTT Color Changes?
Highlighter On/Off ?
Barcolor On/Off ?
Show OTT BUY/SELl Labels?
From Month
From Day
From Year
To Month
To Day
To Year
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)