INVITE-ONLY SCRIPT
CM EMA Crossover Price Probabilities custom

CM EMA Crossover Price Probabilities
This indicator combines Exponential Moving Average (EMA) crossovers with swing high/low detection to calculate and display the historical probability of price movements exceeding user-defined percentage thresholds. Unlike standard EMA crossover indicators, it quantifies the likelihood of specific price changes following bullish (fast EMA crossing above slow EMA) or bearish (fast EMA crossing below slow EMA) crossovers, providing traders with data-driven insights into potential price behavior.
How It Works:EMA Crossovers: Detects when the fast EMA crosses above (bullish) or below (bearish) the slow EMA, marking these events with chart labels.
Price Change Measurement: Measures the percentage price change from the crossover point to the next swing high (for bullish crossovers) or swing low (for bearish crossovers), using pivot point detection.
Probability Calculation: Analyses historical crossover data to compute the probability of price changes meeting or exceeding customizable percentage thresholds (e.g., 2.5%, 5%). Probabilities are displayed as labels on the last bar, showing both bullish and bearish outcomes.
Customization: Allows users to adjust EMA lengths, pivot lookback, historical data limit, and probability thresholds via inputs.
Inputs:Fast EMA Length (default: 20): Period for the fast EMA.
Slow EMA Length (default: 50): Period for the slow EMA.
Pivot Lookback (default: 15): Bars used to detect swing highs/lows.
Max Historical Crossovers (default: 100): Limits stored crossovers for performance.
Bin Thresholds (defaults: 2.5%, 4.6%, 8.4%, 21.0%, 100.0%): Five customizable percentage thresholds for probability calculations.
Usage:
Add the indicator to your chart and adjust inputs to match your trading style. Bullish and bearish crossover points are labeled on the chart, and probability labels appear in the top-right corner when sufficient data is available. Use these probabilities to assess the historical likelihood of price movements after EMA crossovers, aiding in trade planning or risk assessment.
Why It’s Useful:
By combining EMA crossovers with swing-based price change analysis, this indicator offers a unique perspective on market behaviour post-crossover. The customizable probability thresholds allow traders to focus on specific price movement targets, making it a versatile tool for studying trend strength and potential outcomes.
Notes:
Probabilities are based on historical data and do not predict future performance.
Set bin thresholds in ascending order for accurate probability calculations.
Designed for educational purposes to analyze EMA crossover patterns.
This indicator combines Exponential Moving Average (EMA) crossovers with swing high/low detection to calculate and display the historical probability of price movements exceeding user-defined percentage thresholds. Unlike standard EMA crossover indicators, it quantifies the likelihood of specific price changes following bullish (fast EMA crossing above slow EMA) or bearish (fast EMA crossing below slow EMA) crossovers, providing traders with data-driven insights into potential price behavior.
How It Works:EMA Crossovers: Detects when the fast EMA crosses above (bullish) or below (bearish) the slow EMA, marking these events with chart labels.
Price Change Measurement: Measures the percentage price change from the crossover point to the next swing high (for bullish crossovers) or swing low (for bearish crossovers), using pivot point detection.
Probability Calculation: Analyses historical crossover data to compute the probability of price changes meeting or exceeding customizable percentage thresholds (e.g., 2.5%, 5%). Probabilities are displayed as labels on the last bar, showing both bullish and bearish outcomes.
Customization: Allows users to adjust EMA lengths, pivot lookback, historical data limit, and probability thresholds via inputs.
Inputs:Fast EMA Length (default: 20): Period for the fast EMA.
Slow EMA Length (default: 50): Period for the slow EMA.
Pivot Lookback (default: 15): Bars used to detect swing highs/lows.
Max Historical Crossovers (default: 100): Limits stored crossovers for performance.
Bin Thresholds (defaults: 2.5%, 4.6%, 8.4%, 21.0%, 100.0%): Five customizable percentage thresholds for probability calculations.
Usage:
Add the indicator to your chart and adjust inputs to match your trading style. Bullish and bearish crossover points are labeled on the chart, and probability labels appear in the top-right corner when sufficient data is available. Use these probabilities to assess the historical likelihood of price movements after EMA crossovers, aiding in trade planning or risk assessment.
Why It’s Useful:
By combining EMA crossovers with swing-based price change analysis, this indicator offers a unique perspective on market behaviour post-crossover. The customizable probability thresholds allow traders to focus on specific price movement targets, making it a versatile tool for studying trend strength and potential outcomes.
Notes:
Probabilities are based on historical data and do not predict future performance.
Set bin thresholds in ascending order for accurate probability calculations.
Designed for educational purposes to analyze EMA crossover patterns.
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡CryptoMainly。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Please contact me by Direct Message for further information.
Thank you for your interest!!
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡CryptoMainly。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Please contact me by Direct Message for further information.
Thank you for your interest!!
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。