Position and Leverage Size CalculatorThis script is assist you to see approximate position and leverage size while trading in prop firms.
Educational
EMA Slope Checker CareExtendedEMA 50 Slope > +0.10 = Uptrend (long bias)
EMA 50 Slope < -0.10 = Downtrend (short bias)
All 3 positive = Strong bullish alignment
Mixed directions = Conflict (avoid or reduce size)
Opening Candle Continuation SamBerg_Opening Candle Continuation is a New York session–based trading indicator designed to structure the open and identify high-probability continuation moves.
The script builds an Opening Window from the NY open (default 9:30–16:00, configurable) and plots:
Opening High / Low levels
Optional Midline (HL2)
A real-time opening range box with directional context
Clean breakout continuation signals above or below the opening range
Key features
Configurable opening window length (5–120 minutes)
Optional close confirmation, minimum range filter, and ATR filter
Directional bull / bear window shading
Edgeful 30-minute follow-through statistics by weekday (optional)
Compact info table with opening range metrics
Optional NY Session VWAP
Fully customizable colors and display controls
Designed for intraday index futures and equities, this tool helps traders stay aligned with the session structure and avoid low-quality trades near the open.
Educational and analytical tool only. Past performance does not guarantee future results.
Bear & Bull Builder // visual strategy builderAre you a trend follower?
Trend following systems have been a cornerstone of trading since the first candlestick charts were invented in 18th-century Japan by Munehisa Homma (or Honma), a legendary rice merchant who used them to analyze market sentiment and predict price movements. Since then, legendary traders like Richard Dennis and Dr. David Paul have used technical analysis—the study of turning points and trends of candlestick charts—to develop an edge and strategy for trading equity, commodity, and forex markets.
How to Utilize the Bear & Bull Builder
This script is a way to pick and choose technical methods like SMAs and EMAs to define trend exits and entries. Additionally, you can specify an ATR (Average True Range) calculated stop loss based on your individual strategy and trading plan. Within the settings panel, you can set up this script to display only Long Position values, zones, and levels—or configure it for shorts, or both.
What Makes This Original
Unlike most trend-following indicators that lock you into a single approach, this script lets you combine different indicator types (RSI, WaveTrend, CCI, EMA, SMA) across three separate trend timeframes. The originality comes from the flexibility: you can test whether momentum-based trends (like RSI) work better than moving averages for your timeframe, or experiment with mixing them together. The script also bridges the gap between manual trading and automation by providing visual position values and fill zones that show exactly where signals generate versus where orders execute—critical information most scripts ignore.
Getting Started
For this quick and easy setup example, I built a strategy that is long-only, displays only long positional data and values, and uses a 21 & 55 period exponential moving average for the short and medium-term trend in addition to an 89 period simple moving average for my longer-term outlook. I have set my ATR-based multiplier to 0.75, and have left the fill zone display turned on to help visualize when to set up the built-in alerts for automating my strategy. I have made this the default settings of the script.
Positional Values
GREEN NUMBERS → Entry signal price
YELLOW NUMBERS → Stop loss price
BLUE NUMBERS → Exit signal price
IMPORTANT
I cannot describe how useful it is to use TradingView's built-in Long and Short position tools! The whole reason for this script is that it is as manually friendly as it is automated—especially for backtesting. You can use the long position tool to measure exact profits and losses on individual trades for the strategies you build. This can really help you see clearly if you have built a system with positive expectancy.
Tables
1. Settings Display Table
Displays the trend types that are configurable in the settings panel. Shows if positional values for longs and shorts are currently displayed.
2. Back testing Table
Displays the total amount of long and short entry signals since the first bar of the chart. Additionally, it displays the average amount of bars per trade (time in trade).
Alerts & Automation
There are 4 built-in alerts for automating your strategy to an external server:
1.Long Entries
2.Long Exits
3.Short Entries
4.Short Exits
Since this script uses confirmed bar states for alert generation (to avoid repainting), all alerts and displayed position values (the green, yellow, and blue numbers) will be sent on the closing price. Each alert has a placeholder preset for further customization.
Technical Details
How the trend detection works:
Bullish state triggers when close > all three selected trends
Bearish state triggers when close < all three selected trends
Uses barstate.isconfirmed to prevent repainting
Stop loss calculation:
Long stops: highest_trend - (ATR × multiplier)
Short stops: lowest_trend + (ATR × multiplier)
ATR period is fixed at 20 bars, multiplier is user-adjustable
Entry placement logic:
Long entries execute at the highest value among the three selected trends
Short entries execute at the lowest value among the three selected trends
This ensures entries occur near the support/resistance created by the trend lines
Why calculate all indicators upfront:
The script calculates all five indicator types (EMA, SMA, RSI, CCI, WaveTrend) for all three trend lengths on every bar, then selectively uses the ones you choose in settings. This prevents Pine Script consistency warnings while maintaining flexibility.
ATR Momentum StatusThis indicator measures whether volatility (ATR) is increasing or decreasing, and classifies momentum strength into four clear states:
- WEAK
- STRONG
- EXPANSION
- DECREASING
It helps traders avoid fake moves and only trade when real participation enters the market, especially when used together with FVG CE Acceptance (SMC).
ATR Momentum States (Very Important)
Status Meaning Market Condition
WEAK Small ATR increase Low participation
STRONG Healthy ATR increase Real buyers/sellers entering
EXPANSION Large ATR spike Aggressive momentum / breakout
DECREASING ATR falling Momentum dying / trap risk
What This Indicator Is NOT
❌ Not a buy/sell signal
❌ Not direction bias
❌ Not entry by itself
👉 It is a trade quality filter
✅ Best Use Case (SMC / FVG Traders)
This indicator shines when combined with:
- FVG
- CE (Consequent Encroachment)
- Liquidity Sweep
- Acceptance Candle
Important Risk Filter (Golden Rule):
ATR Status Trade Quality
EXPANSION + Acceptance ⭐⭐⭐⭐⭐ (Best)
STRONG + Acceptance ⭐⭐⭐⭐
WEAK + Acceptance ❌ Avoid
DECREASING ❌ No Trade
Why This Works (Conceptually):
- FVG CE acceptance = price is accepted
- ATR expansion = participation is real
- Together = institutional momentum, not retail noise
OptX - ZigZag Triangle with Market AppetiteOptX - ZigZag Based Dynamic Triangle with Market Appetite Indicator
This protected script automatically detects and draws the latest converging triangle patterns using ZigZag pivot points. It combines classic price geometry with a proprietary "Market Appetite" momentum metric to highlight potential breakout strength.
Key Features:
- Automatically identifies recent swing highs and lows
- Draws upper resistance and lower support lines to form a triangle
- Includes a dashed diagonal line for visual structure
- Fills the triangle with dynamic color intensity and opacity reflecting current market momentum
- Clearly labels active resistance and support levels
- On breakout (within configurable bars after pivot), shows breakout conviction as a percentage (BO 0-100%)
Market Appetite Concept:
A custom momentum indicator that measures market intensity by analyzing normalized changes in both price and volume volatility:
- Recent price and volume movements are standardized and combined
- Scaled relative to recent extremes over an extended lookback
- Higher values indicate stronger momentum, resulting in more intense triangle fill and higher breakout percentage labels
- Designed to gauge the underlying conviction in price moves
Trend-adaptive coloring (based on 20-period SMA):
- Bullish conditions: green/blue tones
- Bearish conditions: red/gray tones
Ideal for spotting triangle breakouts with built-in momentum assessment.
Settings include full customization of ZigZag sensitivity, colors, fill opacity, appetite calculation period, breakout detection window, and line styles.
This is an original indicator combining ZigZag-based triangle detection with a unique price-volume momentum evaluation – developed independently and not derived from simple combinations of existing public scripts.
FVG InversionThis indicator identifies Fair Value Gaps (FVG), providing entry and exit parameters upon FVG inversions. SL is based on a previous, relevant swing high or low and TPs are set in accordance to Risk-Reward ratios.
Any members of the Primeverse trading community can use this indicator for free. You can learn more about joining our free community from here: primeverselaunch.base44.app
If you have any further questions, you can connect with my team via email or message me on Instagram. Find contact details below.
Email: inquiry@tradersparadise.33mail.com
Instagram: www.instagram.com
EMC Chop Bracket LevelsThis is a bracket trading system setup with a chop region BOS High low for entry exit regions to setup for trades. the top and bottom will be your range targets. POC of course once breached will be your bounce region if not continuation drop below to the region
FFL BotXimusHow to Use Futures Fibonacci Levels
Quick Start
Set dates:
Start Date: date of the swing low (or high)
End Date: date of the swing high (or low)
Choose price sources:
Start Price Source: usually "Low" for lows, "High" for highs
End Price Source: usually "High" for highs, "Low" for lows
Toggle labels:
Show Labels: on/off for level labels
What You'll See
Red up arrow (▲): marks the start point
Green down arrow (▼): marks the end point
Dotted lines: Fibonacci levels (38.2%, 50%, 61.8%, 78.6%)
Yellow lines = uptrend (low before high)
Green lines = downtrend (high before low)
Labels: percentage values on each level
Example
To analyze an uptrend:
Start Date = date of the low
Start Price Source = "Low"
End Date = date of the high
End Price Source = "High"
The indicator shows Fibonacci retracement levels automatically.
Scalp Signal v1.0 [Scalping-Algo]═══════════════════════════════════════════════════════════════
MTF SCALP HELPER - TRADINGVIEW DESCRIPTION ═══════════════════════════════════════════════════════════════
SHORT DESCRIPTION:
-----------------------------------
Multi-timeframe confluence overlay combining directional bias scoring, volume anomaly detection, and automatic zone mapping.
FULL DESCRIPTION:
-----------------
𝗛𝗼𝘄 𝗧𝗵𝗲 𝗖𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 𝗪𝗼𝗿𝗸 𝗧𝗼𝗴𝗲𝘁𝗵𝗲𝗿
This is not simply indicators placed side-by-side. Each component feeds into a scoring system:
𝟭. 𝗗𝗶𝗿𝗲𝗰𝘁𝗶𝗼𝗻𝗮𝗹 𝗕𝗶𝗮𝘀 𝗘𝗻𝗴𝗶𝗻𝗲
Nine factors are evaluated on each bar: EMA ribbon alignment (8/13/21/34), dual Supertrend readings, VWAP position, Hull MA direction, RSI zone, MACD histogram slope, Stochastic RSI crossover state, ADX/DMI readings, and higher timeframe EMA structure.
Each factor that confirms the direction adds +1 to a bias score. When the score crosses a user-adjustable threshold AND the higher timeframe confirms, candles are colored to reflect the bias. This creates a visual filter - you can quickly scan and see which periods had strong directional agreement vs mixed signals.
𝟮. 𝗖𝗼𝗻𝗳𝗹𝘂𝗲𝗻𝗰𝗲 𝗦𝗰𝗼𝗿𝗶𝗻𝗴 𝗳𝗼𝗿 𝗘𝗻𝘁𝗿𝘆 𝗦𝗶𝗴𝗻𝗮𝗹𝘀
The main signals use weighted scoring across 13 factors. Not all factors are equal - for example, an RSI extreme reading adds +2 while simple VWAP position adds +0.5. This weighting reflects that some conditions are more significant than others.
Signals only appear when:
- Confluence score meets minimum threshold (adjustable: 8-11)
- Volatility is within acceptable range (ATR-based filter)
- Minimum bars have passed since last signal (prevents clustering)
- Optional: Session time filter and strict trend alignment
The score is displayed on each signal label so you can see exactly how strong the confluence was.
𝟯. 𝗩𝗖𝗥𝗘 (𝗩𝗼𝗹𝘂𝗺𝗲 𝗖𝗹𝗶𝗺𝗮𝘅 𝗥𝗲𝘃𝗲𝗿𝘀𝗮𝗹 𝗘𝗻𝗴𝗶𝗻𝗲)
This component identifies potential exhaustion points using a specific pattern:
- Price breaks below/above the lows/highs of the previous N bars (lookback adjustable)
- This breakout bar has volume exceeding 2x the 20-period average
- Within the next few bars, price reverses back through the breakout bar's range
- Confirmation volume is checked on the reversal bar
The star rating (3-5) reflects how many confirmation factors were present. This is a mechanical pattern recognition system, not a prediction.
𝟰. 𝗩𝗩𝗥𝗦 (𝗩𝗼𝗹𝘂𝗺𝗲 𝗩𝗼𝗹𝗮𝘁𝗶𝗹𝗶𝘁𝘆 𝗥𝗲𝘃𝗲𝗿𝘀𝗮𝗹 𝗦𝘆𝘀𝘁𝗲𝗺)
Uses statistical analysis (z-scores) to identify when buying or selling volume deviates significantly from the historical mean. When volume anomalies appear in one direction but a Supertrend-style indicator flips the other way within a confirmation window, it flags this divergence.
Z-score threshold is adjustable - higher values mean fewer but more statistically significant anomalies are flagged.
𝟱. 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗶𝗰 𝗭𝗼𝗻𝗲 𝗠𝗮𝗽𝗽𝗶𝗻𝗴
Supply and demand zones are drawn when specific criteria are met:
- A candle with above-average volume and range
- Followed by N consecutive candles moving away from that area
- Zone strength (1-5) is calculated from: engulfing pattern presence, volume confirmation, ATR-relative size, and subsequent price movement
Zones extend forward and can serve as reference levels. They are not predictive - they simply mark areas where notable activity occurred.
𝟲. 𝗠𝘂𝗹𝘁𝗶-𝗧𝗶𝗺𝗲𝗳𝗿𝗮𝗺𝗲 𝗗𝗮𝘀𝗵𝗯𝗼𝗮𝗿𝗱
The panel calculates momentum, sentiment, and volatility scores across 5 timeframes using request.security() calls. These are normalized to 0-100 scales for easy comparison.
- Momentum: Weighted combination of RSI, ROC, MOM, and MACD histogram
- Sentiment: EMA stack positioning, volume-weighted price change, swing structure
- Volatility: ATR, Bollinger width, true range, and standard deviation ratios
The dashboard provides context - you can see if lower and higher timeframes are aligned or diverging.
𝟳. 𝗘𝗠𝗔 𝟮𝟬𝟬 (𝗦𝗹𝗼𝘄 𝗧𝗿𝗲𝗻𝗱 𝗥𝗲𝗳𝗲𝗿𝗲𝗻𝗰𝗲)
The 200-period EMA is plotted as a separate line for longer-term trend context.
How it integrates with other components:
- Used in confluence scoring: price position relative to EMA 200 adds to buy/sell scores (+1 for perfect alignment, +0.5 for partial)
- The "perfect stack" condition (fast EMA > medium EMA > EMA 200 with price above all) is weighted heavily in signal generation
- VCRE system references EMA 200 for its star rating - reversals occurring on the "right side" of the 200 receive higher strength scores
- Provides macro context that the shorter-term components don't capture
The combination of cloud (short-term structure) and EMA 200 (long-term structure) allows you to see both immediate trend state and broader positioning in one view.
8. 𝗘𝗠𝗔 𝗖𝗹𝗼𝘂𝗱 𝗦𝘆𝘀𝘁𝗲𝗺
The cloud is formed between a fast EMA (default 13) and medium EMA (default 48). Rather than just plotting two lines, the space between them is filled to create a visual "zone."
How it functions in this script:
- Cloud color changes based on EMA relationship (fast above slow = bullish color, fast below slow = bearish color)
- The cloud width itself provides information - wider cloud often indicates stronger trend momentum, narrow cloud suggests potential consolidation or transition
- Price position relative to cloud gives quick visual context: trading above a bullish cloud vs below it vs inside it
- The cloud edges often act as dynamic reference points where price may react
This is integrated with the bias system - EMA alignment is one of the 9 factors in the directional bias calculation. When the cloud is bullish AND price is above it, that contributes positively to the bias score.
𝗪𝗵𝗮𝘁 𝗠𝗮𝗸𝗲𝘀 𝗧𝗵𝗶𝘀 𝗗𝗶𝗳𝗳𝗲𝗿𝗲𝗻𝘁
The integration layer is the original contribution here. Specifically:
1. The weighted confluence scoring system that combines standard indicators into a single numerical output with transparent weighting
2. The interaction between the 9-factor bias engine and the signal generation (signals can optionally require bias alignment)
3. VCRE pattern recognition with its specific breakout-then-reversal sequence and volume requirements
4. VVRS statistical approach using z-scores on directional volume combined with trend flip confirmation
5. Zone mapping with multi-factor strength scoring
Each component can be enabled/disabled independently, and all thresholds are exposed as inputs so users can adjust sensitivity.
𝗜𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁 𝗡𝗼𝘁𝗲𝘀
- This script identifies patterns and calculates scores based on the logic described above
- It does not predict future price movement
- Past patterns appearing in backtesting do not indicate future results
- All signals should be evaluated with additional context and risk management
- The effectiveness of any pattern or indicator varies with market conditions, timeframe, and instrument
- Users should thoroughly test on demo/paper before any live application
- Default settings may not be suitable for all instruments or trading styles
𝗦𝗲𝘁𝘁𝗶𝗻𝗴𝘀 𝗢𝘃𝗲𝗿𝘃𝗶𝗲𝘄
• Signal Frequency: Adjusts minimum confluence score (Lots=8, Rare=11)
• Bias Sensitivity: Aggressive/Standard/Conservative threshold for candle coloring
• Strict Filter Mode: Requires trend + session + DMI alignment for signals
• Session Filter: Limits signals to high-volume market hours (EST)
• Each component (VCRE, VVRS, Zones) can be toggled on/off
• All lookback periods, thresholds, and multipliers are adjustable
𝗨𝘀𝗮𝗴𝗲 𝗦𝘂𝗴𝗴𝗲𝘀𝘁𝗶𝗼𝗻𝘀
Start with default settings to understand baseline behavior. Observe how signals correlate with the dashboard readings. Adjust signal frequency lower (toward "Rare") if seeing too many signals. Enable strict mode for additional filtering. Test on the specific instruments and timeframes you plan to use.
Momentum Oscillator [Scalping-Algo]Momentum Oscillator
---
What is this?
A momentum indicator that shows when price might reverse or continue. It's like MACD but with extra filters so you get fewer fake signals.
---
The Components
① OSCILLATOR (Cyan/Magenta line)
The main line. Goes up = bullish momentum. Goes down = bearish momentum.
② SIGNAL LINE (Yellow/Orange line)
A smoothed version. When oscillator crosses it, momentum is shifting.
③ HISTOGRAM (Green/Red bars)
Shows momentum strength. Bigger bars = stronger momentum. Shrinking bars = momentum dying.
④ BLUE CIRCLE
Bullish cross. Oscillator just crossed above signal line.
⑤ YELLOW CIRCLE
Bearish cross. Oscillator just crossed below signal line.
⑥ TRIANGLES
▲ Green = Buy signal (all filters passed)
▼ Red = Sell signal (all filters passed)
⑦ DASHED LINES
Forecast. Where the indicator might go next. Just a guess based on recent movement.
---
How to Trade It
Entry:
- Wait for triangle signal (not just circles)
- Check bars are growing in your direction
- Make sure price agrees with momentum
Exit:
- Bars start shrinking = momentum fading
- Opposite color circle appears = momentum shifting
- Take profit before reversal
Avoid:
- Trading against higher timeframe trend
- Signals when bars are tiny
- Choppy sideways markets
---
Reading the Chart
Green bars getting bigger → momentum building up → price likely continues up
Green bars getting smaller → momentum fading → watch for reversal
Red bars getting bigger → selling pressure increasing → price likely drops
Red bars getting smaller → selling exhausted → watch for bounce
Circles show every cross. Triangles only show when multiple things align.
---
Quick Settings Guide
Want more signals? Lower the volume filter
Want fewer signals? Raise the volume filter
Too many fakeouts? Turn on HTF filter
Missing moves? Lower the min histogram size
---
Limitations
This won't predict the future. The forecast is just math projection, not magic. Markets can reverse anytime. Always use stop losses. Test on demo first.
Uses standard stuff (EMA, RSI, VWAP) combined in a specific way. Nothing revolutionary, just filtered momentum.
---
That's it. Watch the bars, wait for triangles, manage your risk.
Gold Projection DivergenceGOLD PROJECTION DIVERGENCE
Oscillator Companion for the Gold Macro Projection Model
OVERVIEW
The Gold Projection Divergence oscillator quantifies how far gold is trading from its projected fair value. While the main indicator shows where gold should be, this oscillator shows how extreme the mispricing is—providing precise timing signals for entries and exits.
HOW IT WORKS
The oscillator calculates the difference between actual gold price and the projected value, then normalizes it as a Z-score . This statistical measure shows how many standard deviations gold is trading away from its projected fair value.
Z > +2 — Gold is 2+ standard deviations above fair value (extremely overvalued)
Z > +1 — Gold is moderately overvalued
Z = 0 — Gold is trading at projected fair value
Z < -1 — Gold is moderately undervalued
Z < -2 — Gold is 2+ standard deviations below fair value (extremely undervalued)
VISUAL ELEMENTS
Histogram — Color-coded divergence magnitude
Yellow Line — Smoothed Z-score
Dashed Lines — +2 and -2 standard deviation levels
Dotted Lines — +1 and -1 standard deviation levels
Triangle Markers — Extreme crossover signals
Circle Markers — Zero-line crossings
HISTOGRAM COLORS
Dark Red — Z > +2 (extreme overvaluation)
Orange — Z between +1 and +2
Light Orange — Z between 0 and +1
Light Green — Z between -1 and 0
Green — Z between -2 and -1
Lime — Z < -2 (extreme undervaluation)
COMPONENT TABLE
The breakdown table shows divergence from each individual factor:
Silver — Is gold over/undervalued relative to silver?
M2 — Is gold over/undervalued relative to money supply?
DXY — Is gold over/undervalued relative to dollar strength?
Equity — Is gold over/undervalued relative to stocks?
TIPS — Is gold over/undervalued relative to real rates?
TRADING APPLICATIONS
Mean Reversion Strategy
Enter LONG when Z < -2 and begins rising
Enter SHORT when Z > +2 and begins falling
Use zero-line crossings for trend confirmation
Trend Following Filter
Only take long trades when Z < 0 (undervalued)
Only take short trades when Z > 0 (overvalued)
Divergence Confirmation
Bearish: Price makes new highs while Z-score makes lower highs
Bullish: Price makes new lows while Z-score makes higher lows
ALERTS
Extreme Undervaluation — Z crosses below -2
Extreme Overvaluation — Z crosses above +2
Moderate Undervaluation — Z crosses below -1
Moderate Overvaluation — Z crosses above +1
Divergence Turned Positive — Crossed above zero
Divergence Turned Negative — Crossed below zero
COMBINED USAGE
For best results, use both indicators together :
Main Indicator — Visual context of actual vs. projected on price chart
Divergence Oscillator — Precise measurement for timing decisions
The main indicator shows where gold should be; the oscillator shows how extreme the mispricing is and when to act.
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Market conditions can alter historical relationships. Always use proper risk management.
Gold Macro Projection ModelGOLD MACRO PROJECTION MODEL
Multi-Factor Fair Value Estimation for Gold
OVERVIEW
The Gold Macro Projection Model estimates gold's fair value based on its historical relationships with key macroeconomic drivers. By synthesizing data from silver , M2 money supply , the US Dollar Index , TIPS (real rates proxy) , and major equity indices , this indicator projects where gold should theoretically be trading—helping traders identify potential overvaluation and undervaluation conditions.
HOW IT WORKS
This indicator employs three complementary projection methodologies :
Correlation-Weighted Z-Score Composite (50% weight)
Calculates rolling correlations between gold and each input factor. Factors with stronger correlations receive more influence. Each factor is normalized to a z-score, combined into a composite, then converted back to gold's price scale.
Silver/Gold Ratio Mean Reversion (35% weight)
The silver/gold ratio historically exhibits mean-reverting behavior. This component projects gold's implied price based on current silver prices and the historical average ratio.
M2 Money Supply Relationship (15% weight)
Gold tracks monetary expansion over long time horizons. This anchors the projection to the fundamental relationship between gold and the monetary base.
INPUT FACTORS
Silver — Strong positive correlation; precious metals move together
M2 Money Supply — Positive correlation; gold as inflation hedge
US Dollar Index (DXY) — Typically negative correlation; inverse relationship
TIPS ETF — Real interest rate proxy; gold responds to real yields
Equity Indices — Variable correlation; risk-on/risk-off dynamics
VISUAL ELEMENTS
Yellow Line — Actual gold price
Aqua Line — Projected fair value
Green Fill — Gold trading below projection (potentially undervalued)
Red Fill — Gold trading above projection (potentially overvalued)
Aqua Bands — Standard deviation envelope around projection
INFO TABLE
The indicator displays a real-time information panel showing:
Current actual vs. projected price
Divergence percentage and Z-score
Rolling correlations for each factor
Dynamic weight allocation
Buy/Sell signal based on divergence extremes
SIGNAL INTERPRETATION
STRONG BUY — Z-score below -2 (extremely undervalued)
BUY — Z-score between -2 and -1 (moderately undervalued)
NEUTRAL — Z-score between -1 and +1 (fairly valued)
SELL — Z-score between +1 and +2 (moderately overvalued)
STRONG SELL — Z-score above +2 (extremely overvalued)
SETTINGS
Correlation Period — Lookback for correlation calculations (default: 60)
Regression Period — Lookback for mean/standard deviation (default: 120)
Smoothing Period — EMA smoothing for projection line (default: 10)
Auto Weights — Toggle between correlation-based or manual weights
Band Multiplier — Standard deviation multiplier for bands (default: 1.5)
ALERTS
Gold Extremely Undervalued — Z crosses below -2
Gold Extremely Overvalued — Z crosses above +2
Gold Crossed Above Projection
Gold Crossed Below Projection
BEST PRACTICES
Use on daily timeframe for most reliable signals
Combine with the companion Gold Divergence Oscillator for timing
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Always use proper risk management.
Silver Projection DivergenceSILVER PROJECTION DIVERGENCE
Standardized Fair Value Divergence Oscillator
OVERVIEW
The Silver Projection Divergence oscillator is the companion indicator to the Silver Macro Projection Model. It quantifies the gap between silver's actual price and its projected fair value, displaying this divergence as a standardized z-score. This format makes it easier to identify extreme conditions and time entries/exits based on mean reversion.
HOW IT WORKS
The oscillator converts raw divergence (Actual Silver - Projected Silver) to a z-score by normalizing against its historical distribution:
Z-Score > 0 - Silver trading ABOVE projected value (overvalued)
Z-Score < 0 - Silver trading BELOW projected value (undervalued)
Z-Score > 2 - Extreme condition (2 standard deviations)
VISUAL ELEMENTS
Main Plot
Green line/histogram - Negative divergence (undervalued)
Red line/histogram - Positive divergence (overvalued)
Color intensity increases when divergence is expanding
Reference Lines
+2 sigma / -2 sigma (dashed) - Extreme zones
+1 sigma / -1 sigma (dotted) - Moderate deviation
Zero line - Fair value equilibrium
Signal Markers
Green Triangle (bottom) - Z-score crosses below -2 (STRONG BUY)
Red Triangle (top) - Z-score crosses above +2 (STRONG SELL)
Background
Light red background - Extreme overvaluation (Z > 2)
Light green background - Extreme undervaluation (Z < -2)
SIGNAL INTERPRETATION
Z > +2.0 - Extreme Overvaluation - STRONG SELL / Take profits
Z +1.0 to +2.0 - Moderate Overvaluation - Caution / Reduce exposure
Z -1.0 to +1.0 - Fair Value Range - Neutral / Hold
Z -2.0 to -1.0 - Moderate Undervaluation - Accumulate / Scale in
Z < -2.0 - Extreme Undervaluation - STRONG BUY signal
COMPONENT TABLE
The bottom-right table breaks down divergence by factor:
Gold Ratio - Deviation from gold-implied fair value
M2 Supply - Divergence from monetary-implied value
DXY Signal - Dollar strength bullish/bearish indication
Equities - Equity market positioning signal
OVERALL - Combined signal with Z-score
TRADING APPLICATIONS
Mean Reversion Strategy
Enter LONG when Z < -2 and begins rising
Enter SHORT when Z > +2 and begins falling
Use zero-line crossings for trend confirmation
Trend Following Filter
Only take long trades when Z < 0 (undervalued)
Only take short trades when Z > 0 (overvalued)
Divergence Confirmation
Bearish: Price makes new highs while Z-score makes lower highs
Bullish: Price makes new lows while Z-score makes higher lows
ALERTS
Extreme Undervaluation - Z crosses below -2
Extreme Overvaluation - Z crosses above +2
Divergence Turned Positive - Crossed above zero
Divergence Turned Negative - Crossed below zero
COMBINED USAGE
For best results, use both with Silver Macro Projection Model - indicator:
Main Indicator - Visual context of actual vs. projected on price chart
Divergence Oscillator - Precise measurement for timing decisions
The main indicator (Silver Macro Projection Model - ) shows where silver should be; this oscillator shows how extreme the mispricing is and when to act.
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Market conditions can alter historical relationships. Always use proper risk management.
Silver Macro Projection ModelSILVER MACRO PROJECTION MODEL
Multi-Factor Fair Value Estimation for Silver
OVERVIEW
The Silver Macro Projection Model estimates silver's fair value based on its historical relationships with key macroeconomic drivers. By synthesizing data from gold, M2 money supply, the US Dollar Index, and major equity indices, this indicator projects where silver should theoretically be trading, helping traders identify potential overvaluation and undervaluation conditions.
HOW IT WORKS
This indicator employs three complementary projection methodologies:
Correlation-Weighted Z-Score Composite (50% weight) - Calculates rolling correlations between silver and each input factor. Factors with stronger correlations receive more influence. Each factor is normalized to a z-score, combined into a composite, then converted back to silver's price scale.
Gold/Silver Ratio Mean Reversion (35% weight) - The gold/silver ratio historically exhibits mean-reverting behavior. This component projects silver's implied price based on current gold prices and the historical average ratio.
M2 Money Supply Relationship (15% weight) - Silver tracks monetary expansion over long time horizons. This anchors the projection to the fundamental relationship between silver and the monetary base.
INPUT FACTORS
Gold - Strong Positive - Precious metals move together; silver amplifies gold
M2 Supply - Positive - Inflation hedge; expands with monetary base
DXY - Negative - Dollar strength pressures commodity prices
S&P 500 - Variable - Risk sentiment indicator
Dow Jones - Variable - Industrial/economic health proxy
Nasdaq 100 - Variable - Growth/risk appetite indicator
Russell 2000 - Variable - Small-cap risk sentiment
VISUAL ELEMENTS
Silver Line (Gray) - Actual silver price
Yellow Line - Model's projected fair value
Green Fill - Silver trading BELOW projection (potentially undervalued)
Red Fill - Silver trading ABOVE projection (potentially overvalued)
INFORMATION TABLE
The indicator displays a real-time panel showing:
Current correlation coefficients for each factor
Dynamic weight allocation based on correlation strength
Z-scores for each input factor
Actual vs. projected silver price
Percentage divergence from fair value
Signal classification (Strong Buy to Strong Sell)
SETTINGS
Lookback Settings
Correlation Period (default: 60) - Bars used for rolling correlations
Regression Period (default: 120) - Bars for z-score normalization
Smoothing Period (default: 10) - EMA smoothing on projection
Weight Settings
Use Auto Correlation Weights - Weights adjust dynamically based on correlation strength
Manual Weights - Override with custom factor weights
ALERTS
Silver Extremely Undervalued (Z < -2)
Silver Extremely Overvalued (Z > +2)
Price crossed above projection
Price crossed below projection
BEST PRACTICES
Use on daily timeframe for most reliable signals
Combine with the companion Divergence Oscillator for timing
Extreme divergences (>2 sigma) historically precede mean reversion
Consider macro environment as correlations shift during different regimes
Longer regression periods (150-250) for investing; shorter (60-90) for trading
Disclaimer: This indicator is for educational purposes only. Past correlations do not guarantee future relationships. Always use proper risk management.
ADIBABA - 4x EMAThis indicator is based on the Exponential Moving Average (EMA) and is designed to help traders identify trend direction, momentum, and price structure with clarity.
The script provides fully customizable EMA length along with an optional Smoothing EMA (SMS), allowing traders to fine-tune the indicator according to their trading style and market conditions.
It is suitable for intraday, swing, and positional traders and works well across multiple asset classes.
How It Works
• The primary EMA follows price movement and defines the trend
• The smoothing EMA reduces market noise and improves signal quality
• Price above EMA indicates a bullish bias
• Price below EMA indicates a bearish bias
This combination helps filter false signals and provides stronger trend confirmation.
Sarhan Smart Map 📌 SARHAN Smart Map – Smart Money Market Visualization Tool
SARHAN Smart Map is a multi-feature market visualization indicator designed to assist traders in analyzing market structure, liquidity behavior, and price imbalances using concepts commonly associated with Smart Money and institutional-style analysis.
The indicator combines several analytical tools into a single, configurable framework intended for chart analysis and educational use. All components are optional and can be enabled or disabled based on the user’s preferences and trading style.
🔍 Indicator Components Overview
1. Market Structure (BOS & CHoCH)
Description:
Identifies structural shifts using swing high/low logic.
Break of Structure (BOS): Occurs when price breaks a previous swing in the direction of the prevailing structure.
Change of Character (CHoCH): Occurs when price breaks structure against the current directional bias.
Purpose:
Helps visualize potential continuation or transition phases in market structure.
2. Order Blocks
Description:
Order Blocks are highlighted based on the last bullish or bearish candle preceding a significant structural break.
Zones are automatically tracked and updated based on price interaction.
Purpose:
Provides visual reference areas where price previously reacted with momentum.
3. Fair Value Gaps (FVG)
Description:
Detects price imbalances formed when a candle range does not fully overlap with adjacent candles.
These areas are displayed as potential rebalancing zones.
Purpose:
Helps visualize inefficiencies in price movement.
4. Liquidity Grabs
Description:
Highlights scenarios where price temporarily exceeds recent highs or lows before reversing.
Purpose:
Used to visualize potential stop-run behavior around key levels.
5. Buy-Side & Sell-Side Liquidity Zones
Description:
Identifies clusters of recent highs and lows that may act as areas of interest.
Zones are displayed above or below current price.
Purpose:
Provides insight into where price may interact with previously formed levels.
6. Premium & Discount Zones
Description:
Divides the recent price range into upper (Premium) and lower (Discount) areas.
Purpose:
Used as a contextual reference to evaluate price location within a defined range.
7. Trend Filter
Description:
An optional moving average–based filter that reflects directional slope.
Visual effects may include candle coloring or background shading.
Purpose:
Assists in visualizing general directional conditions.
8. Market Sessions Overlay
Description:
Displays session ranges for:
Asian Session
London Session
New York Session
Purpose:
Helps visualize when specific price behaviors occur during different trading hours.
🧠 General Usage Notes
The indicator is not a standalone trading system.
All tools are intended to be used as visual references alongside the user’s own analysis.
Settings can be adjusted to suit different markets and timeframes.
Users are encouraged to combine components selectively rather than relying on all tools simultaneously.
⚠️ Script Attribution & Logic
This script incorporates original implementations inspired by commonly known technical analysis concepts such as:
Market structure visualization
Fair value gaps
Liquidity zones
All logic has been independently implemented and unified within a single framework.
📎 Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not provide financial, investment, or trading advice.
Past price behavior does not guarantee future results.
Users are responsible for their own trading decisions and risk management.
Developed by: Mahmoud Sarhan
Order Blocks+swl - Dual MTF Fixed ExtendedOrder Blocks+SWL - Dual MTF with Swing Validation
Overview
This advanced TradingView indicator combines Multi-Timeframe Order Block detection with Swing High/Low validation to identify high-probability supply and demand zones. The tool displays order blocks from higher timeframes and current timeframe, then highlights those that align with swing points for enhanced reliability.
🔧 Key Features
Multi-Timeframe Order Block Detection
- Current Timeframe: Detects order blocks on the chart's native timeframe
- HTF1 & HTF2: Two customizable higher timeframes (default: 60m, 240m)
- Independent Toggles: Enable/disable each timeframe's OBs separately
Smart Order Block Logic
- Long Order Blocks: Formed when current candle's LOW > middle candle's HIGH
- Short Order Blocks: Formed when current candle's HIGH < middle candle's LOW
- Persistent Display: Boxes extend until price fills the zone
- Color Coding:
- Current TF: Green (long) / Red (short)
- HTF1: Orange (long) / Maroon (short)
- HTF2: Blue (long) / Purple (short)
Swing Point Integration
-Swing Lows (SWL) & Swing Highs (SWH): Automatically detected using pivots
-Validation Overlay: Highlights order blocks that coincide with swing points
- Lime boxes: Long OBs with SWL confirmation
- Fuchsia boxes: Short OBs with SWH confirmation
Visual Elements
- Order Block Boxes: Semi-transparent zones with bold borders
- Entry Markers: Triangle shapes below/above bars for visual confirmation
- Swing Labels: SWL/SWH labels at pivot points
- Valid OB Overlay: Distinctive colored boxes for validated zones
⚙️ Input Parameters
Display Controls
- `Show Long OBs`: Toggle long order block display
- `Show Short OBs`: Toggle short order block display
- `Show Current TF OBs`: Display order blocks from current timeframe
- `Use HTF1/HTF2 OBs`: Enable higher timeframe order blocks
- `HTF1/HTF2`: Customizable timeframe strings
Technical Settings
- `My Input`: Maximum unfilled boxes to display (50-50000, default: 1000)
- `Swing Lookback / Forward Length`: Pivot detection sensitivity (default: 10)
📊 How It Works
1. Order Block Detection: The indicator scans three timeframes for specific candlestick patterns that indicate potential supply/demand zones.
2. Swing Point Detection: Simultaneously identifies swing highs and lows using pivot logic.
3. Validation Overlay: When an order block forms on the same candle as a swing point, it creates a special highlighted zone indicating higher probability.
4. Memory Management: Automatically manages box count to prevent performance issues while maintaining historical context.
🎯 Trading Applications
- Trend Continuation: Validated order blocks in trend direction offer high-probability entries
- Reversal Zones: Swing-aligned order blocks at key levels suggest potential reversals
- Multi-Timeframe Analysis: Higher timeframe OBs provide stronger support/resistance
- Zone Trading: Trade bounces from or breaks through validated zones
💡 Usage Tips
1. Prioritize Validated Zones: Focus on lime/fuchsia boxes as they have swing confirmation
2. Timeframe Hierarchy: HTF2 (240m) > HTF1 (60m) > Current TF for zone strength
3. Combine with Price Action: Use zones alongside candlestick patterns and volume
4. Risk Management: Place stops beyond opposite side of order block
⚠️ Limitations
- Not a standalone trading system - combine with other analysis
- May repaint on current bar until close
- Higher timeframes require sufficient historical data
- Swing detection sensitivity depends on length parameter
---
Note: This tool is for educational purposes. Always practice proper risk management and backtest strategies before live trading.
Asian and London Session High-Low (Auto UK DST) + PDH/PDLThis indicator automatically plots Asian session (7:00am–2:00pm MYT) and London session high/low using Malaysian time, with London adjusting automatically for UK Daylight Saving Time (4:00pm–9:00pm MYT in winter, 3:00pm–8:00pm MYT during DST).
It also shows Previous Day High/Low (PDH/PDL) and a 7:00am MYT daily reset line, while No-Trade zones are available but turned OFF by default and can be enabled when needed.
HaP RSIComprehensive Guide to HaP RSI Indicator
Introduction
The HaP RSI indicator is a custom technical analysis tool designed to replicate the logic and structure of the HaP MACD indicator but applied to the Relative Strength Index (RSI). This indicator combines traditional RSI concepts with advanced smoothing techniques, dynamic signal generation, and visual cues to help traders identify potential entry and exit points, trend strength, and momentum shifts.
This document provides an exhaustive explanation of the indicator's logic, its components, and practical strategies for trading with it.
Logic and Structure of HaP RSI
The HaP RSI indicator is built on the foundation of the RSI oscillator, which measures the speed and change of price movements to identify overbought and oversold conditions. The indicator enhances RSI by incorporating the following elements:
RSI Calculation: Uses a customizable length (default 10) and allows selection of smoothing type (EMA or SMA) for flexibility.
Signal Line: A moving average of the RSI (default length 9) that acts as a reference for crossovers and trend confirmation.
DEMA Logic: Double Exponential Moving Average applied to RSI and its signal line to generate dynamic dot signals for entries and exits.
Visual Elements: Midline at 50, Overbought/Oversold levels at 70 and 30, color-coded dots (Blue, Green, Orange, Red) for intuitive interpretation.
Conditions and Signal Generation
The indicator uses a sophisticated set of conditions to determine market states and generate actionable signals:
Buy Condition: Triggered when the DEMA of RSI is above the DEMA of its signal line AND the DEMA signal line is rising. This indicates strengthening bullish momentum.
First Signal Dot: Appears as a Blue dot when the buy condition becomes true for the first time after being false. This marks the start of a potential bullish phase.
Ongoing Signal Dot: Appears as Green if RSI is rising or Orange if RSI is falling while the buy condition remains true. This provides real-time feedback on momentum strength.
Exit Dot: Appears as Red when the buy condition turns false after being true, signaling a potential end to the bullish phase.
Crossovers: RSI crossing above its signal line (bullish) or below (bearish) are calculated but hidden by default, offering additional confirmation if enabled.
Trading Strategies Using HaP RSI
The HaP RSI indicator can be used in multiple ways to enhance trading decisions. Below are detailed strategies and best practices:
1. Entry Strategies
Enter long positions when a Blue dot appears, confirming the start of bullish momentum. Ideally, combine this with RSI above the midline (50) and price action breaking resistance.
Add to positions or scale in when Green dots appear, indicating continued bullish strength.
2. Exit Strategies
Exit or tighten stops when a Red dot appears, signaling weakening momentum.
Consider partial exits on Orange dots if momentum slows but the trend remains intact.
3. Trend Confirmation
Use the midline (50) as a regime filter: RSI above 50 generally favors long trades, while below 50 favors shorts.
Overbought/Oversold levels (70/30) can help identify exhaustion points for reversals or caution zones.
4. Risk Management
Always combine HaP RSI signals with stop-loss placement based on recent swing lows/highs.
Avoid chasing signals in low-volatility environments; confirm with volume or higher timeframe trend.
Advanced Usage and Best Practices
Combine HaP RSI with other indicators like moving averages or price action patterns for confluence.
Use alerts for Blue and Red dots to automate monitoring and reduce missed opportunities.
Backtest the indicator on multiple timeframes (H1 recommended) to optimize settings for your trading style.
Summary
HaP RSI is a powerful tool that blends RSI's simplicity with advanced signal logic, making it suitable for trend-following, momentum trading, and swing strategies. Its visual clarity and dynamic alerts allow traders to act decisively while managing risk effectively.






















