ka66

ka66: Average Range

Plots the average range of current symbol, in a particular resolution (daily by default) averaged across a configurable period (20 by default). Increase or decrease precision through the UI to make it better applicable to your instrument. The default precision is set to 4, useful for most forex pairs pip counting (multiply by 10,000 to get the pip value). But for USDJPY, you might change it to 2 (multiply by 1,00 to get the pip value). Range is defined as (high - low).

For different measures of ticks, you can set the Scale Multiplier input to adjust the scale by some factor. Deliberately allowing floats. In the Forex example, if you did not wish to mentally calculate pips, you would set the multiplier to 10,000 for 4-decimal place pairs and 100 for 2-decimal place pairs. Defaults to 1.

Inputs:
  • Resolution, the timeframe to use
  • Averaging Period, no. of past bars to average over. Just using a simple moving average.
  • Scale Multiplier, a positive integer value to multiply the scale by
开源脚本

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

免责声明

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

想在图表上使用此脚本?