OPEN-SOURCE SCRIPT

X4 Moving Average

The X4 Moving Averages (X4MA) indicator is designed to provide traders with an enhanced view of market trends by combining multiple dimensions of price data. Unlike traditional moving averages that rely solely on closing prices, X4MA integrates high, low, open, and close values for a more nuanced analysis of market movements.

1- High-Low Average (HLAvg):
Captures the market's range during a given period:
HLAvg = (High + Low) / 2

2- Open-Close Average (OCAvg):
Reflects the directional momentum of the price during the same period:
OCAvg = (Open + Close) / 2

3- Combined Average (CMA):
Combines the range (HLAvg) and momentum (OCAvg) for a balanced view of price behavior:
CMA = (HLAvg + OCAvg) / 2

4- Exponential Moving Average (X4MA):
Smooths the combined average using an EMA for better responsiveness to recent price changes while filtering noise:

X4MA = EMA(CMA, Length)

Bands and Channels

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明