Indicator · Pine Script v5 · On the chart

Neural Network ML Indicator Extended

by majixai

An indicator that converts RSI, MACD histogram, Bollinger position, ATR, Stochastic, OBV change, ADX and VWAP deviation into z-scores, combines them with adjustable weights into one composite score, and smooths it with a Kalman filter.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code344
Settings27inputs
LicenceNone stated
Last updateyesterday28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Buy and sell labels appear when the score crosses set thresholds, with a bar cooldown between signals, and a five-class regime is classified. A summary table and score line are optional. Despite the name, it is a weighted formula rather than a trained model. It draws on the price chart.

Details

Published by

majixai on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Oscillators & momentum, AI / machine learning

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Z-Score Lookbackint20lookback
RSI Periodint14rsiLen
MACD Fastint12macdFast
MACD Slowint26macdSlow
MACD Signalint9macdSig
BB Lengthint20bbLen
BB Std Devfloat2.0bbMult
Stoch %Kint14stochK
Stoch %Dint3stochD
ADX Lengthint14adxLen
OBV Delta Barsint10obvLookback
w RSIfloat0.20wRsi
Show all 27 settings
SettingTypeDefaultVariable
w MACD Histfloat0.18wMacd
w BB Positionfloat0.14wBb
w ATRfloat0.10wAtr
w Stochasticfloat0.12wStoch
w OBV Deltafloat0.12wObv
w ADXfloat0.08wAdx
w VWAP Devfloat0.06wVwap
Buy Score Thresholdfloat1.5buyThr
Sell Score Thresholdfloat-1.5sellThr
Signal Cooldown (bars)int3cooldown
Process Noise Qfloat0.0001kQ
Observation Noise Rfloat0.01kR
Show Summary TablebooltrueshowTable
Show Buy/Sell LabelsbooltrueshowLabels
Plot Smooth Score LinebooltrueshowScore
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

257 stars

This indicator uses a Lorentzian distance k-nearest neighbors classification algorithm to predict market direction based on up to five technical features, such as RSI, WaveTrend, CCI, and ADX. It compares current feature values against historical bar patterns

Indicator v5 AI / machine learningOscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of Donald - Machine Learning Options

This indicator applies a k-nearest neighbours (kNN) classification algorithm using Aroon indicator lags and momentum as feature inputs to forecast market direction. It compares current values against historical feature sets to classify bars into buy, hold, or

Indicator v4 AI / machine learningTrend Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy (aroon)

Machine Learning: Lorentzian Classification

by artificial-intelligence-edge
75 stars

This indicator classifies the current bar by comparing its feature vector with historical bars using Lorentzian distance and a k-nearest-neighbors vote. Configurable features include RSI, WaveTrend, CCI, and ADX. Optional volatility, regime, ADX, and EMA filte

Indicator v5 AI / machine learningOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Machine Learning: Lorentzian Classification
3 stars

Farid Makram Custom Levels is a multi-signal indicator for TradingView that combines RSI momentum analysis with MOBO oscillator signals based on the DPO. It generates buy and sell signals when RSI crosses its moving average or when DPO crosses zero, with confi

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Farid Makram Custom Levels
1 stars

An overlay that marks long and short signals by combining a Money Flow Index with k-means derived overbought and oversold levels, and an Andean oscillator crossing its signal line, both within a confirmation window. Optional trend and ATR percentage filters ca

Indicator v5 Oscillators & momentumAI / machine learning
Updated 7 weeks ago · None stated GitHub repository of AI MFI + Andean ETH 15min

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers