Strategy · Pine Script v5 · On the chart

JAT+BSM Pro Extended

by majixai

This overlay strategy combines an AlphaTrend core with kinematic, Bayesian, and mean-reversion models, plus harmonic, classical, and candlestick pattern engines.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code3,153
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 Extended plots consolidation zones, volume-profile points of control, pattern lines, and forward forecast bands on the price chart, and it can require cross-asset synergy before treating a breakout as valid. Inputs change ATR sensitivity, layer periods, forecast horizon, model weights, and which engines run. The trade state stores a stop and a target. Signals can change on the live bar.

Details

Published by

majixai on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Trend, Candlestick patterns, Breakout, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

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
Primary Engine ModestringAll Modelsstrat_mode
Enable Harmonicsbooltrueuse_harmonics
Enable Classical Patternsbooltrueuse_classical
Enable Candlestick Enginebooltrueuse_candles
Enable Topology Manifold Validationbooltrueuse_topology
Garbage Collection ModestringAggressivemem_mode
Forecast Horizon (Bars)int20fc_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
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

285 stars

Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish

Strategy v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Strategy

BarUpDn Strategy

by hasnocool
106 stars

The BarUpDn Strategy triggers trades based on candle price direction relative to a past bar. It enters a long position with a stop order above the high when the current candle closes above its open and its open is higher than the close of a specified lookback

Strategy v4 Candlestick patternsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of BarUpDn Strategy

Traiversal A001

by ruckard
13 stars

Traiversal A001 is a breakout reversal strategy designed primarily for cryptocurrency trading. It identifies reversal entry opportunities three candles following a breakout and closes positions when a breakout in the opposite direction occurs. The script inclu

Strategy v5 BreakoutMean reversion
Updated 1 year ago · None stated GitHub repository of Traiversal A001

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