Type/to search

Quantitative Trading Strategy Based on High-Low Point Moving Averages

Cryptocurrency
Created: 2023-09-19 15:53:55
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy uses simple moving averages of high points and low points compared to current close price to determine entries and exits. It aims to capture price breakout signals from moving average crossovers to obtain early trend opportunities.

Strategy Logic

  1. Calculate 4-period simple moving average of high prices.

  2. Calculate 4-period simple moving average of low prices.

  3. Go long when close price breaks above high point SMA.

  4. Go short when close price breaks below low point SMA.

  5. Use fixed stop loss and take profit for risk management.

Advantage Analysis

  1. Uses simple indicators, easy to understand and implement.

  2. Timely captures price breakout signals from SMA crossovers.

  3. Can quickly filter out noise and identify trends.

  4. Lightweight calculations reduce strategy overhead.

  5. Suitable as base strategy for extensions.

Risk Analysis

  1. Requires reasonable parameters to avoid oversensitivity.

  2. Unable to handle risks from huge breakouts.

  3. Possibilities of whipsaw losses in ranges.

  4. Cannot automatically adjust stops and limits.

  5. Hard to judge longer-term trend context.

Optimization Directions

  1. Test different parameters for impact on signal quality.

  2. Add filters to validate effectiveness of breakouts.

  3. Incorporate trend analysis to avoid traps.

  4. Develop dynamic stops and limits.

  5. Optimize stops to improve win rate.

  6. Test robustness across different timeframes.

Summary

This strategy uses simple indicators to gauge price momentum and provides a basic trend trading framework. With further improvements like parameter optimization and risk controls, the trading logic is highly extensible into a robust quant system. Overall an easy to use strategy suitable for beginners to start quant trading.

Source
Pine
/*backtest
start: 2023-09-11 00:00:00
end: 2023-09-13 00:00:00
period: 30m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=3
strategy("HiLo", overlay=true)

// Testing a specific period
Strategy parameters
Strategy parameters
Backtest Start Year
Backtest Start Month
Backtest Start Day
Backtest Stop Year
Backtest Stop Month
Backtest Stop Day
Color Background?
length
displace
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)