OPEN-SOURCE SCRIPT

Three-Point SwingChannel System

60
This Pine Script indicator creates a "Three-Point SwingChannel System " designed to identify and visualize swing patterns in price action. The system automatically detects three significant swing points (high-low-high or low-high-low patterns) and draws channel lines based on these points.

The indicator offers two main modes: automatic channel detection and manual swing period setting. In automatic mode, it searches for the optimal swing period by testing different timeframes to find one where price action stays within the channel boundaries. The manual mode allows you to specify a fixed swing detection period.

Key features include:
- swing fractal detection with adjustable periods
- automatic channel optimization that finds the best-fitting period
- fibonacci retracement levels (38.2%, 50%, 61.8%) drawn between swing points
- noise filter option that uses closing prices instead of high/low for channel validation
- information panel showing current trend, swing period, channel status, and pattern type
- visual swing markers with green triangles for highs and red triangles for lows

The system works by identifying the three most recent swing points and drawing trend lines connecting them. It then projects these lines forward to create a channel. The indicator continuously monitors whether price action remains within this channel and can automatically adjust the swing detection period to maintain channel validity.

The noise filter feature is particularly useful in volatile markets as it ignores wicks and focuses on closing price action for channel validation, reducing false breakout signals.

---

このPine Scriptインジケータは、価格アクションのスイングパターンを識別し視覚化するように設計されています。システムは自動的に3つの重要なスイングポイント(高値-安値-高値または安値-高値-安値のパターン)を検出し、これらのポイントに基づいてチャネルラインを描画します。

インジケータには2つの主要なモード があります:自動チャネル検出と手動スイング期間設定です。自動モードでは、価格アクションがチャネル境界内に収まる期間を見つけるために異なる時間枠をテストし、最適なスイング期間を検索します。手動モードでは、固定のスイング検出期間を指定できます。

主な機能:
- 調整可能な期間によるスイングフラクタル検出
- 最適なフィット期間を見つける自動チャネル最適化
- スイングポイント間に描画されるフィボナッチリトレースメントレベル(38.2%、50%、61.8%)
- チャネル検証に高値・安値ではなく終値を使用するノイズフィルターオプション
- 現在のトレンド、スイング期間、チャネル状態、パターンタイプを表示する情報パネル
- 高値を緑の三角、安値を赤の三角で示すビジュアルスイングマーカー

システムは最新の3つのスイングポイントを識別し、それらを結ぶトレンドラインを描画することで動作します。その後、これらのラインを前方に投影してチャネルを作成します。インジケータは価格アクションがこのチャネル内に留まっているかを継続的に監視し、チャネルの有効性を維持するためにスイング検出期間を自動調整できます。

ノイズフィルター機能は、ヒゲを無視して終値アクションに焦点を当ててチャネル検証を行うため、ボラティリティの高い市場で特に有用で、偽のブレイクアウトシグナルを減らします。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。