OPEN-SOURCE SCRIPT
更新済 EMA Cloud [PhantomCipher]

EMA Cloud
EMA Cloud shows the trend as a shaded band between two exponential moving averages, with a third EMA drawn as a longer-term reference line.
SNAPSHOT: the indicator on a clean chart, with the cloud in both colours and the 200 EMA line visible
How it works
Settings
Alerts
Create the alert with Once Per Bar Close. A cross that happens part-way through a bar can reverse before the bar closes.
The trend flip comes from comparing the two EMAs:
Pine Script®
SNAPSHOT: close-up of a trend flip, with the cloud changing colour where the two EMAs cross
How to use it
A change in cloud colour marks a shift in trend between the two EMAs. The 200 EMA adds context. For example, you might take only uptrend signals while price is above it, and only downtrend signals while price is below it.
Example chart:
BTCUSDT.P
This indicator shows trend conditions. It's not a trading signal on its own, so combine it with your own analysis and risk management.
EMA Cloud shows the trend as a shaded band between two exponential moving averages, with a third EMA drawn as a longer-term reference line.
SNAPSHOT: the indicator on a clean chart, with the cloud in both colours and the 200 EMA line visible
How it works
- Cloud: the area between a fast EMA (50 by default) and a slow EMA (100 by default) is filled. It's green while the fast EMA is at or above the slow EMA (uptrend) and red while it's below (downtrend).
- EMA lines: the fast and slow EMAs are also drawn as lines that change colour with the trend.
- Reference line: a separate EMA (200 by default) is drawn as a single line. It's not part of the cloud and its colour doesn't change with the trend. Use it to see where price sits against the longer-term trend.
Settings
- Inputs tab: the length of each EMA, grouped into "EMA Cloud" (fast and slow) and "EMA Line" (the reference EMA).
- Style tab: every colour, line width and on/off switch, including separate uptrend and downtrend colours for the cloud and for each EMA line.
Alerts
- EMA Trend Up: fires when the fast EMA crosses above the slow EMA.
- EMA Trend Down: fires when the fast EMA crosses below the slow EMA.
Create the alert with Once Per Bar Close. A cross that happens part-way through a bar can reverse before the bar closes.
The trend flip comes from comparing the two EMAs:
SNAPSHOT: close-up of a trend flip, with the cloud changing colour where the two EMAs cross
How to use it
A change in cloud colour marks a shift in trend between the two EMAs. The 200 EMA adds context. For example, you might take only uptrend signals while price is above it, and only downtrend signals while price is below it.
Example chart:
This indicator shows trend conditions. It's not a trading signal on its own, so combine it with your own analysis and risk management.
リリースノート
Update- Added a short summary to the top of the source code.
- No change to how the indicator works. The cloud, lines, settings and alerts are the same as before.
Example chart:
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。