Type/to search

Speculation Gulf : Trend Follow Strategy Based on SAR

Cryptocurrency
Created: 2023-11-23 16:26:17
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

The Speculation Gulf strategy is a quantitative trading strategy that tracks trends. It uses the SAR Parabolic curve as the main trading signal, with additional EMA, Squeeze Momentum and Volatility Oscillator filters to identify trend reversal points with SAR parameters, and achieve low-risk trend tracking. This strategy is well suited for medium-to-long term investing.

Strategy Logic

The strategy uses Parabolic SAR as the primary trading signal indicator. SAR can effectively determine price trend reversal points. When the SAR sign changes, it means the trend has reversed. This strategy generally generates buy or sell signals when the SAR flips.

In addition, the strategy also provides a SAR breakout option - generating signals when the price breaks through the last SAR value before SAR fully flips. This further improves the sensitivity of the strategy.

To filter false signals, the strategy also introduces EMA, Squeeze Momentum and Volatility Oscillator as three auxiliary filters, which can be used alone or in combination to confirm the reliability of price trends and trading signals.

Finally, the strategy provides three types of stop loss methods - fixed stop loss, fixed take profit and risk reward ratio stop loss. This allows the strategy to flexibly adapt to the characteristics of different types of trading instruments.

Advantage Analysis

  1. SAR can accurately determine price trend reversals and timely capture new price trends, suitable for medium and long term trend tracking.

  2. Multiple filters reduce the probability of false breakouts and improve signal reliability.

  3. Simple and flexible configuration, customizable parameters to suit different trading instruments.

  4. Provides multiple types of take profit and stop loss to balance risk and reward.

  5. Can directly connect to trading bots for automated trading.

Risk Analysis

  1. In non-trending markets, there may be increased occurrences of false signals and ineffective trades.

  2. Improper SAR parameter settings also affect the accuracy of signal judgments.

  3. As a trend following strategy, significant fluctuations in the market can easily hit the stop loss line.

To address the above risks, appropriately adjust the SAR parameters or filter parameters to reduce the probability of invalid trades. Stop loss limits can also be moderately relaxed to withstand greater market fluctuations.

Optimization Directions

  1. SAR Parameter Optimization. Optimize the SAR increment and step parameters through historical backtest data to obtain a more stable and efficient trading strategy.

  2. Introduce Trend Judgment Indicators. Add auxiliary trend judgment indicators like MACD and DMI to improve trend judgment capabilities.

  3. Optimize risk-return ratio. Adjust fixed stop loss percentage and risk-return ratio to take on higher risks for higher returns.

  4. Support more instruments. Currently only crypto is supported, can be extended to support Forex, commodity and securities trading instruments.

Conclusion

The Speculation Gulf strategy is a very practical trend following quantitative strategy. It has responsive signals, reliable judgments and can achieve long-term steady returns through stop loss management. With appropriate parameter and rules optimization, the efficiency of the strategy can be further improved. This is an efficient quantitative strategy worth using long term.

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

//VERSION =================================================================================================================
//@version=5
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// This strategy is intended to study.
Strategy parameters
Strategy parameters
Time Filters
Start date
initialDate
End date
finalDate
SAR PARABOLIC =========================================
Start
Increment
Maximo
SAR TRADE SIGNAL ======================================
SAR Trade Signal
Bars
Show Breakout Point
Moving Average ========================================
Moving Average Filter
Type
Source
Length
VOLATILITY OSCILLATOR =================================
Volatility Oscillator Filter
Volatility Oscillator
SQUEEZE MOMENTUM =====================================
Squeeze Momentum Filter
Bollinger Bands Length
Boliinger Bands Mult
Keltner Channel Length
Keltner Channel Mult
Use TrueRange (KC)
Take Profit ==================================================
Take Profit and Stop Loss
Fixed TP %
Fixed Long SL %
Risk Reward TP
Show RR Stop Loss
Traling Profit ===============================================
Enable Trailing
Trailing Take Profit Deviation %
Alert Message For Bot =========================================
Strategy Entry Message (Optional)
Strategy Exit Message (Optional)
Strategy Close Message (Optional)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)