Type/to search

Quantitative Breakthrough Uptrend Reference Strategy

Common strategy
Created: 2024-02-21 10:58:01
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

This strategy is a long-term holding strategy based on determining the trend direction with simple moving average lines and forming breakthrough signals with resistance and support lines. By calculating the price Pivot High and Pivot Low points, plotting the resistance and support lines, going long when the price breaks through the resistance line, and closing positions when the price breaks through the support line. This strategy is suitable for stocks with obvious trends and can obtain a good risk-reward ratio.

Strategy Principle

  1. Calculate the 20-day simple moving average line as the baseline for determining the trend
  2. Calculate the Pivot High and Pivot Low points based on user input parameters
  3. Plot the resistance and support lines based on the Pivot High and Pivot Low points
  4. Go long when the closing price is higher than the resistance line
  5. Close positions when the support line crosses below the resistance line

This strategy uses simple moving averages to determine the overall trend direction, and then uses key point breakthroughs to generate trading signals, which is a typical breakout strategy. By judging key points and trends, false breakouts can be effectively filtered out.

Advantage Analysis

  1. The strategy has sufficient opportunities and is suitable for high volatility stocks, making it easy to capture trends
  2. Good risk control for long positions, high risk-reward ratio
  3. Use breakthrough signals to avoid the risk of false breakouts
  4. Customizable parameters, high adaptability

Risk Analysis

  1. Rely on parameter optimization, improper parameters will increase the probability of false breakouts
  2. Delay in breakthrough signals, may miss some opportunities
  3. Easy to be stopped out in volatile markets
  4. Failure to adjust the support line in time may lead to losses

Risks can be reduced by optimizing parameters through live trading, and incorporating stop loss/take profit strategies.

Optimization Directions

  1. Optimize moving average period parameters
  2. Optimize resistance and support line parameters
  3. Add stop loss/take profit strategies
  4. Increase breakthrough confirmation mechanisms
  5. Filter signals with trading volume and other indicators

Summary

Overall, this strategy is a typical breakout strategy that relies on parameter optimization and liquidity, suitable for trend traders. As a reference framework, it can be extended according to actual needs by adding mechanisms like stop loss/take profit, signal filtering to reduce risk and improve stability.

Source
Pine
/*backtest
start: 2023-02-14 00:00:00
end: 2024-02-20 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/
// © CheatCode1

//@version=5
Strategy parameters
Strategy parameters
length
Source
Offset
LookbackLeft
LookbackRight
Take Profit
Stop Loss
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)