弾性ストップロスに基づくトレーリングストップロス戦略
概要
この戦略は,弾性的なストップ・ローズ指数に基づいて,買入と売却のシグナルを設定し,ロング・ポジションとショート・ポジションの操作を行う.指標が買入のシグナルを表示するときは,多めに行う.売出のシグナルが表示される時は,空っぽにする.この戦略は,トラッキング・ストップ・ローズメカニズムを組み込み,リスクを効果的に管理する.
原則
この戦略は,主に,弾力的なストップダメージ指標のトレンドの転換点を利用して,反転操作を行う.指数内部では,実際の範囲の指標を使用して,極限価格を識別し,価格が極限値を超えると異常突破とみなし,トレンドの反転の可能性を判断する.具体的には,指数内部では,極限価格 (EP) とトリガー価格 (TP) の2つの変数を維持する.EPは,現在のトレンドの下での最高価格または最低価格を表す.TPは,EPから計算される.
上昇傾向では,価格がEPより高いときは,異常突破として判定され,この時点でEPは最高価格,TPは最低価格として更新されます.価格がTPより低いときは,トレンドが逆転し,セールシグナルを生じることを判定します.下降傾向では,原理は類似しています.
この戦略は,ストップトラッキングメカニズムを組み合わせて,ポジションを開設した後に,最適なストップ価格をリアルタイムで追跡し,収益を保証しながらリスクをコントロールする.具体的には,オーバーした後に,ストップラインは,閉店の低点を追跡し,空白した後に,ストップラインは,閉店の高点を追跡する.
利点
この戦略の利点は以下の通りです.
-
ターニングポイントを特定する指標を用いれば, 囚われにくくならない.
-
利益の拡大を防ぐため,ストップ・ロスを追跡する.
-
目標のパラメータはシンプルで簡単に実行できます.
-
購入・売却のシグナル提示を設定し,操作が簡単です.
-
戦略の効果を全面的に評価するために,柔軟にフィクションサイクルを設定できます.
リスク
この戦略にはいくつかのリスクがあります.
-
この指数は,トレンドの逆転の最適なポイントを逃している可能性があります.
-
価格の短期的な波動によって損なわれる可能性があります.
-
戦略の効果を全面的に評価できない.
-
取引コストが収益に与える影響に注目してください.
リスクに対応するには,以下の方法で最適化できます.
-
指標パラメータを調整し,遅滞を縮小する.
-
ストップ・ローズ・アルゴリズムを最適化して,騙されないようにする.
-
適切な反射周期を選択して信頼性を確保する.
-
ポジション管理の最適化と取引コストの削減
最適化の方向
この戦略は,以下の点でさらに最適化できます.
-
トレンド指数と組み合わせて,反転取引を回避する.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
