RezzaHmt

Wave Line

RezzaHmt 已更新   
Wave Line is a chart type obtained by plotting the High and Low values in each time interval according to their sequential order. This method produces a continuous line rather than bars, which is beneficial for analyzing changes within each interval rather than focusing on the price range and open/close values. E.g for Wave Analysis.

How to use:
1. Adjust the interval unit and multiplier for the main timeframe.
2. Ideally, select a lower timeframe on your chart, approximately 5 times smaller than the one specified for the script.
3. Lower Timeframe is the timeframe which will be the scripts reference when the high and low of the main timeframe align on a single bar of the opened chart. This timeframe may also be 5-10 times smaller than the main timeframe. It is important to note that this should not be excessively smaller as the script may fail in retrieving data. An alternative method is included to estimate the order if it is not clear in the fetched data.
4. Set a preferred value for Monowave Length, indicating the number of bars a monowave will cover horizontally. Set the value to be half of the Interval Multiplier for the Wave Line to align with the bar chart. However if the multiplier is an odd number, perfect alignment may not be achieved.
5. Ensure that the product of Max Polyline Segments and Monowave length does not exceed 5000, and adjust the value for Max Polyline Segments accordingly.
版本注释:
- The script now verifies the compatibility of the chart timeframe. If the specified main timeframe (interval unit and its multiplier) can not be evenly divided by the chart timeframe, a runtime error will be triggered.
- An error message will be displayed if the available chart bars do not fully cover the specified timeframe.

When using chart timeframes with a larger unit than the script's interval unit, the script will handle months as 30 days or 4 weeks.

Regarding questions related to setting periods using decimal values, a lower-level interval unit should be selected. For instance, to achieve a 2.5-year period, one should select the monthly interval unit and set the multiplier to 30. Just as we approach periods denoted by decimal hours, such as 0.5-hour or 0.75-hour durations.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?