Skip to content
YinYang
indicatorActiveOpen Source

Machine Learning: Support and Resistance

Project adaptive support and resistance from stored price projections and KNN-style analysis.

AlertsSource updated 2023-09-29Reviewed 2026-07-19
Machine Learning Support and Resistance publication chart on TradingView

Overview

Project adaptive support and resistance from stored price projections and KNN-style analysis.

Instead of relying only on pivots, the script stores price projections, derives strong and regular support/resistance estimates, and exposes average, VWMA, long-term-memory, and current-projection context.

Key capabilities

  • Projected support and resistance
  • KNN-style data selection
  • Strong and regular zones
  • VWMA and average context
  • Long-term memory series

Configuration

Start with the documented controls

  • Choose the source and machine-learning memory.
  • Set smoothing and VWMA projection length.
  • Optionally display the current projection and long-term memory.

Tutorial

Learn the workflow in context

Step 1

How it works

Instead of relying only on pivots, the script stores price projections, derives strong and regular support/resistance estimates, and exposes average, VWMA, long-term-memory, and current-projection context.

  • Projected support and resistance
  • KNN-style data selection
  • Strong and regular zones
  • VWMA and average context
  • Long-term memory series

Step 2

Set up the script

Open the original publication, choose Use on TradingView, then add the script to the intended symbol and timeframe. Review each input before relying on the display; defaults are a starting point, not a universal recommendation.

  • Choose the source and machine-learning memory.
  • Set smoothing and VWMA projection length.
  • Optionally display the current projection and long-term memory.

Step 3

Create an alert

All current YinYang publications support TradingView alerts. Select a condition exposed by the script, confirm the symbol and timeframe, and test notifications before relying on them. This Alerts label does not by itself mean a webhook execution workflow has been verified.

Risk and results context

Signals, projections, and strategy outputs are analytical tools—not financial advice or guarantees of future results. Trading involves substantial risk.

This guide is a rewritten YinYang overview. For the author’s complete source description and release notes, view the original publication.

Related scripts

Continue exploring the library

Ultimate

Use the complete TradingView library

Ultimate combines the web analytics platform with all six featured invite-only TradingView tools.

TradingView® is a trademark of TradingView, Inc. YinYang Algorithms is not affiliated with or endorsed by TradingView. A separate TradingView account is required; paid TradingView plans are not included.