EMA Indicators with BUY sell SignalCombine 3 EMA indicators into 1. Buy and Sell signal is based on
- Buy signal based on 20 Days Highest High resistance
- Sell signal based on 10 Days Lowest Low support
Input :-
1 - Short EMA (20), Mid EMA (50) and Long EMA (200)
2 - Resistance (20) = 20 Days Highest High line
3 - Support (10) = 10 Days Lowest Low line
在脚本中搜索"大位科技同行业可替代股票的技术面分析数据(如5日均线、10日均线、支撑位、压力位)"
Volume Range EventsChanges in the feelings (positive, negative, neutral) in the market concerning the valuation of an instrument are often preceded with sudden outbursts of buying and selling frenzies. The aim of this indicator is to report such outbursts. We can see them as expansions of volume, sometimes 10 times more than usual. and as extensions of the trading range, also sometimes 10 times more than usual (e.g. usual range is 10 cent suddenly a whole dollar.) The changes are calculated in such a way that these fit between plus and minus 100 percent, the bars are scaled in some sort of logarithmic way. The Emoline is the same as the one in the True Balance of Power indicator, which I already published
ONLY RISES ARE EVENTS
Sometimes analysts are tempted to give meaning to low volume or small ranges. These simply mean that the market has little interest in trading this instrument. I believe that in such cases the trader needs to wait for expansion and extension events to happen, then he can make a better guess of where the market is heading. As events often mark the beginning or ending of a trend, this indicator provides an early and clear signal, because it doesn’t bother us about non-events.
WHAT IS USUAL?
If the algorithm would use an average as a normal to scale volume or range events, then previous peaks will act as spoilers by making the average so high that a following peak is scaled too small. I developed a function, usual() , that kicks out all extremes of a ‘population of values’ and which returns the average of the non-extreme values. It can be called with any serial. This function is called by both algorithms that report volume and range peaks, which guarantees that the results are really comparable. As this function has a fixed look back of 8 periods, we might state that ‘usual’ is a short lived relative value. I think this doesn’t matter for the practical use of the indicator.
COLORING AND INTERPRETATION
I follow the categories in the ‘Better Volume Indicator’, published by LeazyBear, these are:
1. Climactic Volumes, event >40 % (this means peak is 1.5 X usual)
LIME: Climax Buying Volume, direction up, range event also > 30 %
RED: Climax Selling Volume, direction down, range event also > 30 %
AQUA: Climax Churning Volume, both directions, range event < 30%
2. Smaller Volumes, event <40 %
GREEN: Supportive Volume, both directions, if combined with range event
BLUE: Churning Volume, both directions, if not combined with range event (Professional Trading)
3. Just Range Events
BLACK histogram bars (Amateurish Trading)
Forex Master v4.0 (EUR/USD Mean-Reversion Algorithm)DESCRIPTION
Forex Master v4.0 is a mean-reversion algorithm currently optimized for trading the EUR/USD pair on the 5M chart interval. All indicator inputs use the period's closing price and all trades are executed at the open of the period following the period where the trade signal was generated.
There are 3 main components that make up Forex Master v4.0:
I. Trend Filter
The algorithm uses a version of the ADX indicator as a trend filter to trade only in certain time periods where price is more likely to be range-bound (i.e., mean-reverting). This indicator is composed of a Fast ADX and a Slow ADX, both using the same look-back period of 50. However, the Fast ADX is smoothed with a 6-period EMA and the Slow ADX is smoothed with a 12-period EMA. When the Fast ADX is above the Slow ADX, the algorithm does not trade because this indicates that price is likelier to trend, which is bad for a mean-reversion system. Conversely, when the Fast ADX is below the Slow ADX, price is likelier to be ranging so this is the only time when the algorithm is allowed to trade.
II. Bollinger Bands
When allowed to trade by the Trend Filter, the algorithm uses the Bollinger Bands indicator to enter long and short positions. The Bolliger Bands indicator has a look-back period of 20 and a standard deviation of 1.5 for both upper and lower bands. When price crosses over the lower band, a Long Signal is generated and a long position is entered. When price crosses under the upper band, a Short Signal is generated and a short position is entered.
III. Money Management
Rule 1 - Each trade will use a limit order for a fixed quantity of 50,000 contracts (0.50 lot). The only exception is Rule
Rule 2 - Order pyramiding is enabled and up to 10 consecutive orders of the same signal can be executed (for example: 14 consecutive Long Signals are generated over 8 hours and the algorithm sends in 10 different buy orders at various prices for a total of 350,000 contracts).
Rule 3 - Every order will include a bracket with both TP and SL set at 50 pips (note: the algorithm only closes the current open position and does not enter the opposite trade once a TP or SL has been hit).
Rule 4 - When a new opposite trade signal is generated, the algorithm sends in a larger order to close the current open position as well as open a new one (for example: 14 consecutive Long Signals are generated over 8 hours and the algorithm sends in 10 different buy orders at various prices for a total of 350,000 contracts. A Short Signal is generated shortly after the 14th Long Signal. The algorithm then sends in a sell order for 400,000 contracts to close the 350,000 contracts long position and open a new short position of 50,000 contracts).
My5min1. Follow the instructions for entry and exit exactly as above. Don’t second guess, or assume/presume anything.
2. Avoid entering the trade when the price is temporarily above /below 10 day MA, but the price candle hasn’t fully formed yet. Enter the trade only after the price candle closes above/below the 10 day MA.
3. Exit the trade immediately when the price candle closes above/below 10 day MA in the direction opposite to the trade. Don’t remain in the trade wishing it to turn in your favor.
4. Never ever trade in the opposite direction of the market. i.e. don’t buy when the price is below 200 day MA and sell when the price is above 200 day MA.
5. Take profits when limit is reached. Don’t be greedy and keep on increasing the target. Remember- A bird in hand is worth two in the bush.
MACD, backtest 2015+ only, cut in half and doubledThis is only a slight modification to the existing "MACD Strategy" strategy plugin!
found the default MACD strategy to be lacking, although impressive for its simplicity. I added "year>2014" to the IF buy/sell conditions so it will only backtest from 2015 and beyond ** .
I also had a problem with the standard MACD trading late, per se. To that end I modified the inputs for fast/slow/signal to double. Example: my defaults are 10, 21, 10 so I put 20, 42, 20 in. This has the effect of making a 30min interval the same as 1 hour at 10,21,10. So if you want to backtest at 4hr, you would set your time interval to 2hr on the main chart. This is a handy way to make shorter time periods more useful even regardless of strategy/testing, since you can view 15min with alot less noise but a better response.
Used on BTCCNY OKcoin, with the chart set at 45 min (so really 90min in the strategy) this gave me a percent profitable of 42% and a profit factor of 1.998 on 189 trades.
Personally, I like to set the length/signals to 30,63,30. Meaning you need to triple the time, it allows for much better use of shorter time periods and the backtests are remarkably profitable. (i.e. 15min chart view = 45min on script, 30min= 1.5hr on script)
** If you want more specific time periods you need to try plugging in different bar values: replace "year" with "n" and "2014" with "5500". The bars are based on unix time I believe so you will need to play around with the number for n, with n being the numbers of bars.
Advanced Multi-Level S/R ZonesAdvanced Multi-Level S/R Zones: The Comprehensive Guide
1. Introduction: The Evolution of Support & Resistance:
Support and Resistance (S/R) is the backbone of technical analysis. However, traditional methods of drawing these levels are often plagued by subjectivity. Two traders looking at the same chart will often draw two different lines. Furthermore, standard indicators often treat every price point equally, ignoring the critical context of Volume and Time.
The Advanced Multi-Level S/R Zones script represents a paradigm shift. It moves away from subjective line drawing and toward Quantitative Zoning. By utilizing statistical measures of variability (Standard Deviation, MAD, IQR) combined with Volume-Weighting and Time-Decay algorithms, this tool identifies where price is mathematically most likely to react. It treats S/R not as thin lines, but as dynamic zones of probability.
2. Core Logic and Mathematical Foundation:
To understand how to use this tool optimally, one must understand the "engine" under the hood. The script operates on four distinct pillars of logic:
A. Session-Based Data Collection:
The script does not look at every single tick. Instead, it aggregates data into "Sessions" (daily bars by default logic). It extracts the High, Low, and Total Volume for every session within the user-defined lookback period. This filters out intraday noise and focuses on the macro structure of the market.
B. Adaptive Statistical Variability:
Most Bollinger Band-style indicators use Standard Deviation (StdDev) to measure width. However, StdDev is heavily influenced by outliers (extreme wicks). This script offers a sophisticated Adaptive Method-Skewness Detection: The script calculates the skewness of the price distribution. Adaptive Selection: If the data is highly skewed (lots of outliers, typical in Crypto), it switches to MAD (Median Absolute Deviation). MAD is robust and ignores outliers. If the data is moderately skewed, it uses IQR (Interquartile Range). If the data is normal (Gaussian), it uses StdDev.
Benefit: This ensures the zone widths are accurate regardless of whether you are trading a stable Forex pair or a volatile Altcoin.
C. The Weighting Engine (Volume + Time)
Not all price history is equal. This script assigns a "Weight Score" to every session based on two factors:
Volume Weighting: Sessions with massive volume (institutional activity) are given higher importance. A high formed on low volume is less significant than a high formed on peak volume.
Time Decay: Recent price action is more relevant than price action from 50 bars ago. The script applies a decay factor (default 0.85). This means a session from yesterday has 100% impact, while a session from 10 days ago has significantly less influence on the zone calculation.
D. Clustering Algorithm
Once the data is weighted, the script runs a clustering algorithm. It looks for price levels where multiple session Highs (for Resistance) or Lows (for Support) congregate.
It requires a minimum number of points to form a zone (User Input: minPoints).
It merges nearby levels based on the Cluster Separation Factor.
This results in "Primary," "Secondary," and "Tertiary" zones based on the strength and quantity of data points in that cluster.
3. Detailed Features and Inputs Breakdown:
Group 1: Main Settings
Lookback Sessions (Default: 10): Defines how far back the script looks for pivots. A higher number (e.g., 50) creates long-term structural zones. A lower number (e.g., 5) creates short-term scalping zones.
Variability Method (Adaptive): As described above, leave this on "Adaptive" for the best results across different assets.
Zone Width Multiplier (Default: 0.75): Controls the vertical thickness of the zones. Increase this to 1.0 or 1.5 for highly volatile assets to ensure you catch the wicks.
Minimum Points per Zone: The strictness filter. If set to 3, a price level must be hit 3 times within the lookback to generate a zone. Higher numbers = fewer, but stronger zones.
Group 2: Weighting
Volume-Weighted Zones: Crucial for identifying "Smart Money" levels. Keep this TRUE.
Time Decay: Ensures the zones update dynamically. If price moves away from a level for a long time, the zone will fade in significance.
ATR-Normalized Zone Width: This is a dynamic volatility filter. If TRUE, the zone width expands and contracts based on the Average True Range. This is vital for maintaining accuracy during market breakouts or crashes.
Group 3: Zone Strength & Scoring
The script calculates a "Score" (0-100%) for every zone based on:
-Point Count: More hits = higher score.
-Touches: How many times price wicked into the zone recently.
-Intact Status: Has the zone been broken?
-Weight: Volume/Time weight of the constituent points.
-Track Zone Touches: Looks back n bars to see how often price respected this level.
-Touch Threshold: The sensitivity for counting a "touch."
Group 4: Visuals & Display
Extend Bars: How far to the right the boxes are drawn.
Show Labels: Displays the Score, Tier (Primary/Secondary), and Status (Retesting).
Detect Pivot Zones (Overlap): This is a killer feature. It detects where a Support Zone overlaps with a Resistance Zone.
Significance: These are "Flip Zones" (Old Resistance becomes New Support). They are colored differently (Orange by default) and represent high-probability entry areas.
Group 5: Signals & Alerts
Entry Signals: Plots Buy/Sell labels when price rejects a zone.
Detect Break & Retest: specifically looks for the "Break -> Pullback -> Bounce" pattern, labeled as "RETEST BUY/SELL".
Proximity Alert: Triggers when price gets within x% of a zone.
4. Understanding the Visuals (Interpreting the Chart)
When you load the script, you will see several visual elements. Here is how to read them:
The Boxes (Zones)
Red Shades: Resistance Zones.
Dark Red (Solid Border): Primary Resistance. The strongest wall.
Lighter Red (Dashed Border): Secondary/Tertiary. Weaker, but still relevant.
Green Shades: Support Zones.
Dark Green (Solid Border): Primary Support. The strongest floor.
Orange Boxes: Pivot Zones. These are areas where price has historically reacted as both support and resistance. These are the "Line in the Sand" for trend direction.
The Labels & Emojis
The script assigns emojis to zone strength:
🔥 (Fire): Score > 80%. A massive level. Expect a strong reaction.
⭐ (Star): Score > 60%. A solid structural level.
✓ (Check): Score > 40%. A standard level.
"⟳ RETESTING": Appears when a zone was broken, and price is currently pulling back to test it from the other side.
The Dashboard (Top Right)
A statistics table provides a "Head-Up Display" for the asset:
High/Low σ (Sigma): The variability of the highs and lows. If High σ is much larger than Low σ, it implies the tops are erratic (wicks) while bottoms are clean (flat).
Method: Shows which statistical method the Adaptive engine selected (e.g., "MAD (auto)").
ATR: Current volatility value used for normalization.
5. Strategies for Optimum Output
To get the most out of this script, you should not just blindly follow the lines. Use these specific strategies:
Strategy A: The "Zone Fade" (Range Trading)
This works best in sideways markets.
Identify a Primary Support (Green) and Primary Resistance (Red).
Wait for price to enter the zone.
Look for the "SUPPORT BOUNCE" or "RESISTANCE REJECTION" signal label.
Entry: Enter against the zone (Buy at support, Sell at resistance).
Stop Loss: Place just outside the zone width. Because the zones are calculated using volatility stats, a break of the zone usually means the trade is invalid.
Strategy B: The "Pivot Flip" (Trend Following)
This is the highest probability setup in trending markets.
Look for an Orange Pivot Zone.
Wait for price to break through a Resistance Zone cleanly.
Wait for the price to return to that zone (which may now turn Orange or act as Support).
Look for the "RETEST BUY" label.
Logic: Old resistance becoming new support is a classic sign of trend continuation. The script automates the detection of this exact geometric phenomenon.
Strategy C: The Volatility Squeeze
Look at the Dashboard. Compare High σ and Low σ.
If the values are dropping rapidly or becoming very small, the zones will contract (become narrow).
Narrow zones indicate a "Squeeze" or compression in price.
Prepare for a violent breakout. Do not fade (trade against) narrow zones; look to trade the breakout.
6. Optimization & Customization Guide
Different markets require different settings. Here is how to tune the script:
For Crypto & Volatile Stocks (Tesla, Nvidia)
Method: Set to Adaptive (Mandatory, as these assets have "Fat Tails").
Multiplier: Increase to 1.0 - 1.25. Crypto wicks are deep; you need wider zones to avoid getting stopped out prematurely.
Lookback: 20-30 sessions. Crypto has a long memory; short lookbacks generate too much noise.
For Forex (EURUSD, GBPJPY)
Method: You can force StdDev or IQR. Forex is more mean-reverting and Gaussian.
Multiplier: Decrease to 0.5 - 0.75. Forex levels are often very precise to the pip.
Volume Weighting: You may turn this OFF for Forex if your broker's volume data is unreliable (since Forex has no centralized volume), though tick volume often works fine.
For Scalping (1m - 15m Timeframes)
Lookback: Decrease to 5-10. You only care about the immediate session history.
Decay Factor: Decrease to 0.5. You want the script to forget about yesterday's price action very quickly.
Touch Lookback: Decrease to 20 bars.
For Swing Trading (4H - Daily Timeframes)
Lookback: Increase to 50.
Decay Factor: Increase to 0.95. Structural levels from weeks ago are still highly relevant.
Min Points: Increase to 3 or 4. Only show levels that have been tested multiple times.
7. Advantages Over Standard Tools:
Feature Standard S/R Indicator, Advanced Multi-Level S/R Calculation, Uses simple Pivots or Fractals, Uses Statistical Distributions (MAD/IQR). Zone Width Arbitrary or Fixed Adaptive based on Volatility & ATR.
Context Ignores Volume Volume Weighted (Smart Money tracking).
Time Relevance Old levels = New levels Time Decay (Recency bias applied).
Overlaps Usually ignores overlaps Detects Pivot Zones (Res/Sup Flip).
Scoring None 0-100% Strength Score per zone.
8. Conclusion:
The Advanced Multi-Level S/R Zones script is not just a drawing tool; it is a statistical analysis engine. By accounting for the skewness of data, the volume behind the moves, and the decay of time, it provides a strictly objective roadmap of the market structure.
For the optimum output, combine the Pivot Zone identification with the Retest Signals. This aligns you with the underlying flow of order blocks and prevents trading against the statistical probabilities of the market.
Impulsive Trend Detector [dtAlgo]This advanced Pine Script indicator identifies and tracks impulsive price movements based on Break of Structure (BOS) and Change of Character (CHoCH) concepts from Smart Money trading methodology.
The indicator automatically detects pivot highs and lows, then monitors when price breaks these key levels to signal potential impulsive moves. BOS indicates continuation in the current trend direction, while CHoCH signals potential trend reversals. Each detected move is measured from the break point to the next opposing pivot, providing accurate percentage calculations that match TradingView's measuring tool.
Impulsive moves are categorized into four levels based on magnitude (Level 1: 5-10%, Level 2: 10-15%, Level 3: 15-20%, Level 4: 20%+), with color-coded visual labels and connecting lines displayed directly on the chart.
Comprehensive Session Analysis:
Track moves across 11 distinct trading sessions in Eastern Time: Pre-London/NY, London/NY overlap, NY (with Power Hour and End subdivisions), Sydney, Asia, Sake Time, Asia/London overlap, London, Weekend, and No Session periods.
Three Dynamic Tables provide:
Real-time statistics (bullish/bearish, BOS/CHoCH, levels)
Session breakdown with move counts and average percentages
Event log showing last 10 moves with date, day, session, direction, type, level, percentage, duration, and bar count
Perfect for Smart Money traders seeking data-driven insights into market structure behavior across global trading sessions.
CCI Standard DeviationCCI Standard Deviation – Asymmetric Volatility-Adjusted Trend Filter (CCI SD)
The Commodity Channel Index (CCI), created by Donald Lambert in 1980, measures how far the typical price deviates from its statistical average to identify cyclical momentum and trend strength.
The standard formula is:
CCI = (Typical Price − SMA(Typical Price, n)) / (0.015 × Mean Deviation)
where Typical Price = (High + Low + Close)/3.
CCI is unbounded and centered around zero: sustained readings above zero indicate bullish momentum, below zero bearish. Classic interpretations often use zero-line crosses or fixed levels (±100, ±200, ±250), but these can be unreliable when CCI volatility changes across market regimes.
This indicator was developed to create a more disciplined trend-following tool that aligns with my core risk principle: “always protect to the downside.”
Starting from the standard CCI zero-line concept for trend direction, I experimented with standard deviation bands to make the oscillator volatility-adjusted. I then applied deliberate asymmetry: requiring the lower 1σ envelope (CCI − stdev) to cross above a positive threshold for bullish confirmation (high-probability entry only in robust trends), while exiting immediately on any raw CCI weakness below a negative threshold (quick downside protection). User inputs for both thresholds were added to allow fine-tuning and adaptability across different assets and timeframes.
An optional DEMA-smoothed version of the lower envelope provides additional clarity when desired.
Extreme zones
raw CCI ±240 and lower envelope > 200 or < –200 - are highlighted with background shading to flag rare acceleration or capitulation phases.
How it works
Standard CCI calculated on typical price (default length 38).
Rolling standard deviation of the CCI itself (default length 13) measures the oscillator’s recent volatility.
Lower envelope = CCI − stdev (dn).
Optional DEMA smoothing (default length 12) can be toggled.
Trend logic:
Bullish regime only when lower envelope
→ Long Threshold (default +10)
→ statistical proof of strength
Bearish/neutral immediately when raw CCI
→ Short Threshold (default –25)
→ fast downside protection
Origin and development
The indicator emerged from wanting a cleaner, more reliable CCI for trend direction. After testing volatility-adjusted versions, the asymmetric design proved superior:
it enters only high-conviction uptrends and exits rapidly on weakness, significantly reducing whipsaws while preserving trend capture.
Parameters were optimized through extensive backtests on major assets (BTC, ETH, SOL and many more Cryptos; Magnificent 7 stocks, QQQ, SPX, gold).
The defaults were selected for the best average Sortino ratio and lowest maximum drawdown across this broad universe, ensuring robustness and avoiding single-asset overfitting.
How to use it
Green triangle below bar
→ lower envelope crosses above Long Threshold
→ high-conviction bullish trend confirmed
→ enter or add to longs
Magenta triangle above bar
→ CCI crosses below Short Threshold
→ exit longs or go cash/short
While lower envelope remains above Long Threshold
→ hold bullish positions
Extreme background shading (dn >200 or CCI ±240)
→ rare high-attention zones (potential acceleration or exhaustion)
Recommended defaults
CCI length: 38
SD length: 13
Long threshold: +10
Short threshold: –25
Optional MA length: 12 (DEMA of lower envelope)
All visual elements (bar coloring, signals, background, smoothed line) are toggleable for personal preference.
This indicator is designed as a trend-strength and risk-management filter and is not intended as a standalone trading system.
Disclaimer:
This is not financial advice. Backtests are based on past results and are not indicative of future performance.
Long-term KST (Know Sure Thing)Description
Long-term Know Sure Thing (KST) oscillator, specifically adapted for non-24h markets such as stocks, indices, ETFs and futures.
This version correctly scales the weekly ROC periods based on the actual trading week length and daily session duration of the instrument — making it accurate across different asset classes (European indices, US equities, crypto, etc.).
Key features:
• Fully customizable trading week (5 days for most stock markets, 7 days for crypto/24h markets)
• Customizable daily session length (8.5h for FTSE MIB/DAX, 6.5h for US equities, 24h for crypto/forex)
• Automatically adjusts bar count per week on any chart timeframe (including Weekly)
• Classic Martin Pring KST parameters (10/13/15/20 ROC weeks, 10/13/15/20 SMA weeks, 1-2-3-4 weighting)
• Includes signal line (SMA of KST) and visual fill between KST and signal (green/red)
What is the Long-term KST used for?
The KST (Know Sure Thing) is a momentum oscillator created by Martin Pring to detect major trend changes, confirm the primary trend direction, and identify significant reversals in medium- to long-term cycles (weeks to months).
Main practical uses:
• Major trend reversals: KST crossing above/below signal line
• Primary trend confirmation: KST above/below zero line
• Classic divergences: Price vs KST divergences often precede important tops/bottoms
• Cycle identification: Helps spot the end of multi-month corrections or the start of new bull/bear phases
• Trend-following filter: Stay long when KST > 0 and rising, stay short when KST < 0 and falling
It is especially powerful on major indices (FTSE MIB, DAX, SPX, NDX, RUT, CAC40, Nikkei…) because it captures institutional money flow with fewer, higher-quality signals compared to faster oscillators.
Best used on:
• Daily, 4H, Weekly charts
• European indices (FTSE MIB, DAX, IBEX…)
• US indices/ETFs (SPX, NDX, RUT…)
• Crypto pairs (set week_length=7, session_duration=24h)
Enjoy trading the big-picture momentum!
RSI Swing + VWAP + EMA + Camarilla + PDH/PDL+CPRThis script provide the follwing -
1. Daily CPR level
2. Camarilla S3/R3
3. Previous Day High/Low (PDH/PDL)
4. Dynamic VWAP
5. Dynamic EMA 20/200
6. Dynamic RSi Swing
Dec 10
Release Notes
This script provide the follwing -
1. Daily CPR level
2. Camarilla S3/R3
3. Previous Day High/Low (PDH/PDL)
4. Dynamic VWAP
5. Dynamic EMA 20/200/36
6. Dynamic RSi Swing
Which is better: 36 EMA or 36 SMA for Support/Resistance?
✔ 36 EMA (Exponential Moving Average)
Better for intraday, short-term trading, scalping, and momentum trading.
Why?
Reacts faster to price.
Captures trend shifts early.
Works great when market is trending or volatile.
Most traders use EMA for dynamic support/resistance → works better because of crowd behavior.
Ideal for:
NIFTY, BANKNIFTY, FINNIFTY intraday | Options entries | Trend continuation trades.
Why 20 EMA is Important
The 20 EMA is one of the most widely used moving averages for intraday, swing, and positional trading because it captures short-term trend strength and momentum.
📌 20 EMA Works Best For
✔ Intraday trend identification
✔ Momentum continuation entries
✔ Dynamic support/resistance
✔ Quick reversal detection
✔ Options trading (NIFTY/BNF)
✔ Breakout & pullback trades
EMA 200 – Why It’s Extremely Important
The 200 EMA represents the long-term trend and is respected by:
Institutions
Algo systems
Big traders
Swing traders
Index traders
It acts like a major wall of support or resistance.
💡 What EMA 200 Tells You
✔ Long-term trend direction
Price above 200 EMA → Long-term uptrend
Price below 200 EMA → Long-term downtrend
✔ Strong trend reversal signals
When price crosses the 200 EMA on 15m/1h/1D charts → a deeper trend change is possible.
✔ Institutional support/resistance
Very powerful bounce/rejection zones
Many markets reverse exactly at 200 EMA
What is Previous Day High (PDH)?
The highest price the market reached in the previous trading session.
Why PDH is Important?
Acts as strong resistance
Breakout level for uptrend
Sellers often defend this zone
If broken with volume → strong bullish momentum
🔴 What is Previous Day Low (PDL)?
The lowest price the market reached in the previous trading session.
Why PDL is Important?
Acts as strong support
Breakdown level for downtrend
Buyers defend this level
If broken with volume → strong bearish trend
📌 How PDH/PDL Help in Intraday Trading
1️⃣ Range Breakout Trades
If price breaks PDH → bullish breakout (Buy CE)
If price breaks PDL → bearish breakdown (Buy PE)
What is Camarilla R3?
R3 = Resistance Level 3 in the Camarilla Pivot system.
Why R3 is important?
Acts as a major intraday resistance
Price often reverses from R3
If broken with force → strong uptrend starts
Many traders use R3 as a decision zone
Typical Market Behavior at R3
Rejection from R3 → Sell/PE opportunity
Break + Retest above R3 → CE opportunity
🔴 What is Camarilla S3?
S3 = Support Level 3 in the Camarilla Pivot system.
Why S3 is important?
Acts as a major intraday support
Buyers defend this zone
Breakdown of S3 → strong fall
S3 is often a bounce zone in the morning
Typical Market Behavior at S3
Bounce from S3 → Buy/CE opportunity
Break + Retest below S3 → PE opportunity
📌 Trader Logic: R3 & S3 Zones
⭐ 1. Range Reversal Strategy (Most Popular)
At R3 → Sell/PE
At S3 → Buy/CE
What is VWAP?
VWAP = Volume Weighted Average Price
It shows the average price at which most trading has happened during the day, based on both price and volume.
It resets every day at market open.
🔥 Why VWAP Is So Powerful?
VWAP is used by:
Institutions
Algo traders
Scalpers
Intraday traders
Dec 10
Release Notes
This script provide the follwing -
1. Daily CPR level
2. Camarilla S3/R3
3. Previous Day High/Low (PDH/PDL)
4. Dynamic VWAP
5. Dynamic EMA 20/200
6. Dynamic RSi Swing
3 hours ago
Release Notes
This script provide the follwing -
1. Daily CPR level
2. Camarilla S3/R3
3. Previous Day High/Low (PDH/PDL)
4. Dynamic VWAP
5. Dynamic EMA 20/200/36
6. Dynamic RSi Swing
Which is better: 36 EMA or 36 SMA for Support/Resistance?
✔ 36 EMA (Exponential Moving Average)
Better for intraday, short-term trading, scalping, and momentum trading.
Why?
Reacts faster to price.
Captures trend shifts early.
Works great when market is trending or volatile.
Most traders use EMA for dynamic support/resistance → works better because of crowd behavior.
Ideal for:
NIFTY, BANKNIFTY, FINNIFTY intraday | Options entries | Trend continuation trades.
Why 20 EMA is Important
The 20 EMA is one of the most widely used moving averages for intraday, swing, and positional trading because it captures short-term trend strength and momentum.
📌 20 EMA Works Best For
✔ Intraday trend identification
✔ Momentum continuation entries
✔ Dynamic support/resistance
✔ Quick reversal detection
✔ Options trading (NIFTY/BNF)
✔ Breakout & pullback trades
EMA 200 – Why It’s Extremely Important
The 200 EMA represents the long-term trend and is respected by:
Institutions
Algo systems
Big traders
Swing traders
Index traders
It acts like a major wall of support or resistance.
💡 What EMA 200 Tells You
✔ Long-term trend direction
Price above 200 EMA → Long-term uptrend
Price below 200 EMA → Long-term downtrend
✔ Strong trend reversal signals
When price crosses the 200 EMA on 15m/1h/1D charts → a deeper trend change is possible.
✔ Institutional support/resistance
Very powerful bounce/rejection zones
Many markets reverse exactly at 200 EMA
What is Previous Day High (PDH)?
The highest price the market reached in the previous trading session.
Why PDH is Important?
Acts as strong resistance
Breakout level for uptrend
Sellers often defend this zone
If broken with volume → strong bullish momentum
🔴 What is Previous Day Low (PDL)?
The lowest price the market reached in the previous trading session.
Why PDL is Important?
Acts as strong support
Breakdown level for downtrend
Buyers defend this level
If broken with volume → strong bearish trend
📌 How PDH/PDL Help in Intraday Trading
1️⃣ Range Breakout Trades
If price breaks PDH → bullish breakout (Buy CE)
If price breaks PDL → bearish breakdown (Buy PE)
What is Camarilla R3?
R3 = Resistance Level 3 in the Camarilla Pivot system.
Why R3 is important?
Acts as a major intraday resistance
Price often reverses from R3
If broken with force → strong uptrend starts
Many traders use R3 as a decision zone
Typical Market Behavior at R3
Rejection from R3 → Sell/PE opportunity
Break + Retest above R3 → CE opportunity
🔴 What is Camarilla S3?
S3 = Support Level 3 in the Camarilla Pivot system.
Why S3 is important?
Acts as a major intraday support
Buyers defend this zone
Breakdown of S3 → strong fall
S3 is often a bounce zone in the morning
Typical Market Behavior at S3
Bounce from S3 → Buy/CE opportunity
Break + Retest below S3 → PE opportunity
📌 Trader Logic: R3 & S3 Zones
⭐ 1. Range Reversal Strategy (Most Popular)
At R3 → Sell/PE
At S3 → Buy/CE
What is VWAP?
VWAP = Volume Weighted Average Price
It shows the average price at which most trading has happened during the day, based on both price and volume.
It resets every day at market open.
🔥 Why VWAP Is So Powerful?
VWAP is used by:
Institutions
Algo traders
Scalpers
Intraday traders
Order Blocks & ImbalanceThis indicator automatically identifies and plots Order Blocks (also known as Fair Value Gaps or Imbalances) based on Smart Money Concepts (SMC) and ICT methodology. It detects significant price inefficiencies (gaps between candles) that often act as institutional supply or demand zones.
How It Works (Technical Methodology)
1. Fair Value Gap (FVG) Detection
The indicator identifies classic 3-candle imbalances:
- Bullish Order Block (Demand): When the low of the current candle is significantly below the high of the candle two bars ago (low - high ).
- Bearish Order Block (Supply): When the high of the current candle is significantly above the low of the candle two bars ago (low - high ).
A minimum size threshold is enforced using ATR(14) × user-defined multiplier (default 0.5) to filter out minor gaps and focus on meaningful inefficiencies.
2. Zone Creation
- Bullish zones are created at the candle two bars ago (the "origin" candle where inefficiency occurred).
- Bearish zones use the same origin candle.
- Zone boundaries:
Top = high of origin candle
Bottom = low of origin candle
This captures the full range where price moved aggressively, leaving an imbalance that institutions may later revisit.
3. Mitigation Detection
Zones can be mitigated in two ways (user-selectable):
- "Close": Zone is considered touched only if the close price enters the zone.
- "Wick": Zone is touched if any wick (high/low) enters the zone (more sensitive).
When mitigated:
- Background becomes more transparent
- Border turns dotted
- Label changes to "Mitigated"
Broken zones (price fully closes beyond the opposite side) are automatically deleted.
4. Zone Lifecycle Management
- Active Zone: Strong color fill (green for demand, red for supply) with solid border.
- Mitigated Zone: Faded color, dotted border – indicates partial fill or reduced strength.
- Broken Zone: Automatically removed from chart to reduce clutter.
Old zones are also pruned when exceeding 450 total to maintain performance.
5. Smart Visibility Engine (Optional)
When enabled:
- All zones are initially hidden.
- Only the closest relevant zones are shown:
- Up to user-defined limit (default 10) highest bullish zones (closest below price)
- Up to user-defined limit (default 10) lowest bearish zones (closest above price)
- Visible zones are automatically extended to the right and styled appropriately.
This keeps the chart clean while highlighting the most actionable zones near current price.
6. Visual Elements
- Demand Zones: Green fill, labeled "OB Demand"
- Supply Zones: Red fill, labeled "OB Supply"
- Tiny text size to minimize chart clutter
- Zones drawn as boxes using bar_index positioning
How to Use
Order Blocks represent areas of price inefficiency where smart money likely entered/exited positions aggressively.
- Demand Zones (Green): Potential long entry areas when price returns. Expect buying pressure to defend these levels. Best setups when price retests an active (non-mitigated) zone.
- Supply Zones (Red): Potential short entry areas when price returns. Expect selling pressure to emerge.
- Mitigated Zones: Lower probability – may act as weaker support/resistance.
- Smart Visibility: Highly recommended for cleaner charts. Focuses attention on zones most likely to be tested soon.
- Combine with:
- Break of Structure (BOS)/Change of Character (CHOCH)
- Liquidity grabs
- Higher timeframe confluence
- Volume or momentum confirmation
Use higher FVG threshold (e.g., 0.8–1.0) for fewer, higher-quality zones. Lower threshold for more aggressive detection.
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
Gann Octave 8 Ver.2.0Gann Octave 8 Ver.2.0 - Complete Trading Guide
Overview
This indicator combines W.D. Gann's time-tested principles of market geometry with modern technical analysis. It identifies key market structures and projects precise support/resistance levels along with angular momentum lines to help traders identify high-probability trading opportunities.
________________________________________
Core Concepts
1. Gann's Octave Division (The Rule of 8)
W.D. Gann discovered that markets move in harmonic divisions based on the number 8. This indicator divides any swing movement into 8 equal parts (octaves):
• 0% - Swing extreme (High for bearish, Low for bullish)
• 12.5% - First octave
• 25% - Quarter level
• 37.5% - Three-eighths level
• 50% - Midpoint (most critical level)
• 62.5% - Five-eighths level
• 75% - Three-quarter level
• 87.5% - Seventh octave
• 100% - Swing extreme (opposite end)
Why 8? Gann believed natural market cycles follow mathematical harmonics. The octave division provides precise entry and exit points that frequently act as support/resistance zones.
2. Gann Angles (Price-Time Relationship)
Gann angles represent the relationship between price movement and time. Each angle shows different momentum levels:
• 1x1 (Black) - 45° angle, perfect balance between price and time. Most important Gann angle. Represents the natural trend line.
• 2x1 (Red) - Steeper angle, 2 units of price per 1 unit of time. Shows strong momentum.
• 1x2 (Red) - Flatter angle, 1 unit of price per 2 units of time. Shows weak momentum.
• 4x1 & 1x4 (Blue) - Even more extreme angles indicating very strong or very weak trends.
• 8x1 & 1x8 (Orange) - Most extreme angles, parabolic moves or complete consolidation.
Key Principle: When price is above the 1x1 angle = bullish. Below 1x1 = bearish. When price crosses from one angle to another, it signals a change in momentum.
________________________________________
How the Indicator Works
Structure Detection
The indicator automatically identifies market swings using pivot points:
1. Bullish Structure (Green): Detected when price makes a higher high
o Octave levels calculated from swing low (0%) to swing high (100%)
o Gann angles project upward from the swing low
2. Bearish Structure (Red): Detected when price makes a lower low
o Octave levels calculated from swing high (0%) to swing low (100%)
o Gann angles project downward from the swing high
Dynamic Updates
• Swing Tracker ON: Levels update continuously as the swing evolves
• Swing Tracker OFF: Levels lock at the initial swing detection (cleaner charts)
Historical Structures
The indicator maintains previous swing structures based on "Number of Swings to Show":
• Set to 1: Only current structure (cleanest)
• Set to 2-3: Current + recent history (recommended for context)
• Set to 4+: Multiple historical structures (may overlap but shows pattern)
________________________________________
Trading Strategy
Entry Signals
BUY SIGNALS (Green Triangle Up ▲)
Signal 1: Bounce from Support Levels
• Price drops to 0%, 50%, or 100% level and reverses
• Best when combined with bullish candlestick pattern (hammer, engulfing)
• Entry: On signal confirmation
• Stop Loss: Below the support level (0.5-1% below)
• Target: Next octave level up (12.5%, 25%, 50%)
Signal 2: Breakout Above Resistance
• Price breaks above 50% or 100% level with momentum
• Confirms trend continuation or reversal
• Entry: On close above the level
• Stop Loss: Below the breakout level
• Target: Previous swing high or next major level
Signal 3: Gann Angle Support
• Price bounces off 1x1 angle (black line)
• Indicates trend is intact
• Entry: When price respects the angle
• Stop Loss: Below the 1x1 angle
• Target: Next resistance level
SELL SIGNALS (Red Triangle Down ▼)
Signal 1: Rejection from Resistance Levels
• Price rallies to 0%, 50%, or 100% level and reverses
• Best when combined with bearish candlestick pattern (shooting star, bearish engulfing)
• Entry: On signal confirmation
• Stop Loss: Above the resistance level (0.5-1% above)
• Target: Next octave level down (87.5%, 75%, 50%)
Signal 2: Breakdown Below Support
• Price breaks below 50% or 0% level with momentum
• Confirms trend continuation or reversal
• Entry: On close below the level
• Stop Loss: Above the breakdown level
• Target: Previous swing low or next major level
Signal 3: Gann Angle Resistance
• Price fails at 1x1 angle (black line)
• Indicates trend weakness
• Entry: When price rejects the angle
• Stop Loss: Above the 1x1 angle
• Target: Next support level
________________________________________
Advanced Trading Techniques
1. The 50% Rule (Most Powerful)
The 50% octave level is the most critical in Gann theory:
• In Uptrend: Price should not break below 50% retracement. If it holds = trend intact, go long.
• In Downtrend: Price should not break above 50% retracement. If it holds = trend intact, go short.
• Reversal: Breaking and closing beyond 50% often signals trend reversal.
2. Gann Angle Confluence
When multiple Gann angles converge with octave levels = HIGH probability zone:
• Look for price to bounce or reverse at these zones
• Example: 1x2 angle meets 50% level = strong support/resistance
• These zones often become pivot points
3. Multiple Timeframe Analysis
• Use higher timeframe (daily) for major structure
• Use lower timeframe (5min, 15min) for precise entries
• Take trades when both timeframes align
4. Swing Failure Pattern
• Price breaks a key level (e.g., 50%) but quickly reverses back
• This "false breakout" often leads to strong move in opposite direction
• Wait for signal in the reversal direction
________________________________________
Settings Optimization
For Day Trading (Scalping)
• Structure Period: 0-2 (22 bars or less)
• Number of Swings: 1 (only current structure)
• Signal Sensitivity: High
• Swing Tracker: OFF (cleaner)
For Swing Trading
• Structure Period: 4-5 (44-88 bars)
• Number of Swings: 2-3
• Signal Sensitivity: Medium
• Swing Tracker: ON or OFF (preference)
For Position Trading
• Structure Period: 6-8 (176+ bars)
• Number of Swings: 3-5
• Signal Sensitivity: Low
• Swing Tracker: ON
________________________________________
Common Patterns to Watch
Bullish Reversal Setup
1. Price in bearish structure (red levels)
2. Price drops to 100% level (swing low)
3. Buy signal appears (green triangle)
4. Price breaks back above 50% level
5. Action: Go long with stop below 100%
Bearish Reversal Setup
1. Price in bullish structure (green levels)
2. Price rises to 100% level (swing high)
3. Sell signal appears (red triangle)
4. Price breaks back below 50% level
5. Action: Go short with stop above 100%
Trend Continuation
1. Price respects 1x1 Gann angle
2. Small pullback to 25% or 37.5% level
3. Buy/sell signal appears
4. Action: Enter in trend direction
________________________________________
________________________________________
Signal Sensitivity Guide
• Low: Conservative, only major breakouts (3-5 signals per day)
• Medium: Balanced, includes approaches (5-10 signals per day)
• High: Aggressive, includes bounces (10-20 signals per day)
Choose based on your trading style and risk tolerance
________________________________________
Final Words
This indicator is a powerful tool, but remember:
"The market is never wrong. Opinions are." - W.D. Gann
• No indicator is 100% accurate
• Always combine with price action and volume
• Backtest on your instrument and timeframe
• Keep learning and adapting your strategy
• Discipline and risk management are more important than the perfect setup
Happy Trading! 📈
Heikin Ashi Wick Strategy
🔥 Heikin Ashi Wick Momentum Strategy
“Trade momentum decay before the trend breaks.
>> FOCUS ON WICKS, NOT ONLY CANDLE COLOR<<
What Makes This Different (Traffic Driver)
✔ Uses Heikin Ashi wicks (almost nobody does this correctly)
✔ Captures trend continuation, not breakouts
✔ Exits before momentum collapse, not after
✔ Non-repainting
✔ Clean charts, instant readability
This Strategy Is REALLY Trading
This is a Heikin Ashi momentum-decay system:
• Enters when trend is strong but not euphoric
• Exits when:
o Trend stops probing higher
o Sellers gain relative strength
It avoids:
• Chasing strong breakout candles
• Holding through momentum rollovers
Candle Type Used: Heikin Ashi (manually calculated)
NOTE: The script does not use regular candles.
It reconstructs Heikin Ashi (HA) candles from raw OHLC:
• HA Close = average of open, high, low, close
• HA Open = midpoint of prior HA candle (smoothed)
• HA High / Low = extremes of HA open/close vs real high/low
➡️ This filters noise and emphasizes trend structure and momentum.
Strengths
✅ Works well in strong, smooth trends
✅ Very clean logic (no indicators)
✅ Non-repainting
✅ Early exits protect capital
Best Use
This works best on:
• Daily timeframe
• Strong trend ETFs / megacaps
o QQQ
o SPY
o NVDA, MSFT, AAPL
• When combined with:
o EMA 21 trend filter (your preference)
o Market regime filter (e.g., above 50/200 SMA)
o Rising 10 EMA and 20 EMA
________________________________________
8️⃣ Weaknesses (Important)
⚠️ No stop loss (only structure-based exits)
⚠️ Can exit too early in explosive trends
⚠️ Will chop in sideways markets
⚠️ No volatility filter (ATR, EMA, regime)
How to Avoid the Weaknesses — Summary
Turn the setup from a concept into a robust strategy by adding these controls:
1. Trade Only Trends
o Require price above EMA-21 (optionally EMA-21 > EMA-50)
o Eliminates chop and sideways markets
2. Improve Exits (Avoid Leaving Winners Too Early)
o Partial exit when upper wick disappears
o Full exit only when lower wick dominates
o Optional: require 2 consecutive exit candles
3. Add Risk Protection
o Use a volatility stop: ~1.5× ATR(14) below entry or below HA swing low
o Protects against gaps and sudden reversals
4. Filter Weak Signals
o Require meaningful wick size (≈30–40% of candle range)
o Avoids low-quality indecision candles
5. Avoid Bad Volatility
o Skip entries when ATR is expanding aggressively
o Focus on calmer, controllable trends
6. Limit Time in Trade
o Add a max bars hold (e.g., 10–15 bars on daily)
o Prevents capital getting stuck in fading trends
⚠️ Educational use only. Not financial advice. Trading involves risk and losses can exceed expectations. Past performance does not guarantee future results. Use at your own risk.
Solid Dynamic Corridors[AkmanBey]
Solid Dynamic Corridors: Technical Overview
The Solid Dynamic Corridors indicator is a sophisticated, multi-layered trend-following and volatility-channel system. Unlike standard indicators, it combines RSI-derived price projections, ATR-based volatility expansion, and a 20-level support/resistance matrix to identify high-probability trend zones.
1. RSI-Based Price Projection
The foundation of the indicator starts with an inverse calculation of RSI levels. By setting specific overbought (51) and oversold (49) thresholds, the script projects these momentum levels directly onto the price chart as dynamic bands. This allows the trader to see where the price would be if it reached those specific RSI exhaustion points.
2. The Multi-Layered Support & Resistance Matrix
The core strength of the script lies in its 20-level calculation engine. It computes 10 distinct resistance levels (H1-H10) and 10 distinct support levels (L1-L10) using a hybrid blend of:
* Exponential Moving Averages (EMA)
* Average True Range (ATR)
* Historical Extremes (High/Low Lookbacks)
* Price Action Ratios
These levels are then averaged to create the Final Resistance and Support Averages, providing a "solid" boundary that filters out market noise more effectively than a single moving average.
3. Volatility-Adjusted Dynamic Expansion
To adapt to changing market conditions, the indicator employs an ATR-based expansion mechanism. By applying a user-defined multiplier to the current ATR, the bands expand during high-volatility periods and contract during consolidation, ensuring the "Corridors" remain relevant regardless of market speed.
4. Trend Tracking & Persistence Logic
The system features a unique Signal Persistence logic. When a trend shift is detected (via an ATR-based trailing stop mechanism):
* Buy/Sell Signals: Triggered when the price breaks through the calculated trailing limits.
* Persistence Lines: Once a signal is generated, the indicator "locks" the support or resistance level at that moment and tracks it for an extended period (up to 19,999 bars). This helps traders identify long-term historical anchor points even after the immediate trend has passed.
5. Extreme Range Analysis (HH-LL)
Finally, the script calculates Extreme Upper and Lower Bounds based on the highest and lowest points of the signal tracking lines. This creates a "Master Range" that colors the chart dynamically, signaling whether the market is in a Red (Overextended High), Green (Overextended Low), or Blue (Neutral) state.
Summary of Key Features
* Hybrid Momentum/Volatility Engine: Combines RSI and ATR logic.
* Noise Reduction: Averages 20 different data points to find "True" support and resistance.
* Long-Term Reference: Unique tracking system that remembers signal levels for thousands of bars.
* Visual Clarity: Intuitive color coding for trend direction and extreme price zones.
Round NumbersRound Numbers
This indicator is a high-precision tool designed to automatically visualize psychological price marks and "round numbers" on your chart. It helps traders identify key areas where institutional orders and market sentiment often cluster, providing a clear map of potential support and resistance zones based on mathematical multiples.
Key Features:
11 Fully Configurable Level Groups: The indicator provides 11 independent level groups, pre-set to psychologically significant intervals (10, 50, 100, 500, 1,000, 5,000, 10,000, 50,000, 100,000, 500,000, and 1,000,000).
Complete Customization: Every level can be individually toggled. Users can define the specific multiple, line color, thickness, and line style (Solid, Dashed, or Dotted) to distinguish between major and minor levels.
Dynamic Range Adaptation: The script calculates and draws lines based on the recent price action, ensuring the chart remains relevant to the current trading range without manual adjustment.
Performance Optimized: Utilizing an efficient line-pooling system, the indicator maintains high performance and ensures smooth chart scrolling while staying within platform drawing limits.
Use Cases:
Psychological Levels: Quickly identify major price magnets (e.g., Gold at $2500, $2600).
Grid Trading & Visualization: Create a clean visual grid for systematic entry and exit strategies.
Market Structure Analysis: Assist in recognizing "Big Round Numbers" where liquidity usually resides and where reversals are more likely to occur.
Settings:
For each of the 11 levels, you can configure:
Show Level: Enable or disable the specific group.
Multiple Value: The price interval for the lines (e.g., "100" creates a line every 100 points).
Color: Choose any color and transparency for the lines.
Width: Set the line thickness from 1 to 5.
Line Style: Select between Solid, Dashed, or Dotted appearances.
ORB FX REPLAY - FINAL SAFEHere is the description in English, written to sound professional and meet all the requirements for publishing on TradingView:
Script Description:
Title: ORB Strategy Backtest Pro - Ultra Compatibility
Description: This is an Opening Range Breakout (ORB) strategy specifically designed for professional backtesting. It is optimized to run smoothly on external platforms like FX Replay and TradingView's replay mode.
Key Features:
Custom Session: Automatically calculates the High and Low of a specific time window (default: 10:00 - 10:15 Bucharest/GMT+2).
Impulse Confirmation: Features a "Min Impulse" filter to ensure entries happen on strong momentum, avoiding "fake-outs" near the range boundaries.
Hard Target Management: Designed for "Set & Forget" backtesting. Once a trade is triggered, the script tracks it until it hits either the Stop Loss (SL) or the final Take Profit 3 (TP3).
Visual Projections: Draws clear, real-time lines for Entry, SL, and TP3 on the chart for easy visual tracking.
Automated Statistics: Includes a dynamic label system that tracks Total Trades, Win Count, and Loss Count based on the TP3/SL logic.
Optimized Code: Built using Pine Script v5 with a focus on stability and compatibility, avoiding complex tables that often cause errors on external engines.
SMC Structure & Expectation [WavesUnchained]SMC Structure & Expectation - Professional Context & Confirmation Tool
A sophisticated Smart Money Concepts indicator that combines objective market structure analysis with intelligent expectation logic and professional order block validation. Built for traders who value context over signal spam.
4-LAYER ARCHITECTURE
Layer 1: Market Structure
✓ Objective HH/HL/LH/LL detection based on confirmed pivot swings
✓ Internal structure tracking (micro swings within major legs)
✓ Structure alignment detection (Internal + External agreement)
✓ No predictions - pure price action description
Layer 2: Expectation/Bias
✓ Logical hypotheses derived from current structure
✓ "Expect HL" in bullish structure / "Expect LH" in bearish structure
✓ "Expect Continuation" after BOS events
✓ Expectation ≠ Signal (can be wrong, that's the point)
Layer 3: Confirmation (BOS + Order Blocks)
✓ Break of Structure (BOS) detection with 2 modes:
• Conservative: Close-cross (default)
• Aggressive: High/Low-cross with optional close confirmation
✓ Professional Order Block System with 8 intelligent filters
✓ Only creates OBs when expectation is met
✓ Maximum 1 OB per direction (quality over quantity)
Layer 4: Optional Warnings
✓ Trendline break detection
✓ Early Top/Bottom warnings (volume + volatility divergence)
✓ Can be disabled for clean chart focus
PROFESSIONAL ORDER BLOCK SYSTEM
8 Quality Filters (Cascade Logic):
1. BOS-Only Guard : No OB without confirmed Break of Structure
2. Displacement Filter : Minimum 1.0 ATR momentum (customizable)
3. Location Filter : Must be in Premium (bearish) or Discount (bullish) zone
4. Size Filter : 3 modes available:
• Hard Limit: Reject oversized OBs (strict)
• Score Penalty: Allow but reduce priority (balanced, default)
• Disabled: No size filtering (permissive)
5. Volume Filter : Optional relative volume threshold
6. FVG Filter : Optional Fair Value Gap requirement
7. Mitigation Tracking : 30% penetration = mitigated (score penalty)
8. TTL (Time-To-Live) : Auto-delete after 80 bars (prevents chart clutter)
Priority Scoring System (0-100):
• HIGH Priority (>80) : Bright colors, zero transparency
• MED Priority (50-80) : Normal colors, 30% transparency
• LOW Priority (<50) : Faded colors, 60% transparency
Score Components:
✓ Displacement strength (10-30 points)
✓ FVG confluence (+20 points)
✓ Relative volume (+5-15 points)
✓ Premium/Discount location (+10-20 points)
✓ Structure alignment (+30 points if aligned, -15 if conflict)
✓ Leg strength (+15-25 points for strong impulse vs correction ratio)
✓ Size penalty (-0 to -30 points if oversized, Score Penalty mode only)
BAR COLORING MODES
Choose your preferred visual feedback:
1. Off : No bar coloring
2. Structure : Bullish/Bearish/Neutral structure states
3. Expectation : Continuation zones (green = expect bullish, red = expect bearish)
4. BOS + OB Priority (Default):
• Highlights active Order Blocks by priority
• BOS events in bright neon
• Faded structure colors when no OB active
5. Multi-Layer : Combines structure + priority intensity
6. Alignment : Shows Internal/External structure alignment (orange = conflict warning)
INTELLIGENT LOGGING SYSTEM
Priority-based log filtering to reduce noise:
• All : Every event (debug mode)
• MED+ : Only medium and high priority events
• HIGH Only : Only high priority setups
• Smart (Default): Adaptive filtering based on priority + context
Logs include:
✓ Structure changes (HH/HL/LH/LL)
✓ Expectation updates
✓ BOS events with confirmation status
✓ OB creation with full scoring breakdown
✓ OB reactions (Tap/Deep/Failure classification)
✓ Rejection reasons with "Potential Lost" analysis
CONFIGURATION HIGHLIGHTS
Layer 1: Structure
• Pivot detection length: 5 (left) / 5 (right)
• Internal structure: Optional micro-swing tracking
• Swing confirmation: Closes beyond pivot required
Layer 2: Expectation
• Expectation expiry: 40 bars (auto-reset after timeout)
• Visual feedback: Labels + optional expectation zones
Layer 3: Confirmation
• BOS Mode: Close-cross (conservative) / High/Low-cross (aggressive)
• Close Confirmation: Optional 3-bar window for aggro mode
• Displacement: Min 1.0 ATR (customizable)
• Size Filter Mode: Hard Limit / Score Penalty / Disabled
• OB Location: 38% discount / 62% premium thresholds
• OB Size Range: 0.3-1.2 ATR (customizable)
• TTL: 80 bars default
• Volume Filter: Optional, 1.0x minimum
• FVG Requirement: Optional
Layer 4: Warnings
• Trendline break detection
• Early Top/Bottom signals
• Can be fully disabled
BEST USE CASES
✓ Context Tool : Understand where you are in the market cycle
✓ Confirmation Filter : Validate trade ideas with structure alignment
✓ Order Block Trading : High-probability zones with priority scoring
✓ Educational : Learn SMC concepts with transparent logic
✓ Multi-Timeframe Analysis : Combine with HTF structure for confluence
Optimized for:
• Commodities (NatGas, Gold, Oil)
• 1H - 4H timeframes
• Swing trading / Intraday positioning
KEY FEATURES SUMMARY
✓ Zero signal spam - only high-conviction setups
✓ Transparent scoring system - know why each OB matters
✓ Adaptive to market conditions - structure alignment detection
✓ Flexible filtering - customize to your risk tolerance
✓ Priority-based visuals - instantly identify best opportunities
✓ Professional logging - learn from rejections and acceptances
✓ Clean chart - auto-cleanup with TTL system
✓ Bar coloring modes - choose your visual feedback style
✓ Size Filter Mode - prevent blocking of high-quality oversized setups
PHILOSOPHY
This indicator follows the principle: "Context over signals, quality over quantity"
Expectations can be wrong - that's the point. They help you stay aware of the most likely scenario while remaining open to structure changes. When expectation is met AND confirmed by BOS + quality OB, you get a high-conviction setup.
Not a holy grail. Not a signal service. A professional analysis tool.
Version: 1.0.0
Author: WavesUnchained
Pine Script: v6
Apex Trend & Liquidity Master V2.1The Apex Trend & Liquidity Master is a hybrid trading system designed to align traders with the dominant market trend while identifying key structural price levels. Unlike simple moving average crossovers or standalone support/resistance tools, this script integrates a volatility-adaptive "Trend Cloud" with a "Smart Liquidity" engine.
This integration allows the script to offer unique filtering capabilities, such as hiding counter-trend liquidity zones to reduce chart noise and focus on high-probability continuations.
How It Works
Adaptive Trend Cloud The backbone of the system is the Trend Cloud, calculated using a Hull Moving Average (HMA) base with ATR bands. The cloud expands and contracts based on market volatility.
Green Cloud: Bullish Regime. The market is trending up; look for long opportunities.
Red Cloud: Bearish Regime. The market is trending down; look for short opportunities.
Smart Liquidity Zones (with Integration) The script automatically detects Pivot Highs and Lows to draw Supply (Resistance) and Demand (Support) zones. These zones persist until price breaks through them (mitigation).
Integration Feature: A "Filter Zones by Trend" option is included in the settings. When enabled, this feature connects the Trend Cloud to the Liquidity Engine:
It will only display Demand zones when the Trend Cloud is Bullish.
It will only display Supply zones when the Trend Cloud is Bearish.
Note on Lag: Zones are based on pivots (default lookback: 10). A zone appears on the chart 10 bars after the pivot forms. These are historical structural levels.
Signal Filters Buy and Sell labels are generated when the Trend Cloud changes color, but they are filtered to ensure quality:
Volume Filter: Signals only appear if the current volume is higher than the 20-period average.
RSI Filter: Prevents buying when RSI is overbought (>70) or selling when oversold (<30).
Live HUD An on-chart dashboard provides real-time data on:
Trend Bias: Direction of the cloud.
Momentum: RSI strength (Weak/Neutral/Strong).
Volume: High vs. Low activity.
Usage Guide
Identify the Trend: Use the background fill color to determine if you should be looking for longs (Green) or shorts (Red).
Wait for Structure: Look for price to pull back into a "Smart Liquidity" zone. For example, in a Green Trend, wait for price to touch a Green Demand box.
Confirm with Momentum: Check the Dashboard. Ideally, you want to see "Strong" momentum aligning with your trade direction.
Settings: If the chart is too cluttered, enable "Filter Zones by Trend" in the settings menu to hide counter-trend boxes.
Credits & Attribution This script combines original integration logic with adapted open-source concepts:
Smart Liquidity Logic: The method for generating Supply/Demand boxes via Pivot Highs/Lows and array management is adapted from open-source logic commonly used in Smart Money Concepts (SMC) indicators, notably popularized by LuxAlgo and the broader Pine community.
Trend Logic: The volatility cloud utilizes standard Hull Moving Average (HMA) and ATR formulas.
Disclaimer This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Past performance of pivot levels or trend signals does not guarantee future results.
Flux Portfolio Visualizer | GL0WDASHFlux Portfolio Visualizer | GL0WDASH
Flux Portfolio Visualizer lets you simulate and track the performance of a multi-asset portfolio directly on the chart.
Choose up to 10 assets, assign custom allocation weights, and set a start date to generate a real-time equity curve based on historical price data.
The script performs one-time proportional allocation at the start date and then tracks equity forward without rebalancing, giving you a realistic view of how your portfolio would have evolved over time. It also includes a maximum equity drawdown tracker and an optional level line for reference.
Features:
• Allocate to up to 10 assets with custom weight percentages
• Specify initial capital and simulation start date
• Real-time equity curve based on confirmed bars
• Maximum equity drawdown tracking + table display
• Optional horizontal reference line
• Designed for long-horizon allocation experiments
Great for:
• Passive portfolio stress-testing
• Comparing allocation strategies
• Evaluating long-term crypto/asset mixes
• Visualizing risk via max drawdowns
This tool does not execute trades or rebalance—its purpose is pure visualization, giving traders clarity about how portfolios behave under different allocation assumptions.
If you expand or modify the indicator, please credit the original author.
Volatility State Index [Interakktive]The Volatility State Index (VSI) classifies market volatility into three behavioral states: Expansion, Decay, and Transition. It answers one question visually: Is volatility supporting price movement, withdrawing, or unstable?
Unlike traditional volatility indicators that show levels or bands, VSI diagnoses the current volatility regime so traders can adapt their approach accordingly.
█ WHAT IT DOES
• Classifies volatility into three states: Expansion (teal), Decay (grey), Transition (amber)
• Measures volatility momentum as a percentage rate-of-change
• Applies stability filtering to detect unstable/choppy conditions
• Uses persistence logic to prevent state flickering
• Exports state data for use in alerts and strategies
█ WHAT IT DOES NOT DO
• NO buy/sell signals
• NO entry/exit recommendations
• NO alerts (v1 is diagnostic only)
• NO performance claims
This is a volatility diagnostic tool, not a trading system.
█ HOW IT WORKS
The VSI processes volatility through a five-stage pipeline:
STAGE 1 — Base Volatility
Calculates ATR as the foundation for volatility measurement.
STAGE 2 — Smoothing
Applies EMA smoothing to reduce noise in the volatility series.
STAGE 3 — Volatility Momentum
Computes the percentage rate-of-change of smoothed volatility:
Volatility Momentum (%) = ((Current ATR - Previous ATR) / Previous ATR) × 100
Positive values indicate expanding volatility; negative values indicate contracting volatility.
STAGE 4 — Stability Filter
Tracks how frequently volatility momentum changes direction. Frequent sign changes indicate unstable, choppy conditions.
Stability Score = 1 - (Average Flip Rate)
Low stability forces the Transition state regardless of momentum level.
STAGE 5 — State Classification
Combines momentum thresholds and stability to determine the final state:
• Expansion: Momentum ≥ +5% (default threshold)
• Decay: Momentum ≤ -5% (default threshold)
• Transition: Between thresholds OR low stability
A persistence filter requires states to hold for multiple bars before confirming, preventing visual noise.
█ INTERPRETATION
EXPANSION (Teal)
Volatility is increasing in a sustained way. Price moves are becoming larger.
What it suggests:
• Breakouts are more likely to follow through
• Stops may need wider placement
• Trend-following approaches tend to work better
• Mean-reversion weakens
DECAY (Grey)
Volatility is decreasing. Price is compressing into tighter ranges.
What it suggests:
• Breakouts are more likely to fail
• Ranges tend to hold
• Trend-following underperforms
• Mean-reversion strengthens
TRANSITION (Amber)
Volatility behavior is unclear or unstable. This is NOT neutral — it is uncertainty.
What it suggests:
• Mixed signals — one bar huge, next bar dead
• Higher whipsaw risk
• Reduced conviction in either direction
• Consider waiting for clarity
The key insight: Amber is a warning, not a middle ground. It appears when volatility cannot decide what it wants to do.
█ VISUAL DESIGN
The indicator uses a state-first histogram design:
• Histogram height shows volatility momentum percentage
• Histogram color shows the classified state
• Zero line provides visual anchor
• Optional momentum line for confirmation
• Optional background tint (default OFF for clean charts)
The visual hierarchy prioritizes instant state recognition. A trader should understand the volatility environment in under one second without reading numbers.
█ INPUTS
Core Settings
• ATR Length: Base volatility measurement period (default: 14)
• Smoothing Length: EMA smoothing applied to ATR (default: 10)
• Momentum Length: Rate-of-change lookback (default: 10)
State Classification
• Expansion Threshold (%): Momentum above this = Expansion (default: 5.0)
• Decay Threshold (%): Momentum below this = Decay (default: -5.0)
• Persistence Bars: Bars required to confirm state change (default: 3)
• Stability Lookback: Window for stability calculation (default: 20)
• Stability Threshold: Below this = forced Transition (default: 0.5)
Visual Settings
• Show State Histogram: Toggle main display (default: ON)
• Show Momentum Line: Thin confirmation line (default: OFF)
• Show Zero Line: Baseline reference (default: ON)
• Show Background Tint: Subtle state coloring (default: OFF)
█ DATA WINDOW EXPORTS
When enabled, the following values are exported:
• ATR (Raw)
• ATR (Smoothed)
• Volatility Momentum (%)
• Stability Score (0-1)
• State (-1/0/1): Decay = -1, Transition = 0, Expansion = 1
• Is Expansion (0/1)
• Is Decay (0/1)
• Is Transition (0/1)
These exports allow VSI to be used as a filter in Pine Script strategies or alert conditions.
█ ORIGINALITY
While ATR and volatility indicators are common, VSI is original because it:
1. Classifies volatility into behavioral states rather than showing raw levels
2. Applies momentum analysis to volatility itself (rate-of-change of ATR)
3. Uses stability filtering to detect genuinely unstable conditions
4. Implements persistence logic to prevent state flickering
5. Provides a state-first visual design optimized for instant recognition
VSI is state-first: it classifies volatility regimes (Expansion/Decay/Transition) rather than plotting volatility level alone, using momentum and stability to reduce false regime reads.
This is not a modified ATR or Bollinger Band — it is a volatility regime classifier.
█ SUITABLE MARKETS
Works on: Stocks, Futures, Forex, Crypto
Timeframes: All timeframes — state classification adapts accordingly
Best on: Instruments with consistent volatility patterns
█ RELATED
• Market Efficiency Ratio — measures price path efficiency
• Effort-Result Divergence — compares volume effort to price result
█ DISCLAIMER
This indicator is for educational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. Always conduct your own analysis before making trading decisions.
RS of long term KSTDescription
Relative Strength of KST (Know Sure Thing) momentum between a stock and a reference index (e.g., Intesa San Paolo vs. FTSEMIB).
This indicator computes the KST oscillator separately for the chart symbol and the comparative symbol, then plots the difference (stock KST minus index KST). A positive or rising value indicates the stock has stronger momentum than the benchmark.
Best used on weekly timeframes.
Features:
- Fully configurable KST parameters (ROC lengths, SMA smoothing, weights).
- Signal line (SMA of the RS of KST) for potential crossover signals.
- Zero line for reference.
Rising values or crossings above the signal line may suggest improving relative momentum.
What the Script Does
This indicator calculates the Relative Strength of the KST momentum oscillator between the current chart symbol (e.g., a stock) and a comparative symbol (default: FTSEMIB).
KST Calculation (Know Sure Thing oscillator, originally developed by Martin Pring), computes four Rate-of-Change (ROC) values with different lengths (10, 13, 15, 20 by default). Each ROC is smoothed with its own SMA. The four smoothed ROCs are weighted (weights 1, 2, 3, 4 by default) and summed to create the final KST value.
This is done separately for: The chart symbol → kst
The comparative symbol → kstSymbol
Relative Strength of KST res = kst - kstSymbol
This is a subtraction-based relative strength (difference) of the two KST values, not a ratio, as to avoid singularity (division by zero).
A rising line or value above zero means the stock’s momentum (KST) is stronger than the index’s momentum.
Plotting Plots the RS of KST as a blue line.
Overlays a gray SMA (default length 10) with cross style (acts as a signal line).
Horizontal line at zero for reference.
This is best used on weekly charts (as KST is typically a longer-term momentum indicator).
Multi-Timeframe High Low Marking LinesThis indicator automatically draws clean horizontal lines at the high and low of the previous 10 periods (adjustable) for four different timeframes simultaneously: Daily, Weekly, Monthly, and Quarterly.
Perfect for marking key support/resistance levels across multiple timeframes on any chart.
Key features:
• Shows previous 10 highs and lows per timeframe (change to 5, 15, 20 etc. in settings)
• Lines extend 20 bars to the right so they remain visible (adjustable)
• Individual on/off switch for each timeframe
• Clean blue lines, max 500 lines limit respected
• Works perfectly on any chart timeframe (1-minute to monthly)
• No repainting – lines only appear after the period has closed
Use cases:
Spot major daily/weekly/monthly support & resistance at a glance
Trade breakouts and reversals with higher-timeframe confirmation
Combine with your existing strategy (ICT, SMC, price action)
Ideal for stocks, forex, crypto and futures
Settings explained:
Timeframe 1–4 → Choose any timeframe (D, W, M, 3M already preset)
Show/Hide → Turn any timeframe on or off instantly
Periods to show → How many previous highs/lows you want visible
Extend lines → How far right each line continues (default 20 bars)
Completely free to use.
If you like it, please add to favorites and leave a comment – it helps other traders find it!
Enjoy cleaner charts and stronger confluence.
Happy trading!
Auto-Anchored Fibonacci Volume Profile [Custom Array Engine]Description:
1. The Theoretical Foundation: Structure vs. Participation In professional technical analysis, traders often struggle to reconcile two distinct datasets: Price Geometry (where price should go) and Market Participation (where money actually went).
Why Fibonacci? (The Structure) Fibonacci Retracements map the mathematical structure of a trend. They identify psychological and algorithmic "interest zones" (0.382, 0.5, 0.618) where a correction is statistically likely to terminate. However, Fibonacci levels are theoretical—they are "lines in the sand" that do not guarantee liquidity or reaction.
Why Volume Profile? (The Verification) Volume Profile maps the historical exchange of shares at specific price levels. It reveals "fair value" (High Volume Nodes) and "market imbalance" (Low Volume Nodes). It is the only tool that verifies if a specific price level was actually accepted by institutional participants.
2. Underlying Calculations (The Custom Engine) This script operates on a custom-built calculation engine that bypasses standard built-in functions entirely. It uses Pine Script Arrays to build a Volume Profile from scratch. Here is the breakdown of the proprietary code logic:
A. The "Smart-Fill" Distribution Algorithm (Solves Gapping)
The Problem: Standard volume scripts often assign a candle's entire volume to a single price row. In volatile markets or steep trends, this creates visual "gaps" or a "barcode" effect because price moved too fast to register on every row.
My Solution: I wrote a custom loop that calculates the vertical overlap of every candle against the profile grid.
The Math: Volume Per Bin = Total Candle Volume / Bins Touched.
The Result: If a single volatile candle spans 10 price rows (bins), the script mathematically divides that volume and distributes it equally into all 10 array indices. This generates a solid, continuous distribution curve that accurately reflects price action through the entire candle range, not just the close.
B. Dynamic Arrays & Split-Volume Logic The script initializes two separate floating-point arrays (buyVolArray and sellVolArray) sized to the user's resolution (up to 300 rows). It iterates through the specific time-window of the swing:
If Close >= Open, the calculated volume slice is injected into the Buy Array.
If Close < Open, it is injected into the Sell Array.
These arrays are then visually stacked to render the dual-color profile, allowing traders to see the "Delta" (Buyer vs. Seller aggression) at key structural levels.
C. Custom Garbage Collection (Performance) To enable the "Auto-Anchoring" feature without causing chart lag or visual artifacts ("ghosting"), the script includes a Garbage Collection System. Before drawing a new profile, the script iterates through a tracking array of all existing objects (box.delete, line.delete) and clears them from memory. This ensures the indicator remains lightweight and responsive even when dragging chart margins or switching timeframes.
3. The Synthesis: Why Combine Them? The core philosophy of this script is Confluence . A Fibonacci level without volume is merely a suggestion; a Fibonacci level backed by volume is a defensive wall. By algorithmically anchoring a Volume Profile to the exact coordinates of a Fibonacci swing, this tool allows traders to instantly answer critical questions:
"Is the Golden Pocket (0.618) supported by a High Volume Node (HVN), or is it a Low Volume Node (LVN) that price might slice through?"
"Is the Shallow Retracement (0.382) holding because of structural support, or just a lack of selling pressure?"
4. How to Read the Indicator
The Geometry: The script automatically detects the trend and draws standard Fib levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0).
The Confluence Check: Look for the Point of Control (Red Line). If this High Volume Node aligns with a key Fib level (e.g., the 0.618), the probability of a reversal increases significantly.
The Imbalance Check: Look for "Valleys" in the profile (Low Volume Nodes). These gaps often act as "slippage zones" where price travels quickly between structural levels.
Buy/Sell Splits: The dual-color bars (Teal/Red) reveal the composition of the volume. A 0.618 level held up by dominant Buy Volume is a stronger bullish signal than one with mixed volume.
5. Settings & Customization
Lookback Length: Sensitivity of the swing detection (Default: 200 bars).
Resolution: Granularity of the profile rows (Default: 100). Higher values provide smoother definition.
Width (%): Responsive sizing that scales the profile relative to the trend's duration.
Extend Lines: Option to project structural levels infinitely to the right.
Disclaimer This script is an analytical tool for visualizing historical market data. It does not provide trade signals or financial advice.






















