ZEEPRICE IN MIDLE
now you can make this easy to see
so the price will in midle of chart to keep you focusesG
带和通道
SR EMA ORBSR EMA ORB combines your Support/Resistance pivot levels + EMA crossover labels/alerts with an optional Opening Range Breakout (ORB) module that can work on higher timeframes using LTF calculation (via request.security).
What it shows
1) Support/Resistance (Pivot based)
Plots pivot Resistance (red) and Support (blue).
Optional break labels:
B for break with volume confirmation (Volume Osc > Threshold)
Bull Wick / Bear Wick wick-based breaks
2) EMA Crossovers (visual + alerts)
Labels:
Up (ST EMA crosses above MT EMA)
Down (ST EMA crosses below MT EMA)
Buy (MT EMA crosses above LT EMA)
Sell (MT EMA crosses below LT EMA)
Includes the original alert() messages exactly like your Script 1.
3) ORB (Opening Range Breakout)
Builds an opening range for the configured “ORB Window” (default: 10 minutes).
After the window ends, it waits for a breakout:
Breakout based on Close or EMA
Optional breakout buffer %
Optional volume filter (uses your Volume Threshold logic)
Entry requires retests based on sensitivity:
High = 0 retests
Medium = 1 retest
Low = 2 retests
Lowest = 3 retests
Shows:
ORB High / ORB Low lines (unique colors, bold width)
ORB Entry label (ORB)
Optional TP1/SL markers (if enabled)
4) Confluence (optional confidence marker)
Prints a separate CONF label when:
ORB entry happens AND
EMA direction agrees (rule selectable)
Optional: also require SR break in the same direction
5) RR helper (optional)
Draws Entry / SL / TP target lines at 1:2 or 1:3
Trigger can be:
ORB Entry
Confluence only (recommended)
6) Dashboards (optional)
Compact ORB dashboard: current bias + entry + SL
Backtest dashboard: trades, wins, losses, win%
Timeframe behavior (important)
ORB supports these window selections: 1m, 5m, 10m, 15m, 30m, 1h, 1D, 1W, 1M
ORB supports these calc TF selections: 1m, 3m, 5m, 10m, 15m, 30m, 1h
Mode
Auto: uses Native when chart TF is supported, otherwise switches to LTF calculation
Native: ORB runs only on supported chart TF; disables otherwise
LTF: ORB always calculates on Calc TF (best for 1H/1D chart viewing)
Examples (recommended setups)
Example 1 — Your main setup (10m ORB on intraday chart)
Goal: trade ORB normally with minimal complexity
Chart TF: 1m / 3m / 5m
ORB:
Mode: Auto
ORB Window: 10m
Calc TF: 10m (or 5m if you want slightly earlier structure)
Sensitivity: Medium
Breakout Condition: Close
TP Method: Dynamic
Stop Loss: Balanced
Visuals:
Draw ORB Lines: ON
Entry Labels: ON
TP/SL Marks: OFF (keeps chart clean)
Example 2 — View ORB on a 1H chart (LTF-on-HTF mode)
Goal: see 10m ORB levels/signals while looking at 1H structure
Chart TF: 1H
ORB:
Mode: LTF
ORB Window: 10m
Calc TF: 5m or 10m
Sensitivity: Medium
Note: On HTF, multiple LTF events can compress into fewer visible updates (normal with security data).
Example 3 — Higher winrate attempt (fewer trades, more filtering)
Goal: reduce bad ORB entries
ORB:
Sensitivity: Low (2 retests)
Breakout Buffer %: 0.10 – 0.25
Use Vol Osc Filter: ON
Educational Use Only: This script is provided for educational and informational purposes only and is not financial advice—use it at your own risk, as trading involves substantial risk of loss.
Confluence:
Enable Confluence: ON
EMA Rule: Stack (strict)
Require SR Break Same Direction: ON (optional, strict)
RR:
RR Lines: ON
RR: 1:3
Trigger: Confluence
This usually reduces signals but can improve quality depending on ticker.
Example 4 — Conservative risk control (visual RR planning)
Goal: only take trades that offer clear RR
RR:
Show RR Lines: ON
RR: 1:2
Trigger: Confluence
Result: you only see RR targets when the entry is “higher confidence”.
Example 5 — Dashboards only when needed
Goal: keep chart clean, but enable quick stats occasionally
ORB UI:
Show ORB Dashboard: OFF normally
Show Backtest Dashboard: ON only during tuning
Positions: set to Top Right / Top Center as you prefer
Notes on alerts (how to use)
Your SR/EMA alerts are built-in alert() calls, so when creating an alert choose:
“Any alert() function call”
ORB/CONF alerts are alertcondition(), so create alerts selecting:
ORB Entry
ORB TP1
ORB SL
CONF Buy / CONF Sell
Support Resistance EMA Crossovers with ORB and AlertsSR EMA ORB combines your Support/Resistance pivot levels + EMA crossover labels/alerts with an optional Opening Range Breakout (ORB) module that can work on higher timeframes using LTF calculation (via request.security).
What it shows
1) Support/Resistance (Pivot based)
Plots pivot Resistance (red) and Support (blue).
Optional break labels:
B for break with volume confirmation (Volume Osc > Threshold)
Bull Wick / Bear Wick wick-based breaks
2) EMA Crossovers (visual + alerts)
Labels:
Up (ST EMA crosses above MT EMA)
Down (ST EMA crosses below MT EMA)
Buy (MT EMA crosses above LT EMA)
Sell (MT EMA crosses below LT EMA)
Includes the original alert() messages exactly like your Script 1.
3) ORB (Opening Range Breakout)
Builds an opening range for the configured “ORB Window” (default: 10 minutes).
After the window ends, it waits for a breakout:
Breakout based on Close or EMA
Optional breakout buffer %
Optional volume filter (uses your Volume Threshold logic)
Entry requires retests based on sensitivity:
High = 0 retests
Medium = 1 retest
Low = 2 retests
Lowest = 3 retests
Shows:
ORB High / ORB Low lines (unique colors, bold width)
ORB Entry label (ORB)
Optional TP1/SL markers (if enabled)
4) Confluence (optional confidence marker)
Prints a separate CONF label when:
ORB entry happens AND
EMA direction agrees (rule selectable)
Optional: also require SR break in the same direction
5) RR helper (optional)
Draws Entry / SL / TP target lines at 1:2 or 1:3
Trigger can be:
ORB Entry
Confluence only (recommended)
6) Dashboards (optional)
Compact ORB dashboard: current bias + entry + SL
Backtest dashboard: trades, wins, losses, win%
Timeframe behavior (important)
ORB supports these window selections: 1m, 5m, 10m, 15m, 30m, 1h, 1D, 1W, 1M
ORB supports these calc TF selections: 1m, 3m, 5m, 10m, 15m, 30m, 1h
Mode
Auto: uses Native when chart TF is supported, otherwise switches to LTF calculation
Native: ORB runs only on supported chart TF; disables otherwise
LTF: ORB always calculates on Calc TF (best for 1H/1D chart viewing)
Examples (recommended setups)
Example 1 — Your main setup (10m ORB on intraday chart)
Goal: trade ORB normally with minimal complexity
Chart TF: 1m / 3m / 5m
ORB:
Mode: Auto
ORB Window: 10m
Calc TF: 10m (or 5m if you want slightly earlier structure)
Sensitivity: Medium
Breakout Condition: Close
TP Method: Dynamic
Stop Loss: Balanced
Visuals:
Draw ORB Lines: ON
Entry Labels: ON
TP/SL Marks: OFF (keeps chart clean)
Example 2 — View ORB on a 1H chart (LTF-on-HTF mode)
Goal: see 10m ORB levels/signals while looking at 1H structure
Chart TF: 1H
ORB:
Mode: LTF
ORB Window: 10m
Calc TF: 5m or 10m
Sensitivity: Medium
Note: On HTF, multiple LTF events can compress into fewer visible updates (normal with security data).
Example 3 — Higher winrate attempt (fewer trades, more filtering)
Goal: reduce bad ORB entries
ORB:
Sensitivity: Low (2 retests)
Breakout Buffer %: 0.10 – 0.25
Use Vol Osc Filter: ON
Confluence:
Enable Confluence: ON
EMA Rule: Stack (strict)
Require SR Break Same Direction: ON (optional, strict)
RR:
RR Lines: ON
RR: 1:3
Trigger: Confluence
This usually reduces signals but can improve quality depending on ticker.
Example 4 — Conservative risk control (visual RR planning)
Goal: only take trades that offer clear RR
RR:
Show RR Lines: ON
RR: 1:2
Trigger: Confluence
Result: you only see RR targets when the entry is “higher confidence”.
Example 5 — Dashboards only when needed
Goal: keep chart clean, but enable quick stats occasionally
ORB UI:
Show ORB Dashboard: OFF normally
Show Backtest Dashboard: ON only during tuning
Positions: set to Top Right / Top Center as you prefer
Notes on alerts (how to use)
Your SR/EMA alerts are built-in alert() calls, so when creating an alert choose:
“Any alert() function call”
ORB/CONF alerts are alertcondition(), so create alerts selecting:
ORB Entry
ORB TP1
ORB SL
CONF Buy / CONF Sell
Educational Use Only: This script is provided for educational and informational purposes only and is not financial advice—use it at your own risk, as trading involves substantial risk of loss.
NQ Overnight Expansion + London Sweep Asia (v6)requirement reminders to trade
dont trade if ovn expanded over 200 points
or
if london swept asia levels
Forex Liner SCALPING (No Repaint)//@version=5
indicator("Forex Liner SCALPING (No Repaint)", overlay=true, max_labels_count=500)
// ===== إعدادات سريعة للسكالبينج =====
pivotLen = input.int(1, "Pivot Sensitivity (أدق=1)")
emaLen = input.int(9, "EMA Trend")
rsiLen = input.int(7, "RSI Filter")
rsiMid = input.int(50, "RSI Mid Level")
showLabels = input.bool(true, "Show Labels")
// ===== الحسابات =====
ema = ta.ema(close, emaLen)
rsi = ta.rsi(close, rsiLen)
ph = ta.pivothigh(high, pivotLen, pivotLen)
pl = ta.pivotlow(low, pivotLen, pivotLen)
// ===== حفظ آخر قاع وقمة =====
var float lastLowPrice = na
var int lastLowBar = na
var float lastHighPrice = na
var int lastHighBar = na
if not na(pl)
lastLowPrice := pl
lastLowBar := bar_index - pivotLen
if not na(ph)
lastHighPrice := ph
lastHighBar := bar_index - pivotLen
// ===== موجة =====
var int wave = 0 // 1 شراء | -1 بيع
// ===== بداية موجة شراء =====
startBuy = not na(lastHighPrice) and close > lastHighPrice and wave != 1 and rsi > rsiMid
if startBuy and not na(lastLowBar)
wave := 1
if showLabels
label.new(lastLowBar, lastLowPrice, "BUY LOW", style=label.style_label_up, color=color.lime, textcolor=color.black)
// ===== بداية موجة بيع =====
startSell = not na(lastLowPrice) and close < lastLowPrice and wave != -1 and rsi < rsiMid
if startSell and not na(lastHighBar)
wave := -1
if showLabels
label.new(lastHighBar, lastHighPrice, "SELL HIGH", style=label.style_label_down, color=color.red, textcolor=color.white)
// ===== نهاية الموجة =====
endBuy = wave == 1 and close < lastLowPrice
if endBuy
wave := 0
if showLabels
label.new(bar_index, high, "END BUY", color=color.orange, style=label.style_label_down)
endSell = wave == -1 and close > lastHighPrice
if endSell
wave := 0
if showLabels
label.new(bar_index, low, "END SELL", color=color.orange, style=label.style_label_up)
Swing a jeanmiche-au dessus de ça smma 100
-stochastique qui croise sous 25
-volume au dessus de la moyenne.
Target Ladder Elite - Median + ATR Active TargetsTarget Ladder Elite — Median + ATR Active Targets is a lightweight price-target framework that uses a median moving average as a central anchor and ATR volatility bands to define realistic upper and lower target zones.
Instead of predicting direction, this tool is designed to provide structured, volatility-aware reference levels that traders can use for planning, risk framing, and journaling.
The script displays:
A central “median” line (EMA by default)
Optional upper/lower ATR bands
A single “Active Target” label that updates on the last bar
“HIT” markers when price reaches the selected target band under simple context conditions
What it does
Median Anchor (Trend/Centerline)
A short moving average is used as the median reference line. This can help traders see whether price is trading above or below its current median.
ATR Target Bands (Volatility Range)
ATR (Average True Range) is used to measure volatility, and the script plots:
Upper Band = Median + (ATR × Multiplier)
Lower Band = Median − (ATR × Multiplier)
These bands represent a volatility-based “reach” range rather than a guaranteed destination.
Active Target (Last Bar Only)
The script highlights one band as the “Active Target”:
Auto mode:
If price is above the median → upper band becomes active
If price is below the median → lower band becomes active
Or the user can force Upper or Lower.
HIT Detection (Touch Confirmation)
A “HIT” label prints when price reaches the band under a simple context filter:
Upper HIT: price touches/exceeds the upper band while closing above the median
Lower HIT: price touches/exceeds the lower band while closing below the median
This is meant as a visual confirmation that a volatility target was reached, not a trading signal by itself.
How it works (calculation detail)
Median = EMA(Source, Median Length)
ATR = ATR(ATR Length)
Upper = Median + ATR × Multiplier
Lower = Median − ATR × Multiplier
The “Active Target” is selected based on your Active Target Side setting, then displayed as a label on the most recent bar.
How to use it
Common use cases:
Planning target zones: Use upper/lower bands as potential volatility reach levels for the current market regime.
Risk framing: Combine the median and bands with your preferred stop/structure rules to evaluate whether a move is extended or compressed.
Trend context: In Auto mode, the active band is chosen based on where price is trading relative to the median.
Journaling: HIT labels can help record when price reaches a volatility-defined objective.
Suggested starting settings:
Median Length: 4
ATR Length: 4
ATR Multiplier: .05–2.0 (adjust based on timeframe and asset volatility)
Notes & limitations
The bands are volatility references, not predictions.
The “Active Target” selection in Auto mode is a simple median-based context rule.
HIT markers indicate a band was reached under the defined conditions; they are not buy/sell commands.
Best used alongside structure and risk management.
This script is for educational and informational purposes only and does not constitute financial advice. Markets carry risk; always use appropriate confirmation and risk management.
Swing Trading Screener v2Updated Version of the Swing Trading Screener v1 due to the new Pinescript memory restrictions
REBOTE PRO EMA
//@version=5
indicator(title="REBOTE PRO EMA", overlay=true)
// === CONFIGURACIÓN ===
emaRapida = input.int(20, "EMA Rápida")
emaLenta = input.int(50, "EMA Lenta (Tendencia)")
rsiPeriodo = input.int(14, "RSI Periodo")
// === CÁLCULOS ===
emaFast = ta.ema(close, emaRapida)
emaSlow = ta.ema(close, emaLenta)
rsiVal = ta.rsi(close, rsiPeriodo)
// === CONDICIONES DE TENDENCIA ===
tendenciaAlcista = emaFast > emaSlow
tendenciaBajista = emaFast < emaSlow
// === CONDICIONES DE REBOTE ===
reboteBuy = tendenciaAlcista and low <= emaFast and close > emaFast and rsiVal > 40
reboteSell = tendenciaBajista and high >= emaFast and close < emaFast and rsiVal < 60
// === GRÁFICOS ===
plot(emaFast, color=color.orange, linewidth=2)
plot(emaSlow, color=color.red, linewidth=2)
// === SEÑALES ===
plotshape(reboteBuy,
title="BUY",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small)
plotshape(reboteSell,
title="SELL",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small)
Bulkowski Breakout vPRO (5m) - Runtime FixedHere is the English translation of your strategy guide, tailored for international traders while maintaining your encouraging tone.Strategy Guide: Bulkowski Breakout vPROFor Aspiring "Golden Traders"This strategy is designed for beginners to trade with the "flow of power." In short, it is a momentum-following strategy that enters a trade when a strong price move (Long Body Candle + High Volume) breaks through a key psychological level (200 EMA).1. Core Concept: "The High-Energy Breakout"Based on the principles of Thomas Bulkowski, a legendary master of chart patterns, this strategy prioritizes high-energy moves over simple price touches. A signal (LONG or SHORT) is only generated when these three conditions align:200 EMA Break (The Baseline): The 200-period Exponential Moving Average is the "life-line" of the market. Price breaking above this line indicates a powerful shift from a bearish to a bullish trend.Long Body Candle (Volatility): The candle body must be at least 2x larger than the recent average. This serves as evidence of institutional or "whale" buying/selling.Volume Surge (Reliability): Trading volume at the moment of breakout must be 1.5x higher than the recent average. This confirms the move is genuine and not a "fake-out."2. Session Filter (Optimized for Peak Volatility)To avoid "choppy" sideways markets, this strategy only operates during the first two hours of the major global market opens, when liquidity is at its highest.MarketTime (KST / UTC+9)Market CharacteristicsAsia Session09:00 ~ 11:00Opening of Korean, Japanese, and Chinese markets.Europe Session16:00 ~ 18:00Volatility spikes as the London market opens.US Session22:00 ~ 24:00Peak global liquidity as New York opens.Signals only appear when the chart background is shaded blue. All other times are "resting periods" to protect your capital.3. Execution GuideEntryLONG (Buy): Enter when a large green candle breaks above the yellow 200 EMA with high volume. (Green triangle label appears).SHORT (Sell): Enter when a large red candle breaks below the yellow 200 EMA with high volume. (Red triangle label appears).Take Profit (TP) & Stop Loss (SL)Lines are automatically drawn on your chart once you enter:Orange Line (Stop Loss): Automatically set at the low (or high) of the last 3 candles. If the price touches this, the trade closes to prevent further loss.Green Line (Take Profit): Automatically set at 1.5x your risk. This ensures a healthy 1:1.5 Risk-to-Reward ratio.4. Pro-Tips for BeginnersOptimized for 5m: This strategy works best on the 5-minute (5m) timeframe. 1m is often too noisy, and 15m can be too slow for scalping.Watch Bitcoin: Even if an altcoin gives a LONG signal, be cautious if Bitcoin is currently crashing. BTC dictates the overall market direction.Adjusting Sensitivity: If signals are too rare, go to "Settings" and lower the Long Body Multiplier from 2.0 to 1.5.This indicator is built to help you trade based on statistical advantages, not emotions. We strongly recommend practicing with Paper Trading first to get a feel for the signals.To everyone dreaming of becoming a Golden Trader—Success is a marathon, not a sprint!
EMA Combo BKEMA Combo – Multi-Timeframe Trend & Momentum Indicator
EMA Combo is a clean and efficient multi-Exponential Moving Average (EMA) indicator designed to help traders quickly identify trend direction, momentum strength, and dynamic support/resistance zones across all timeframes.
This indicator plots a structured set of five EMAs (10, 20, 50, 100, 200) on the price chart, with intelligent default visibility to keep the chart uncluttered while still allowing deeper analysis when needed.
⸻
Default EMA Structure
By default, the indicator displays only the two most actionable EMAs:
• EMA 20 (Blue) – Short-term momentum EMA
• EMA 50 (Red) – Core trend EMA
The following EMAs are hidden by default and can be enabled manually from the indicator settings:
• EMA 10 (Teal) – Ultra-fast EMA for scalping and very short-term momentum
• EMA 100 (Purple) – Medium-term trend filter
• EMA 200 (Orange) – Long-term trend and institutional bias EMA
This default visibility ensures a clean chart for day trading, while still supporting swing and positional analysis when required.
⸻
How to Use the Indicator
1. Trend Identification
• Price above EMA 50 & EMA 200 → Bullish market structure
• Price below EMA 50 & EMA 200 → Bearish market structure
• EMA 20 above EMA 50 → Short-term bullish momentum
• EMA 20 below EMA 50 → Short-term bearish momentum
⸻
2. Momentum & Pullback Trading
• In strong trends, price often pulls back to EMA 20 or EMA 50 before continuing
• EMA 20 acts as a dynamic momentum line
• EMA 50 acts as a trend support / resistance zone
⸻
3. Scalping & Short-Term Trading (EMA 10)
• Enable EMA 10 for:
• High-frequency scalping
• Momentum bursts
• Early trend acceleration
• Best used on lower timeframes (1m–5m)
⸻
4. Swing & Positional Trading (EMA 100 & 200)
• EMA 100 helps filter mid-term trend strength
• EMA 200 defines:
• Institutional bias
• Long-term support & resistance
• Bull vs Bear market zones
A market is considered structurally strong when:
EMA 20 > EMA 50 > EMA 100 > EMA 200
[SUMIT] Trade line strategy 05:00pm to 11:00pm Trade line strategy 05:00pm to 11:00pm
This trading indicator is created by Sumit Ingole, an active trader from Maharashtra, India, with real-time market experience.
Based on practical trading and proven market understanding, it focuses on clarity and discipline.
Designed to support traders with clean structure and decision-making.
Best used with proper risk management and consistency.
This is a custom-built trading indicator designed to help traders identify clear market direction and high-probability entry zones.
The indicator focuses on: • Trend direction
• Strong price levels
• Clear buy and sell signals
• Easy-to-read structure
It is beginner-friendly and does not require complex market knowledge. The signals are based on pure price behavior and smart market movement, helping traders avoid confusion and overtrading.
This indicator works best when used with proper risk management and discipline. It can be applied on multiple timeframes and is suitable for intraday as well as swing trading.
Note:
This indicator is a support tool, not a guarantee of profits. Always follow your trading plan and manage risk properly.
ATR Levels - Previous Candle Open1 of 3 scripts
I use all 3 together to "tell the story"
specifically designed for NQ to watch 4H timeframe.
code is generated by Claude AI so thats why it is free.
TTM SqueezeUpdated TTM Squeeze — Correct AND Logic
John Carter’s classic TTM Squeeze.
There is one on here already, but it is using an OR‑based condition. The proper logic is AND for a true volatility squeeze. Both the Keltner Channel lower band and upper band must sit fully inside the Bollinger Bands. Using AND logic ensures the squeeze only triggers when volatility is genuinely compressed, producing a more accurate and reliable signal than the default implementation.
Mean Deviation Loop | Lyro RSThe MAD Bollinger Bands + Loops is a sophisticated technical analysis tool designed to identify and quantify market trends by combining dynamic moving averages with robust statistical dispersion measures. This indicator employs a multi-model approach, integrating Bollinger-style MAD bands, for-loop momentum scoring, and a hybrid signal system to provide traders with adaptive insights across varying market conditions.
Indicator Modes
Bollinger-Style MAD Bands
This mode calculates dynamic volatility bands around price using Mean Absolute Deviation (MAD) instead of standard deviation or RMSE. MAD offers a smoother and more outlier-resistant measure of price dispersion.
Upper Band = Dynamic Moving Average + (MAD × Multiplier)
Lower Band = Dynamic Moving Average − (MAD × Multiplier)
These bands expand and contract with market volatility, helping to identify potential breakout and breakdown zones with reduced sensitivity to extreme price spikes.
For-Loop Momentum Scoring
Momentum is evaluated by analyzing recent price behavior through a loop-based comparison system applied to a MAD-weighted price series.
A rising momentum score indicates strengthening bullish pressure
A declining momentum score signals increasing bearish dominance
This method emphasizes directional consistency rather than short-term noise.
Hybrid Combined Signal
This mode combines the outputs of the MAD Bands and For-Loop Momentum Scoring into a unified directional signal.
+1 indicates bullish conditions (green)
−1 indicates bearish conditions (red)
An average of these scores is calculated to generate a combined signal, providing a clearer and more reliable indication of overall market trend.
Practical Application
Signal Interpretation
A buy signal is generated when both the MAD Bands and For-Loop Momentum align bullishly.
A sell signal is generated when both components align bearishly.
Trend Confirmation
The Hybrid Combined Signal serves as a confirmation layer, helping traders validate trend direction and reduce the likelihood of false signals during choppy or low-volatility conditions.
⚠️ Disclaimer
This indicator is a technical analysis tool and does not guarantee results. It should be used in conjunction with additional analysis methods and proper risk management strategies. The creators of this indicator are not responsible for any financial decisions made based on its signals.
MTF Session Range FibonacciMTF Session Range Fibonacci is a multi-timeframe indicator designed to map high-probability price reaction levels using a fixed intraday session range and Fibonacci projections.
The indicator first identifies a user-defined session window and records the session high and low. Once the session completes, it builds a complete Fibonacci structure from that range, including retracements and extensions above and below the session boundaries. These levels act as support, resistance, targets, and extreme reaction zones, commonly used for intraday and swing trading.
All calculations can be sourced from a higher or custom timeframe, allowing traders to project higher-timeframe structure onto lower-timeframe charts. This helps align entries with broader market context rather than relying on isolated chart data.
To provide trend confirmation, the indicator includes:
A Parabolic Weighted Moving Average (PWMA) to highlight directional bias and momentum strength.
A 50 / 200 EMA crossover system to identify potential trend shifts and dominant market direction.
Visual elements such as color-coded Fibonacci levels, informative tooltips, crossover markers, and optional fills between price and PWMA improve readability while keeping the chart structured.
This indicator is best suited for traders who rely on session-based structure, Fibonacci reactions, and multi-timeframe trend alignment, particularly in indices, forex, and futures markets.
Z-Score STDEMA BandsZ-Score STDEMA Bands is a mean-reversion and regime-strength indicator built on normalized price deviation.
The indicator converts price into a Z-Score, measuring how many standard deviations the current price is from its moving average over a configurable lookback. This makes signals comparable across assets and timeframes.
On top of the Z-Score, the script applies an EMA of the Z-Score and dynamically builds upper and lower STDEMA bands using the rolling standard deviation of the Z-Score itself. These bands adapt to volatility in deviation, not price.
How to read it:
Z-Score (orange line): Distance from mean in standard deviations.
Horizontal levels (±1, ±2, ±3): Statistical extremes and mean-reversion zones.
Green/Red bands: EMA-based dynamic deviation envelopes.
Blue bars: Strong positive deviation (bullish expansion beyond statistical expectation).
Yellow bars: Strong negative deviation (bearish expansion beyond statistical expectation).
Use cases:
Identify overextended price conditions in a normalized framework.
Detect trend strength vs. mean-reversion (expansion outside bands).
Filter trades by statistical significance, not raw price movement.
Punchak Levels1. Enter the start date/time and end date/time of Punchak.
2. Enter the multipler of punchak range (default is 0.25).
3. Enter how many levels you want to plot.
Uptrick: Price Memory Trend StrategyHere are clear, structured notes explaining the Pine Script code — the simplified "LSTM-like" trend predictor you were given earlier.
Overall Purpose of the Script
The script tries to imitate LSTM memory behavior (long-term memory + selective forgetting/updating) using only Pine Script's basic math and variables — because real LSTM neural networks (with matrices, multiple gates, backpropagation) are not possible in Pine.
It creates a persistent memory line that:
slowly forgets old information,
selectively accepts new price information,
tries to act as a trend-following / regime-detecting centerline.
Then it uses momentum of this memory line + deviation size to decide whether the market is in an uptrend or downtrend.
Key Sections Explained
1. Inputs (tunable parameters)
pinescriptmemoryStrength = input.float(0.14, "Forget Gate strength (like 1-f)", step=0.01, minval=0.01, maxval=0.99)
inputGate = input.float(0.22, "Input Gate strength", step=0.01, minval=0.01, maxval=1.0)
cellDecay = input.float(0.965, "Cell state decay", step=0.001, minval=0.8, maxval=0.999)
lookback = input.int(21, "Lookback for momentum", minval=5)
sensitivity = input.float(1.35, "Trend sensitivity multiplier", step=0.05)
ParameterWhat it controlsTypical effectHigher value means…memoryStrengthHow aggressively old memory is forgottenControls "forget gate" strengthForgets faster, more responsiveinputGateHow much new price is allowed into memoryControls how much price influences cellMemory follows price more closelycellDecayNatural fading of long-term memory per barPrevents memory from living foreverLower = memory fades fasterlookbackPeriod for momentum and deviation calculationSmoothness of trend detectionLonger = smoother, fewer signalssensitivityHow strong momentum must be to flip trendFinal trigger strictnessHigher = fewer but stronger signals
2. Memory Variables (the "LSTM core")
pinescriptvar float cell = na // long-term memory ≈ cell state C
var float hidden = na // short-term state ≈ hidden state h
if bar_index == 0
cell := price
hidden := price
cell → tries to act like LSTM cell state (long memory)
hidden → tries to act like LSTM hidden state (what we actually observe/use)
3. Simplified Gates
pinescriptforget = math.tanh(hidden * memoryStrength)
i_gate = math.tanh(price * inputGate)
candidate = price - hidden
forget — value between -1 and +1, but we treat higher positive = forget more
i_gate — how much new info we want to accept
candidate — the new information we could add (difference from current hidden)
Very crude approximation — real LSTM uses sigmoid + learned weights.
4. Core LSTM-like Update Rule
pinescriptcell := cell * (1 - forget) + candidate * i_gate
cell := cell * cellDecay
hidden := cell * 0.65 + price * 0.35
This is the heart of the "fake LSTM":
Keep (1 – forget) of old cell
Add a portion (i_gate) of the candidate change
Apply slow exponential decay (cellDecay < 1)
Hidden state = mix between long memory and current price
→ base = hidden becomes our smoothed, memory-aware centerline.
5. Trend Detection Logic
pinescriptmom = ta.change(base, lookback) // how much did memory move in last N bars?
dev = math.abs(price - base) // how far is price from memory center?
avgDev = ta.ema(dev, lookback * 2) // smoothed deviation size
trendScore = (mom / avgDev) * sensitivity // normalized momentum × sensitivity
Normalizes momentum by current volatility/deviation
High positive → strong upward memory movement → likely uptrend
High negative → strong downward memory movement → likely downtrend
6. Trend State Machine (non-repainting flip)
pinescriptvar int trend = 0 // 1 = Up, -1 = Down, 0 = Neutral
bullCondition = trendScore > 1.0 and trendScore <= 1.0
bearCondition = trendScore < -1.0 and trendScore >= -1.0
if bullCondition
trend := 1
else if bearCondition
trend := -1
else
trend := nz(trend )
Only changes trend when crossing the threshold from the other side
Prevents flickering / frequent flipping
Persistent until strong opposite signal appears
7. Visualization Summary
Background tint (light green/red)
Thick memory line (changes color with trend)
Dashed ±1.6× deviation bands
Big up/down labels on trend flips
Alert conditions on every new trend direction
Quick Tuning Guide
GoalSuggestionFewer but stronger signals↑ sensitivity (1.6–2.2), ↑ lookback (30–60)More responsive / earlier entries↑ inputGate, ↓ cellDecay, ↓ memoryStrengthSmoother memory line↓ inputGate, ↑ cellDecay (0.98+)Better in choppy markets↑ lookback, ↑ sensitivityBetter in trending markets↓ lookback, moderate sensitivity (~1.2–1.5)
Most Important Takeaway
This is not a real LSTM — it's a hand-crafted, analog-style memory filter inspired by LSTM ideas.
It tries to combine:
slow-adapting memory (like EMA but with forgetting control)
selective update depending on current deviation
momentum-of-memory as trend strength
Many traders find this kind of memory line more "intelligent" than simple moving averages when tuning the forget/input/decay parameters to match the market personality.
Universal Auto CPR + R1-R5 S1-S5 +Smoothed Heikin AshiWhat this script is doing :
✅ Part A: Smoothed Heikin Ashi candles (visual overlay)
It calculates Heikin Ashi OHLC
Then applies EMA smoothing to HA values (shaLen)
Finally plots the HA candles using plotcandle()
👉 Important: This HA overlay is ONLY for view.
It does not change CPR / pivot levels,
✅ Part B : Auto CPR timeframe selection
It automatically decides which higher timeframe to use for CPR based on chart timeframe:
Rule inside autoTF:
Chart timeframe CPR timeframe used
seconds or minutes < 60 Daily (D)
minutes ≥ 60 Weekly (W)
daily Monthly (M)
weekly/monthly Yearly (12M)
✅ Recommendation : Add colors + widths to make CPR readable
Currently all plots are default color.
You can set:
Pivot as yellow
TC/BC as blue
R levels red
S levels green
Midlines faded
(only visual improvement)
Happy trading
BTC - Standard of Living BenchmarkerOVERVIEW
Most traders track their wealth in USD or EUR — currencies that are structurally designed to lose value. This is a "Money Illusion." To understand if you are truly becoming wealthier, you must measure your Bitcoin not against fiat, but against the Standard of Living assets you eventually want to buy.
The Standard of Living Benchmarker is a macro-ratio engine that swaps the denominator of your chart. It answers the only question that matters for long-term wealth: "Is my Bitcoin stack gaining ground against the real world?"
THE "Stuff" BENCHMARKS
I have pre-selected four critical pillars of a high standard of living (that can be switched/cycled in the settings window):
• Gold: The historical baseline for "Hard Money" (TVC:GOLD).
• Equities: The primary engine of global productivity (S&P 500).
• Real Estate: Measured via the Vanguard Real Estate ETF (VNQ).
• Energy: The fundamental cost of human progress (Crude Oil).
THE CORE CALCULATION
The calculation is a simple, non-manipulated ratio:
• The Formula: Ratio = BTC_Price / Asset_Price
• This means: We are looking at the direct barter-rate between Bitcoin and the asset. For example, when the "Energy" mode is selected, the chart doesn't show dollars; it shows exactly how many Barrels of Oil one single Bitcoin can buy at today's close.
THE LIFESTYLE BASKET (The 5th Denominator)
Individual ratios tell you how Bitcoin is doing against one asset, but life isn't lived in a single asset. To solve this, I introduced the Lifestyle Basket .
What is a "Lifestyle Share"? A synthetic "Life Token" that represents a diversified slice of human prosperity. It is an equal-weighted basket consisting of:
• 25% Gold (Inflation Hedge)
• 25% S&P 500 (Global Growth)
• 25% Real Estate (Shelter)
• 25% Crude Oil (Energy/Consumption)
HOW TO READ THE CHART
• How to interpret the ratio: If the dashboard shows that 1 BTC buys 50 Lifestyle Shares , it means your Bitcoin stack has the purchasing power to acquire 50 equal units of the world's most critical assets.
• The Purchasing Power Line (Orange): When this line moves UP, Bitcoin is outperforming the real world. You are getting "wealthier" in a tangible sense. When it moves DOWN, your Bitcoin is losing purchasing power against that specific asset class.
• The Opportunity Zones: We plot a 200-day Mean with Standard Deviation bands.
• Upper Band (Red): Bitcoin is historically "Expensive" compared to the asset. This has historically been a high-probability zone to swap BTC for "Stuff" (Real Estate, Gold, etc.).
• Lower Band (Green): Bitcoin is "Cheap" compared to the asset. This is the zone where "Stuff" should be sold to acquire more Bitcoin.
WHY THIS IS "FRESH"
Unlike standard indicators that use RSI or MACD to find price momentum, this is a Macro-Audit . It ignores the noise of the US Dollar and focuses on the Ratio of Reality . It allows the "Infinite Hodler" to know when they are overextended in Bitcoin and when it is mathematically time to diversify into hard real-world assets.
DISCLAIMER
This script is for educational and macro-analytical purposes only. It does not constitute financial advice. Benchmarks are proxies for asset classes and may not reflect individual local prices (e.g., local real estate).
Tags: bitcoin, macro, gold, realestate, oil, benchmark, purchasing power, wealth, satoshi, Rob Maths, robmaths, Rob_Maths






















