탄력적 손절매 기반 트레일링 손절매 전략
개요
이 전략은 탄력적인 스톱 손실 지표를 기반으로 구매 및 판매 신호를 설정하고 장점 및 단점 작업을 수행합니다. 지표가 구매 신호를 표시하면 더 많이하고 판매 신호가 표시되면 더 많이하지 않습니다. 전략은 또한 손실 추적 장치를 통합하여 위험을 효과적으로 제어합니다.
원칙
이 전략은 주로 탄력적인 정지 지표의 트렌드의 전환점을 활용하여 역전 동작을 한다. 지표 내부에서 실제 범위 지표를 사용하여 극한 가격을 식별하고, 가격이 극한 값을 초과할 때 비정상적인 돌파구로 간주하여 트렌드 반전의 가능성을 판단한다. 구체적으로, 지표 내부에서 두 가지 변수를 유지한다: 극한 가격 (EP) 와 촉발 가격 (TP). EP는 현재 추세 아래의 최고 가격 또는 최저 가격을 나타냅니다.
상승 추세에서, 가격이 EP보다 높을 때, 비정상적인 돌파구로 판정되며, 이 때 EP는 최고 가격으로 업데이트되며, TP는 최저 가격으로. 가격이 TP보다 낮을 때, 판정 추세는 반전하여 판매 신호를 생성한다. 하향 추세에서, 원칙은 비슷하다.
이 전략은 트레이킹 스톱 메커니즘과 결합하여, 포지션을 열었을 때, 최적의 스톱 가격을 실시간으로 추적하여, 수익을 보장하면서 위험을 제어한다. 구체적으로, 더 많이 할 때, 스톱 라인은 종결 하위점을 추적한다.
장점
이 전략은 다음과 같은 장점을 가지고 있습니다.
-
트렌드 반전 지점을 식별하는 지표를 사용해서 가두는 것은 쉬운 일이 아닙니다.
-
손해를 추적하는 스톱 메커니즘을 통해 수익을 고정하고 손실을 방지할 수 있습니다.
-
지표의 매개 변수는 간단하고 쉽게 구현할 수 있습니다.
-
구매/판매 신호를 설정할 수 있고, 조작이 편리하다.
-
전략의 효과에 대해 전체적으로 평가할 수 있는 리테크 사이클을 유연하게 구성할 수 있다.
위험
이 전략에는 몇 가지 위험도 있습니다.
-
지표가 지연되어 있고, 트렌드 반전의 최적의 지점을 놓칠 수 있다.
-
"지속적인 가격 변동으로 인해 급격한 가격 변동이 발생할 수 있습니다".
-
회귀주기를 잘못 선택하여 전략의 효과를 완전히 평가할 수 없습니다.
-
거래비용이 수익에 미치는 영향에 주의를 기울여야 합니다.
위험 대응은 다음과 같은 측면에서 최적화 될 수 있습니다:
-
지표 파라미터를 조정하여 미지수를 줄입니다.
-
이 알고리즘을 이용하면, <unk>을 피할 수 있습니다.
-
신뢰성을 보장하기 위해 적절한 회귀 주기를 선택하십시오.
-
포지션 관리를 최적화하고 거래 비용을 절감합니다.
최적화 방향
이 전략은 다음과 같은 부분에서 더 개선될 수 있습니다.
-
트렌드 지표와 결합하여 역전 거래가 피되는 것을 피하십시오. MA와 같은 지표와 함께 큰 트렌드를 판단 할 수 있습니다.
-
고정 비율 포지션, 동적 포지션 등 포지션 관리 알고리즘을 최적화한다.
-
거래량 필터링을 추가하여 틈새로 인한 잘못된 거래를 방지합니다.
-
매개 변수를 최적화하여 최적의 매개 변수 조합을 찾습니다.
-
트렌드가 진행되는 동안 정지하는 전략에 참여하십시오.
-
절감 전략을 최적화하여 절감을 더 부드럽게하십시오. Chandelier Exit와 같은 절감 알고리즘을 시도 할 수 있습니다.
-
거래 유형, 시간, 기타를 최적화하여 전략의 적응성을 향상시킵니다.
-
기계 학습 알고리즘을 추가하여 전략을 더욱 적응시킬 수 있습니다.
요약하다
이 전략은 전체적으로 간단하고 신뢰할 수 있으며, 탄력적인 중단 지표를 사용하여 반전 지점을 식별하고, 중단 메커니즘 제어 위험을 추적할 수 있습니다. 단선 반전 전략으로 사용할 수 있습니다. 그러나 지표 지연, 너무 급진적인 중단 등의 문제를 주의해야합니다. 추가 최적화를 통해 더 나은 전략 효과를 얻을 수 있습니다.
Overview
This strategy is based on the Parabolic SAR indicator to generate buy and sell signals for long and short positions. It also incorporates a trailing stop loss mechanism to effectively control risks.
Principle
The core of this strategy is to identify trend reversal points using the Parabolic SAR indicator for counter-trend trading. The indicator uses the true range to detect extreme prices. When the price exceeds the extreme, it is considered a breakout and a sign of potential trend reversal. Specifically, the indicator maintains two variables: the Extreme Price (EP) and the Trigger Price (TP). The EP represents the highest/lowest price of the current trend, while the TP is derived from the EP.
In an uptrend, when the price is higher than the EP, it is considered a breakout. The EP is then updated to the highest price and the TP to the lowest price. When the price falls below the TP, a trend reversal is identified and a sell signal is generated. The same principle applies for a downtrend.
The strategy also incorporates a trailing stop loss mechanism. After opening a position, it will track the optimal stop loss price in real-time, locking in profits while controlling risks. Specifically, after long entry, the stop loss tracks the closing low; after short entry, it tracks the closing high.
Advantages
The main advantages of this strategy are:
-
Identify trend reversal points with the indicator, avoiding being trapped in trends.
-
Trailing stop loss locks in profits and prevents wider losses.
-
Simple indicator parameters, easy to implement.
-
Configurable buy/sell signal alerts for convenience.
-
Flexible backtest period configuration for thorough evaluation.
Risks
There are also some risks to consider:
-
Indicator lag may miss optimal reversal points.
-
Aggressive stops may be stopped out by short-term fluctuations.
-
Improper backtest period selection cannot fully evaluate the strategy.
-
Transaction costs may impair profits.
Some ways to address the risks are:
-
Optimize parameters to reduce lag.
-
Improve stop loss algorithm to avoid being stopped out unnecessarily.
-
Select appropriate backtest periods for reliability.
-
Optimize position sizing to lower transaction costs.
Enhancement
Some ways to further optimize the strategy:
-
Incorporate trend indicators like MA to avoid being trapped in countertrends.
-
Optimize position sizing algorithms, e.g. fixed fractional, dynamic.
-
Add volume filter to avoid false signals from gaps.
-
Parameter optimization to find optimal combinations.
-
Implement profit taking strategies to lock in profits in trends.
-
Refine stop loss algorithms for smoother stops. Experiment with Chandelier Exit etc.
-
Optimize across products, time frames etc. to improve adaptability.
-
Incorporate machine learning for greater adaptability.
Summary
In summary, this is a simple and robust strategy using the Parabolic SAR to identify reversals and trailing stop loss to control risk. It can work as a short-term mean-reversion strategy. But indicator lag and oversensitive stops need to be addressed. Further optimizations can lead to improved performance.
/*backtest
start: 2023-09-10 00:00:00
end: 2023-10-10 00:00:00
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy("PB SAR BackTest - Colorbar", overlay=false)
// Full credit to Sawcruhteez, Lucid Investment Strategies LLC, Casey Bowman and Peter Brandt.- 1
