OPEN-SOURCE SCRIPT
4 EMA Perfect Order + Strength + MTF + Breakdown Alerts (v6)

🇯🇵 日本語説明文
📌 スクリプト概要
このスクリプトは、EMA10・20・40・80 を使用して「パーフェクトオーダー(PO)」を判定し、
PO が確定した瞬間と、PO が崩壊した瞬間の両方を自動で検知して通知します。
さらに、PO の強さ(短期と長期 EMA の乖離率)を数値化して表示し、
上位足(MTF)でも同様の判定と強さ表示が可能です。
トレンドの「始まり」と「終わり」をどちらも捉えることができる、
トレンドフォローに最適化されたインジケーターです。
🔧 機能一覧
• EMA10/20/40/80 のライン表示(黒・赤・オレンジ・青)
• パーフェクトオーダー(Bull/Bear)の自動判定
• PO確定時に矢印(▲/▼)を表示
• PO崩壊(Break)を検知してシグナル表示
• POの強さ(乖離率)をリアルタイム表示
• 上位足(MTF)での PO 判定と強さ表示
• アラート条件付き
• Bull PO 確定
• Bear PO 確定
• Bull PO 崩壊
• Bear PO 崩壊
• 背景は白で視認性を重視
📈 パーフェクトオーダーとは?
• Bull PO(上昇トレンド)
EMA10 > EMA20 > EMA40 > EMA80
• Bear PO(下降トレンド)
EMA10 < EMA20 < EMA40 < EMA80
PO が確定したバーで矢印とアラートが発生し、
PO が崩れた瞬間にもアラートが発生します。
🧠 活用例
• トレンドの勢い(強さ)を数値で把握
• 上位足のトレンドと一致しているか確認
• トレンドフォロー戦略のフィルターとして利用
• PO崩壊を使って利確・撤退の判断材料に
• MTFと組み合わせて精度を向上
🇺🇸 English Description
📌 Overview
This script detects “Perfect Order” (PO) conditions using EMA10, EMA20, EMA40, and EMA80.
It alerts you both when a PO is confirmed and when it breaks down, allowing you to capture the beginning and the end of a trend.
The script also calculates PO strength (based on EMA divergence) and supports multi‑timeframe (MTF) analysis.
This indicator is designed for traders who want to track trend momentum and identify early signs of trend reversal.
🔧 Features
• Displays EMA10/20/40/80 with color coding (black, red, orange, blue)
• Detects Bull and Bear Perfect Order conditions
• Shows arrows (▲/▼) when PO is confirmed
• Detects PO breakdown and displays a signal
• Displays PO strength as a percentage (EMA10 vs EMA80 divergence)
• Supports MTF PO detection and strength display
• Includes alert conditions:
• Bull PO confirmed
• Bear PO confirmed
• Bull PO breakdown
• Bear PO breakdown
• Clean white background for better visibility
📈 What is a Perfect Order?
• Bull PO (Uptrend): EMA10 > EMA20 > EMA40 > EMA80
• Bear PO (Downtrend): EMA10 < EMA20 < EMA40 < EMA80
Alerts are triggered both when the PO is newly confirmed and when it breaks.
🧠 Use Cases
• Measure trend momentum using PO strength
• Confirm alignment with higher timeframe trends
• Use as a trend‑following filter
• Detect early signs of trend reversal using PO breakdown
• Improve accuracy by combining MTF and PO logic
📌 スクリプト概要
このスクリプトは、EMA10・20・40・80 を使用して「パーフェクトオーダー(PO)」を判定し、
PO が確定した瞬間と、PO が崩壊した瞬間の両方を自動で検知して通知します。
さらに、PO の強さ(短期と長期 EMA の乖離率)を数値化して表示し、
上位足(MTF)でも同様の判定と強さ表示が可能です。
トレンドの「始まり」と「終わり」をどちらも捉えることができる、
トレンドフォローに最適化されたインジケーターです。
🔧 機能一覧
• EMA10/20/40/80 のライン表示(黒・赤・オレンジ・青)
• パーフェクトオーダー(Bull/Bear)の自動判定
• PO確定時に矢印(▲/▼)を表示
• PO崩壊(Break)を検知してシグナル表示
• POの強さ(乖離率)をリアルタイム表示
• 上位足(MTF)での PO 判定と強さ表示
• アラート条件付き
• Bull PO 確定
• Bear PO 確定
• Bull PO 崩壊
• Bear PO 崩壊
• 背景は白で視認性を重視
📈 パーフェクトオーダーとは?
• Bull PO(上昇トレンド)
EMA10 > EMA20 > EMA40 > EMA80
• Bear PO(下降トレンド)
EMA10 < EMA20 < EMA40 < EMA80
PO が確定したバーで矢印とアラートが発生し、
PO が崩れた瞬間にもアラートが発生します。
🧠 活用例
• トレンドの勢い(強さ)を数値で把握
• 上位足のトレンドと一致しているか確認
• トレンドフォロー戦略のフィルターとして利用
• PO崩壊を使って利確・撤退の判断材料に
• MTFと組み合わせて精度を向上
🇺🇸 English Description
📌 Overview
This script detects “Perfect Order” (PO) conditions using EMA10, EMA20, EMA40, and EMA80.
It alerts you both when a PO is confirmed and when it breaks down, allowing you to capture the beginning and the end of a trend.
The script also calculates PO strength (based on EMA divergence) and supports multi‑timeframe (MTF) analysis.
This indicator is designed for traders who want to track trend momentum and identify early signs of trend reversal.
🔧 Features
• Displays EMA10/20/40/80 with color coding (black, red, orange, blue)
• Detects Bull and Bear Perfect Order conditions
• Shows arrows (▲/▼) when PO is confirmed
• Detects PO breakdown and displays a signal
• Displays PO strength as a percentage (EMA10 vs EMA80 divergence)
• Supports MTF PO detection and strength display
• Includes alert conditions:
• Bull PO confirmed
• Bear PO confirmed
• Bull PO breakdown
• Bear PO breakdown
• Clean white background for better visibility
📈 What is a Perfect Order?
• Bull PO (Uptrend): EMA10 > EMA20 > EMA40 > EMA80
• Bear PO (Downtrend): EMA10 < EMA20 < EMA40 < EMA80
Alerts are triggered both when the PO is newly confirmed and when it breaks.
🧠 Use Cases
• Measure trend momentum using PO strength
• Confirm alignment with higher timeframe trends
• Use as a trend‑following filter
• Detect early signs of trend reversal using PO breakdown
• Improve accuracy by combining MTF and PO logic
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.