Strategy · Pine Script v5 · On the chart

JAT+BSM Pro v13 Extended

by majixai

This multi-model strategy combines kinematic price modeling, Bayesian inference forecasts, volume profile consolidation zones, and automated pattern recognition directly on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code2,649
Settings40inputs
LicenceNone stated
Last updatetoday28 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

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

JAT+BSM Pro v13 Extended evaluates market trajectory using weighted kinematic regression, uncertainty cones, and macro chart patterns alongside cross-asset synergy and AlphaTrend momentum. Entries trigger when breakout or mean-reversion conditions align across models, utilizing automated stop loss and take profit targets defined in trade state tracking. Main settings control Bayesian lookback, model weighting, volume profile buckets, and pattern tolerance.

Details

Published by

majixai on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

AI / machine learning, Support & resistance, Oscillators & momentum, Trend

Markets

Stocks

Timeframes

M15-H1

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
Base Vol Coefficientfloat1.5b_cf
Common Periodint14al_pr
Sourcesourcecloseal_sr
HTF Background TFtimeframe15hf_in
Layer 1 Period (Micro)int20c_l1
Layer 2 Period (Macro)int40c_l2
Layer 3 Period (Global)int80c_l3
Volume Profile Bucketsint10vp_bk
Breakout Fib Multiplierfloat1.618bk_ml
Show Candlestick Labelsbooltruesh_cp
Draw Macro Pattern Linesbooltruesh_mp
Pivot Lookbackint10pv_lb
Show all 40 settings
SettingTypeDefaultVariable
Pattern Tolerance (%)float0.02st_tl
Bullish Pattern Colorcolorcolor.new(color.lime, 0)p_clB
Bearish Pattern Colorcolorcolor.new(color.red, 0)p_clR
Short Conic LBint10kn_lb_s
Medium Conic LBint20kn_lb_m
Long Conic LBint40kn_lb_l
Bayesian Horizon Offsetint20by_hz
Feedback Learn Ratefloat0.1lr_rt
Bayesian Lookbackint500by_lb
Enable Mean Reversion Gravitybooltrueen_mr
Conic Refresh ModestringAfter target hit/missup_md
Model Weights (Kin / Bayes / MR)text1.0 0.5 0.2 0.2 1.0 0.5 0.5 0.2 1.0wt_in
Require Cross-Asset Synergybooltruerq_syn
Relaxed Synergy (any 1 of 3)booltruerl_md
MACD Fast Lengthint12f_ln
MACD Slow Lengthint26s_ln
MACD Signal Lengthint9sg_ln
Primary SymbolsymbolNASDAQ:AAPLs_1
Correlation Symbol 2symbolNASDAQ:MSFTs_2
Correlation Symbol 3symbolNASDAQ:GOOGs_3
Max Concurrent Tradesint3mx_tr
Stop ATR Multiplierfloat1.1rk_bf
Target Risk:Rewardfloat2.0rw_ml
Risk-Free Ratefloat0.05rf_rt
Days to Expirationfloat30.0t_ex
Strike as Mult of Closefloat1.0st_ml
Show HUD Tablebooltruesh_tb
Show Pattern Tablebooltruesh_t2
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

This strategy overlays the price chart and looks for VWAP pullbacks. It goes long when a short SMA crosses above VWAP after RSI has been oversold within ten bars, and short on the opposite cross after RSI has been overbought. Optional Minervini-style moving-av

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced VWAP-Momentum Pullback Trend Qualifier

This strategy trades 1-minute futures contracts on Binance. It plots pivot high and low resistance and support levels on the price chart, along with an EMA and a custom Cto indicator. Long and short entries trigger on EMA and Cto crossovers combined with price

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Binancash Futures Strategy 1M Candles

This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt

Strategy v6 SMC / ICT / price actionTrend
Updated yesterday · MIT GitHub repository of Reversal Engine Score [WavesUnchained] Strategy
7 stars

This strategy plots dynamic pivot-based support and resistance trendlines on the price chart and trades breakouts beyond those lines. By default it allows longs only when EMA 50 is above EMA 200 and an RSI-SMA momentum filter is met, with an ATR entry buffer.

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Easy Trendline - XAUUSD 30m

Optimizer v1

by QuantGeekDev
7 stars

This strategy generates long signals on the price chart using multiple technical indicators. It computes EMA 70 and 100, SMA 70, ADX with DMI, CCI, and MACD values. A long entry occurs when EMA crossover condition, SMA condition, ADX above 15, CCI above 30, an

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Optimizer v1

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers