OPEN-SOURCE SCRIPT

Slope Normalizer

Telah dikemas kini
Brief:
This oscillator style indicator takes another indicator as its source and measures the change over time (the slope). It then isolates the positive slope values from the negative slope values to determine a 'normal' slope value for each.
** A 'normal' value of 1.0 is determined by the average slope plus the standard deviation of that slope.

The Scale
This indicator is not perfectly linear. The values are interpolated differently from 0.0 - 1.0 than values greater than 1.0.
  • From values 0.0 to 1.0 (positive or negative): it means that the value of the slope is less than 'normal' **.
  • Any value above 1.0 means the current slope is greater than 'normal' **.
  • A value of 2.0 means the value is the average plus 2x the standard deviation.
  • A value of 3.0 means the value is the average plus 3x the standard deviation.
  • A value greater than 4.0 means the value is greater than the average plus 4x the standard deviation.

Because the slope value is normalized, the meaning of these values can remain generally the same for different symbols.

Potential Usage Examples/b]
Using this in conjunction with an SMA or WMA may indicate a change in trend, or a change in trend-strength.
  • Any values greater than 4 indicate a very strong (and unusual) trend that may not likely be sustainable.
  • Any values cycling between +1.0 and -1.0 may mean indecision.
  • A value that is decreasing below 0.5 may predict a change in trend (slope may soon invert).
Nota Keluaran
Simpler cleaner use of deviation value.
Nota Keluaran
Clean out unused DataCleaner reference.
OscillatorsslopestandarddevationStandard Deviation (Volatility)trendtrendstrengthtrendstrengthindicator

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian