OPEN-SOURCE SCRIPT
Updated 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)
Release Notes
Changed alerts to K line detection as it's better, apologies for the confusion and trouble of re-adding the indicatorRelease Notes
Changed to both K and D line as it seems to be the best solutionRelease Notes
Added sharper detection mode (toggleable) that also takes whether the k and d lines of the candle before crossover candle into accountRelease Notes
Added middle lineRelease Notes
Added toggleable background colour change when k line crosses 50Release Notes
Added new alerts for non-OBOS crossoversRelease Notes
MA checking was slightly wrong (used OPEN instead of CLOSE), fixedRelease Notes
Updated some stuffOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.