Volume Spike + Breakout Trend Score Pro + KNN MTF — Strategy by shravanreddy0808

By shravanreddy0808

Performance Metrics

Description

The script starts by defining market state across several layers: fast/slow EMA trend, VWAP location, HTF EMA trend, RSI, MACD, ADX/DI, volume spikes, Bollinger breakout, KNN prediction, WaveTrend direction, and money flow. Each factor contributes to a weighted bull or bear score, so the script is not just looking for one trigger but for confluence.That confluence is then condensed into netScore, which drives the trend label:Strong Bull.Bull Bias.Neutral.Bear Bias.Strong Bear.Signal logicThe strategy supports three modes:Continuation.Reversal.Hybrid.Continuation signals require breakout confirmation plus strong bullish or bearish filter alignment, while reversal signals lean on WaveTrend divergence, WT cross signals, and money flow confirmation. In Hybrid mode, both signal families can trigger entries.KNN and WaveTrendYour KNN block is a similarity-based classifier that compares the current bar to past bars using RSI, EMA spread, MACD histogram percent, and VWAP distance. It votes bullish or bearish based on the forward outcome of the nearest historical examples, then applies a confidence threshold before it is allowed to affect entries.WaveTrend adds a second momentum layer using WT1 and WT2 cross logic, oversold/overbought conditions, divergence detection, and a special “gold buy” setup when WT divergence appears after a deep oversold condition. This makes the script more selective than a basic breakout tool.MTF tableThe multi-timeframe table shows 5m, 10m, and 15m states for:Trend.Model alignment.WT state.KNN confidence.In the fixed version, each row has its own MTF trend and WT values, which is important because the table is meant to show cross-timeframe alignment, not repeated values from the chart timeframe.Trade managementThe strategy can place long and short entries when enabled, and it supports three exit styles:ATR Bracket.Score Flip.Hybrid.ATR exits use stop, target, and optional trailing logic, while score-flip exits close positions when the score weakens or the opposite signal appears. That gives you both mechanical protection and trend-awareness.Practical valueIn plain terms, the script tries to answer three questions at once:Is price breaking out?Is the trend actually aligned?Is there enough historical similarity and momentum confirmation to trust the move?That makes it useful as a trend-following plus confirmation system rather than a single-indicator entry tool. The main strength is that it reduces bad breakout trades by requiring confluence across volume, trend, momentum, and higher-timeframe context.Release Notesupdated labels

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView