ターンディング フォロー 戦略 ピボット ポイント ブレイク

作者: リン・ハーンチャオチャン, 日時: 2023-09-13 17:20:40
タグ:

この戦略は"Pivot Point Breakoutに基づくトレンドフォロー戦略"と呼ばれる. 主要なサポートレベルとレジスタンスレベルを特定し,トレンドをフォローするためにこれらのレベルのブレークアウトを取引する.

論理的には

  1. 期間中の最高高値と最低低値を主要なサポート/レジスタンスレベルとして計算する.

  2. 価格が前日のピホットの高値を突破すると,買い信号が生成されます.

  3. 価格が前日の低ピボットを下回ると,売り信号が生成されます.

  4. 突破後もトレンドを迅速にフォローします. サポートが再び突破した場合,ストップロスは終了します.

トレンド取引のピボットブレイクタイミングを活用する利点があります.しかし,変動市場中に過剰な不確実な信号を避けるために指標パターンを監視する必要があります.

要約すると,ピホタルサポート/レジスタンスレベルのブレイクを見ることは,比較的シンプルで直感的なトラッキングアプローチです. しかし,トレーダーは,戦略がトレンドエントリーとタイムリーストップ損失から利益を得るためには,追加の技術指標とパラメータ調整からの確認が必要です.


/*backtest
start: 2022-09-12 00:00:00
end: 2023-09-12 00:00:00
period: 3d
basePeriod: 1d
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/
// © Yo_adriiiiaan

//@version=4
strategy("Breakout Strategy", overlay = true, commission_type=strategy.commission.percent,commission_value=0, initial_capital = 1000,  default_qty_type=strategy.percent_of_equity, default_qty_value=100)
left =  input(10)
right = input(10)
pivot_high = 0.000
pivot_low = 0.000
pivot_high := nz(pivothigh(high,left,right), pivot_high[1])
pivot_low := nz(pivotlow(low,left,right), pivot_low[1])
plot(pivot_high)
plot(pivot_low)
breakout_bull = close > pivot_high[1]
breakdown_bear = close < pivot_low[1]

barcolor(close > pivot_high[1]? color.green:close < pivot_low[1]? color.red:close < pivot_high[1]? color.orange:na)
strategy.entry("Long", strategy.long, when = breakout_bull)
strategy.close_all(when = breakdown_bear) 
//strategy.entry("Short", strategy.short, when = breakdown_bear)


もっと