OPEN-SOURCE SCRIPT

Heiken Ashi MTF Monitor - Better Formula - EMA, AMA, KAFA, T3

ที่อัปเดต:
Heiken Ashi MTF Monitor - Better Formula - EMA, AMA, KAFA, T3
This indicator is based on the works of Loxx & Smart_Money-Trader, without their initial codes, none of this will be possible.

This Pine Script indicator provides a multi-timeframe (MTF) analysis of Heiken Ashi trends, designed to enhance the traditional Heiken Ashi method with advanced smoothing techniques such as the Exponential Moving Average (EMA), Adaptive Moving Average (AMA), Kaufman’s Adaptive Moving Average (KAMA), and the Triple Exponential Moving Average (T3). The indicator offers a flexible approach to identify bullish, bearish, and neutral trends across six customizable timeframes and various Heiken Ashi calculation methods.

Key Features:
Multi-Timeframe (MTF) Support: The indicator allows you to monitor trends across six timeframes (e.g., 2-hour, 4-hour, daily, weekly, monthly), giving a holistic view of market conditions at different scales.
Heiken Ashi Calculation Methods: Choose between traditional Heiken Ashi or an enhanced "Better HA" method for more refined trend analysis.
Smoothing Options: Apply different smoothing techniques, including EMA, T3, KAMA, or AMA, to the Heiken Ashi values for smoother, more reliable trend signals.
Non-Repaint Option: This feature ensures that the values do not repaint after the bar closes, providing a more reliable historical view.
Customizable Plotting: The indicator offers full customization of which timeframes to display and whether to show labels for each timeframe.
Inputs and Settings:
Timeframe Inputs:


Users can set up to six different timeframes, ranging from intraday (2-hour, 4-hour) to higher timeframes (daily, weekly, monthly).
Timeframes can be enabled or disabled individually for each analysis.
Label Visibility:

Labels indicating the trend direction (bullish, bearish, neutral) can be shown for each timeframe. This helps with clarity when monitoring multiple timeframes simultaneously.
Smoothing Options:

EMA: Exponential Moving Average for standard smoothing.
AMA: Adaptive Moving Average, which adapts its smoothing based on market volatility.
KAMA: Kaufman’s Adaptive Moving Average, which adjusts its sensitivity to price fluctuations.
T3: Triple Exponential Moving Average, providing a smoother and more responsive moving average.
None: No smoothing applied (for raw Heiken Ashi calculations).
Non-Repaint Setting:

Enabling this ensures the trend values do not change after the bar closes, offering a stable historical view of trends.
Core Functions:
Heiken Ashi Calculations:


Traditional HA: The classic Heiken Ashi calculation is used here, where each bar's open, close, high, and low are computed based on the average price of the previous bar.
Better HA: A refined calculation method, where the raw Heiken Ashi close is adjusted by considering the price range. This smoother value is then optionally processed through a moving average function for further smoothing.
Heiken Ashi Trend Calculation:

Based on the selected Heiken Ashi method (Traditional or Better HA), the indicator checks whether the trend is bullish (upward movement), bearish (downward movement), or neutral (sideways movement).
For the "Better HA" method, the trend determination uses the difference between the smoothed Heiken Ashi close and open.
Moving Averages:

The moving averages applied to the Heiken Ashi values are configurable:
EMA: Standard smoothing with an exponential weighting.
T3: A triple exponential smoothing technique that provides a smoother moving average.
KAMA: An adaptive smoothing technique that adjusts to market noise.
AMA: An adaptive moving average that reacts to market volatility, making it more flexible.
None: For raw, unsmoothed Heiken Ashi data.
Trend Detection:

The indicator evaluates the direction of the trend for each timeframe and assigns a color-coded value (bearish, bullish, or neutral).
The trend values are plotted as circles, and their color reflects the detected trend: red for bearish, green for bullish, and white for neutral.
Multi-Timeframe (MTF) Support:

The indicator can be used to analyze up to six different timeframes simultaneously.
The trend for each timeframe is calculated and displayed as circles on the chart.
Users can enable or disable individual timeframes, allowing for a customizable view based on which timeframes they are interested in monitoring.
Plotting:

The indicator plots circles at specific levels based on the detected trend (Level 1 for the 2-hour timeframe, Level 2 for the 4-hour timeframe, etc.). The size and color of these circles represent the trend direction.
These plotted values provide a quick visual reference for trend direction across multiple timeframes.
Usage:
Trend Confirmation: By monitoring trends across multiple timeframes, traders can use this indicator to confirm trends and avoid false signals.
Customizable Timeframe Analysis: Traders can focus on shorter timeframes for intraday trades or look at longer timeframes for a broader market perspective.
Smoothing for Clarity: By applying various moving average techniques, traders can reduce noise and get a clearer view of the trend.
Non-Repainting: The non-repaint option ensures the indicator values remain consistent even after the bar closes, providing more reliable signals for backtesting or live trading.
This Heiken Ashi MTF Monitor indicator with better formulas and smoothing options is designed for traders who want to analyze trends across multiple timeframes while benefiting from advanced moving averages and more refined Heiken Ashi calculations. The customizable settings for smoothing, timeframe selection, and label visibility allow users to tailor the indicator to their specific needs and trading style.
เอกสารเผยแพร่
V1.1

Updates some inconsistency on HTF calculations
เอกสารเผยแพร่
V 1.2

Fix non repaint codes
Correctly assign for each inputs
เอกสารเผยแพร่
v 1.3
Update MTF option for color bar overlay
Candlestick analysis

สคริปต์โอเพนซอร์ซ

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?

คำจำกัดสิทธิ์ความรับผิดชอบ