OPEN-SOURCE SCRIPT
Updated 4 EMA Perfect Order (10/20/40/80)

Display four EMA indicators. You can set an alarm when a perfect order is achieved.
Release Notes
🇯🇵 日本語説明文📌 スクリプト概要
このスクリプトは、EMA10・20・40・80 を使用して「パーフェクトオーダー(PO)」を判定し、
PO が確定したタイミングで矢印とアラートを表示します。
さらに、PO の強さ(短期と長期 EMA の乖離率)を数値化して表示し、
上位足(MTF)でも同様の判定と強さ表示が可能です。
🔧 機能一覧
• EMA10/20/40/80 のライン表示(黒・赤・オレンジ・青)
• パーフェクトオーダー(Bull/Bear)の自動判定
• PO 確定時に矢印(▲/▼)を表示
• PO の強さ(乖離率)をリアルタイム表示
• 上位足(MTF)での PO 判定と強さ表示
• アラート条件付き(Bull/Bear PO 確定時)
• 背景は白で視認性を重視
📈 パーフェクトオーダーとは?
• Bull PO(上昇トレンド)
EMA10 > EMA20 > EMA40 > EMA80
• Bear PO(下降トレンド)
EMA10 < EMA20 < EMA40 < EMA80
PO が確定したバーで矢印とアラートが発生します。
🧠 活用例
• PO の強さを使ってトレンドの勢いを測定
• 上位足の PO と一致しているか確認して精度を向上
• トレンドフォロー戦略のフィルターとして利用
• EMA の並びが崩れたら背景色を塗るなどの拡張も可能
パーフェクトオーダー, EMA, トレンド, MTF, 乖離率, テクニカル分析, トレンドフォロー, インジケーター, アラート
🇺🇸 English Description
📌 Overview
This script detects “Perfect Order” (PO) conditions using EMA10, EMA20, EMA40, and EMA80.
When a PO is confirmed, it displays arrows and triggers alerts.
It also calculates the strength of the PO (based on EMA divergence) and supports multi‑timeframe (MTF) analysis.
🔧 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
• Displays PO strength as a percentage (EMA10 vs EMA80 divergence)
• Supports MTF PO detection and strength display
• Includes alert conditions for Bull/Bear PO confirmation
• 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
Arrows and alerts are triggered only when the PO condition is newly confirmed.
🧠 Use Cases
• Measure trend momentum using PO strength
• Confirm alignment with higher timeframe trends
• Use as a trend‑following filter
• Can be extended with background coloring or histogram strength display
perfectorder, ema, trend, mtf, divergence, technicalanalysis, trendfollowing, indicator, alerts
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.