Session Lines Clean (Asia/London/NY)Session Lines Clean (Asia/London/NY) — v6” automatically plots the high and low levels of the Asia and London forex sessions, and marks the opening times of Asia, London, and New York sessions with vertical dashed lines. The indicator helps traders quickly identify key session ranges, potential liquidity areas, and time-based structure levels. Optional labels and visibility toggles make it easy to customize the display without cluttering the chart.
אינדיקטורים ואסטרטגיות
VWAP Retest + EMA9 Cross + Candle Pattern StrategyVWAP Retest + EMA9 Cross Strategy (Intraday, 3% TP, ATR SL)
This is a momentum-based intraday strategy, targets VWAP retest continuation setups in strong trends. Designed for morning US session trades (9:30–12:30 EST). It combines multiple layers of confluence for high-probability long setups:
Entry Conditions:
EMA9 crossover above VWAP (within 1-2 bars)
Price retests VWAP within a buffer ($0.2)
Price is above previous day’s high
One of 3 bullish candle patterns must appear:
Hammer (H)
Bullish Engulfing (BE)
Momentum Candle (M)
Trade Management:
Take Profit: 3%
Stop Loss: ATR-based, 1.5× multiplier
Session Filter: 9:30am to 12:30pm EST
No pyramiding/ one position at a time
Forced exit at 1pm EST
It filters out weak entries by ensuring:
Momentum
Structure break
Candle confirmation
Backtested on 3-min timeframe, period: Jan 01, 2025 - Oct 22, 2025. Best performance seen on CITI, INTC, and WBD (high profit factors and low drawdowns). Not financial advice.
Custom Session highlighter - Dual Sessions + TimezoneCustom Session highlighter - Dual Sessions + Timezone
LegendaryGoldTraderLegendaryGoldTrader Signals – TradingView Indicator
This script is a comprehensive multi-indicator signal tool for XAUUSD (Gold), optimized for short timeframes from 1 to 15 minutes. It combines trend, momentum, and entry indicators to help identify potential Long and Short trading opportunities.
Features:
EMA (Trend Filter): Two EMAs determine the short-term trend direction.
RSI: Highlights overbought and oversold conditions.
MACD: Detects momentum shifts and trend changes.
Stochastic: Provides precise entry timing.
ADX: Confirms trend strength and filters signals during weak trends.
3-Candle Pattern (optional): Identifies short-term reversal patterns for Long or Short entries.
BUY/SELL Labels: Clear signals displayed above or below the chart.
Info Window: Displays all indicator signals and trend strength at a glance.
Highlights:
Fully configurable indicators and signals.
3-Candle Pattern can be enabled or disabled.
Suitable for fast intraday trading on minute charts, but flexible for other timeframes.
Supports trend confirmation and false-signal filtering for controlled entries.
AlgebraGeoLibraryLibrary "AlgebraGeoLibrary"
Algebra & 2D geometry utilities absent from Pine built-ins.
Rigorous, no-repaint, export-ready: vectors, robust roots, linear solvers, 2x2/3x3 det/inverse,
symmetric 2x2 eigensystem, orthogonal regression (TLS), affine transforms, intersections,
distances, projections, polygon metrics, point-in-polygon, convex hull (monotone chain),
Bezier/Catmull-Rom/Barycentric tools.
clamp(x, lo, hi)
clamp to
Parameters:
x (float)
lo (float)
hi (float)
near(a, b, atol, rtol)
approximately equal with relative+absolute tolerance
Parameters:
a (float)
b (float)
atol (float)
rtol (float)
sgn(x)
sign as {-1,0,1}
Parameters:
x (float)
hypot(x, y)
stable hypot (sqrt(x^2+y^2))
Parameters:
x (float)
y (float)
method length(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method length2(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method normalized(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method add(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method sub(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method muls(v, s)
Namespace types: Vec2
Parameters:
v (Vec2)
s (float)
method dot(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method crossz(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method rotate(v, ang)
Namespace types: Vec2
Parameters:
v (Vec2)
ang (float)
method apply(v, T)
Namespace types: Vec2
Parameters:
v (Vec2)
T (Affine2)
affine_identity()
identity transform
affine_translate(tx, ty)
translation
Parameters:
tx (float)
ty (float)
affine_rotate(ang)
rotation about origin
Parameters:
ang (float)
affine_scale(sx, sy)
scaling about origin
Parameters:
sx (float)
sy (float)
affine_rotate_about(ang, px, py)
rotation about pivot (px,py)
Parameters:
ang (float)
px (float)
py (float)
affine_compose(T2, T1)
compose T2∘T1 (apply T1 then T2)
Parameters:
T2 (Affine2)
T1 (Affine2)
quadratic_roots(a, b, c)
Real roots of ax^2 + bx + c = 0 (numerically stable)
Parameters:
a (float)
b (float)
c (float)
Returns: with n∈{0,1,2}; r1<=r2 when n=2.
cubic_roots(a, b, c, d)
Real roots of ax^3+bx^2+cx+d=0 (Cardano; returns up to 3 real roots)
Parameters:
a (float)
b (float)
c (float)
d (float)
Returns: (valid r2/r3 only if n>=2/n>=3)
det2(a, b, c, d)
det2 of
Parameters:
a (float)
b (float)
c (float)
d (float)
inv2(a, b, c, d)
inverse of 2x2; returns
Parameters:
a (float)
b (float)
c (float)
d (float)
solve2(a, b, c, d, e, f)
solve 2x2 * = via Cramer
Parameters:
a (float)
b (float)
c (float)
d (float)
e (float)
f (float)
det3(a11, a12, a13, a21, a22, a23, a31, a32, a33)
det3 of 3x3
Parameters:
a11 (float)
a12 (float)
a13 (float)
a21 (float)
a22 (float)
a23 (float)
a31 (float)
a32 (float)
a33 (float)
inv3(a11, a12, a13, a21, a22, a23, a31, a32, a33)
inverse 3x3; returns
Parameters:
a11 (float)
a12 (float)
a13 (float)
a21 (float)
a22 (float)
a23 (float)
a31 (float)
a32 (float)
a33 (float)
eig2_symmetric(a, b, d)
symmetric 2x2 eigensystem: [ , ]
Parameters:
a (float)
b (float)
d (float)
Returns: with unit eigenvectors
tls_line(xs, ys)
Orthogonal (total least squares) regression line through point cloud
Input arrays must be same length N>=2. Returns line in normal form n•x + c = 0
Parameters:
xs (array)
ys (array)
Returns: where (nx,ny) unit normal; (cx,cy) centroid.
orient(a, b, c)
orientation (signed area*2): >0 CCW, <0 CW, 0 collinear
Parameters:
a (Vec2)
b (Vec2)
c (Vec2)
project_point_line(p, a, d)
project point p onto infinite line through a with direction d
Parameters:
p (Vec2)
a (Vec2)
d (Vec2)
Returns: where proj = a + t*d
closest_point_segment(p, a, b)
closest point on segment to p
Parameters:
p (Vec2)
a (Vec2)
b (Vec2)
Returns: where t∈ on segment
dist_point_line(p, a, d)
distance from point to line (infinite)
Parameters:
p (Vec2)
a (Vec2)
d (Vec2)
dist_point_segment(p, a, b)
distance from point to segment
Parameters:
p (Vec2)
a (Vec2)
b (Vec2)
intersect_lines(p1, d1, p2, d2)
line-line intersection: L1: p1+d1*t, L2: p2+d2*u
Parameters:
p1 (Vec2)
d1 (Vec2)
p2 (Vec2)
d2 (Vec2)
Returns:
intersect_segments(s1, s2)
segment-segment intersection (closed segments)
Parameters:
s1 (Segment2)
s2 (Segment2)
Returns: where kind: 0=no, 1=proper point, 2=overlap (ix/iy=na)
circumcircle(a, b, c)
circle through 3 non-collinear points
Parameters:
a (Vec2)
b (Vec2)
c (Vec2)
intersect_circle_line(C, p, d)
intersections of circle and line (param p + d t)
Parameters:
C (Circle2)
p (Vec2)
d (Vec2)
Returns: with n∈{0,1,2}
intersect_circles(A, B)
circle-circle intersection
Parameters:
A (Circle2)
B (Circle2)
Returns: with n∈{0,1,2}
polygon_area(xs, ys)
signed area (shoelace). Positive if CCW.
Parameters:
xs (array)
ys (array)
polygon_centroid(xs, ys)
polygon centroid (for non-self-intersecting). Fallback to vertex mean if area≈0.
Parameters:
xs (array)
ys (array)
point_in_polygon(px, py, xs, ys)
point-in-polygon test (ray casting). Returns true if inside; boundary counts as inside.
Parameters:
px (float)
py (float)
xs (array)
ys (array)
convex_hull(xs, ys)
convex hull (monotone chain). Returns array of hull vertex indices in CCW order.
Uses array.sort_indices(xs) (ascending by x). Ties on x are handled; result is deterministic.
Parameters:
xs (array)
ys (array)
lerp(a, b, t)
linear interpolate between a and b
Parameters:
a (float)
b (float)
t (float)
bezier2(p0, p1, p2, t)
quadratic Bezier B(t) for points p0,p1,p2
Parameters:
p0 (Vec2)
p1 (Vec2)
p2 (Vec2)
t (float)
bezier3(p0, p1, p2, p3, t)
cubic Bezier B(t) for p0,p1,p2,p3
Parameters:
p0 (Vec2)
p1 (Vec2)
p2 (Vec2)
p3 (Vec2)
t (float)
catmull_rom(p0, p1, p2, p3, t, alpha)
Catmull-Rom interpolation (centripetal form when alpha=0.5)
t∈ , returns point between p1 and p2
Parameters:
p0 (Vec2)
p1 (Vec2)
p2 (Vec2)
p3 (Vec2)
t (float)
alpha (float)
barycentric(A, B, C, P)
barycentric coordinates of P wrt triangle ABC
Parameters:
A (Vec2)
B (Vec2)
C (Vec2)
P (Vec2)
Returns:
point_in_triangle(A, B, C, P)
point-in-triangle using barycentric (boundary included)
Parameters:
A (Vec2)
B (Vec2)
C (Vec2)
P (Vec2)
Vec2
Fields:
x (series float)
y (series float)
Line2
Fields:
p (Vec2)
d (Vec2)
Segment2
Fields:
a (Vec2)
b (Vec2)
Circle2
Fields:
c (Vec2)
r (series float)
Affine2
Fields:
a (series float)
b (series float)
c (series float)
d (series float)
tx (series float)
ty (series float)
OscLibraryLibrary "OscLibrary"
Non‑native oscillators & math for Pine v6: Ehlers Super Smoother & Roofing, Hilbert/homodyne period,
DSP biquads (LP/HP/BP/Notch), Goertzel power, Haar detail (wavelet‑style), robust z/Fisher, FRAMA,
Laguerre filter + Laguerre RSI, Autocorrelation Periodogram dominant period, DPO, WaveTrend‑style.
clamp(x, lo, hi)
Clamp to
Parameters:
x (float)
lo (float)
hi (float)
tanh(x)
Parameters:
x (float)
f_atan2_custom(y, x)
Parameters:
y (float)
x (float)
wrap_pi(ang)
Wrap angle to (-pi, pi]
Parameters:
ang (float)
scale_minmax(x, len)
Window min‑max scale to
Parameters:
x (float)
len (simple int)
zscore_robust(x, len)
Robust z‑score using rolling median & MAD
z = (x - median) / (1.4826 * MAD)
Parameters:
x (float)
len (simple int)
fisher_rank(x, len)
Fisher transform of rolling percent‑rank (no simplifications)
Parameters:
x (float)
len (simple int)
ift_rsi(x, rsiLen, smoothLen)
Classic IFT of RSI
Parameters:
x (float)
rsiLen (simple int)
smoothLen (simple int)
biquad_lp(x, f0_cpb, Q)
2‑pole low‑pass
Parameters:
x (float)
f0_cpb (float)
Q (float)
biquad_hp(x, f0_cpb, Q)
2‑pole high‑pass
Parameters:
x (float)
f0_cpb (float)
Q (float)
biquad_bp(x, f0_cpb, Q)
2‑pole band‑pass (constant skirt gain)
Parameters:
x (float)
f0_cpb (float)
Q (float)
biquad_notch(x, f0_cpb, Q)
2‑pole notch
Parameters:
x (float)
f0_cpb (float)
Q (float)
ssf(x, period)
Ehlers Super Smoother (2‑pole low‑lag LP)
Parameters:
x (float)
period (simple int)
highpass_ehlers(x, cutoffPeriod)
Ehlers high‑pass (first stage of Roofing)
Parameters:
x (float)
cutoffPeriod (simple int)
roofing(x, hpCutoff, lpPeriod)
Roofing filter: HP (long‑cycle reject) → Super Smoother
Parameters:
x (float)
hpCutoff (simple int)
lpPeriod (simple int)
hilbert_quadrature(src)
Short Hilbert quadrature on a smoothed series
Parameters:
src (float)
homodyne_period(src, floorP, ceilP)
Homodyne instantaneous period (bars) with smoothing
Parameters:
src (float)
floorP (simple int)
ceilP (simple int)
sine_leadsine(src)
Sine & lead‑sine oscillator from HT phase
Parameters:
src (float)
goertzel_power(x, f0_cpb, r)
Goertzel single‑bin spectral power (forgetting r∈(0,1))
Parameters:
x (float)
f0_cpb (float)
r (float)
frama_alpha(x, length, fast, slow)
FRAMA alpha via fractal dimension (Ehlers)
Parameters:
x (float)
length (simple int)
fast (simple int)
slow (simple int)
frama(x, length, fast, slow)
FRAMA smoother (EMA with alpha from FD)
Parameters:
x (float)
length (simple int)
fast (simple int)
slow (simple int)
laguerre(x, gamma)
4‑element Laguerre filter (gamma in [0,1))
Parameters:
x (float)
gamma (float)
laguerre_rsi(x, gamma)
Laguerre RSI (bounded 0..1)
Parameters:
x (float)
gamma (float)
acf_dominant_period(x, minP, maxP, corrLen)
Dominant period from normalized autocorrelation peaks
Uses Pearson correlation as normalized ACF proxy over 'corrLen' bars.
minP/maxP bound the search range. corrLen should be >= maxP*2.
Parameters:
x (float)
minP (simple int)
maxP (simple int)
corrLen (simple int)
dpo(x, length)
Detrended Price Oscillator (centered SMA lag)
Parameters:
x (float)
length (simple int)
wavetrend(h, l, c, chLen, avgLen)
WaveTrend‑style oscillator (inputs explicit)
Parameters:
h (float)
l (float)
c (float)
chLen (simple int)
avgLen (simple int)
rescale(x, fromLo, fromHi, toLo, toHi, clip)
Rescale x from to . Handles reversed domains; optional clipping.
Parameters:
x (float)
fromLo (float)
fromHi (float)
toLo (float)
toHi (float)
clip (simple bool)
zscore_std(x, len)
Classic rolling z-score using SMA/STD (sample stdev). Guard zero-variance.
Parameters:
x (float)
len (simple int)
ema_alpha(x, alpha)
EMA with dynamic alpha ∈ . No simplifications; stable init.
Parameters:
x (float)
alpha (float)
zlema(x, length)
Zero-Lag EMA (ZLEMA). Uses lag = round((L-1)/2) and exact 2*x - x prefilter.
Parameters:
x (float)
length (simple int)
hullma(x, length)
Hull Moving Average (HMA) with round() for half and sqrt windows per standard definition.
Parameters:
x (float)
length (simple int)
pct_change(x, len)
Relative change over len bars. Uses exact previous value (sign-preserving); guards zero.
Parameters:
x (float)
len (simple int)
normalize_by_atr(delta, atrLen)
Normalize a delta by ATR(len) → "ATR units" (volatility-normalized). Guards zero ATR.
Parameters:
delta (float)
atrLen (simple int)
smoothstep(x, edge0, edge1)
Smoothstep gate: x∈ → with C1 continuity; robust to equal edges.
Parameters:
x (float)
edge0 (float)
edge1 (float)
biquad_lp_period(x, period_bars, Q)
Parameters:
x (float)
period_bars (float)
Q (float)
biquad_hp_period(x, period_bars, Q)
Parameters:
x (float)
period_bars (float)
Q (float)
biquad_bp_period(x, centerPeriod_bars, Q)
Parameters:
x (float)
centerPeriod_bars (float)
Q (float)
biquad_notch_period(x, centerPeriod_bars, Q)
Parameters:
x (float)
centerPeriod_bars (float)
Q (float)
biquad_bp_between(x, periodLow_bars, periodHigh_bars)
Band-pass by specifying low/high periods (pass between 1/pHigh and 1/pLow).
Computes center f0 = sqrt(fLo*fHi) and Q = f0 / BW (constant-skirt RBJ form).
Parameters:
x (float)
periodLow_bars (float)
periodHigh_bars (float)
angle_diff(a, b)
Parameters:
a (float)
b (float)
rad2deg(r)
Parameters:
r (float)
deg2rad(d)
Parameters:
d (float)
MathLibraryLibrary "MathLibrary"
Algebra & 2D geometry utilities absent from Pine built-ins.
Rigorous, no-repaint, export-ready: vectors, robust roots, linear solvers, 2x2/3x3 det/inverse,
symmetric 2x2 eigensystem, orthogonal regression (TLS), affine transforms, intersections,
distances, projections, polygon metrics, point-in-polygon, convex hull (monotone chain),
Bezier/Catmull-Rom/Barycentric tools.
clamp(x, lo, hi)
clamp to
Parameters:
x (float)
lo (float)
hi (float)
near(a, b, atol, rtol)
approximately equal with relative+absolute tolerance
Parameters:
a (float)
b (float)
atol (float)
rtol (float)
sgn(x)
sign as {-1,0,1}
Parameters:
x (float)
hypot(x, y)
stable hypot (sqrt(x^2+y^2))
Parameters:
x (float)
y (float)
method length(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method length2(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method normalized(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method add(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method sub(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method muls(v, s)
Namespace types: Vec2
Parameters:
v (Vec2)
s (float)
method dot(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method crossz(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method rotate(v, ang)
Namespace types: Vec2
Parameters:
v (Vec2)
ang (float)
method apply(v, T)
Namespace types: Vec2
Parameters:
v (Vec2)
T (Affine2)
affine_identity()
identity transform
affine_translate(tx, ty)
translation
Parameters:
tx (float)
ty (float)
affine_rotate(ang)
rotation about origin
Parameters:
ang (float)
affine_scale(sx, sy)
scaling about origin
Parameters:
sx (float)
sy (float)
affine_rotate_about(ang, px, py)
rotation about pivot (px,py)
Parameters:
ang (float)
px (float)
py (float)
affine_compose(T2, T1)
compose T2∘T1 (apply T1 then T2)
Parameters:
T2 (Affine2)
T1 (Affine2)
quadratic_roots(a, b, c)
Real roots of ax^2 + bx + c = 0 (numerically stable)
Parameters:
a (float)
b (float)
c (float)
Returns: with n∈{0,1,2}; r1<=r2 when n=2.
cubic_roots(a, b, c, d)
Real roots of ax^3+bx^2+cx+d=0 (Cardano; returns up to 3 real roots)
Parameters:
a (float)
b (float)
c (float)
d (float)
Returns: (valid r2/r3 only if n>=2/n>=3)
det2(a, b, c, d)
det2 of
Parameters:
a (float)
b (float)
c (float)
d (float)
inv2(a, b, c, d)
inverse of 2x2; returns
Parameters:
a (float)
b (float)
c (float)
d (float)
solve2(a, b, c, d, e, f)
solve 2x2 * = via Cramer
Parameters:
a (float)
b (float)
c (float)
d (float)
e (float)
f (float)
det3(a11, a12, a13, a21, a22, a23, a31, a32, a33)
det3 of 3x3
Parameters:
a11 (float)
a12 (float)
a13 (float)
a21 (float)
a22 (float)
a23 (float)
a31 (float)
a32 (float)
a33 (float)
inv3(a11, a12, a13, a21, a22, a23, a31, a32, a33)
inverse 3x3; returns
Parameters:
a11 (float)
a12 (float)
a13 (float)
a21 (float)
a22 (float)
a23 (float)
a31 (float)
a32 (float)
a33 (float)
eig2_symmetric(a, b, d)
symmetric 2x2 eigensystem: [ , ]
Parameters:
a (float)
b (float)
d (float)
Returns: with unit eigenvectors
tls_line(xs, ys)
Orthogonal (total least squares) regression line through point cloud
Input arrays must be same length N>=2. Returns line in normal form n•x + c = 0
Parameters:
xs (array)
ys (array)
Returns: where (nx,ny) unit normal; (cx,cy) centroid.
orient(a, b, c)
orientation (signed area*2): >0 CCW, <0 CW, 0 collinear
Parameters:
a (Vec2)
b (Vec2)
c (Vec2)
project_point_line(p, a, d)
project point p onto infinite line through a with direction d
Parameters:
p (Vec2)
a (Vec2)
d (Vec2)
Returns: where proj = a + t*d
closest_point_segment(p, a, b)
closest point on segment to p
Parameters:
p (Vec2)
a (Vec2)
b (Vec2)
Returns: where t∈ on segment
dist_point_line(p, a, d)
distance from point to line (infinite)
Parameters:
p (Vec2)
a (Vec2)
d (Vec2)
dist_point_segment(p, a, b)
distance from point to segment
Parameters:
p (Vec2)
a (Vec2)
b (Vec2)
intersect_lines(p1, d1, p2, d2)
line-line intersection: L1: p1+d1*t, L2: p2+d2*u
Parameters:
p1 (Vec2)
d1 (Vec2)
p2 (Vec2)
d2 (Vec2)
Returns:
intersect_segments(s1, s2)
segment-segment intersection (closed segments)
Parameters:
s1 (Segment2)
s2 (Segment2)
Returns: where kind: 0=no, 1=proper point, 2=overlap (ix/iy=na)
circumcircle(a, b, c)
circle through 3 non-collinear points
Parameters:
a (Vec2)
b (Vec2)
c (Vec2)
intersect_circle_line(C, p, d)
intersections of circle and line (param p + d t)
Parameters:
C (Circle2)
p (Vec2)
d (Vec2)
Returns: with n∈{0,1,2}
intersect_circles(A, B)
circle-circle intersection
Parameters:
A (Circle2)
B (Circle2)
Returns: with n∈{0,1,2}
polygon_area(xs, ys)
signed area (shoelace). Positive if CCW.
Parameters:
xs (array)
ys (array)
polygon_centroid(xs, ys)
polygon centroid (for non-self-intersecting). Fallback to vertex mean if area≈0.
Parameters:
xs (array)
ys (array)
Vec2
Fields:
x (series float)
y (series float)
Line2
Fields:
p (Vec2)
d (Vec2)
Segment2
Fields:
a (Vec2)
b (Vec2)
Circle2
Fields:
c (Vec2)
r (series float)
Affine2
Fields:
a (series float)
b (series float)
c (series float)
d (series float)
tx (series float)
ty (series float)
MALibraryLibrary "MALibrary"
sma(src, len)
sma
Parameters:
src (float)
len (int)
ema(src, len)
ema
Parameters:
src (float)
len (simple int)
wma(src, len)
wma
Parameters:
src (float)
len (int)
rma(src, len)
rma
Parameters:
src (float)
len (simple int)
vwma(src, len)
vwma
Parameters:
src (float)
len (int)
hma(src, len)
hma
Parameters:
src (float)
len (simple int)
alma(src, len, offset, sigma)
alma
Parameters:
src (float)
len (int)
offset (simple float)
sigma (simple float)
lsma(src, len)
lsma
Parameters:
src (float)
len (int)
rolling_median(src, len)
rolling_median
Parameters:
src (float)
len (int)
fibma(src, len)
fibma
/ Guessed implementation for 'FIB' ribbons (WMA to differ from GMMA).
Parameters:
src (float)
len (int)
dema(src, len)
dema
Parameters:
src (float)
len (simple int)
tema(src, len)
tema
Parameters:
src (float)
len (simple int)
t3(src, len, vFactor)
t3
Parameters:
src (float)
len (simple int)
vFactor (float)
ehma(src, len)
ehma
Parameters:
src (float)
len (simple int)
zlema(src, len)
zlema
Parameters:
src (float)
len (simple int)
zlhma(src, len)
zlhma
Parameters:
src (float)
len (simple int)
dwma(src, len)
dwma
Parameters:
src (float)
len (int)
dswma(src, len)
dswma
Parameters:
src (float)
len (simple int)
emm(src, len1, len2)
emm
Parameters:
src (float)
len1 (int)
len2 (simple int)
swma_sine(src, len)
swma_sine
Parameters:
src (float)
len (int)
pwma_parabolic(src, len)
pwma_parabolic
Parameters:
src (float)
len (int)
gaussma(src, len, sigmaF)
gaussma
Parameters:
src (float)
len (int)
sigmaF (float)
nlwma(src, len, power)
nlwma
Parameters:
src (float)
len (int)
power (float)
sincma(src, len, cutoff)
sincma
Parameters:
src (float)
len (int)
cutoff (float)
spma_15(src)
spma_15
Parameters:
src (float)
cgma(src, len)
cgma
Parameters:
src (float)
len (int)
fsma(src, len, harmonics)
fsma
Parameters:
src (float)
len (int)
harmonics (int)
sema_centered(src, len, useRepaint)
sema_centered
Parameters:
src (float)
len (simple int)
useRepaint (bool)
zpdf(src, len, cutoff, useRepaint)
zpdf
/ Zero-lag (windowed-sinc) filter. When useRepaint=true, returns the centered value via historical shift (no future indexing).
Parameters:
src (float)
len (int)
cutoff (float)
useRepaint (bool)
swma_centered(src, len, useRepaint)
swma_centered
Parameters:
src (float)
len (int)
useRepaint (bool)
mcginley(src, len)
mcginley
Parameters:
src (float)
len (int)
vidya(src, len, len_vol)
vidya
Parameters:
src (float)
len (int)
len_vol (int)
kama(src, len, fast, slow)
kama
Parameters:
src (float)
len (int)
fast (int)
slow (int)
gma_geo(src, len)
gma_geo
Parameters:
src (float)
len (simple int)
super_smoother(src, len)
super_smoother
Parameters:
src (float)
len (int)
laguerre(src, gamma)
laguerre
Parameters:
src (float)
gamma (float)
laguerre_adaptive(src, len)
laguerre_adaptive
Parameters:
src (float)
len (int)
itl(src)
itl
Parameters:
src (float)
decycler(src, len)
decycler
Parameters:
src (float)
len (int)
dcfma(src, len)
dcfma
Parameters:
src (float)
len (int)
frama(src, len)
frama
Parameters:
src (float)
len (int)
arma_adaptive(src, len)
arma_adaptive
Parameters:
src (float)
len (int)
ass(src, len)
ass (Adaptive Super Smoother)
Parameters:
src (float)
len (int)
azlema(src, len)
azlema
Parameters:
src (float)
len (int)
kfma(src, q, r)
kfma
Parameters:
src (float)
q (float)
r (float)
albma(src, min_len, max_len, atr_len)
albma (NEW)
/ Adaptive Lookback MA using ATR; higher ATR → shorter lookback.
Parameters:
src (float)
min_len (int)
max_len (int)
atr_len (simple int)
fdima(src, len)
fdima
Parameters:
src (float)
len (int)
nma(src_ma, len)
nma
Parameters:
src_ma (float)
len (int)
cma_corrected(src_ma, g)
cma_corrected
Parameters:
src_ma (float)
g (float)
rfma(src, len)
rfma
Parameters:
src (float)
len (simple int)
rsdma(src, len)
rsdma
Parameters:
src (float)
len (int)
sdama(src, len)
sdama
Parameters:
src (float)
len (int)
corma(src, ext_src, len)
corma
Parameters:
src (float)
ext_src (float)
len (int)
evma(src, len)
evma
Parameters:
src (float)
len (simple int)
vama(src, len)
vama (NEW)
/ Volume-Adjusted Moving Average (VIDYA-style using relative volume).
Parameters:
src (float)
len (int)
ivwma(src, len)
ivwma
Parameters:
src (float)
len (int)
vrocma(src, len1, len2)
vrocma
Parameters:
src (float)
len1 (int)
len2 (int)
vtwap(len)
vtwap
Parameters:
len (int)
gvwma(src, len)
gvwma
Parameters:
src (float)
len (int)
pvdma(src, len)
pvdma
Parameters:
src (float)
len (int)
hampel_mean(src, len, thr, k, ma_type)
hampel_mean
Parameters:
src (float)
len (simple int)
thr (float)
k (float)
ma_type (string)
hlma(len)
hlma
Parameters:
len (simple int)
hlmma(len)
hlmma
Parameters:
len (simple int)
mpma(len)
mpma
Parameters:
len (int)
hvma(len)
hvma
Parameters:
len (int)
ema_slope(src, len)
ema_slope
Parameters:
src (float)
len (simple int)
Historical Vertical Lines 17:00-20:30Historical Vertical Lines 17:00-20:30. These lines show this specific time. You can edit the times via pine script. Easy.
Daily 200EMA on Intraday ChartsThis indicator shows the 200 EMA from the Daily Chart onto an intraday chart of your choice
Flexible MA Crossrotemtuyunmhv kebh unfhrv ak nbhu, ftar vo jumu, t, vnnumg bg fkph ngkv uaucru, gkph nyv
testLibLibrary "testLib"
TODO: add library description here
mySMA(x)
TODO: add function description here
Parameters:
x (int) : TODO: add parameter x description here
Returns: TODO: add what function returns
livremySMATestLibLibrary "livremySMATestLib"
TODO: add library description here
mySMA(x)
TODO: add function description here
Parameters:
x (int) : TODO: add parameter x description here
Returns: TODO: add what function returns
Buying Climax + Spring [Darwinian]Buying Climax + Spring Indicator
Overview
Advanced Wyckoff-based indicator that identifies potential market reversals through **Buying Climax** patterns (exhaustion tops) and **Spring** patterns (accumulation bottoms). Designed for traders seeking high-probability reversal signals with strict uptrend validation.
---
Method
🔴 Buying Climax Detection
Identifies exhaustion patterns at market tops using multi-condition analysis:
**Base Buying Climax (Red Triangle)**
- Volume spike > 1.8x average
- Range expansion > 1.8x average
- New 20-bar high reached
- Close finishes in lower 30% of bar range
- **Strict uptrend validation**: Price must be 30%+ above 20-day low
**Enhanced Buying Climax (Maroon Triangle)**
- All Base BC conditions PLUS:
- Gap up from previous high
- Intraday fade (close < open and below midpoint)
- **Higher confidence reversal signal**
🟢 Wyckoff Spring Detection
Identifies accumulation patterns at support levels:
- Price breaks below recent pivot low (false breakdown)
- Close recovers above pivot level (rejection)
- Occurs at trading range low
- Optional volume confirmation (1.5x+ average)
- Limited to 3 attempts per pivot (prevents over-signaling)
✅ Uptrend Validation Filter
**Four-condition composite filter** prevents false signals in sideways/downtrending markets:
1. Close-to-close rise ≥ 5% over lookback period
2. Price structure: Close > MA(10) > MA(20)
3. Swing low significantly below current price
4. **Primary requirement**: Current high ≥ 30% above 20-day low
---
Input Tuning Guide
Buying Climax Settings:
**Volume & Range Thresholds**
- `Volume Spike Threshold`: Default 1.8x
- Lower (1.5x) = More signals, more noise
- Higher (2.0-2.5x) = Fewer but stronger exhaustion signals
- `Range Spike Threshold`: Default 1.8x
- Adjust parallel to volume threshold
- Higher values = extreme volatility required
**Pattern Detection**
- `New High Lookback`: Default 20 bars
- Shorter (10-15) = Recent highs only
- Longer (30-50) = Major breakout detection
- `Close Off High Fraction`: Default 0.3 (30%)
- Lower (0.2) = Stricter rejection requirement
- Higher (0.4-0.5) = Allow weaker intraday fades
- `Gap Threshold`: Default 0.002 (0.2%)
- Increase (0.005-0.01) for stocks with wider spreads
- Decrease (0.001) for tight-spread instruments
- `Confirmation Window`: Default 5 bars
- Shorter (3) = Faster confirmation, more false positives
- Longer (7-10) = Wait for deeper automatic reaction
Uptrend Filter Settings
**Critical for Signal Quality**
- `Minimum Rise from 20-day Low`: Default 0.30 (30%)
- **Most important parameter**
- Lower (0.20-0.25) = More signals in moderate uptrends
- Higher (0.40-0.50) = Only extreme parabolic moves
- `Pole Lookback`: Default 30 bars
- Shorter (20) = Recent momentum focus
- Longer (40-50) = Longer-term trend validation
- `Minimum Rise % for Pole`: Default 0.05 (5%)
- Adjust based on market volatility
- Higher in strong bull markets (7-10%)
Wyckoff Spring Settings
- `Pivot Length`: Default 6 bars
- Shorter (3-4) = More frequent pivots, more signals
- Longer (8-10) = Major support/resistance only
- `Volume Threshold`: Default 1.5x
- Higher (1.8-2.0x) = Stronger conviction required
- Disable volume requirement for low-volume stocks
- `Trading Range Period`: Default 20 bars
- Match to consolidation timeframe being traded
- Shorter (10-15) for intraday patterns
- Longer (30-40) for weekly consolidations
---
Recommended Workflow
1. **Start with defaults** on daily timeframe
2. **Adjust uptrend filter** first (30% rise parameter)
- Too many signals? Increase to 35-40%
- Too few? Decrease to 25%
3. **Fine-tune volume/range multipliers** based on instrument volatility
4. **Enable alerts** for real-time monitoring:
- Base BC → Initial warning
- Enhanced BC → High-priority reversal
- Confirmed BC (AR) → Strong follow-through
- Spring → Accumulation opportunity
---
Alert System
- **Base Buying Climax**: Standard exhaustion pattern detected
- **Enhanced BC (Gap+Fade)**: Higher confidence reversal setup
- **Confirmed BC (AR)**: Automatic reaction validated (price drops below BC midline)
- **Wyckoff Spring**: Accumulation pattern at support
---
Best Practices
- Combine with support/resistance analysis
- Watch for BC clusters (multiple timeframes)
- Spring patterns work best after Buying Climax distribution
- Backtest parameters on your specific instruments
- Higher timeframes (daily/weekly) = higher reliability
---
Technical Notes
- Built with Pine Script v6
- No repainting (signals finalize on bar close)
- Minimal CPU usage (optimized calculations)
- Works on all timeframes and instruments
- Overlay indicator (displays on price chart)
---
*Indicator follows classical Wyckoff methodology with modern volatility filters*
Smart Money Concepts Pro – OB, FVG, Liquidity + Trade SetupsThis script is a complete Smart Money Concepts (SMC) toolkit designed for traders who want clean and actionable charts without clutter.
It combines the most important institutional concepts into one indicator:
Order Blocks (OB): auto-detection of bullish and bearish order blocks with mitigation tracking, merging and TTL (time-to-live).
Fair Value Gaps (FVG): automatic gap recognition with size filters, mitigation tracking and lifetime control.
Liquidity Pools (EQH/EQL): equal highs and equal lows marked with tolerance (ATR-based or fixed).
Break of Structure (BOS): up/down structure shifts plotted directly on the chart.
Multi-Timeframe (HTF): option to use higher timeframe data (e.g. H4, Daily) for stronger zones.
Trend Filter: show zones only in the direction of market structure.
Trade Setups: automatic signals for OB Retest + Trend setups, with entry, stop-loss and take-profit levels (custom R-R).
Flexible Zone Extension: choose between extending zones to the live bar or fixed box width for a cleaner look when scrolling.
Features
Fully customizable (pivot length, ATR filters, box width, TTL, zone colors)
Separate presets for Scalping, Intraday, Swing trading styles
Visual trade planning with entry/SL/TP lines and optional labels
Works across all markets (crypto, forex, indices, stocks)
How to use
Bias: identify overall direction (BOS + HTF zones).
Wait: for price to return to an unmitigated OB or FVG.
Entry: take the setup signal (OB retest + trend filter).
Risk: stop-loss at opposite OB boundary.
Target: TP based on chosen R-R multiple (default 2R).
⚡ Whether you scalp short-term moves or swing trade HTF zones, this indicator gives you a clear institutional edge in spotting supply/demand imbalances and high-probability setups.
ZS Game Changer Pump & Dump DetectorZS GAME CHANGER PUMP AND DUMP DETECTOR - TOP 2 MOMENTUM TRACKER
Created by Zakaria Safri
An intelligent indicator specifically designed to identify and highlight the two most significant pump and dump candles within your selected lookback period. Perfect for traders who want to focus on the game-changing moves that truly matter in volatile markets like cryptocurrency, stocks, and forex.
CORE FEATURES
AUTOMATIC GAME CHANGER DETECTION
The indicator continuously scans your specified lookback period and automatically identifies the top 2 strongest pump candles and top 2 strongest dump candles. These game-changing candles are highlighted with distinctive gold labels and horizontal reference lines, making them instantly visible on your chart. Unlike other indicators that show every small move, this focuses exclusively on the market-moving moments that define trends and create opportunities.
INTELLIGENT PUMP AND DUMP CLASSIFICATION
Uses advanced percentage-based calculations to classify candles as pumps when price surges significantly upward and dumps when price plunges sharply downward. The detection system accounts for candle body size, wick proportions, and volume confirmation to ensure only legitimate momentum moves trigger signals. Customizable thresholds allow adaptation to any market volatility profile from calm stocks to wild altcoins.
ADVANCED WICK EXCLUSION FILTER
Eliminates false signals caused by candles with large wicks and small bodies. This filter focuses analysis exclusively on candles with substantial body sizes that indicate genuine directional conviction rather than temporary spikes followed by rejection. The body to candle ratio is fully adjustable to match your preferred signal quality standards.
VOLUME CONFIRMATION SYSTEM
Optional volume filter ensures detected pumps and dumps are backed by real market participation. The indicator compares current volume against a moving average and only triggers signals when volume exceeds your specified multiplier threshold. This eliminates low-volume noise and focuses on moves supported by institutional or crowd participation.
RALLY SEQUENCE DETECTION
Identifies and highlights consecutive sequences of pump or dump candles with colored background overlays. Green background indicates sustained buying pressure across multiple candles while red background shows sustained selling pressure. The rally detection system includes an optional one-miss allowance that prevents the sequence from breaking due to a single neutral candle.
HORIZONTAL REFERENCE LINES
Draws dashed lines from each game changer candle extending to the current bar, providing constant visual reference to the most significant support and resistance levels created by extreme momentum. The top game changer gets a thick dashed line while the second gets a dotted line for easy differentiation. Labels on the right side display the exact percentage move.
COMPREHENSIVE STATISTICS DASHBOARD
Real-time information panel showing current market status as pumping, dumping, or neutral along with the current candle percentage change. Displays the exact percentage values for top pump number 1, top pump number 2, top dump number 1, and top dump number 2. Shows running totals of all pumps and dumps detected since chart load. Tracks consecutive candle counts during active rally sequences.
TESTING AND VERIFICATION MODE
Built-in debug mode displays percentage change directly on each qualifying pump and dump candle, allowing instant verification that calculations are accurate. Shows which filters are currently active with a simple code in the dashboard. Helps traders understand exactly why certain candles qualified as game changers.
HOW THE GAME CHANGER DETECTION WORKS
SCANNING ALGORITHM
Every bar close, the indicator scans backward through your specified lookback period examining every candle's percentage change from its previous close. For bullish moves, it identifies the two candles with the largest positive percentage change that meet your threshold requirements. For bearish moves, it identifies the two candles with the largest negative percentage change meeting threshold requirements.
RANKING SYSTEM
Candles are ranked purely by their percentage move magnitude. The number 1 game changer is always the single strongest move in the lookback period. The number 2 game changer is the second strongest move. Rankings update dynamically as new candles form and old candles exit the lookback window.
VISUAL IDENTIFICATION
Game changer number 1 for both pumps and dumps receives a large gold label reading GAME CHANGER NUMBER 1 with zero transparency for maximum visibility. Game changer number 2 receives a slightly smaller gold label with partial transparency. The candle bars themselves are colored in gold instead of the standard green or red. Horizontal lines extend from the game changer price level to current bar.
FILTER APPLICATION
Only candles that pass your configured filters qualify for game changer consideration. If wick exclusion is enabled, candles with large wicks and small bodies are ignored. If volume confirmation is enabled, only candles with above-average volume qualify. This ensures game changers represent legitimate market moves rather than aberrations.
PRACTICAL APPLICATIONS
FOR CRYPTOCURRENCY TRADERS
Crypto markets experience extreme volatility with occasional massive pump and dump candles that define entire trends. This indicator instantly identifies which candles represent true market structure shifts versus normal noise. Use the game changer levels as key support and resistance for entries, exits, and stop placement. The top pump often marks the local high to watch for breakouts while the top dump marks the local low for reversal trades.
FOR DAY TRADERS
Intraday charts contain hundreds of candles but only a few truly matter for the session outcome. Game changer detection filters out 98 percent of candles to show you the 2 percent that drove the actual price movement. Enter trades on the side of the strongest recent game changer. Use game changer levels as magnet prices where algorithmic trading often returns.
FOR SWING TRADERS
On daily and four-hour timeframes, game changers represent major institutional activity or news-driven moves. The top dump often marks capitulation selling that creates reversal opportunities. The top pump often marks FOMO buying that creates resistance levels. Swing traders can build positions knowing these levels will be defended or tested multiple times.
FOR VOLATILITY ANALYSIS
Understanding which candles created the most volatility helps assess market risk. Multiple game changers clustered together indicate unstable choppy conditions. Game changers separated by many neutral candles indicate trending stable conditions. Use this context to adjust position sizing and stop distances appropriately.
FOR SUPPORT AND RESISTANCE TRADING
Game changer candles create the strongest support and resistance levels because they represent prices where massive volume transacted in short time periods. These levels have higher probability of holding on retest compared to arbitrary moving averages or pivot points. Trade bounces off game changer levels or breakouts through them.
RECOMMENDED SETTINGS BY MARKET
CRYPTOCURRENCY 15-MINUTE TO 1-HOUR CHARTS
Candle Size Threshold: 2.0 percent
Body to Candle Ratio: 0.5
Volume Multiplier: 1.5 times average
Game Changer Lookback: 100 bars
Extreme Threshold: 3.5 percent
Enable Wick Filter: Yes
Enable Volume Confirmation: Yes
Minimum Rally Candles: 3
STOCKS DAILY CHARTS
Candle Size Threshold: 1.0 percent
Body to Candle Ratio: 0.6
Volume Multiplier: 2.0 times average
Game Changer Lookback: 50 bars
Extreme Threshold: 2.5 percent
Enable Wick Filter: Yes
Enable Volume Confirmation: Yes
Minimum Rally Candles: 2
FOREX 1-HOUR TO 4-HOUR CHARTS
Candle Size Threshold: 0.5 percent
Body to Candle Ratio: 0.5
Volume Multiplier: Not applicable
Game Changer Lookback: 80 bars
Extreme Threshold: 1.0 percent
Enable Wick Filter: Yes
Enable Volume Confirmation: No
Minimum Rally Candles: 3
SCALPING 1-MINUTE TO 5-MINUTE CHARTS
Candle Size Threshold: 0.8 percent
Body to Candle Ratio: 0.4
Volume Multiplier: 1.2 times average
Game Changer Lookback: 50 bars
Extreme Threshold: 1.5 percent
Enable Wick Filter: No
Enable Volume Confirmation: Yes
Minimum Rally Candles: 2
WHAT IS INCLUDED
Automatic identification of top 2 pump candles
Automatic identification of top 2 dump candles
Gold colored game changer labels with size differentiation
Gold colored candle bars for game changers
Horizontal reference lines from game changers to current price
Regular pump and dump detection with green and red candles
Rally sequence detection with background highlighting
Extreme move detection and labeling system
Real-time statistics dashboard with all key metrics
Percentage change debug mode for verification
Volume confirmation filter with adjustable multiplier
Wick exclusion filter with adjustable body ratio
Customizable lookback period from 20 to 500 bars
Consecutive candle counter for rally tracking
Alert system for game changers, pumps, dumps, and rallies
Works on all timeframes from 1 minute to monthly
Compatible with stocks, forex, cryptocurrency, and futures
UNDERSTANDING GAME CHANGERS
WHAT MAKES A CANDLE A GAME CHANGER
A game changer is not just a large move but the largest move within context. In a volatile crypto market, a 5 percent pump might not rank in the top 2. In a stable stock, a 2 percent pump could be the number 1 game changer. The indicator adapts to your specific instrument and timeframe to find what truly matters in that context.
WHY FOCUS ON TOP 2 ONLY
Markets are driven by a small number of significant moves rather than the average of all moves. By focusing exclusively on the top 2 in each direction, traders can ignore noise and concentrate on the price levels that actually matter for support, resistance, and momentum. This creates clarity in decision making.
GAME CHANGERS AS MARKET STRUCTURE
The top pump often marks the recent high that bulls must break to continue uptrend. The top dump often marks the recent low that bears must break to continue downtrend. These become the key levels around which all other price action rotates. Understanding this structure is essential for profitable trading.
GAME CHANGERS AS SENTIMENT INDICATORS
Consecutive pump game changers signal strong bullish sentiment and FOMO conditions. Consecutive dump game changers signal fear and capitulation. Alternating pump and dump game changers signal indecision and range conditions. Read the pattern of game changers to gauge market psychology.
VERIFICATION AND TESTING
HOW TO VERIFY ACCURACY
Enable Show Debug Info on Chart in the Testing and Debug settings group. This displays the percentage change calculation directly on every qualifying pump and dump candle. Manually verify by calculating open minus close divided by close multiplied by 100. The debug percentage should match your manual calculation exactly.
HOW TO TEST FILTERS
Toggle wick exclusion filter on and off while watching how many candles qualify. With filter on, candles with long wicks and small bodies should disappear. Toggle volume confirmation on and off to see how low-volume candles get excluded. Adjust the thresholds and watch the real-time impact on signal count.
HOW TO VERIFY GAME CHANGERS
Look at your chart and visually identify which candle had the biggest green body in the lookback period. The game changer number 1 pump label should be on that exact candle. Repeat for the biggest red candle to verify game changer number 1 dump. The rankings should match your visual assessment.
LOOKBACK PERIOD EFFECTS
Decrease the lookback period to 20 bars and watch game changers update to only recent moves. Increase to 500 bars and watch game changers potentially change to older historic moves. The optimal lookback balances recency with significance. Too short misses important levels, too long includes irrelevant history.
DASHBOARD INFORMATION GUIDE
STATUS ROW
Shows PUMPING when current candle qualifies as a pump, DUMPING when current candle qualifies as a dump, or NEUTRAL when current candle does not meet threshold requirements. This updates in real-time on every bar close.
CURRENT CHANGE ROW
Displays the percentage change of the current candle from its previous close. Positive percentages indicate bullish candle, negative indicate bearish candle. This number may or may not meet your threshold to qualify as pump or dump.
TOP PUMP NUMBER 1
The highest positive percentage change found in your lookback period. This candle is marked with the large gold GAME CHANGER NUMBER 1 label below it. Shows N/A if no pumps exist in the lookback period.
TOP PUMP NUMBER 2
The second highest positive percentage change found in your lookback period. Marked with smaller gold GAME CHANGER NUMBER 2 label. Shows N/A if only one or zero pumps exist.
TOP DUMP NUMBER 1
The highest negative percentage change magnitude found in your lookback period. This candle is marked with the large gold GAME CHANGER NUMBER 1 label above it. Shows N/A if no dumps exist.
TOP DUMP NUMBER 2
The second highest negative percentage change magnitude found in your lookback period. Marked with smaller gold GAME CHANGER NUMBER 2 label. Shows N/A if only one or zero dumps exist.
TOTAL PUMPS
Running count of all pump candles detected since you loaded the indicator on this chart. This number continuously increases as new qualifying pumps form. Resets when you reload the chart.
TOTAL DUMPS
Running count of all dump candles detected since chart load. Increases as new qualifying dumps form and resets on chart reload.
CONSECUTIVE
Shows the current count of consecutive pump or dump candles during an active rally. Displays 3 UP during a 3-candle pump rally or 5 DN during a 5-candle dump rally. Shows 0 when no rally is active.
ALERT SYSTEM
GAME CHANGER DETECTED ALERT
Triggers whenever the current candle becomes one of the top 2 pumps or top 2 dumps. This is the highest priority alert indicating a market-moving event just occurred. Use this alert for immediate notification of significant opportunities.
PUMP DETECTED ALERT
Triggers on every candle that qualifies as a pump according to your threshold and filter settings. This includes regular pumps and extreme pumps but excludes game changers which have their separate alert. Use for general upward momentum monitoring.
DUMP DETECTED ALERT
Triggers on every candle that qualifies as a dump according to your settings. Includes regular and extreme dumps but excludes game changers. Use for general downward momentum monitoring.
PUMP RALLY STARTED ALERT
Triggers when consecutive pump candles reach your minimum rally threshold. Indicates the beginning of a sustained upward movement sequence. Use to catch trends early.
DUMP RALLY STARTED ALERT
Triggers when consecutive dump candles reach your minimum rally threshold. Indicates the beginning of a sustained downward movement sequence. Use for trend following or reversal timing.
ALERT MESSAGE FORMAT
All alerts include the ticker symbol and current price using TradingView placeholders. Messages are descriptive and specify which type of signal triggered. Alerts work with TradingView notification system including email, SMS, webhook, and app notifications.
TECHNICAL SPECIFICATIONS
CALCULATION METHODOLOGY
Percentage change calculated as current close minus previous close divided by previous close multiplied by 100. Body ratio calculated as absolute value of close minus open divided by high minus low. Volume elevation calculated as current volume divided by 20-period simple moving average of volume. Game changer ranking uses absolute value comparison across entire lookback array.
PERFORMANCE CHARACTERISTICS
Lightweight calculations optimized for speed on all timeframes. No repainting of signals ensuring all triggers are final on bar close. Variables properly scoped with var keyword for memory efficiency. Maximum bars back set to 500 to prevent excessive historical loading. Updates in real-time on every bar close without lag.
COMPATIBILITY
Works on all TradingView plans including free, pro, and premium. Compatible with stocks, forex, cryptocurrency, futures, indices, and commodities. Functions correctly on all timeframes from 1 second to monthly. No external data requests ensuring fast loading. Overlay true setting places directly on price chart.
RISK DISCLAIMER
This indicator is a technical analysis tool for identifying momentum and should not be used as the sole basis for trading decisions. Game changer levels can be broken during strong trends and are not guaranteed support or resistance. Pump and dump detection does not predict future price direction. Always use proper risk management with stop losses on every trade. Combine this indicator with other forms of analysis including fundamentals, market context, and risk assessment. Practice on demo accounts before live trading. Past performance of game changer signals does not guarantee future results. Trading carries substantial risk of loss and is not suitable for all investors. The creator is not responsible for trading losses incurred while using this tool.
SUPPORT AND UPDATES
Regular updates based on user feedback and market evolution. Built following PineCoders industry standards and best practices for code quality. Clean well-documented code structure for transparency and auditability. Optimized performance across all timeframes and instruments. Active development with continuous improvements and feature additions.
WHY CHOOSE ZS GAME CHANGER PUMP AND DUMP DETECTOR
Focuses on what matters by highlighting only the top 2 moves in each direction instead of cluttering your chart with every small fluctuation. Saves time by automatically identifying the most significant candles rather than requiring manual scanning. Provides clarity through visual gold labels and reference lines that make game changers unmistakable. Adapts to any market with customizable thresholds for volatility and volume. Eliminates noise with advanced wick and volume filters ensuring signal quality. Offers verification through debug mode proving calculations are accurate and trustworthy. Includes comprehensive statistics showing exact percentages and counts. Works everywhere across all markets, timeframes, and instruments without modification.
Transform your chart analysis by focusing exclusively on the game-changing moments that define trends and create opportunities.
Version 1.1 | Created by Zakaria Safri | Pine Script Version 5 | PineCoders Compliant
Ahi Ultimate Script v6Ultimate Script v6 – a clean and flexible tool for monitoring price action:
Shows key moving lines for tracking market direction, with options to turn each line on or off.
Highlights short-term levels where price may react, using small horizontal lines.
Displays visual signals like “LONG” or “SELL” directly on the chart to help spot opportunities.
Marks important time-based ranges with colored boxes for quick reference.
All elements are clear, adjustable, and designed to keep your chart neat and easy to read
Wolfe Waves [BigBeluga]🔵 OVERVIEW
The Wolfe Waves pattern was first introduced by Bill Wolfe , a trader and analyst in the 1980s–1990s who specialized in market geometry and natural rhythm cycles. Wolfe observed that price often forms symmetrical wave structures that anticipate equilibrium points where supply and demand meet. These formations, called Wolfe Waves , gained popularity as a reliable pattern for forecasting both short- and long-term reversals.
The Wolfe Waves indicator automatically detects these patterns in real time. It tracks sequences of five pivots (points 1 through 5) and connects them with wave lines. Users can select either Bullish or Bearish Wolfe Waves depending on their trading bias. When the pattern fails, the lines automatically turn red to highlight invalidation.
🔵 CONCEPTS
Five-Point Structure – Wolfe Waves are defined by five pivots (1–5), which together form the basis of the wave pattern.
Bullish Pattern – Occurs when price compresses downward into point 5, signaling a potential upside reversal.
Bearish Pattern – Occurs when price extends upward into point 5, forecasting a downside reversal.
Validation & Failure – The pattern is considered valid once all five pivots form; if price fails to respect the expected breakout, the indicator marks the structure as broken with red lines.
🔵 FEATURES
Automatic detection of Bullish and Bearish Wolfe Waves.
Labels each pivot (1–5) on the chart for clarity.
Draws connecting lines between pivots to visualize the wave structure.
Projects target/dashed lines (EPA/ETA) based on Wolfe Wave geometry.
Lines automatically turn red when the pattern is broken, giving immediate feedback.
Customizable color scheme for bullish (lime) and bearish (orange) waves.
Adjustable sensitivity for pivot detection.
🔵 HOW TO USE
Choose between Bullish or Bearish mode depending on your analysis.
Watch for the formation of all five pivots; the indicator labels them clearly.
Look for potential entries near point 5, with the expectation that price will travel toward the projected EPA line.
Use invalidation (lines turning red) as a risk management warning to exit failed setups.
Combine with momentum, volume, or higher-timeframe analysis to increase reliability.
🔵 CONCLUSION
The Wolfe Waves brings the classic Wolfe Wave theory into an automated TradingView tool. Inspired by Bill Wolfe’s original concept of natural market cycles, this indicator detects, labels, and validates Wolfe Waves in real time. With automatic invalidation marking and customizable settings, it offers traders a structured way to harness one of the most well-known geometric reversal patterns.
Curved Radius Supertrend [BOSWaves]Curved Radius Supertrend — Adaptive Parabolic Trend Framework with Dynamic Acceleration Geometry
Overview
The Curved Radius Supertrend introduces an evolution of the classic Supertrend indicator - engineered with a dynamic curvature engine that replaces rigid ATR bands with parabolic, radius-based motion. Traditional Supertrend systems rely on static band displacement, reacting linearly to volatility and often lagging behind emerging price acceleration. The Curved Radius Supertend model redefines this by integrating controlled acceleration and curvature geometry, allowing the trend bands to adapt fluidly to both velocity and duration of price movement.
The result is a smoother, more organic trend flow that visually captures the momentum curve of price action - not just its direction. Instead of sharp pivots or whipsaws, traders experience a structurally curved trajectory that mirrors real market inertia. This makes it particularly effective for identifying sustained directional phases, detecting early trend rotations, and filtering out noise that plagues standard Supertrend methodologies.
Unlike conventional band-following systems, the Curved Radius framework is time-reactive and velocity-aware, providing a nuanced signal structure that blends geometric precision with volatility sensitivity.
Theoretical Foundation
The Curved Radius Supertrend draws from the intersection of mathematical curvature dynamics and adaptive volatility processing. Standard Supertrend algorithms extend from Average True Range (ATR) envelopes - a linear measure of volatility that moves proportionally with price deviation. However, markets do not expand or contract linearly. Trend velocity typically accelerates and decelerates in nonlinear arcs, forming natural parabolas across price phases.
By embedding a radius-based acceleration function, the indicator models this natural behavior. The core variable, radiusStrength, controls how aggressively curvature accelerates over time. Instead of simply following price distance, the band now evolves according to temporal acceleration - each bar contributes incremental velocity, bending the trend line into a radius-like curve.
This structural design allows the indicator to anticipate rather than just respond to price action, capturing momentum transitions as curved accelerations rather than binary flips. In practice, this eliminates the stutter effect typical of standard Supertrends and replaces it with fluid directional motion that better reflects actual trend geometry.
How It Works
The Curved Radius Supertrend is constructed through a multi-stage process designed to balance price responsiveness with geometric stability:
1. Baseline Supertrend Core
The framework begins with a standard ATR-derived upper and lower band calculation. These define the volatility envelope that constrains potential price zones. Directional bias is determined through crossover logic - prices above the lower band confirm an uptrend, while prices below the upper band confirm a downtrend.
2. Curvature Acceleration Engine
Once a trend direction is established, a curvature engine is activated. This system uses radiusStrength as a coefficient to simulate acceleration per bar, incrementally increasing velocity over time. The result is a parabolic displacement from the anchor price (the price level at trend change), creating a curved motion path that dynamically widens or tightens as the trend matures.
Mathematically, this acceleration behaves quadratically - each new bar compounds the previous velocity, forming an exponential rate of displacement that resembles curved inertia.
3. Adaptive Smoothing Layer
After the radius curve is applied, a smoothing stage (defined by the smoothness parameter) uses a simple moving average to regulate curve noise. This ensures visual coherence without sacrificing responsiveness, producing flowing arcs rather than jagged band steps.
4. Directional Visualization and Outer Envelope
Directional state (bullish or bearish) dictates both the color gradient and band displacement. An outer envelope is plotted one ATR beyond the curved band, creating a layered trend visualization that shows the extent of volatility expansion.
5. Signal Events and Alerts
Each directional transition triggers a 'BUY' or 'SELL' signal, clearly labeling phase shifts in market structure. Alerts are built in for automation and backtesting.
Interpretation
The Curved Radius Supertrend reframes how traders visualize and confirm trends. Instead of simply plotting a trailing stop, it maps the dynamic curvature of trend development.
Uptrend Phases : The band curves upward with increasing acceleration, reflecting the market’s growing directional velocity. As curvature steepens, conviction strengthens.
Downtrend Phases : The band bends downward in a mirrored acceleration pattern, indicating sustained bearish momentum.
Trend Change Points : When the direction flips and a new anchor point forms, the curve resets - providing a clean, early visual confirmation of structural reversal.
Smoothing and Radius Interplay : A lower radius strength produces a tighter, more reactive curve ideal for scalping or short timeframes. Higher values generate broad, sweeping arcs optimized for swing or positional analysis.
Visually, this curvature system translates market inertia into shape - revealing how trends bend, accelerate, and ultimately exhaust.
Strategy Integration
The Curved Radius Supertrend is versatile enough to integrate seamlessly into multiple trading frameworks:
Trend Following : Use BUY/SELL flips to identify emerging directional bias. Strong curvature continuation confirms sustained momentum.
Momentum Entry Filtering : Combine with oscillators or volume tools to filter entries only when the curve slope accelerates (high momentum conditions).
Pullback and Re-entry Timing : The smooth curvature of the radius band allows traders to identify shallow retracements without premature exits. The band acts as a dynamic, self-adjusting support/resistance arc.
Volatility Compression and Expansion : Flattening curvature indicates volatility compression - a potential pre-breakout zone. Rapid re-steepening signals expansion and directional conviction.
Stop Placement Framework : The curved band can serve as a volatility-adjusted trailing stop. Because the curve reflects acceleration, it adapts naturally to market rhythm - widening during momentum surges and tightening during stagnation.
Technical Implementation Details
Curved Radius Engine : Parabolic acceleration algorithm that applies quadratic velocity based on bar count and radiusStrength.
Anchor Logic : Resets curvature at each trend change, establishing a new reference base for directional acceleration.
Smoothing Layer : SMA-based curve smoothing for noise reduction.
Outer Envelope : ATR-derived band offset visualizing volatility extension.
Directional Coloring : Candle and band coloration tied to current trend state.
Signal Engine : Built-in BUY/SELL markers and alert conditions for automation or script integration.
Optimal Application Parameters
Timeframe Guidance :
1-5 min (Scalping) : 0.08–0.12 radius strength, minimal smoothing for rapid responsiveness.
15 min : 0.12–0.15 radius strength for intraday trends.
1H : 0.15–0.18 radius strength for structured short-term swing setups.
4H : 0.18–0.22 radius strength for macro-trend shaping.
Daily : 0.20–0.25 radius strength for broad directional curves.
Weekly : 0.25–0.30 radius strength for smooth macro-level cycles.
The suggested radius strength ranges provide general structural guidance. Optimal values may vary across assets and volatility regimes, and should be refined through empirical testing to account for instrument-specific behavior and prevailing market conditions.
Asset Guidance :
Cryptocurrency : Higher radius and multiplier values to stabilize high-volatility environments.
Forex : Midrange settings (0.12-0.18) for clean curvature transitions.
Equities : Balanced curvature for trending sectors or momentum rotation setups.
Indices/Futures : Moderate radius values (0.15-0.22) to capture cyclical macro swings.
Performance Characteristics
High Effectiveness :
Trending environments with directional expansion.
Markets exhibiting clean momentum arcs and low structural noise.
Reduced Effectiveness :
Range-bound or low-volatility conditions with repeated false flips.
Ultra-short-term timeframes (<1m) where curvature acceleration overshoots.
Integration Guidelines
Confluence Framework : Combine with structure tools (order blocks, BOS, liquidity zones) for entry validation.
Risk Management : Trail stops along the curved band rather than fixed points to align with adaptive market geometry.
Multi-Timeframe Confirmation : Use higher timeframe curvature as a trend filter and lower timeframe curvature for execution timing.
Curve Compression Awareness : Treat flattening arcs as potential exhaustion zones - ideal for scaling out or reducing exposure.
Disclaimer
The Curved Radius Supertrend is a geometric trend model designed for professional traders and analysts. It is not a predictive system or a guaranteed profit method. Its performance depends on correct parameter calibration and sound risk management. BOSWaves recommends using it as part of a comprehensive analytical framework, incorporating volume, liquidity, and structural context to validate directional signals.
ZS Master Vision Pro - Advanced Multi-Timeframe Trading SystemZS MASTER VISION PRO - PROFESSIONAL TRADING SUITE
Created by Zakaria Safri
A comprehensive, all-in-one trading system combining multiple proven technical analysis methods into a single, powerful indicator. Designed for traders who demand precision, clarity, and actionable signals across all timeframes.
KEY FEATURES
CORE TREND ALGORITHM
Adaptive ATR-based trend detection with dynamic support and resistance zones. Features Type A and Type B signal modes for different trading styles, strong signal detection in key reversal zones, and optional EMA source smoothing for noise reduction.
MULTI-LAYER EMA CLOUD SYSTEM
Five customizable EMA cloud layers for multi-timeframe analysis with theme-adaptive color coding across five professional themes. Optional line display for detailed MA tracking with configurable periods from scalping to position trading.
WAVE TREND OSCILLATOR
Advanced momentum oscillator with channel-based calculations featuring smart reversal detection at extreme overbought and oversold levels. Includes directional strength confirmation and customizable sensitivity with adjustable reaction periods.
DIVERGENCE SCANNER
Detects four types of divergence automatically:
- Regular Bullish: Price making lower lows while oscillator making higher lows
- Regular Bearish: Price making higher highs while oscillator making lower highs
- Hidden Bullish: Trend continuation signals in uptrends
- Hidden Bearish: Trend continuation signals in downtrends
Automatic fractal-based detection with clear visual labels on chart.
MARKET BIAS INDICATOR
Heikin Ashi-based trend strength analysis with real-time bias calculation showing Bullish or Bearish combined with Strong or Weak conditions. Smoothed for cleaner signals and perfect for trend confirmation.
MOMENTUM SYSTEM
Proprietary momentum calculation using adaptive smoothing with growing and falling state detection. Normalized values for consistent interpretation and responsive to rapid market changes.
DYNAMIC SUPPORT AND RESISTANCE
Automatic pivot-based support and resistance level detection with adjustable left and right bar lookback. Non-repainting levels with visual clarity through color-coded lines.
LIVE INFORMATION DASHBOARD
Real-time market analysis panel displaying current trend direction, market bias based on Heikin Ashi, Wave Trend status and value, and momentum trend with state. Customizable display options with theme-adaptive colors.
VISUAL CUSTOMIZATION
FIVE PROFESSIONAL COLOR THEMES:
Pro - Modern green and red color scheme (default)
Classic - Traditional teal and red combination
Cyberpunk - Neon cyan and magenta contrast
Ocean - Blue and orange contrast
Sunset - Gold and red warmth
SIGNAL STYLES:
Labels with emoji indicators (BUY with rocket, SELL with bear, STRONG with lightning)
Arrows for clean minimal appearance
Triangles for classic approach
DISPLAY OPTIONS:
Color-coded candles following trend direction
Trend background highlighting for instant trend recognition
Optional EMA line display for detailed analysis
Adjustable transparency levels for personal preference
SMART ALERTS
Pre-configured alert conditions for all major signals:
Buy signals for standard entry opportunities
Sell signals for standard exit or short opportunities
Strong buy signals for high-confidence long entries
Strong sell signals for high-confidence short entries
Bullish divergence detection alerts
Bearish divergence detection alerts
Alert messages automatically include ticker symbol, current price, and specific signal type for quick decision making.
HOW TO USE
FOR TREND TRADERS:
Enable EMA Clouds with focus on Cloud 5 featuring 50 and 200 period moving averages. Wait for trend background color change to confirm direction. Enter on STRONG signals aligned with higher timeframe trend direction. Use support and resistance levels for strategic exits.
FOR SWING TRADERS:
Enable Wave Trend Oscillator information display. Look for oversold and overbought reversal setups. Confirm potential reversals with divergence scanner. Enter on smart reversal signals with proper risk management.
FOR SCALPERS:
Use Type B signal mode for more frequent trading signals. Enable Cloud 1 with 5 and 13 periods for quick trend confirmation. Focus on momentum growing and falling states for entry timing. Take quick entries on regular buy and sell signals.
FOR POSITION TRADERS:
Use Type A mode with higher ATR multiplier set to 3.0 or above. Enable only Cloud 5 with 50 and 200 periods for major trend confirmation. Only take STRONG signals for highest probability setups. Hold positions through minor pullbacks and noise.
RECOMMENDED SETTINGS
STOCKS ON DAILY TIMEFRAME:
Trend Period: 180
ATR Period: 155
ATR Multiplier: 2.1
Signal Mode: Type A
FOREX ON HOURLY AND 4-HOUR TIMEFRAMES:
Trend Period: 150
ATR Period: 120
ATR Multiplier: 2.5
Signal Mode: Type A
CRYPTOCURRENCY ON 15-MINUTE AND 1-HOUR TIMEFRAMES:
Trend Period: 100
ATR Period: 80
ATR Multiplier: 3.0
Signal Mode: Type B
SCALPING ON 1-MINUTE AND 5-MINUTE TIMEFRAMES:
Trend Period: 50
ATR Period: 40
ATR Multiplier: 2.0
Signal Mode: Type B
WHAT IS INCLUDED
Trend Analysis using ATR-based adaptive algorithm
Five EMA Cloud Layers for multi-timeframe confluence
Wave Trend Oscillator for momentum and reversal detection
Divergence Scanner detecting four types of divergence
Market Bias using Heikin Ashi-based trend strength
Momentum System with advanced momentum tracking
Support and Resistance Levels with automatic pivot detection
Live Dashboard showing real-time market analysis
Smart Alerts featuring six pre-configured alert types
Five Color Themes offering professional visual options
TECHNICAL DETAILS
CALCULATION METHODS:
Average True Range (ATR) for volatility adaptation
Exponential Moving Average (EMA) and Simple Moving Average (SMA) for trend smoothing
Wave Trend channel oscillator for momentum analysis
Fractal-based divergence detection algorithm
Heikin Ashi transformation for bias calculation
Logarithmic momentum calculation for precision
PERFORMANCE CHARACTERISTICS:
Optimized for maximum speed and efficiency
No repainting signals ensuring reliability
Works on all timeframes from 1 minute to monthly
Compatible with all instruments including stocks, forex, crypto, and futures
RISK DISCLAIMER
This indicator is a technical analysis tool and should not be used as the sole basis for trading decisions. Always use proper risk management and never risk more than you can afford to lose. Combine with other analysis methods and practice on demo accounts first. Past performance does not guarantee future results. Trading carries substantial risk and is not suitable for all investors.
SUPPORT AND UPDATES
Regular updates and continuous improvements
Based on proven technical analysis principles
Developed following Pine Coders best practices and standards
Clean, well-documented, and optimized code structure
WHY CHOOSE ZS MASTER VISION PRO
All-in-one solution eliminating the need for multiple indicators
Highly customizable to adapt to your specific trading style
Professional grade analysis with institutional-quality standards
Clean interface that is not cluttered or confusing
Works everywhere across all markets and all timeframes
Smart signals filtered for quality over quantity
Beautiful design featuring five professional color themes
Active development with regular improvements and updates
Transform your trading with ZS Master Vision Pro today.
Version 2.0 | Created by Zakaria Safri | Pine Script Version 5
om bdethis is to make research this is to make research this is to make research this is to make research