Type/to search

Range Filter Breakout Short-term Trading Strategy

Cryptocurrency
Created: 2023-09-21 21:17:40
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This short-term trading strategy generates buy and sell signals based on the price fluctuation range. It calculates the price movement range over a period and uses that as a filter for trade signals. Signals are triggered when price breaks out of the range.

Strategy Logic

The core indicator is the price fluctuation range. The specific steps are:

  1. Calculate the high-low range over past N periods as the price amplitude

  2. Smooth the amplitude using moving averages to derive the range filter

  3. A buy signal is generated when price rises above the range filter

  4. A sell signal is generated when price drops below the range filter

This way, breakouts of the price range are used to determine trend direction and filtrate noise for cleaner signals.

Advantages

  • Price range easy to judge breakouts
  • Smoothed range effectively filters noise
  • Breakout signals catch short-term trends
  • Higher trade frequency suitable for short-term
  • Adjustable parameters easy to optimize

Risks

  • Range breakouts prone to whipsaws
  • Needs sufficient historical data to calculate range
  • Bad parameters cause oversensitivity or sluggishness
  • No effective stops, large drawdowns
  • Performance impacted by fees due to high frequency

Risks can be mitigated by:

  • Relaxing range filter volatility coefficient
  • Parameter optimization for ideal settings
  • Implementing stop loss or trailing stops
  • Reducing trade frequency to lower fees
  • Product-specific parameter testing

Enhancement Directions

The strategy can be improved by:

  1. Testing different range calculation periods

  2. Optimizing range filter volatility coefficient

  3. Adding confirming indicators like MACD

  4. Using moving or trailing stops

  5. Tuning parameters specifically for each product

  6. Optimizing position sizing system

Summary

This strategy uses price breaking out of ranges to generate short-term signals, effectively capturing temporary trends. But risks like whipsaws exist. Improvements can be made through parameter optimization, stop losses, adding filters etc. to control risks while retaining effectiveness. Fine-tuning parameters by product characteristics is also essential. Continual optimizations lead to robustness.

Source
Pine
/*backtest
start: 2023-08-21 00:00:00
end: 2023-09-20 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=3
strategy(title="Range Filter Buy and Sell 5min [Strategy]", overlay=true, commission_type=strategy.commission.percent, commission_value=0.025, default_qty_type=strategy.cash, default_qty_value=10000, initial_capital=10000, slippage=0)

// === INPUT BACKTEST RANGE ===
Strategy parameters
Strategy parameters
---------------- Use Date ----------------
From Month
From Day
From Year
To Month
To Day
To Year
Source
Use HA Candles
Sampling Period
Range Multiplier
----- Use Stop Loss / Take profit -----
Stop Loss %
Take Profit %
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)