OPEN-SOURCE SCRIPT

GC Strategy with Trend Filter and Sudden Move Profit Taking

KAISEI_4649의
BTCUSDT.P  15M


Situation Assessment with Three Moving Averages

The strategy uses the crossover of the 5SMA and 25SMA as entry signals.

Additionally, the 75SMA is used as a filter. Long entries are only allowed when the price is above the 75SMA, and short entries are only allowed when the price is below the 75SMA.

ADX Filter

The Average Directional Index (ADX) is used to check the strength of the trend. Entry signals are only activated when the ADX is above 20. This ensures that trades are only executed when the trend is strong.

Sudden Move Detection

The strategy detects sudden price movements. If a sudden move occurs, the position is closed to lock in profits.

Entry

Long Entry: When the 5SMA crosses above the 25SMA, the price is above the 75SMA, and the ADX is above 20.

Short Entry: When the 5SMA crosses below the 25SMA, the price is below the 75SMA, and the ADX is above 20.

Exit

Positions are closed if a sudden move occurs. Positions are also closed if an opposing entry signal is generated.

This strategy aims to confirm the strength of the trend using moving average crossovers and ADX and to lock in profits based on sudden price movements.





3本の移動平均線による状況判断

5SMAと25SMA のクロスオーバーをエントリーシグナルとして使用します。

さらに、75SMAをフィルターとして使用し、価格が75SMAの上にある場合のみロングエントリーを許可し、75SMAの下にある場合のみショートエントリーを許可します。



ADXフィルター

ADX(平均方向性指数)を使ってトレンドの強さを確認します。
ADXが20より大きい場合のみ、エントリーシグナルを有効にします。これにより、トレンドが強い時にのみ取引を行うことができます。

急激な変動検知

価格の急激な変動を検出します。
急激な変動があった場合には、ポジションをクローズして利益を確定します。


エントリー

ロングエントリー

5SMAが25SMAを上にクロスし、価格が75SMAの上にあり、ADXが20を超えているとき。


ショートエントリー

5SMAが25SMAを下にクロスし、価格が75SMAの下にあり、ADXが20を超えているとき。

エグジット

急激な変動があった場合、ポジションをクローズします。
反対のエントリーシグナルが発生した場合にも、ポジションをクローズします。
このストラテジーは、移動平均のクロスオーバーとADXを使ってトレンドの強さを確認し、急激な変動に基づいて利益を確定することを目的としています。
Pine utilities

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항