Strategy · Pine Script v5 · On the chart

JinxAlphaTrend + MACD/BSM ULTIMATE v13

by majixai

A strategy that combines an AlphaTrend style volatility core with MACD, higher-timeframe background boxes, three consolidation layers with volume profile buckets, candlestick and macro pattern drawings, and a forecast with Bayesian lookback and a feedback learning rate.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code2,396
Settings40inputs
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 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

Cross-asset synergy against three large technology stocks can be required or relaxed, and a maximum number of trades and a roll window are set by inputs. Many boxes, lines and labels are drawn on the price chart.

Details

Published by

majixai on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Trend, Oscillators & momentum, Candlestick patterns

Markets

Stocks

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
Base Volatility Coefffloat1.5b_cf
Common Periodint14al_pr
Source Datasourcecloseal_sr
HTF Background Boxtimeframe15hf_in
Layer 1 Length (Micro)int20c_l1
Layer 2 Length (Macro)int40c_l2
Layer 3 Length (Global)int80c_l3
Volume Profile Bucketsint10vp_bk
Breakout Synergy Multiplier (Fib)float1.618bk_ml
Show Candlestick Labelsbooltruesh_cp
Draw Macro Chart Patterns (Lines)booltruesh_mp
Structure Pivot Lookbackint10pv_lb
Show all 40 settings
SettingTypeDefaultVariable
Pattern Tolerance (%)float0.02st_tl
Bullish Pattern Colorcolorcolor.new(color.lime, 75)p_clB
Bearish Pattern Colorcolorcolor.new(color.red, 75)p_clR
Forecast Horizon (Bars)int20fc_hz
Feedback Learning Ratefloat0.1lr_rt
Bayes Lookback Periodint500by_lb
Enable Mean Reversion Gravitybooltrueen_mr
Model Weight Matrixtext1.0 0.5 0.2 0.2 1.0 0.5 0.5 0.2 1.0wt_in
Require Synergybooltruerq_syn
Relaxed MACDbooltruerl_md
Fast Lenint12f_ln
Slow Lenint26s_ln
Sig Lenint9sg_ln
Primary Sec 1symbolNASDAQ:AAPLs_1
Sec 2 (Corr)symbolNASDAQ:MSFTs_2
Sec 3 (Corr)symbolNASDAQ:GOOGs_3
Max Tradesint3mx_tr
Roll Windowint5rl_dy
CI Mult SLfloat1.1rk_bf
Target RRfloat2.0rw_ml
Risk-Free Ratefloat0.05rf_rt
Days to Expfloat30.0t_ex
Strike Multfloat1.0st_ml
Smooth Polyline CurvesbooltruecurvP
Show Monte Carlo Random Pathsbooltruesh_mc
Highlight Active Consolidationsbooltruesh_co
Show Ghost Barsbooltruesh_gb
Display HUD Table on Chartbooltrueshow_table
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
7 stars

This strategy combines Ichimoku Kinko Hyo components, a Stochastic oscillator, and specific candlestick patterns to generate trade signals. It identifies Kumo twists and range breakouts while evaluating candle body shapes using Fibonacci threshold filters. Tra

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · MIT GitHub repository of Soulevement / Ressaut Strategy

Improvisando [Alorse]

by Hugs-4-Bugs
4 stars

This strategy combines candlestick price action with Exponential Moving Average, RSI, and MACD filters to identify short-term trend trades. A long signal occurs when a bullish candle engulfs the previous open while price remains above the EMA, RSI stays below

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Improvisando [Alorse]
1 stars

A strategy version of an ATR pullback scanner. It requires a strong, rising ADX with directional indicators to set the trend direction, and an optional daily SMA 50 and 200 filter. A pullback zone is measured in ATR units from the recent swing. A toggle choose

Strategy v5 TrendCandlestick patterns
Updated 4 months ago · None stated GitHub repository of Trend Scanner Strategy (A/B Test)

Tweezer Lyfe

by RobACurtis
1 stars

Tweezer Lyfe is a TradingView strategy that identifies Tweezer reversal patterns on the price chart. It plots Bollinger Bands with RSI and stochastic indicators for momentum confirmation. Bullish signals require a prior bearish candle closing near the lower ba

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Tweezer Lyfe
330 stars

2 EMA/SMA + RSI Strategy [Alorse] combines three configurable moving averages with a short-period Relative Strength Index filter. It plots fast, slow, and trend moving averages on the price chart. Long entries trigger when the fast moving average is above the

Strategy v4 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of 2 EMA/SMA + RSI Strategy [Alorse]

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