OPEN-SOURCE SCRIPT
Mis à jour

Triple HMA Multi-TimeFrame

108
This indicator plots three separate Hull Moving Averages (HMAs), each with its own period, timeframe, color, and line width. By using PineScript’s request.security function, it retrieves data from different timeframes and calculates the HMA on each of them, so you can see multiple trends at once without having to switch charts.

How it works:
1) You can set a distinct period and timeframe for each of the three HMAs. For example, you might choose a fast HMA (Period 50) on the current chart timeframe, a medium HMA (Period 100) on a higher timeframe (such as 30 minutes), and a slow HMA (Period 200) on an even higher timeframe (like H4).
2) Each HMA can be customized by color and line width, making it easier to distinguish the different timeframes at a glance.
3) The script uses barmerge.gaps_on to replicate values in between higher timeframe bars, giving a continuous look on lower timeframe charts.

Key inputs:
- HMA 1 Period and Timeframe: Allows you to choose the period (like 50) and timeframe (for instance, leave blank to use the current chart’s timeframe).
- HMA 2 Period and Timeframe: For a second HMA, you might set 100 on the “30” minute timeframe.
- HMA 3 Period and Timeframe: Often configured for a longer timeframe like 240 minutes (H4) or any other resolution you prefer.
- Colors and line widths are freely adjustable for each HMA, so you can create a clear visual separation among them.

This setup gives you a multi-timeframe perspective in one chart, allowing you to monitor short-, medium-, and long-term trends simultaneously.
Notes de version
This indicator plots three separate Hull Moving Averages (HMAs), each with its own period, timeframe, color, and line width. By using PineScript’s request.security function, it retrieves data from different timeframes and calculates the HMA on each of them, so you can see multiple trends at once without having to switch charts.

How it works:
1) You can set a distinct period and timeframe for each of the three HMAs. For example, you might choose a fast HMA (Period 50) on the current chart timeframe, a medium HMA (Period 100) on a higher timeframe (such as 30 minutes), and a slow HMA (Period 200) on an even higher timeframe (like H4).
2) The primary HMA (HMA 1) is automatically colored according to its slope: green for an upward trend and red for a downward trend, allowing you to quickly gauge short-term momentum.
3) Each HMA can also be customized by color and line width, making it easier to distinguish the different timeframes at a glance.
4) The script uses barmerge.gaps_on to replicate values in between higher timeframe bars, giving a continuous look on lower timeframe charts.

Key inputs:
- HMA 1 Period and Timeframe: Allows you to choose the period (like 50) and timeframe (for instance, leave blank to use the current chart’s timeframe). Its slope determines its color: green (up) or red (down).
- HMA 2 Period and Timeframe: For a second HMA, you might set 100 on the “30” minute timeframe.
- HMA 3 Period and Timeframe: Often configured for a longer timeframe like 240 minutes (H4) or any other resolution you prefer.
- Colors and line widths are freely adjustable for each HMA, so you can create a clear visual separation among them.

This setup gives you a multi-timeframe perspective in one chart, allowing you to monitor short-, medium-, and long-term trends simultaneously.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.