OPEN-SOURCE SCRIPT
已更新 Stochastic w/ Crossover Alerts (by WJ)

NOTE:
// STOCHASTIC CODE TAKEN FROM DEFAULT INDICATOR
// I HAVE ONLY MADE SOME ADJUSTMENTS FOR VISUAL AID
// I MADE THIS FOR MY OWN USE BUT HAVE DECIDED TO PUBLISH AND SHARE IN CASE ANYBODY WANTS TO USE IT
This is the normal default built-in Stochastic indicator which I have added some stuff for visual aid:
// STOCHASTIC CODE TAKEN FROM DEFAULT INDICATOR
// I HAVE ONLY MADE SOME ADJUSTMENTS FOR VISUAL AID
// I MADE THIS FOR MY OWN USE BUT HAVE DECIDED TO PUBLISH AND SHARE IN CASE ANYBODY WANTS TO USE IT
This is the normal default built-in Stochastic indicator which I have added some stuff for visual aid:
- Stochastic background turns green when K line crosses D line UPWARDS, D line is below the oversold level, and price is above selected MA
- Stochastic background turns red when K line crosses D line DOWNWARDS, D line is above the overbought level, and price is below selected MA
- Alert notification on the crossover candle with background colour change when conditions are met (MA filter)
版本注释
Changed alerts to K line detection as it's better, apologies for the confusion and trouble of re-adding the indicator版本注释
Changed to both K and D line as it seems to be the best solution版本注释
Added sharper detection mode (toggleable) that also takes whether the k and d lines of the candle before crossover candle into account版本注释
Added middle line版本注释
Added toggleable background colour change when k line crosses 50版本注释
Added new alerts for non-OBOS crossovers版本注释
MA checking was slightly wrong (used OPEN instead of CLOSE), fixed版本注释
Updated some stuff开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。