allen92810

Multi-Timeframe MA Levels

allen92810 업데이트됨   
█ OVERVIEW

This Pine Script is an indicator for displaying multiple moving average (MA) levels from several timeframes on your TradingView charts. At the Realtime Bar (the right-most bar on your chart), it draws a line where the various moving averages currently are.

For example, it will show you where the 8 EMA on the 5 minute timeframe is on your 1-minute timeframe chart.

It derives its look and function from "Lepelle's Key Levels" and focuses on visualizing various moving averages to complement this indicator.


█ FEATURES

1 — Multi-Timeframe Analysis:
 • The script allows traders to view moving averages from different timeframes on a single chart.
  This multi-timeframe approach helps identify significant levels and trends that might not be apparent when looking at a single timeframe.

2 — Customization and Flexibility:
 • Extensive input options for customizing the appearance of the lines (width, style, color) and labels (size, position, distance from price).
  This ensures that the indicator can be tailored to individual preferences and charting styles.

3 — Multiple Moving Averages:
 • Support for various types of moving averages (8 EMA, 21 EMA, 50 SMA, 100 SMA, 200 SMA).
  Each moving average can be individually enabled or disabled for specific timeframes,
  providing a flexible tool for technical analysis.


█ SETTINGS

Inputs for Styling:

 • Controls the appearance of the lines and labels.
 • Includes options for line width, line style, text size, distance from the candlesticks, label position,
  and whether to hide prices or use shorthand notation.

Moving Averages Settings:

 • Inputs to select different moving averages (8 EMA, 21 EMA, 50 SMA, 100 SMA, 200 SMA) and their corresponding colors.
 • Boolean inputs to enable or disable these moving averages on various timeframes (2 min, 5 min, hourly, daily).


█ SUMMARY

In essence, this script provides a comprehensive tool for technical analysis by combining multi-timeframe moving averages into a single, customizable, and user-friendly indicator. It enhances traders' ability to make informed decisions by providing clear visual representations of key moving average levels across different timeframes.


═════════════════════════════════════════════════════════════


█ LIMITATIONS

This script is best used with a short timeframe such as 1-minute or lower because of the limitations of Multi-Timeframe scripts. Basically, the alternate timeframes in use should always be higher than the chart timeframe.


═════════════════════════════════════════════════════════════


█ NOTES


This indicator is intended to complement and be used with "Lepelle's Key Levels" indicator.

In that indictor settings, I recommend turning off the 5 Daily timeframe moving average levels in that script, if using this one.


═════════════════════════════════════════════════════════════
릴리즈 노트:
Summary
This new code implements some improvements to the existing f_LevelsMerge function and some refactoring to better comply with style guidelines and readability.

Improvements
  • Uses the price range of the visible bars to establish a threshold for deciding whether a new level's label should be merged with an existing one. This will ensure that prices in the sub-$10 range and prices in the $70,000+ range all have limited overlapping labels and merge more appropriately.
  • Uses the label size (font size) the user selects in the settings to impact the threshold mentioned above. This will ensure that users will still have minimal text overlapping if they choose a larger font.
  • Added logic to calculate the price average of merged labels and used that to draw the label at the average price.
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?