Indicator · Pine Script v5 · On the chart

JINXAI Tensor Forecast

by majixai

An indicator that builds a feature matrix from price z-score, RSI, ATR ratio and momentum over a lookback window, weights the four features, smooths them with a covariance based decomposition, and classifies a regime.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code276
Settings14inputs
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

JINXAI Tensor Forecast then draws a forecast line a chosen number of bars ahead with sigma bands, plus regime dots, a horizon label and a summary table on the price chart. The forecast is a statistical projection from past data and is not a signal on its own.

Details

Published by

majixai on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

AI / machine learning, Volatility & bands

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
n — Lookback (Time Axis)int20N
Horizon (forecast bars ahead)int10H
w₁ Pricefloat0.40w1
w₂ RSIfloat0.25w2
w₃ Volatilityfloat0.20w3
w₄ Momentumfloat0.15w4
Show Tensor Forecast LinebooltrueshowForecast
Show Probability Field (σ)booltrueshowBands
Show Horizon LabelbooltrueshowLabels
Show Regime Dot MarkersbooltrueshowRegime
Show Summary TablebooltrueshowTable
Forecast Linecolor#00ff88cForecast
Show all 14 settings
SettingTypeDefaultVariable
Probability Field Tintcolor#00ff88cField
σ Scalefloat1.0sigmaScale
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

46 stars

This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e

Indicator v5 AI / machine learningTrend
Updated 7 weeks ago · None stated GitHub repository of HMM Enhanced: Regime Probability

This overlay indicator plots a SuperTrend-style band on the price chart using ATR length, a selectable source, and a base factor. Optional settings enable an adaptive factor driven by rate of change, a volatility filter, K-means clustering, and an LSTM layer w

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of ML SuperTrend (Ultimate) - Auto-Optimized AI with LSTM

Chandelier Flip Radar plots an ATR trailing stop on the price chart and tracks a directional trend state. It holds a ratchet stop until an accepted flip, using close or wick extremums and a body filter so weak breaks do not change direction. Distance to the fl

Indicator v6 TrendVolatility & bands
Updated 2 days ago · MIT GitHub repository of Chandelier Flip Radar [WavesUnchained]
7 stars

This overlay indicator draws Nadaraya-Watson smoothed Bollinger Bands on the price chart using short, medium, and long periods and deviations. A smoothing factor controls the kernel bandwidth, and an optional setting can allow the estimate to repaint. Users ca

Indicator v5 Volatility & bandsAI / machine learning
Updated 4 months ago · None stated GitHub repository of Bollinger Bands And EMA
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

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