INVITE-ONLY SCRIPT

Multi-Timeframe Granville Signal

52
──────────────────────────────────────────
OVERVIEW
──────────────────────────────────────────
MTF Granville Signal is an invite-only Pine Script indicator that assists traders in identifying high-probability entry points based on Granville's Law principles, enhanced with Multi-Timeframe (MTF) structural analysis and dynamic Moving Average Deviation Rate (MADR) filtering.

This indicator is NOT investment advice. It is a technical analysis tool. All trading decisions and outcomes are the sole responsibility of the user.

──────────────────────────────────────────
WHAT MAKES THIS INDICATOR ORIGINAL
──────────────────────────────────────────
While many indicators implement basic Granville's Law or simple moving average crosses, this indicator distinguishes itself through two mathematically rigorous enhancements:

1. Dynamic MADR Filtering with Statistical Foundation

Unlike fixed percentage bands used in conventional overbought/oversold indicators, this system employs adaptive threshold calculation based on rolling standard deviation:

Mathematical Approach:
  • Calculates price deviation from the reference Simple Moving Average(SMA) as a percentage
  • Computes standard deviation (σ) over an extended lookback period
  • Default: 1σ threshold = 68.26% probability zone under normal distribution
  • User-configurable sigma multiplier (1σ, 2σ, 3σ)


Operational Logic:
  • Trend-following signals (Granville Rules 1, 2, 3, 5, 6, 7): Fire only when MADR is within normal range (< threshold), indicating healthy trend conditions
  • Counter-trend signals (Granville Rules 4, 8): Fire only when MADR exceeds threshold, indicating statistical over-extension and mean-reversion probability


Why This Matters:
Traditional indicators use arbitrary fixed thresholds (e.g., "overbought above +3%"). Market volatility varies dramatically across assets and time periods. A 3% deviation in EUR/USD may be extreme, while in Bitcoin it's noise. Dynamic MADR automatically adapts to each market's volatility characteristics, maintaining consistent statistical validity across diverse trading instruments.

2. MTF Structural Verification for Cycle-Phase Filtering

This is not merely displaying multiple timeframe SMAs on a chart. The indicator performs structural analysis to determine trend cycle phase:

Verification Mechanism:
  • Checks if price has recently touched/crossed the higher timeframe SMA within a configurable lookback period
  • Confirms SMA hierarchy alignment (short-term > mid-term > long-term for uptrends)
  • Distinguishes between early-cycle trend initiation and late-cycle exhaustion


Why This Matters:
Granville's Law signals can appear throughout a trend cycle, but probability varies significantly:
  • Early cycle (price recently interacted with higher TF SMA): High probability - catching trend initiation or deep retracements
  • Late cycle (price extended far from higher TF SMA): Low probability - entering during exhaustion phase


By requiring recent structural interaction with higher timeframe SMAs, the indicator filters out low-probability late-cycle entries, dramatically improving signal quality.

──────────────────────────────────────────
GRANVILLE'S LAW IMPLEMENTATION
──────────────────────────────────────────
This indicator implements all eight of Joseph Granville's classic rules, with a focus on Rules 1, 2, 3,4, 5, 6, 7, and 8 for primary signal generation. Rules 3 and 7 are operationalized through touch-based approximation (see explanation below):

Trend-Following Signals (Rules 1, 2, 3, 5, 6, 7)

Buy Signals:
  • Short-term SMA crosses above (or touches and bounces off) mid/long-term SMAs
  • SMA hierarchy confirms uptrend structure
  • MADR indicates price is NOT over-extended
  • Price recently interacted with higher timeframe SMA (MTF verification)


Sell Signals:
  • Mirror logic for downtrends


Counter-Trend Mean-Reversion Signals (Rules 4, 8)

Sell Signals:
  • Price shows extreme deviation from reference SMA (MADR exceeds threshold)
  • Price begins reverting toward SMA
  • Short-term SMA crosses below (or touches and bounces off) mid/long-term SMAs
  • Recent structural interaction with higher timeframe SMA confirms reversal setup


