Type/to search

Dual Breakthrough Strategy

Common strategy
Created: 2024-01-30 17:27:01
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This is a dual breakthrough trading strategy based on K-line. It will generate trading signals when the closing price of the current K-line has a breakthrough relative to the highest and lowest prices of the previous two K-lines.

Strategy Principle

The basic logic of the strategy is:

  1. Define bull signal: bull = close > open and close > math.max(close[2], open[2]) and low[1] < low[2] and high[1] < high[2]. That is, the closing price of the current K-line is greater than the opening price, and greater than the highest price of the previous two K-lines, while the lowest price of the current K-line is lower than the lowest price of the previous K-line.

  2. Define bear signal: bear = close < open and close < math.min(close[2], open[2]) and low[1] > low[2] and high[1] > high[2]. That is, the closing price of the current K-line is less than the opening price, and less than the lowest price of the previous two K-lines, while the highest price of the current K-line is higher than the highest price of the previous K-line.

  3. When a bull signal is triggered, go long; when a bear signal is triggered, go short.

  4. Stop loss and take profit can be set.

The strategy utilizes the characteristics of dual breakthroughs to judge changes in trends through breakthroughs of key price zones, thereby generating trading signals.

Advantage Analysis

This is a relatively simple and intuitive breakout strategy with the following advantages:

  1. The logic is clear and easy to understand and implement, with a low barrier to entry.

  2. Breakthroughs are common trading signals that tend to form trends easily.

  3. Going both long and short allows for dual directional trading, increasing profit opportunities.

  4. Flexible stop loss and take profit settings help control risk.

Risk Analysis

The strategy also carries some risks:

  1. Dual directional trading carries higher risks and requires close monitoring.

  2. Breakouts can be vulnerable to traps, potentially forming false signals.

  3. Improper parameter settings may lead to overtrading.

  4. Improper stop loss and take profit settings can also affect profit potential.

Risks can be reduced by optimizing parameters and appropriately filtering products.

Optimization Directions

The strategy can be optimized in the following aspects:

  1. Optimize parameters like breakout cycle, stop loss/take profit range etc.

  2. Add filtering conditions to avoid errors from arbitrage, sideways movements etc.

  3. Incorporate trend indicators to avoid consolidation ranges.

  4. Optimize capital management, improve position algorithms.

  5. Different parameters for different products, test and optimize separately.

Summary

This is a simple strategy based on the dual breakout concept. It has the advantage of clear logic and easy implementation, but also carries certain monitoring risks. Better strategy results can be expected through parameter and condition optimization.

Source
Pine
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5

// # ========================================================================= #
// #                   |   Strategy  |
Strategy parameters
Strategy parameters
Debug
Show Alerts Debug Label?
Automation
Use Demo or Live Broker
Broker Name
Enable trades?
Account Name
Symbol Name
Nb Contracts
Use Delay between orders
Delay in seconds
Binance Automation
Use Borrow/Repay Mode?
Asset to Borrow/Repay
Quantity of assets to borrow?
Date
Date Range Filtering
Start Time
End Time
Stop Loss
Select Stop Loss Mode
Stop Loss %
Stop Loss (%)
Stop Loss USD
Stop Loss (USD)
Take Profit
Select Take Profit Mode
Take Profit %
Take Profit (%)
Take Profit USD
Take Profit (USD)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)