Stochastic Strategy Table with Trend (1mโ4H) + Toggle

This script is designed for intraday and swing traders who want to monitor Stochastic momentum across multiple timeframes in real-time โ all directly on the main chart.
๐ What This Script Does
This script builds a compact, color-coded table that displays:
โ %K and %D values of the Stochastic oscillator
โ Cross direction (K > D or K < D)
โ Overbought/Oversold zone conditions
โ Short-term trend detection via %K movement
It covers ten timeframes:
1m, 2m,3m,5m, 15m, 30m, 1H, 2H, 3H, 4H
๐ฉ How to Use It
Trend colors in header:
๐ข Green = %K is rising (uptrend)
๐ด Red = %K is falling (downtrend)
โช Gray = flat or neutral
Cross Row:
Green background = Bullish (%K > %D)
Red background = Bearish (%K < %D)
Zone Row:
Green = Oversold (%K and %D below 20)
Red = Overbought (%K and %D above 80)
Gray = Neutral zone
Use Case:
Look for multiple timeframes aligning in trend
Enter trades on short timeframes (e.g. 5m) when HTFs confirm direction
Especially powerful when used with price action on 5m/15m candles
โ๏ธ Configurable Inputs
%K Length
%K Smoothing
%D Length
Table location
Table size
๐ก Why This Script Is Unique
Shows true higher timeframe Stochastic values (not interpolated from current chart)
Works in real-time with consistent updates
Trend direction is visualized without needing extra space
Built for serious intraday traders who rely on clean data and signal alignment
๐ Credits & Notes
This tool was created to solve a real problem: getting accurate HTF stochastic data in a clean, real-time, decision-friendly format.
I built it for my own use โ and now I'm sharing it for luck, and for anyone else looking to trade more clearly and confidently.
Feel free to fork, customize, or build upon it.
Good luck, and trade safe! ๐๐น
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda โ ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda โ ketahui lebih lanjut di sini.