Buy Signals:
  • Mirror logic for oversold reversals


How Rules 3 and 7 Are Handled:
Rules 3 and 7 describe "price approaches the SMA." Rather than excluding these rules, this indicator approximates "approaches" as "touches the SMA" to eliminate ambiguity. In practice, defining "approaches" is subjective and adds complexity. By operationalizing "approaches" as "touches/crosses," the indicator maintains mechanical objectivity while still capturing the intent of Rules 3 and 7.

──────────────────────────────────────────
WHY GRANVILLE'S LAW?
──────────────────────────────────────────
Universality: Functions across all markets (forex, stocks, crypto, commodities) and timeframes
Simplicity: Based solely on price-to-moving-average relationships—no complex calculations
Reproducibility: Mechanical rules eliminate emotional bias
60+ Year Track Record: Proven principle since Joseph Granville's 1960 publication

──────────────────────────────────────────
TECHNICAL ARCHITECTURE
──────────────────────────────────────────
Signal Generation Process

  • Calculate SMAs across multiple timeframes (short/mid/long-term periods)
  • Compute MADR: Measure price deviation from reference SMA and its statistical significance
  • Verify MTF Structure: Check recent price interaction with higher timeframe SMA
  • Evaluate SMA Hierarchy: Confirm trend direction via SMA alignment
  • Apply Granville Logic: Detect specific Rule patterns (crosses, touches, bounces)
  • Determining deviation from SMA:
    • Trend-following: MADR < threshold (healthy trend)
    • Counter-trend: MADR > threshold (over-extension)
  • Signal Interval Control: Cooldown period prevents alert spam during noise


Why This Combination Works

The synthesis of these three components creates a robust filtering system:

  • Granville's Law provides the fundamental signal logic (proven over decades)
  • Dynamic MADR prevents entries at dangerous price extremes (volatility-adaptive risk management)
  • MTF Structural Verification ensures signals occur at optimal cycle phases (timing optimization)


No single element alone produces high-quality signals. Their integration may generate edge in trending market conditions.

──────────────────────────────────────────
WHAT THIS INDICATOR DOES NOT DO
──────────────────────────────────────────
To set realistic expectations:

❌ Does not predict future price direction with certainty
❌ Does not guarantee profitable trades
❌ Does not work equally well in all market conditions (see below for limitations)
❌ Does not replace risk management, position sizing, or trading discipline
❌ Does not provide trade exit signals (focus is on entry timing)

──────────────────────────────────────────
PARAMETER CONFIGURATION
──────────────────────────────────────────
Mid Term Trend Check Enabled (Default: true)
Activates SMA hierarchy verification for mid-term trend confirmation.
  • When enabled: Signals require short-term SMA > mid-term SMA (uptrend) or vice versa (downtrend)
  • When disabled: Only short-term SMA behavior is evaluated
  • Recommendation: Keep enabled for most use cases to filter weak trends


Long Term Trend Check Enabled (Default: true)
Adds long-term SMA to hierarchy verification for additional trend strength confirmation.
  • Requires Mid Term Trend Check to be enabled
  • When enabled: Signals require short-term SMA > mid-term SMA > long-term SMA alignment
  • Recommendation: Enable on lower timeframes (15m or below) for stronger filtering. Disable on higher timeframes (1h or above) as the additional filter becomes redundant and overly restrictive


Require Touch Higher Timeframe SMA Enabled (Default: true)
Enforces recent price interaction with higher timeframe SMA to filter late-cycle entries.
  • When enabled: Signals fire only if price touched/crossed mid-term or long-term SMA within lookback period
  • When disabled: Signals can fire regardless of recent SMA interaction (more signals, lower quality)
  • Recommendation: Keep enabled. This is a core filter for cycle-phase discrimination


