Start scanning
Machine learning

Machine learning stock scanner

Use statistical indicators such as a Lorentzian k-nearest-neighbour vote, a machine-learning Supertrend and a logistic trend score as scan rules, on the live or closed candle.

Matches meet the conditions you set on the live candle, or on the last closed candle if you choose. For education and research, not a recommendation.

VOTE 6 / 8
Illustration of the pattern (not a real stock)

What this scanner looks for

Machine learning in a stock scanner is easy to oversell. The honest version is modest: these are statistical indicators that learn from each stock's own price history, and they output a vote or a score rather than a forecast. They have no special knowledge about the future, and ChartScanX does not present them as predictions.

The ML group contains three kinds of indicator. The first is a k-nearest-neighbour vote using Lorentzian distance: the indicator compares today's feature values with similar past bars and counts how those past bars were followed by a higher or a lower close. The second is a machine-learning Supertrend that adapts its band by clustering volatility. The third is a logistic trend score that estimates how often similar conditions in this stock's own history were followed by a higher close.

Used as scan rules, they give you a different lens from classic indicators. You can ask for a stock whose vote has just turned bullish, whose Supertrend band has shifted, or whose trend score is high, and combine that with structure or open interest rules.

How ChartScanX detects it

Each ML indicator is trained on past bars only. Features are computed from closed candles, and a bar is added to the training set only after its outcome window has passed, so the value shown for a finished candle does not change when new data arrives. This was tested by truncating the history and checking that the output for each bar stays the same.

Outputs are stated plainly: Turns Bullish, Turns Bearish, Bullish Vote, Bearish Vote, Strong Bullish Vote and Strong Bearish Vote for the kNN indicator, and a score from 0 to 100 for the trend score. The score describes how often similar conditions in the stock's own history were followed by a higher close, and nothing more.

  • Lorentzian kNN vote with turn and strength outputs
  • ML Supertrend band shift detection
  • Logistic trend score from 0 to 100
  • Trained on past closed bars only
  • Preview shows the vote or score next to the price chart

Timeframes

ML indicators need enough history to learn from, so daily and hourly timeframes are the most reliable. Very short timeframes carry more noise. You can use an ML rule on one timeframe and a structure or open interest rule on another.

Example rule

1D ML kNN Turns Bullish  AND  1D Close > EMA(50)

Read as: the daily kNN vote turned bullish on the candle checked, and the close is above the 50-period average.

Scan templates for this pattern

Open a template to read its definition and the rule behind it. Running a scan needs Premium; every definition is free to read.

Related scanners

Frequently asked questions

Does the ML scanner predict prices?

No. The indicators are statistical. They describe how similar past conditions in the same stock were followed, and they are not forecasts.

Do ML values repaint?

On the live candle a match can appear or drop out until the candle closes. Choose Closed candle for results that never change after the close; structure rules (pivots, swing points) still use pivots confirmed by later bars. The models are trained on past closed bars only.

What is the trend score?

A number from 0 to 100 describing how often similar conditions in the stock's own history were followed by a higher close.

Can I combine ML with other rules?

Yes. ML rules can be combined with structure, trendline, ICT and open interest rules, each on its own timeframe.

Is this advice?

No. Results are for education and research. ChartScanX is not a SEBI-registered investment adviser or research analyst.

Build your own ml stock scanner rule

Set the timeframe on each rule, add filters, and check the pattern on the preview chart.

Start scanning