Type/to search

short-term trading strategy

Cryptocurrency
Created: 2023-10-25 14:40:21
Last modified: 3 years ago
1
Follow
1781
Followers

img

Overview

This is a short-term trading strategy based on channel breakouts. It uses the breakouts of channel's upper and lower rail to determine the start and end of trends, and make trading decisions accordingly. In strong trending markets, this breakout strategy can generate decent profits.

Strategy Logic

  1. The strategy first calculates the highest high and lowest low over a certain period to build the upper and lower rail of the channel.

  2. If price breaks out above the upper rail, go long. If price breaks below the lower rail, go short.

  3. Use a moving stop loss to control risks. The stop loss is set at the middle line of the channel.

  4. There are two optional exit rules: revert to the middle line or follow the moving stop loss. The former realizes profit quickly while the latter controls risks.

  5. The channel period and other parameters can be tuned to optimize the strategy for different market conditions.

Advantage Analysis

  1. Simple to implement. Just monitor the price-channel relationship and follow the rules to trade.

  2. Trade along the trend, no counter-trend risks.

  3. Clear and intuitive channel gives explicit entry signals.

  4. Good profit margin, can achieve satisfactory returns in most cases.

  5. Many adjustable parameters for optimization across different markets.

Risk Analysis

  1. Breakout may fail, risks of being trapped exist. Timely stop loss needed.

  2. Channel needs a period to form, not suitable for range-bound markets.

  3. Revert to middle stop loss may be too conservative, unable to hold trends.

  4. Parameter optimization needs historical data, overfitting possible in live trading.

  5. Mechanical trading of breakout points may increase trade frequency and slippage costs.

Optimization Directions

  1. Evaluate channels of different periods and select the optimal one.

  2. Test reverting to middle and moving stop loss to find a better exit mechanism.

  3. Optimize the stop loss percentage to reduce chances of being stopped out.

  4. Add trend filter to avoid inappropriate breakout trades.

  5. Consider increasing position size but control risks.

Summary

Overall this is a mature short-term breakout strategy. It has clear entry rules, proper risk control, and works well in general. Further improvement can be achieved through parameter tuning. But inherent limitations should be noted, adjustments needed for different markets. If used systematically, it should deliver consistent overall profits.

Source
Pine
/*backtest
start: 2022-10-18 00:00:00
end: 2023-10-24 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/
// Strategy testing and optimisation for free Bitmex trading bot 
// © algotradingcc 
Strategy parameters
Strategy parameters
Channel Period for Long position
Channel Period for Short position
Is exit on Base Line?
Take Profit (%) for position
Stop Loss (%) for position
Test Start Year
Test Start Month
Test Start Day
Test End Year
Test End Month
Test End Day
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)