This overlay strategy combines an AlphaTrend core with kinematic, Bayesian, and mean-reversion models, plus harmonic, classical, and candlestick pattern engines.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Base Vol Coefficient
float
1.5
b_cf
Common Period
int
14
al_pr
Source
source
close
al_sr
HTF Background TF
timeframe
15
hf_in
Layer 1 Period (Micro)
int
20
c_l1
Layer 2 Period (Macro)
int
40
c_l2
Layer 3 Period (Global)
int
80
c_l3
Volume Profile Buckets
int
10
vp_bk
Breakout Fib Multiplier
float
1.618
bk_ml
Show Candlestick Labels
bool
true
sh_cp
Draw Macro Pattern Lines
bool
true
sh_mp
Pivot Lookback
int
10
pv_lb
Show all 40 settings
Setting
Type
Default
Variable
Pattern Tolerance (%)
float
0.02
st_tl
Bullish Pattern Color
color
color.new(color.lime, 0)
p_clB
Bearish Pattern Color
color
color.new(color.red, 0)
p_clR
Primary Engine Mode
string
All Models
strat_mode
Enable Harmonics
bool
true
use_harmonics
Enable Classical Patterns
bool
true
use_classical
Enable Candlestick Engine
bool
true
use_candles
Enable Topology Manifold Validation
bool
true
use_topology
Garbage Collection Mode
string
Aggressive
mem_mode
Forecast Horizon (Bars)
int
20
fc_hz
Feedback Learn Rate
float
0.1
lr_rt
Bayesian Lookback
int
500
by_lb
Enable Mean Reversion Gravity
bool
true
en_mr
Conic Refresh Mode
string
After target hit/miss
up_md
Model Weights (Kin / Bayes / MR)
text
1.0 0.5 0.2
0.2 1.0 0.5
0.5 0.2 1.0
wt_in
Require Cross-Asset Synergy
bool
true
rq_syn
Relaxed Synergy (any 1 of 3)
bool
true
rl_md
MACD Fast Length
int
12
f_ln
MACD Slow Length
int
26
s_ln
MACD Signal Length
int
9
sg_ln
Primary Symbol
symbol
NASDAQ:AAPL
s_1
Correlation Symbol 2
symbol
NASDAQ:MSFT
s_2
Correlation Symbol 3
symbol
NASDAQ:GOOG
s_3
Max Concurrent Trades
int
3
mx_tr
Stop ATR Multiplier
float
1.1
rk_bf
Target Risk:Reward
float
2.0
rw_ml
Risk-Free Rate
float
0.05
rf_rt
Days to Expiration
float
30.0
t_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.
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
The Chained Linear Regression Reversal Strategy plots linear regression channels with upper and lower standard deviation bands directly on the price chart across a user-defined time window. When price breaks out of the static channel for a confirmed number of
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
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
RG Structure v2.0 [Visual Edition] is a strategy that identifies pivot points over a lookback window to construct trendlines. It evaluates breaks and retests of these trendlines using scoring weights, violation penalties, and regime detection to generate entry
This strategy operates directly on the price chart to generate trading signals across four switchable modules: trend following, mean reversion, momentum breakout, and smart money concepts. It triggers trade entries when a user-defined minimum number of modules