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精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明