Touch Higher Timeframe SMA Lookback Period (Default: 24 bars)
Defines how far back to search for price-SMA interaction.
  • Lower values (12-18): Stricter filtering, fewer signals, earlier cycle detection
  • Higher values (24-36): More lenient filtering, more signals, includes some mid-cycle entries
  • Recommendation: Adjust based on market volatility. Trending markets: use lower values. Choppy markets: use higher values to capture valid retracements


SMA Short Term Period (Default: 20)
Primary SMA for Granville's Law pattern detection.
  • Lower values (10-15): More responsive, more signals, higher noise
  • Higher values (25-40): Smoother, fewer signals, delayed entries
  • Recommendation: 20 is standard across most markets. Adjust ±5 based on your timeframe preference


SMA Mid Term Period (Default: 80)
Reference SMA for trend hierarchy and MTF verification.
  • Typically 3-5x the short-term period
  • Recommendation: 80 works well for intraday (15m, 1h) and swing trading (4h, daily). Maintain ratio relationship with short-term SMA


SMA Long Term Period (Default: 320)
Optional trend strength filter (requires Long Term Trend Check enabled).
  • Typically 4x the mid-term period
  • Recommendation: 320 is appropriate for multi-day trend analysis. Not critical for intraday scalping


SMA Period for Divergence (Default: 1920)
Lookback period for calculating MADR standard deviation. Two approaches:

Approach 1: Chart Timeframe SMA (Simple)
Use 20 periods matching your chart timeframe for straightforward deviation measurement.
  • Example: 20 periods on any timeframe


Approach 2: Higher Timeframe SMA (MTF Analysis)
Use period equivalent to higher timeframe's 20-period SMA for multi-timeframe structural analysis.
  • Recommendation for day trading:
    • 15m chart: 1920 periods (≈ daily 20-SMA: 20 days × 96 bars/day)
    • 1h chart: 480 periods (≈ daily 20-SMA: 20 days × 24 bars/day)
    • 4h chart: 120 periods (≈ daily 20-SMA: 20 days × 6 bars/day)


Both approaches are valid. Approach 2 incorporates higher timeframe context into MADR filtering.

MADR Standard Deviation Band (Sigma) (Default: 1.00)
Statistical threshold for determining trend overheating vs. healthy conditions.
  • 1.0σ = 68.26% probability zone (default, balanced)
  • 2.0σ = 95.44% probability zone (stricter, fewer counter-trend signals)
  • 3.0σ = 99.74% probability zone (very strict, rare extreme reversals only)
  • Recommendation: Start with 1.0σ. Increase to 2.0σ if you want to trade only extreme mean-reversion opportunities. Decrease to 0.5σ-0.8σ for more aggressive trend-following


Signal Minimum Interval (Default: 4 hours)
Cooldown period between signals to prevent alert spam during consolidation.
  • Measured in hours regardless of chart timeframe
  • 0 = no cooldown (all valid signals fire)
  • 2-4 = typical for day trading
  • 8-12 = typical for swing trading
  • Recommendation: Match to your trading frequency. Day traders: 2-4 hours. Swing traders: 8-12 hours


Buy/Sell Signal Text Color (Default: Blue)
Reversal Buy/Sell Signal Text Color (Default: Purple)
Customize label colors for visual distinction between trend-following and counter-trend signals.

Alert Display Prefix (Default: Auto-detected from chart timeframe)
Prefix for alert messages (e.g., "1h", "15m"). Auto-filled if left blank.

──────────────────────────────────────────
RECOMMENDED CONFIGURATIONS
──────────────────────────────────────────
Configuration 1: Aggressive Day Trading (15m Chart)

SMA Short: 20
SMA Mid: 80
SMA Long: 320
MADR SMA Period: 1920
MADR Sigma: 1.0
Signal Interval: 4 hours
Touch Lookback: 24 bars
Long Term Trend Check: Enabled

