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, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?