ジェネシス・クロスオーバー・トレーディング・戦略

作者: リン・ハーンチャオチャン,日付: 2023-09-10 21:38:32
タグ:

Genesisの取引戦略は,トレード・シグナルを生成するために2つの指数的な移動平均値 (EMA) のクロスオーバーを使用するトレンドフォロー戦略です.

働き方

この戦略は,より速いEMA (デフォルト20期) とより遅いEMA (デフォルト50期) を使用する.より速いEMAがより遅いEMAを超えると,ロングポジションがとられる.より速いEMAがより遅いEMAを下回ると,ショートポジションがとられる.

クロスオーバーは,短期的および長期的トレンドの開始を把握することを目的としています.より長いEMAはトレンド方向を提示し,より短いEMAは信号の感度を示します.

利益

この戦略の主な利点は以下の通りです.

シンプルで簡単に実行できます トレンドの継続から勢いを捉える 柔軟性のための長距離と短距離信号 調整可能な EMA 長さ リスク

潜在的リスクや欠点には以下があります.

範囲限定市場でのウィップソーの可能性 急速に逆転する市場における遅延信号 ストップ・ロスは定義されていないため,大きな引き上げにつながる可能性があります. Genesis 戦略は,強い方向的トレンドが発生するときにうまく機能する.横向の揺れ動いている市場は,誤った信号とストップアウトを引き起こす可能性があります.適切なリスク管理を使用することが推奨されます.


/*backtest
start: 2023-01-01 00:00:00
end: 2023-06-15 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © genesisjgonzalezh

//@version=5
strategy("GENESIS", overlay=true)

lenght1= (20)
lenght2= (50)

ema1= ta.ema(close, lenght1)
ema2 = ta.ema(close, lenght2)

long = ta.crossover(ema1,ema2)


short = ta.crossover(ema2,ema1)

LongSignal  = ta.crossover (ema1,ema2)
ShortSignal = ta.crossunder (ema1,ema2)
plotshape(LongSignal , title="Señal para Long", color= color.green, location=location.belowbar, size=size.tiny, text="Long", textcolor=color.white)
plotshape(ShortSignal , title="Señal para Short", color= color.red, location=location.abovebar, size=size.tiny, text="Short", textcolor=color.white)

strategy.entry("long", strategy.long, when = long)
strategy.exit("Exit", "Long", profit = 10, loss = 2)
strategy.entry("short", strategy.short, when = short)
strategy.exit("Exit", "short", profit = 10, loss = 2)



もっと