Use case: Active day trading, multiple signals per session

Configuration 2: Balanced Day Trading (1h Chart)

SMA Short: 20
SMA Mid: 80
MADR SMA Period: 480
MADR Sigma: 1.0
Signal Interval: 4 hours
Touch Lookback: 24 bars
Long Term Trend Check: Disabled

Use case: Standard day trading, moderate signal frequency

──────────────────────────────────────────
TECHNICAL LIMITATIONS AND UNSUITABLE CONDITIONS
──────────────────────────────────────────
This indicator has known limitations:

1. Range/Choppy Markets
Extended consolidation generates false signals and whipsaw entries. Wait for clear breakout or use higher timeframe trend filters.

2. Low Liquidity Instruments
In exotic pairs, microcap stocks, or illiquid assets, wide spreads and slippage erode edge. Stick to major high-volume instruments.

3. News-Driven Volatility
Fundamental shocks invalidate technical patterns. Avoid trading around scheduled high-impact news events.

4. Algorithmic Regime Changes
Market microstructure evolves over time. Review performance periodically and adjust parameters if edge deteriorates.

5. Extreme Market Regimes
Black swan events and unprecedented volatility cause all technical systems to fail simultaneously. Use circuit breakers and position size limits.

6. Gap Openings
Price gaps over weekends or between sessions invalidate some signals. Reduce position sizing accordingly.

──────────────────────────────────────────
OPEN-SOURCE CODE TRANSPARENCY
──────────────────────────────────────────
While the source code is proprietary and protected, the fundamentals are fully explainable:

  • SMA calculation: Standard Pine Script ta.sma() function
  • MADR calculation: (close - sma) / sma * 100 and ta.stdev() for threshold
  • MTF data retrieval: request.security() for higher timeframe values
  • Granville pattern detection: Logical comparison of price/SMA positions and crosses


No "black box" algorithms. No hidden magic. Only rigorous application of proven technical principles.

──────────────────────────────────────────
OPEN-SOURCE CODE REUSE
──────────────────────────────────────────
This indicator does NOT reuse code from other TradingView scripts. All logic is proprietary.

  • Standard Pine Script functions (ta.sma, ta.stdev, request.security, etc.) used per documented API
  • No third-party libraries or external dependencies
  • No license conflicts


──────────────────────────────────────────
VERSION INFORMATION
──────────────────────────────────────────
  • Current Version: 6 (Pine Script v6)
  • Author: © 2025 mmntmr369. All rights reserved.
  • Publication Type: Invite-only (Proprietary source code)


──────────────────────────────────────────
DISCLAIMER: This indicator is provided for educational and informational purposes only. It does not constitute investment advice, financial advice, trading advice, or any other type of advice. You should not make any investment decisions based solely on this indicator. Always conduct your own research and consult with a licensed financial professional before making investment decisions. Past performance does not indicate future results. Trading carries substantial risk of loss and is not suitable for all investors.


══════════════════════════════════════════
日本語版 / JAPANESE VERSION
══════════════════════════════════════════
──────────────────────────────────────────
概要
──────────────────────────────────────────
MTF Granville Signalは、グランビルの法則の原則に基づいた高確率エントリーポイントの特定を支援する招待制Pine Scriptインジケーターです。マルチタイムフレーム(MTF)構造分析と動的移動平均線乖離率(MADR)フィルタリングにより強化されています。

本インジケーターは投資助言ではありません。これはテクニカル分析ツールです。すべての取引判断と結果は、ユーザーの単独責任となります。

──────────────────────────────────────────
本インジケーターの独自性
──────────────────────────────────────────
多くのインジケーターが基本的なグランビルの法則または単純な移動平均クロスを実装していますが、本インジケーターは2つの数学的に厳密な拡張機能によって差別化されます:

1. 統計的基盤を持つ動的MADRフィルタリング

