Trendoscope

Up-Down Range

Trendoscope Wizard 已更新   
Here is an attempt to segregate ATR into ATR of up days and down days.

While setting trailing stops based on ATR, you probably need to consider more on how an instrument can drop during red days. Hence, ATR of only red days makes more compelling case than overall ATR. Another use case for this kind of indicator may be in options if you are selling puts and calls with the intent of pocketing premiums on expiry.

Parameters are as explained below:

  • Range Type : Different range types are tr (True Range) , close (difference between close prices), highlow (difference between high and low of candle)
  • Period : ATR Period
  • Moving Average Type : Moving Average Type for calculating ATR. Two additional types - min and max are added which calculates lowest and highest range in last n bars
  • HideFullAtr : Hides combined ATR if checked.

版本注释:
  • Removed min/max options as they are not working on na values
  • Added ATR multiplier and candle coloring to notify out of range candles

开源脚本

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

免责声明

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

想在图表上使用此脚本?