OPEN-SOURCE SCRIPT
TF: Market Cycle MA (MCMA)

TradingFlow: Market Cycle MA (MCMA)
MCMA plots two moving averages of the same length on the price chart: an EMA and a Wilder RMA. These two averages smooth price at different rates, so their relative position tells you about the current trend direction and momentum at a chosen cycle length.
Switch the chart timeframe and you'll see the broader market regime at each level, from intraday cycles up to weekly and monthly trends. This helps you stay aligned with the dominant direction while filtering out short-term noise.
The cycle length comes from a standard market calendar: up to 5 minutes maps to a trading day, 6–15 minutes to a trading week, 16–65 minutes to a trading month, up to 24 hours to a quarter, and weekly and above to a year. You can also use shorter cycle fractions (75% or 50%) for faster response.
How It Works
EMA uses a smoothing factor of 2/(N+1), while Wilder RMA uses 1/N. With the same period N, the EMA responds roughly twice as fast as the RMA. This difference is the core signal:
• When price is trending upward, the faster EMA pulls above the slower RMA.
• When price is trending downward, the faster EMA drops below the slower RMA.
• When price is flat, both averages converge and the spread narrows.
In practice, this behaves like a fast/slow EMA crossover system where the "slow" side is approximately twice the "fast" side's period, packed into a single setting.
How to Read the Chart
• Green line (thicker): EMA, the faster average.
• Fainter line (thinner): Wilder RMA, the slower average, same color family as the EMA but more transparent.
• Fill between lines: colored by the current trend regime. Green for bullish, red for bearish, gray for neutral.
The fill color changes as the regime shifts, giving you a continuous read on trend state.
Trend Classification
MCMA classifies each bar into one of three regimes based on multiple conditions:
• Bullish: EMA is above RMA, price is above RMA, EMA is rising, and RMA is not falling.
• Bearish: EMA is below RMA, price is below RMA, EMA is falling, and RMA is not rising.
• Neutral: Any other combination, such as small spread, flat slopes, or mixed price position.
You can raise the minimum EMA–RMA spread (in ATR units) to filter out low-confidence signals during choppy markets. A slope filter is also available to require the EMA to be moving decisively in the trend direction.
Important
MCMA is a trend-direction indicator. It does not predict reversals, generate entry signals, or measure volatility. The trend classification is a filtered interpretation of the two averages' relationship, not a confirmation of price action. Because both averages use the same nominal period, the EMA–RMA spread primarily reflects recent momentum rather than the full cycle's worth of data. For the best results, use MCMA as context alongside other tools rather than as a standalone signal.
---
TradingFlow: Market Cycle MA (MCMA)
MCMA 在價格圖上同時繪製兩條相同週期長度的均線:EMA 和 Wilder RMA。兩種均線對價格的平滑速率不同,因此它們之間的相對位置可以揭示市場在選定週期下的趨勢方向與動量狀態。
切換圖表時間框架,就能看到不同層級的市場狀態,從日內週期到週線和月線趨勢,幫助你在各個時間框架下識別主要趨勢方向,過濾掉短期雜訊。
週期長度來源於標準市場日曆:5m 及以下對應一個交易日,6–15m 對應一個交易週,16–65m 對應一個交易月,24h 及以下對應一個季度,週線以上對應一年。指標也支持較短的週期比例(75% 或 50%),以獲得更快的響應。
工作原理
EMA 使用 2/(N+1) 的平滑係數,Wilder RMA 使用 1/N。在相同週期 N 下,EMA 的響應速度大約是 RMA 的兩倍。這種差異就是核心訊號來源:
• 價格上漲時,較快的 EMA 會領先於較慢的 RMA。
• 價格下跌時,較快的 EMA 會落後於較慢的 RMA。
• 價格橫盤時,兩條均線趨於收斂,價差縮小。
實際上,這等於一個快/慢雙均線交叉系統,「慢」側的週期約為「快」側的兩倍,只是用單一設定就能實現。
如何閱讀圖表
• 綠色線(較粗): EMA,較快的均線。
• 較淡的線(較細): Wilder RMA,較慢的均線,與 EMA 同色系但透明度更高。
• 兩條線之間的填充區域: 顏色由當前趨勢狀態決定。綠色表示看漲,紅色表示看跌,灰色表示中性。
填充區域的顏色會隨趨勢狀態的變化而切換,提供持續的視覺趨勢讀取。
趨勢分類
MCMA 根據多個條件將每根 K 線分為三種狀態之一:
• 看漲: EMA 位於 RMA 上方,價格位於 RMA 上方,EMA 正在上升,且 RMA 未在下降。
• 看跌: EMA 位於 RMA 下方,價格位於 RMA 下方,EMA 正在下降,且 RMA 未在上升。
• 中性: 其他任何組合,例如價差較小、斜率平坦或價格位置不一致。
可調高最小 EMA–RMA 價差(以 ATR 為單位)來過濾震盪市中的低置信度訊號。還可使用斜率過濾器,要求 EMA 在趨勢方向上明確運動。
重要說明
MCMA 是一個趨勢方向指標。它不預測反轉、不生成進場訊號、也不衡量波動率。趨勢分類是對兩條均線關係的過濾解釋,而非價格行為的確認。由於兩條均線使用相同的名義週期,EMA–RMA 價差主要反映近期動量,而非完整週期的數據。為獲得更好的效果,建議將 MCMA 作為輔助背景工具,與其他分析方法配合使用,而非作為獨立訊號。
---
TradingFlow: Market Cycle MA (MCMA)
MCMAは、価格チャートに同じ期間の2本の移動平均線をプロットします。1本はEMA、もう1本はウィルダーRMAです。2本の線は異なる速度で値動きを平滑化するため、互いの位置関係から選択したサイクルにおけるトレンドの方向とモメンタムを読み取ることができます。
チャートのタイムフレームを切り替えれば、日中の短いサイクルから週足・月足のトレンドまで、各レベルでの市場のレジームを把握できます。主たる方向感覚を保ちつつ、短期的なノイズを排除するのに役立ちます。
サイクルの長さは標準的な市場カレンダーから算出されます。5分足以下は1営業日、6〜15分足は1営業週、16〜65分足は1営業月、24時間以下は四半期、週足以上は1年に対応します。より短いサイクル割合(75% or 50%)を選択すると、応答が速くなります。
仕組み
EMAの平滑化係数は2/(N+1)、ウィルダーRMAは1/Nです。同じ期間Nでも、EMAはRMAのおよそ2倍の速さで反応します。この差がシグナルの核となります。
• 価格が上昇トレンドにあるとき、速いEMAは遅いRMAの上に位置します。
• 価格が下降トレンドにあるとき、速いEMAは遅いRMAの下に位置します。
• 価格がレンジで推移するとき、2本の線は収束し、スプレッドは狭まります。
実質的にこれは、速いEMAと遅いEMAのクロスオーバーシステムと同じ動作をします。「遅い」側の期間が「速い」側の約2倍に相当し、1つの設定で実現しています。
チャートの見方
• 緑の線(太い方): EMA。速い方の移動平均です。
• 薄い色の線(細い方): ウィルダーRMA。遅い方の移動平均で、EMAと同じ色系統ですが透過率が高くなっています。
• 2本の線の間の塗りつぶし: 現在のトレンドレジームに応じて色が変わります。強気なら緑、弱気なら赤、中立ならグレーです。
レジームが切り替わると塗りつぶしの色も変わり、トレンドの状態を視覚的に把握できます。
トレンド分類
MCMAは複数の条件に基づき、各足を3つのレジームのいずれかに分類します。
• 強気: EMAがRMAの上、終値がRMAの上、EMAが上昇中、RMAが下降していない。
• 弱気: EMAがRMAの下、終値がRMAの下、EMAが下降中、RMAが上昇していない。
• 中立: 上記以外のすべての組み合わせ。スプレッドが小さい、傾きがフラット、価格の位置が混在する場合など。
EMA−RMAスプレッド(ATR単位)の最小値を上げれば、もみ合い相場での偽シグナルをフィルタリングできます。傾きフィルタを使えば、EMAがトレンド方向に明確に動いていることを条件として設定できます。
注意事項
MCMAはトレンド方向を示す指標です。反転の予測、エントリーシグナルの生成、ボラティリティの測定を行いません。トレンド分類は2本の移動平均の関係をフィルタリングして解釈したものであり、価格行動の確認ではありません。両方の平均が同じ名目の期間を使用しているため、EMA−RMAスプレッドはサイクル全体のデータよりも直近のモメンタムを反映します。より効果的に使うには、MCMA単体ではなく他のツールと併用して背景情報として活用してください。
MCMA plots two moving averages of the same length on the price chart: an EMA and a Wilder RMA. These two averages smooth price at different rates, so their relative position tells you about the current trend direction and momentum at a chosen cycle length.
Switch the chart timeframe and you'll see the broader market regime at each level, from intraday cycles up to weekly and monthly trends. This helps you stay aligned with the dominant direction while filtering out short-term noise.
The cycle length comes from a standard market calendar: up to 5 minutes maps to a trading day, 6–15 minutes to a trading week, 16–65 minutes to a trading month, up to 24 hours to a quarter, and weekly and above to a year. You can also use shorter cycle fractions (75% or 50%) for faster response.
How It Works
EMA uses a smoothing factor of 2/(N+1), while Wilder RMA uses 1/N. With the same period N, the EMA responds roughly twice as fast as the RMA. This difference is the core signal:
• When price is trending upward, the faster EMA pulls above the slower RMA.
• When price is trending downward, the faster EMA drops below the slower RMA.
• When price is flat, both averages converge and the spread narrows.
In practice, this behaves like a fast/slow EMA crossover system where the "slow" side is approximately twice the "fast" side's period, packed into a single setting.
How to Read the Chart
• Green line (thicker): EMA, the faster average.
• Fainter line (thinner): Wilder RMA, the slower average, same color family as the EMA but more transparent.
• Fill between lines: colored by the current trend regime. Green for bullish, red for bearish, gray for neutral.
The fill color changes as the regime shifts, giving you a continuous read on trend state.
Trend Classification
MCMA classifies each bar into one of three regimes based on multiple conditions:
• Bullish: EMA is above RMA, price is above RMA, EMA is rising, and RMA is not falling.
• Bearish: EMA is below RMA, price is below RMA, EMA is falling, and RMA is not rising.
• Neutral: Any other combination, such as small spread, flat slopes, or mixed price position.
You can raise the minimum EMA–RMA spread (in ATR units) to filter out low-confidence signals during choppy markets. A slope filter is also available to require the EMA to be moving decisively in the trend direction.
Important
MCMA is a trend-direction indicator. It does not predict reversals, generate entry signals, or measure volatility. The trend classification is a filtered interpretation of the two averages' relationship, not a confirmation of price action. Because both averages use the same nominal period, the EMA–RMA spread primarily reflects recent momentum rather than the full cycle's worth of data. For the best results, use MCMA as context alongside other tools rather than as a standalone signal.
---
TradingFlow: Market Cycle MA (MCMA)
MCMA 在價格圖上同時繪製兩條相同週期長度的均線:EMA 和 Wilder RMA。兩種均線對價格的平滑速率不同,因此它們之間的相對位置可以揭示市場在選定週期下的趨勢方向與動量狀態。
切換圖表時間框架,就能看到不同層級的市場狀態,從日內週期到週線和月線趨勢,幫助你在各個時間框架下識別主要趨勢方向,過濾掉短期雜訊。
週期長度來源於標準市場日曆:5m 及以下對應一個交易日,6–15m 對應一個交易週,16–65m 對應一個交易月,24h 及以下對應一個季度,週線以上對應一年。指標也支持較短的週期比例(75% 或 50%),以獲得更快的響應。
工作原理
EMA 使用 2/(N+1) 的平滑係數,Wilder RMA 使用 1/N。在相同週期 N 下,EMA 的響應速度大約是 RMA 的兩倍。這種差異就是核心訊號來源:
• 價格上漲時,較快的 EMA 會領先於較慢的 RMA。
• 價格下跌時,較快的 EMA 會落後於較慢的 RMA。
• 價格橫盤時,兩條均線趨於收斂,價差縮小。
實際上,這等於一個快/慢雙均線交叉系統,「慢」側的週期約為「快」側的兩倍,只是用單一設定就能實現。
如何閱讀圖表
• 綠色線(較粗): EMA,較快的均線。
• 較淡的線(較細): Wilder RMA,較慢的均線,與 EMA 同色系但透明度更高。
• 兩條線之間的填充區域: 顏色由當前趨勢狀態決定。綠色表示看漲,紅色表示看跌,灰色表示中性。
填充區域的顏色會隨趨勢狀態的變化而切換,提供持續的視覺趨勢讀取。
趨勢分類
MCMA 根據多個條件將每根 K 線分為三種狀態之一:
• 看漲: EMA 位於 RMA 上方,價格位於 RMA 上方,EMA 正在上升,且 RMA 未在下降。
• 看跌: EMA 位於 RMA 下方,價格位於 RMA 下方,EMA 正在下降,且 RMA 未在上升。
• 中性: 其他任何組合,例如價差較小、斜率平坦或價格位置不一致。
可調高最小 EMA–RMA 價差(以 ATR 為單位)來過濾震盪市中的低置信度訊號。還可使用斜率過濾器,要求 EMA 在趨勢方向上明確運動。
重要說明
MCMA 是一個趨勢方向指標。它不預測反轉、不生成進場訊號、也不衡量波動率。趨勢分類是對兩條均線關係的過濾解釋,而非價格行為的確認。由於兩條均線使用相同的名義週期,EMA–RMA 價差主要反映近期動量,而非完整週期的數據。為獲得更好的效果,建議將 MCMA 作為輔助背景工具,與其他分析方法配合使用,而非作為獨立訊號。
---
TradingFlow: Market Cycle MA (MCMA)
MCMAは、価格チャートに同じ期間の2本の移動平均線をプロットします。1本はEMA、もう1本はウィルダーRMAです。2本の線は異なる速度で値動きを平滑化するため、互いの位置関係から選択したサイクルにおけるトレンドの方向とモメンタムを読み取ることができます。
チャートのタイムフレームを切り替えれば、日中の短いサイクルから週足・月足のトレンドまで、各レベルでの市場のレジームを把握できます。主たる方向感覚を保ちつつ、短期的なノイズを排除するのに役立ちます。
サイクルの長さは標準的な市場カレンダーから算出されます。5分足以下は1営業日、6〜15分足は1営業週、16〜65分足は1営業月、24時間以下は四半期、週足以上は1年に対応します。より短いサイクル割合(75% or 50%)を選択すると、応答が速くなります。
仕組み
EMAの平滑化係数は2/(N+1)、ウィルダーRMAは1/Nです。同じ期間Nでも、EMAはRMAのおよそ2倍の速さで反応します。この差がシグナルの核となります。
• 価格が上昇トレンドにあるとき、速いEMAは遅いRMAの上に位置します。
• 価格が下降トレンドにあるとき、速いEMAは遅いRMAの下に位置します。
• 価格がレンジで推移するとき、2本の線は収束し、スプレッドは狭まります。
実質的にこれは、速いEMAと遅いEMAのクロスオーバーシステムと同じ動作をします。「遅い」側の期間が「速い」側の約2倍に相当し、1つの設定で実現しています。
チャートの見方
• 緑の線(太い方): EMA。速い方の移動平均です。
• 薄い色の線(細い方): ウィルダーRMA。遅い方の移動平均で、EMAと同じ色系統ですが透過率が高くなっています。
• 2本の線の間の塗りつぶし: 現在のトレンドレジームに応じて色が変わります。強気なら緑、弱気なら赤、中立ならグレーです。
レジームが切り替わると塗りつぶしの色も変わり、トレンドの状態を視覚的に把握できます。
トレンド分類
MCMAは複数の条件に基づき、各足を3つのレジームのいずれかに分類します。
• 強気: EMAがRMAの上、終値がRMAの上、EMAが上昇中、RMAが下降していない。
• 弱気: EMAがRMAの下、終値がRMAの下、EMAが下降中、RMAが上昇していない。
• 中立: 上記以外のすべての組み合わせ。スプレッドが小さい、傾きがフラット、価格の位置が混在する場合など。
EMA−RMAスプレッド(ATR単位)の最小値を上げれば、もみ合い相場での偽シグナルをフィルタリングできます。傾きフィルタを使えば、EMAがトレンド方向に明確に動いていることを条件として設定できます。
注意事項
MCMAはトレンド方向を示す指標です。反転の予測、エントリーシグナルの生成、ボラティリティの測定を行いません。トレンド分類は2本の移動平均の関係をフィルタリングして解釈したものであり、価格行動の確認ではありません。両方の平均が同じ名目の期間を使用しているため、EMA−RMAスプレッドはサイクル全体のデータよりも直近のモメンタムを反映します。より効果的に使うには、MCMA単体ではなく他のツールと併用して背景情報として活用してください。
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.