従来の買われ過ぎ/売られ過ぎインジケーターで使用される固定パーセンテージバンドとは異なり、本システムはローリング標準偏差に基づく適応的閾値計算を採用しています:

数学的アプローチ:
  • 参照SMAからの価格偏差をパーセンテージとして計算
  • 拡張ルックバック期間にわたって標準偏差(σ)を計算
  • デフォルト:1σ閾値 = 正規分布下の68.26%確率ゾーン
  • ユーザー設定可能なシグマ乗数(1σ、2σ、3σ)


操作ロジック:
  • 順張りシグナル(グランビル法則1、2、3、5、6、7):MADRが正常範囲内(<閾値)にある場合のみ発火し、健全なトレンド状態を示します
  • 逆張りシグナル(グランビル法則4、8):MADRが閾値を超える場合のみ発火し、統計的過度の拡張と平均回帰確率を示します


重要な理由:
従来のインジケーターは任意の固定閾値(例:「+3%以上で買われ過ぎ」)を使用します。市場のボラティリティは資産と期間によって劇的に変化します。EUR/USDでの3%偏差は極端かもしれませんが、ビットコインではノイズです。動的MADRは各市場のボラティリティ特性に自動的に適応し、多様な取引商品全体で一貫した統計的妥当性を維持します。

2. サイクルフェーズフィルタリングのためのMTF構造検証

これは単にチャート上に複数の時間足SMAを表示するだけではありません。インジケーターはトレンドサイクルフェーズを決定するための構造分析を実行します:

検証メカニズム:
  • 設定可能なルックバック期間内に価格が上位時間足SMAに最近タッチ/クロスしたかどうかを確認
  • SMA階層の整列を確認(上昇トレンドでは短期>中期>長期)
  • 初期サイクルトレンド開始と後期サイクル疲弊を区別


重要な理由:
グランビルの法則シグナルはトレンドサイクル全体で出現できますが、確率は大きく異なります:
  • 初期サイクル(価格が最近上位TF SMAと相互作用):高確率 - トレンド開始または深い調整を捕捉
  • 後期サイクル(価格が上位TF SMAから遠く離れている):低確率 - 疲弊フェーズ中のエントリー


上位時間足SMAとの最近の構造的相互作用を要求することで、インジケーターは低確率の後期サイクルエントリーを除外し、シグナル品質を劇的に向上させます。

──────────────────────────────────────────
グランビルの法則実装
──────────────────────────────────────────
本インジケーターはジョセフ・グランビルの古典的な8つの法則すべてを実装しており、法則1、2、3、4、5、6、7、8に焦点を当てた主要シグナル生成を行います。法則3と7はタッチベースの近似で運用されます(以下の説明を参照):

順張りシグナル(法則1、2、3、5、6、7)

買いシグナル:
  • 短期SMAが中期/長期SMAを上回って交差する(またはタッチしてバウンス)
  • SMA階層が上昇トレンド構造を確認
  • MADRが価格が過度に拡張されていないことを示す
  • 価格が最近上位時間足SMAと相互作用した(MTF検証)


売りシグナル:
  • 下降トレンドの場合は反対のロジック


逆張り平均回帰シグナル(法則4、8)

売りシグナル:
  • 価格が参照SMAから極端に乖離(MADRが閾値を超える)
  • 価格がSMAに向かって反転を開始
  • 短期SMAが中期/長期SMAを下回って交差する(またはタッチしてバウンス)
  • 上位時間足SMAとの最近の構造的相互作用が反転セットアップを確認


買いシグナル:
  • 売られ過ぎ反転の場合は反対のロジック


法則3と7の取り扱い:
法則3と7は「価格がSMAに接近する」と説明しています。これらの法則を除外するのではなく、本インジケーターは曖昧さを排除するために「接近」を「SMAにタッチ」として近似します。実際には、「接近」の定義は主観的で複雑さを追加します。「接近」を「タッチ/クロス」として運用することで、インジケーターは法則3と7の意図を捕捉しながら機械的客観性を維持します。

──────────────────────────────────────────
なぜグランビルの法則?
──────────────────────────────────────────
普遍性: すべての市場(外国為替、株式、暗号、商品)および時間足で機能
シンプルさ: 価格対移動平均の関係のみに基づく - 複雑な計算なし
再現性: 機械的ルールが感情的バイアスを排除
60年以上の実績: ジョセフ・グランビルの1960年の出版以来実証された原則

──────────────────────────────────────────
技術アーキテクチャ
──────────────────────────────────────────
シグナル生成プロセス

  • SMAを計算 複数の時間足にわたって(短期/中期/長期期間)
  • MADRを計算:参照SMAからの価格偏差とその統計的有意性を測定
  • MTF構造を検証:上位時間足SMAとの最近の価格相互作用を確認
  • SMA階層を評価:SMA整列によってトレンド方向を確認
  • グランビルロジックを適用:特定の法則パターンを検出(クロス、タッチ、バウンス)
  • SMAからの乖離を判定
    • 順張り:MADR < 閾値(健全なトレンド)
    • 逆張り:MADR > 閾値(過度の拡張)
  • シグナル間隔制御:クールダウン期間がノイズ中のアラートスパムを防止


なぜこの組み合わせが機能するか

これら3つのコンポーネントの統合が堅牢なフィルタリングシステムを生成します:

  • グランビルの法則が基本的なシグナルロジックを提供(数十年にわたって実証)
  • 動的MADRが危険な価格極値でのエントリーを防止(ボラティリティ適応的リスク管理)
  • MTF構造検証がシグナルを最適なサイクルフェーズで発生させる(タイミング最適化)


単一の要素だけでは高品質のシグナルは生成されません。それらの統合はトレンド相場環境においてエッジを生み出す可能性があります。

──────────────────────────────────────────
本インジケーターが行わないこと
──────────────────────────────────────────
現実的な期待を設定するために:

❌ 将来の価格方向を確実に予測しない
❌ 収益性のある取引を保証しない
❌ すべての市場環境で等しく機能しない(限界については下記参照)
❌ リスク管理、ポジションサイジング、または取引規律を置き換えない
❌ 取引の手仕舞いシグナルを提供しない(焦点はエントリータイミング)

──────────────────────────────────────────
パラメータ設定
──────────────────────────────────────────
Mid Term Trend Check Enabled(中期トレンドチェック有効) (デフォルト: true)
中期トレンド確認のためのSMA階層検証を有効化。
  • 有効時:シグナルは短期SMA > 中期SMA(上昇トレンド)またはその逆(下降トレンド)を要求
  • 無効時:短期SMAの動作のみを評価
  • 推奨:弱いトレンドをフィルタリングするため、ほとんどの用途で有効を維持


Long Term Trend Check Enabled(長期トレンドチェック有効) (デフォルト: true)
追加のトレンド強度確認のため、長期SMAをSMA階層検証に追加。
  • 中期トレンドチェックの有効化が必要
  • 有効時:シグナルは短期SMA > 中期SMA > 長期SMAの整列を要求
  • 推奨:低時間足(15分足以下)でより強力なフィルタリングのため有効化。高時間足(1時間足以上)では追加フィルターが冗長かつ過度に制限的になるため無効化


Require Touch Higher Timeframe SMA Enabled(上位足SMAタッチ要求有効) (デフォルト: true)
後期サイクルエントリーをフィルタリングするため、上位時間足SMAとの最近の価格相互作用を強制。
  • 有効時:シグナルはルックバック期間内に価格が中期または長期SMAにタッチ/クロスした場合のみ発火
  • 無効時:最近のSMA相互作用に関係なくシグナル発火(多くのシグナル、低品質)
  • 推奨:有効を維持。これはサイクルフェーズ識別のコアフィルター


