OPEN-SOURCE SCRIPT

GC Strategy with Trend Filter and Sudden Move Profit Taking

Von 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

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss