BigBitsIO

Stochastic PC [BigBitsIO]

This script is a very simple stochastic calculation similar to Stochastic RSI that calculates a stochastic value of a moving average of the percentage price change. The purpose of the indicator is to find positive and negative volatility momentum peaks which might be able to help identify changes in trends. Like other stochastic indicators, it may be best used in combination with other indicators.

Explained:
- First gets the % change for the candle from open to close. Green candles produce positive values, red candles produce negative values.
- Then it creates a moving average of that number to try and reduce impacts of very large moves, although this can be changed with the super-fast smoothed length setting. Set it to 1 to remove all smoothing.
- After that, it creates a K value using a stochastic calculation based on the range of the price change moving average we created in the previous step. Set the smoothK to one to use a fast stochastic calculation, it is a slow stochastic calculation by default (3-period SMA of stochastic)
- Finally, to create the D value it calculates a 3-period SMA of the K value.

FAQ:
- Why is this script useful?
- This script can help identify the peaks and valleys of volatility momentum

DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR, TYOB.

Like and follow!

💻 Website: www.bigbits.io
📺 YouTube: www.youtube.com/bigbits
🎮 Discord: discord.gg/rapMn4z
🐦 Twitter: twitter.com/BigBitsIO
💸 Save $30 on TradingView Paid Plan: bit.ly/2CaRfjs
开源脚本

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

免责声明

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

想在图表上使用此脚本?