Touch Higher Timeframe SMA Lookback Period(上位足SMAタッチルックバック期間) (デフォルト: 24バー)
価格-SMA相互作用を検索する遡及期間を定義。
  • 低い値(12-18):厳格なフィルタリング、少ないシグナル、初期サイクル検出
  • 高い値(24-36):寛容なフィルタリング、多くのシグナル、中期サイクルエントリーを含む
  • 推奨:市場ボラティリティに基づいて調整。トレンド市場:低い値を使用。荒れた市場:有効な調整を捉えるため高い値を使用


SMA Short Term Period(SMA短期期間) (デフォルト: 20)
グランビルの法則パターン検出のための主要SMA。
  • 低い値(10-15):反応的、多くのシグナル、高いノイズ
  • 高い値(25-40):滑らか、少ないシグナル、遅延エントリー
  • 推奨:20はほとんどの市場で標準。時間足の好みに基づいて±5調整


SMA Mid Term Period(SMA中期期間) (デフォルト: 80)
トレンド階層とMTF検証のための基準SMA。
  • 通常、短期期間の3-5倍
  • 推奨:80はデイトレ(15m、1h)とスイングトレード(4h、日足)に適している。短期SMAとの比率関係を維持


SMA Long Term Period(SMA長期期間) (デフォルト: 320)
オプションのトレンド強度フィルター(長期トレンドチェック有効時必要)。
  • 通常、中期期間の4倍
  • 推奨:320は数日間のトレンド分析に適している。デイトレ、スイングには重要でない


SMA Period for Divergence(乖離のためのSMA期間) (デフォルト: 1920)
MADR標準偏差計算のためのルックバック期間。2つのアプローチがあります:

アプローチ1:チャート時間足SMA(シンプル)
チャート時間足と同じ20期間を使用し、シンプルに乖離を測定。
  • 例:どの時間足でも20期間


アプローチ2:上位時間足SMA(MTF分析)
上位時間足の20期間SMA相当の期間を設定し、マルチタイムフレーム構造分析として利用。
  • デイトレーディング推奨設定:
    • 15分足チャート:1920期間(≈ 日足20-SMA:20日 × 96本/日)
    • 1時間足チャート:480期間(≈ 日足20-SMA:20日 × 24本/日)
    • 4時間足チャート:120期間(≈ 日足20-SMA:20日 × 6本/日)


両アプローチとも有効。アプローチ2は上位時間足のコンテクストをMADRフィルタリングに組み込む。

MADR Standard Deviation Band (Sigma)(MADR標準偏差バンド(シグマ)) (デフォルト: 1.00)
トレンド過熱と健全状態を判定するための統計的閾値。
  • 1.0σ = 68.26%確率ゾーン(デフォルト、バランス型)
  • 2.0σ = 95.44%確率ゾーン(厳格、少ない逆張りシグナル)
  • 3.0σ = 99.74%確率ゾーン(非常に厳格、稀な極端反転のみ)
  • 推奨:1.0σから開始。極端な平均回帰機会のみを取引したい場合は2.0σに増加。より積極的な順張りのため0.5σ-0.8σに減少


Signal Minimum Interval(シグナル最小間隔) (デフォルト: 4時間)
保ち合い中のアラートスパムを防ぐためのシグナル間のクールダウン期間。
  • チャート時間足に関係なく時間で測定
  • 0 = クールダウンなし(すべての有効なシグナルが発火)
  • 2-4 = デイトレード取引の典型
  • 8-12 = スイング取引の典型
  • 推奨:取引頻度に合わせる。デイトレーダー:2-4時間。スイングトレーダー:8-12時間


Buy/Sell Signal Text Color(買い/売りシグナルテキスト色) (デフォルト: 青)
Reversal Buy/Sell Signal Text Color(反転買い/売りシグナルテキスト色) (デフォルト: 紫)
順張りシグナルと逆張りシグナルの視覚的区別のためのラベル色をカスタマイズ。

Alert Display Prefix(アラート表示プレフィックス) (デフォルト: チャート時間足から自動検出)
アラートメッセージのプレフィックス(例:「1h」、「15m」)。空白の場合自動入力。

──────────────────────────────────────────
推奨設定例
──────────────────────────────────────────
設定1:積極的デイトレ(15分足チャート)

SMA Short: 20
SMA Mid: 80
SMA Long: 320
MADR SMA Period: 1920
MADR Sigma: 1.0
Signal Interval: 4時間
Touch Lookback: 24バー
Long Term Trend Check: 有効

用途: アクティブなデイトレード、セッションあたり複数のシグナル

設定2:バランス型デイトレ(1時間足チャート)

SMA Short: 20
SMA Mid: 80
MADR SMA Period: 480
MADR Sigma: 1.0
Signal Interval: 4時間
Touch Lookback: 24バー
Long Term Trend Check: 無効

用途: 標準的デイトレード、適度なシグナル頻度

──────────────────────────────────────────
技術的限界と不適切な条件
──────────────────────────────────────────
本インジケーターには既知の限界があります:

1. レンジ/荒れた市場
長期の保ち合いが偽シグナルとウィップソーエントリーを生成。明確なブレイクアウトまで待つか、高時間足トレンドフィルターを使用。

2. 流動性の低い銘柄
エキゾチックペア、マイクロキャップ株、流動性の低い資産では、広いスプレッドとスリッページがエッジを侵食。主要な高出来高銘柄に固執。

3. ニュース主導のボラティリティ
ファンダメンタルショックがテクニカルパターンを無効化。予定されている高インパクトニュースイベント前後の取引を避ける。

4. アルゴリズム的レジーム変化
市場マイクロ構造は時間とともに進化。定期的にパフォーマンスをレビューし、エッジが劣化した場合はパラメータを調整。

5. 極端な市場レジーム
ブラックスワンイベントと前例のないボラティリティは、すべてのテクニカルシステムを同時に失敗させる。サーキットブレーカーとポジションサイズ制限を使用。

6. ギャップオープニング
週末またはセッション間の価格ギャップが一部のシグナルを無効化。それに応じてポジションサイジングを削減。

──────────────────────────────────────────
オープンソースコードの透明性
──────────────────────────────────────────
ソースコードはプロプライエタリで保護されていますが、基本は以下で完全に説明できます:

  • SMA計算:標準Pine Script ta.sma()関数
  • MADR計算:(close - sma) / sma * 100と閾値のためのta.stdev()
  • MTFデータ取得:上位時間足値のためのrequest.security()
  • グランビルパターン検出:価格/SMAポジションとクロスの論理比較


「ブラックボックス」アルゴリズムなし。隠された魔法なし。実証された技術原則の厳密な適用のみ。

──────────────────────────────────────────
オープンソースコードの再利用
──────────────────────────────────────────
本インジケーターは他のTradingViewスクリプトのコードを再利用していません。すべてのロジックは独自です。

  • 標準Pine Script関数(ta.sma、ta.stdev、request.securityなど)は文書化されたAPIに従って使用
  • サードパーティライブラリや外部依存関係なし
  • ライセンス競合なし


──────────────────────────────────────────
バージョン情報

  • 現在のバージョン:6(Pine Script v6)
  • 作成者:© 2025 mmntmr369. 無断転載禁止。
  • 公開タイプ:招待制(プロプライエタリソースコード)


──────────────────────────────────────────
免責事項:本インジケーターは教育および情報提供目的のみで提供されています。投資助言、金融助言、取引助言、その他いかなる種類の助言も構成しません。本インジケーターのみに基づいて投資判断を行うべきではありません。投資判断を行う前に、必ずご自身で調査を行い、認可された金融専門家に相談してください。過去のパフォーマンスは将来の結果を示すものではありません。取引には多大な損失リスクがあり、すべての投資家に適しているわけではありません。

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.