OPEN-SOURCE SCRIPT

% Sensitivity MA

已更新
Modifying an existing indicator is one thing, but creating an entirely new indicator is a totally different thing that involves even more creativity!
Today, I accomplished the latter by creating a brand new indicator. It's called "% Sensitivity MA". What does it do? Well, it's pretty much like any moving average, it tells you the trend. When the % Sensitivity MA is green, it's an uptrend, and vise versa for when it's red. Here's the calculation:

% Sensitivity MA (n,src) = ma.prev + (n/100) * (src - ma.prev)

where:
n - parameter that determines % sensitivity from 0 to 100.
src - parameter that determines the source. (default: close)
ma.prev - previous value of % Sensitivity MA.

Note:
- % Sensitivity MA has no parameter for lookback period.
- The n parameter is limited to a value between 0 and 100.
- Higher n values are more sensitive. (So, 100 is maximum sensitivity.)
- The value of the n parameter can have an unlimited number of decimal places. (making this indicator very precise!)
- I recommend n values closer to 0 than 100.
- For the source, I recommend closing prices.

Good luck, and enjoy!
版本注释
>>>
close > ma? ---> green if true, otherwise red.
Moving Averages

开源脚本

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

想在图表上使用此脚本?

免责声明