OPEN-SOURCE SCRIPT
Taught to Trade - Configurable Stochastics

A stochastic oscillator that exposes the parts most versions hide. It plots fast %K, slow %K, and slow %D, and lets you choose the smoothing method — SMA, EMA, WMA, or HMA — instead of forcing plain SMA. Same classic stochastic math, with more control over how it responds.
How to use: Read overbought/oversold levels and %K/%D crosses the way you would with any stochastic. Faster smoothing (HMA/WMA) reacts sooner but produces more false turns; slower smoothing (SMA) is steadier but later. Set your own alerts from the conditions provided.
Where it fails: Stochastics whipsaw in strong trends — they can sit "overbought" while price keeps rising. This is best used as ranging or confirmation context, not as a standalone trigger. Signals evaluate on the bar close and can change intrabar.
Educational tool only. Not investment advice, and it does not send buy or sell signals.
How to use: Read overbought/oversold levels and %K/%D crosses the way you would with any stochastic. Faster smoothing (HMA/WMA) reacts sooner but produces more false turns; slower smoothing (SMA) is steadier but later. Set your own alerts from the conditions provided.
Where it fails: Stochastics whipsaw in strong trends — they can sit "overbought" while price keeps rising. This is best used as ranging or confirmation context, not as a standalone trigger. Signals evaluate on the bar close and can change intrabar.
Educational tool only. Not investment advice, and it does not send buy or sell signals.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.