jmikes

MarketSmith Stochastic

jmikes 已更新   
version=5
This version of the stochastic produces the identical stochastic as used in MarketSmith
The three primary differences from a classic stochastic are as follows:
1. Close values only
2. 5-day ema instead of 3-day simple moving averages for smoothing the fast and slow lines
3. Slow and fast lines are truncated to integer values

by Mike Scott
2023-09-11
版本注释:
This is an update to a previously published script. The purpose of the script is to replicate the MarketSmith stochastic indicator which is implemented differently than mainstream implementations. The comments section of the code describes the differences. This update is because I noticed that the internal ta.ema() function that computes exponential moving averages behaves differently than I expected. Thus I hand coded the ema algorithm in this update. I believe this update faithfully replicates the behavior of the MarketSmith indicatior.
开源脚本

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

免责声明

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

想在图表上使用此脚本?