Constance Brown RSI with Composite IndexConstance Brown RSI with Composite Index
Overview
This indicator combines Constance Brown's RSI interpretation methodology with a Composite Index and ATR Distance to VWAP measurement to provide a comprehensive trading tool. It helps identify trends, momentum shifts, overbought/oversold conditions, and potential reversal points.
Key Features
Color-coded RSI zones for immediate trend identification
Composite Index for momentum analysis and divergence detection
ATR Distance to VWAP for identifying extreme price deviations
Automatic divergence detection for early reversal warnings
Pre-configured alerts for key trading signals
How to Use This Indicator
Trend Identification
The RSI line changes color based on its position:
Blue zone (RSI > 50): Bullish trend - look for buying opportunities
Purple zone (RSI < 50): Bearish trend - look for selling opportunities
Gray zone (RSI 40-60): Neutral/transitional market - prepare for potential breakout
The 40-50 area (light blue fill) acts as support during uptrends, while the 50-60 area (light purple fill) acts as resistance during downtrends.
// From the code:
upTrendZone = rsiValue > 50 and rsiValue <= 90
downTrendZone = rsiValue < 50 and rsiValue >= 10
neutralZone = rsiValue > 40 and rsiValue < 60
rsiColor = neutralZone ? neutralRSI : upTrendZone ? upTrendRSI : downTrendRSI
Momentum Analysis
The Composite Index (fuchsia line) provides momentum confirmation:
Values above 50 indicate positive momentum
Values below 40 indicate negative momentum
Crossing above/below these thresholds signals potential momentum shifts
// From the code:
compositeIndexRaw = rsiChange / ta.stdev(rsiValue, rsiLength)
compositeIndex = ta.sma(compositeIndexRaw, compositeSmoothing)
compositeScaled = compositeIndex * 10 + 50 // Scaled to fit 0-100 range
Overbought/Oversold Detection
The ATR Distance to VWAP table in the top-right corner shows how far price has moved from VWAP in terms of ATR units:
Extreme positive values (orange/red): Potentially overbought
Extreme negative values (purple/red): Potentially oversold
Near zero (gray): Price near average value
// From the code:
priceDistance = (close - vwapValue) / ta.atr(atrPeriod)
// Color coding based on distance value
Divergence Trading
The indicator automatically detects divergences between the Composite Index and price:
Bullish divergence: Price makes lower low but Composite Index makes higher low
Bearish divergence: Price makes higher high but Composite Index makes lower high
// From the code:
divergenceBullish = ta.lowest(compositeIndex, rsiLength) > ta.lowest(close, rsiLength)
divergenceBearish = ta.highest(compositeIndex, rsiLength) < ta.highest(close, rsiLength)
Trading Strategies
Trend Following
1. Identify the trend using RSI color:
Blue = Uptrend, Purple = Downtrend
2. Wait for pullbacks to support/resistance zones:
In uptrends: Buy when RSI pulls back to 40-50 zone and bounces
In downtrends: Sell when RSI rallies to 50-60 zone and rejects
3. Confirm with Composite Index:
Uptrends: Composite Index stays above 50 or quickly returns above it
Downtrends: Composite Index stays below 50 or quickly returns below it
4. Manage risk using ATR Distance:
Take profits when ATR Distance reaches extreme values
Place stops beyond recent swing points
Reversal Trading
1. Look for divergences
Bullish: Price makes lower low but Composite Index makes higher low
Bearish: Price makes higher high but Composite Index makes lower high
2. Confirm with ATR Distance:
Extreme readings suggest potential reversals
3. Wait for RSI zone transition:
Bullish: RSI crosses above 40 (purple to neutral/blue)
Bearish: RSI crosses below 60 (blue to neutral/purple)
4. Enter after confirmation:
Use candlestick patterns for precise entry
Place stops beyond the divergence point
Four pre-configured alerts are available:
Momentum High: Composite Index above 50
Momentum Low: Composite Index below 40
Bullish Divergence: Composite Index higher low
Bearish Divergence: Composite Index lower high
Customization
Adjust these parameters to optimize for your trading style:
RSI Length: Default 14, lower for more sensitivity, higher for fewer signals
Composite Index Smoothing: Default 10, lower for quicker signals, higher for less noise
ATR Period: Default 14, affects the ATR Distance to VWAP calculation
This indicator works well across various markets and timeframes, though the default settings are optimized for daily charts. Adjust parameters for shorter or longer timeframes as needed.
Happy trading!
Análise de Tendência
CoffeeShopCrypto High Timeframe Dynamic Order BlocksThis indicator automates the detection of significant order blocks in real time, from higher timeframes (Daily, Weekly, Monthly) and dynamically adapts their zone boundaries to your current chart timeframe regardless of what you change it to. By analyzing market structure across multiple time horizons, it identifies institutional-level supply/demand zones and precisely recalculates their parameters to match your active chart's resolution - whether you're viewing 1-minute or 4-hour candles or even higher.
Key Technical Features:
Multi-Timeframe Analysis: Scans daily/weekly/monthly data to identify the most significant order blocks that influence all lower timeframes
Adaptive Zone Calculation: Automatically recalculates zone boundaries when you change timeframes, maintaining accurate price levels and candle formations specific to your chart
Smart Price Action Filtering: Isolates only the relevant candles that formed each order block within your current timeframe's context
Structural Precision: Adjusts zone width and position based on the actual candle wicks/bodies that created the order block in your active timeframe.
What they look like when calculated instantly.
About Order Blocks (Market Structure Perspective):
Order blocks represent concentrated areas where institutional traders executed significant positions, creating imbalances in market structure.
These zones become:
Bullish Order Blocks: Demand areas where aggressive buying overwhelmed sellers, often appearing as consolidation before strong upward movements.
Bearish Order Blocks: Supply zones where distribution activity preceded substantial downward moves.
How It Works Differently:
The indicator identifies these critical areas by analyzing the relationship between consecutive candles' opens, highs, lows, and closes - particularly focusing on break-of-structure patterns that confirm zone validity.
Traditional order block indicators simply copy higher timeframe zones to lower charts. These common orderblocks are said be found as the candle before the candle that caused a huge market swing. In a break long, you would look backwards to find the first previous bearish candle. The opposite find would be for a break short.
This is a most unreliable method in finding orderblocks and simply is not true.
Zone Extensions. Choose how far into the future you want your zone to go to. There is no wrong number but you don't want to go too far.
This scripts performs true multi-timeframe analysis by:
Detecting the original order block formation conditions on HTFs
Drilling down to find the exact "candle sequence" that created the zone in your current timeframe.
Continuously monitoring for structural breaks that invalidate zones
Automatically adjusting all visual elements when you switch timeframes
Usage Benefits:
Eliminates manual timeframe switching to identify significant zones
Maintains visual consistency when changing chart resolutions
Provides cleaner charts by only showing relevant order blocks
Adapts to any market (Forex, Stocks, Crypto) and any timeframe combination
Breached Zones. The zone becomes invalidated but the Supply or Demand line is still relevant.
Note on Trading:
While this indicator precisely identifies order block locations, trading methodologies using these zones depend on individual strategy preferences. The tool focuses exclusively on accurate technical detection and adaptive visualization across timeframes.
How to Use Them:
As long as you don't have price action breach of a Bullish Zone Demand Floor you can keep using that zone as a bullish orderblock until its Demand Floor has been breached.
This also means you can still use its Demand Floor as a support level while the Zone itself is no longer relevant. This eliminates the orderblock ZONE as being an orderblock and now you only have a supply floor left to use as support.
As long as you don't have price action breach of a Bearish Zone Supply Wall you can keep using that zone as a bearish orderblock until its Supply Wall has been breached.
This also means you can still use its Supply Wall as a resistance level while the Zone itself is no longer relevant. This eliminates the orderblock ZONE as being an orderblock and now you only have a resistance level.
Once either has been breached, you would find liquidity behind the zone of the ordreblock. This is where price will seek support or resistance depending on the zone type.
Orderblocks has a BODY and who knew they could be so cute. I mean look at this structure.
This is how they are built and what their levels represent.
Global Market Opens by Koenigsegg🧠 Global Market Opens Filter by Koenigsegg
Track the pulse of global capital flows with surgical precision, on business days only.
This powerful tool maps the exact open levels of the world's four major trading hubs: Europe, New York, Asia, and Australia — right onto your chart in real time, while intelligently filtering out weekends when global markets are closed.
Designed for professional traders who value clarity and timing, the indicator plots clean horizontal lines at the precise open of each session (based on your defined time), with customizable visuals and fixed projection logic to keep your levels consistent and readable. The built-in weekend filter ensures you only see relevant session opens during active trading days.
Whether you're trading forex, indices, crypto, or equities, this tool gives you the tactical edge to anchor your intraday playbook around session opens — when volatility, volume, and opportunity align.
🛠️ Core Features
✅ Weekday-only filtering - Automatically excludes weekend session opens in UTC time
✅ Plotted session opens for:
- London (LSE/Europe) – "LON/AMS/PAR"
- New York (NYSE) – "NEWYORK"
- Tokyo (TSE) – "TOKYO"
- Sydney (ASX) – "AUSTRALIA"
✅ Precise horizontal lines with fixed future projection for clean chart structure
✅ Real-time session detection based on your time inputs
✅ Adjustable line length with a set number of bars ahead
✅ Custom color selection per session for clear differentiation
✅ Minimal labels for a clean, pro-grade interface
✅ Toggle each session individually to tailor it to your market hours
✅ Toggle weekend filtering to suit your specific analysis needs
✅ Built to maintain chart performance – lightweight and optimized
🌍 Why It Matters
Markets move when sessions change hands. With this tool, you can:
- Align your entries and exits with institutional activity zones
- See where price anchors or rejects during session opens
- Filter out noise from weekend sessions when markets are closed
- Build confluence with structure, liquidity grabs, and narrative shifts
This isn't just another visual tool. It's a precision clock for those who know what time it is — and trade accordingly.
⚙️ Configuration Options
Session Times - Set custom open hours and minutes for each global market open
Color Selection - Choose distinctive colors for each session line
Fixed End Position - Define how far ahead lines should project (in bars)
Weekend Filter - Toggle UTC weekend filtering on/off based on your needs
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice. Trading is risky and can result in significant losses. Use at your own discretion.
💡 Pro Tip
Pair this tool with your order flow, CVD, or liquidity maps to see where price respects or breaks session anchors during active trading days. The moment a session opens, watch if the buyers are in control or if the sellers are in control. With the weekend filter, you'll focus solely on market-relevant session opens when institutions are actually trading. Timing is everything — and now, you control it.
📊 Hashtags
#KoenigseggTools #TradingView #MarketOpenLines #WeekdayFilter #LSE #NYSE #TSE #ASX #SessionTrading #PriceAction #PrecisionTrading #SmartMoney #InstitutionalZones #Forex #Crypto #Equities #IntradayStrategy #GlobalOpens
3-Bar ReversalAbout the Script
This script automatically detects and plots a signal when a Three-Bar Reversal pattern appears on the chart, helping traders identify potential trend reversals with ease.
How to Use the Script
1) Add the script to your chart.
2) Customize the visual appearance to match your preferences.
3) Click "OK" to apply the changes.
Once configured, the script will highlight valid Three-Bar Reversal patterns when they form.
How the Script Works
The Three-Bar Reversal pattern consists of three consecutive candlesticks, each playing a crucial role in identifying market shifts:
First Bar: Represents the existing trend.
In a bullish reversal, the first bar is typically bearish (downward).
In a bearish reversal, the first bar is typically bullish (upward).
Second Bar: Indicates indecision or trend exhaustion.
This bar often has a smaller body (such as a doji or spinning top), showing weakening momentum.
It may also feature wicks on both sides, reflecting market uncertainty.
Third Bar: Confirms the reversal.
In a bullish reversal, the third bar closes above the high of the first bar, signaling a potential upward move.
In a bearish reversal, the third bar closes below the low of the first bar, signaling a potential downward trend.
Once the pattern is confirmed, a marker will appear below the third bar, helping traders quickly spot opportunities.
RTH and ETH RangesKey Functions :
Visualizes Regular Trading Hours (RTH) and Extended Trading Hours (ETH) price ranges
Tracks session highs, lows, and 50% levels where significant market reactions occur
Detects breakouts beyond previous session extremes
Trading Applications :
Exposes potential liquidity raids at session boundaries where smart money targets stop orders
Identifies critical price thresholds where institutional activity concentrates
Highlights divergences between RTH and ETH behavior that precede directional moves
Provides measurement of session volatility differences
Maps key price levels for objective entry and exit parameters
Reveals market dynamics at session transitions where institutional positioning changes
Arthavidhi Double RSI### 🔍 **Overview:**
The **Arthavidhi Double RSI** is a dual-timeframe RSI indicator designed to help traders identify trend strength and early reversals by observing momentum on **two different timeframes** simultaneously — ideal for **multi-timeframe confluence strategies**.
This version calculates and plots:
- RSI on a higher timeframe (default: **75-minute**)
- RSI on a lower timeframe (default: **5-minute**)
It helps traders **spot divergence**, **momentum shifts**, and **confirmation signals** by comparing short-term and medium-term RSI behavior in one panel.
---
### ⚙️ **Inputs:**
- `RSI Length` – Standard RSI period (default: 14)
- `Time Frame 1` – Higher timeframe for main RSI line (default: 75 minutes)
- `Time Frame 2` – Lower timeframe for secondary RSI line (default: 5 minutes)
---
### 📈 **How to Use:**
1. **Add the indicator** to your chart from the "Indicators" tab.
2. Choose your desired symbol (NIFTY, BANKNIFTY, stocks, etc.).
3. The RSI from **Time Frame 1 (e.g. 75m)** is shown in **color-coded** lines:
- 🟢 Green: RSI > 50 → Bullish momentum
- 🔴 Red: RSI < 50 → Bearish momentum
4. The RSI from **Time Frame 2 (e.g. 5m)** is shown in white, allowing comparison of short-term vs medium-term momentum.
---
### 💹 **How to Trade:**
#### ✅ **Trend Confirmation:**
- When **both RSIs are above 50**, it confirms **bullish trend** → Look for **buy entries**.
- When **both RSIs are below 50**, it confirms **bearish trend** → Look for **sell entries**.
#### 🔁 **Reversal Opportunities:**
- If the **higher timeframe RSI is above 50**, but the **lower timeframe RSI drops below 50**, it may signal **short-term pullback** or **entry opportunity** in a bullish trend.
- Vice versa for bearish trends.
#### 🟡 **Divergence Setup:**
- Look for **divergence** between price and either RSI line, especially when the higher timeframe RSI is near **overbought (70)** or **oversold (30)** zones.
---
### 🧠 **Pro Tips:**
- Combine with price action and support/resistance zones for higher accuracy.
- Works best during trending markets for pullback & continuation setups.
- Use this as part of your confluence system, not in isolation.
Quarters Theory Levels (Yotov Style)John Alex Sagwe's Quarters Theory Levels Script
This Pine Script, developed by John Alex Sagwe, is based on the concept of the "Quarters Theory" popularized by Illan Yotov. It aims to help traders identify key levels in the market using whole, half, and quarter-level calculations. The script plots major whole levels, half levels, and quarter levels above and below the current price, allowing traders to visualize potential price points where significant market action might occur.
The customizable parameters allow you to:
Set the base level and step size (for quarter levels),
Adjust the number of levels above and below the current price to be displayed,
Toggle between showing whole, half, or quarter levels,
Use price alerts when the market price nears these levels.
Whether you’re a novice or an experienced trader, this script can help you integrate the Quarters Theory into your trading strategy. It’s designed to be flexible and user-friendly, helping you visualize key market levels with ease.
Developed by: John Alex Sagwe, an avid trader and Pine Script enthusiast.
3CRGANG - Histogram (Basic)This indicator provides traders with a unified view of momentum by combining multiple classic oscillators into a single histogram. By aggregating momentum signals into one visual output, it simplifies trend analysis, helping traders identify momentum shifts without managing multiple indicators separately.
What It Does
The 3CRGANG - Histogram (Basic) calculates a momentum-based histogram using a user-selected oscillator (e.g., RSI, MACD, MFI, RVI, Stochastic, Stochastic RSI, or TMASlope). The histogram is plotted with color-coded bars to indicate bullish, bearish, or neutral momentum, alongside predefined alert levels and a trend status table for quick reference.
Why It’s Useful
This script addresses the challenge of monitoring multiple momentum indicators by consolidating them into a single histogram. Each oscillator measures momentum differently (e.g., RSI tracks price strength, MACD focuses on moving average convergence, MFI incorporates volume), but the script normalizes these signals into a unified output. This reduces chart clutter and provides a clear, actionable signal for identifying trend direction, making it easier for traders to focus on key momentum shifts across various market conditions.
How It Works
The script follows these steps to generate the histogram:
Oscillator Selection: Traders choose one oscillator to base the histogram on. For example: RSI measures the speed and change of price movements, MACD tracks the relationship between two exponential moving averages, and MFI combines price and volume to measure buying/selling pressure. The choice of oscillator affects the histogram’s sensitivity to price movements.
Fast Oscillator Calculation: A fast-moving oscillator is computed using the selected method over a user-defined period (default: 8 bars). For instance, RSI calculates the relative strength of price gains versus losses, while MACD computes the difference between short and long EMAs. The result is normalized to a range centered around zero.
Histogram Plotting: The oscillator’s output is adjusted by a modification factor (default: 1) for sensitivity tuning and plotted as a histogram. Positive values indicate bullish momentum, negative values indicate bearish momentum, and values near zero suggest a lack of clear trend.
Color Coding: Bars are colored based on momentum and price direction: green for bullish momentum (price moving upward, histogram value typically positive), red for bearish momentum (price moving downward, histogram value typically negative), and grey for neutral momentum (ranging conditions or unclear trend).
Alert Levels: Predefined buy and sell levels are plotted as dotted lines to mark significant momentum thresholds. For most oscillators, levels are set at 20 (buy) and -20 (sell), representing overbought/oversold conditions based on historical performance. For TMASlope, levels are adjusted to 0.04 and -0.04, as it measures the slope of a triangular moving average relative to the average true range (ATR).
Trend Table: A table in the top-right corner displays the current timeframe’s trend status ("Buy Only," "Sell Only," or "Ranging") based on the histogram value, price direction, and alert levels, along with the histogram’s numerical value.
Underlying Concepts
The script is built on the concept of momentum aggregation, aiming to capture short-term price dynamics while filtering noise. By using a fast-moving oscillator, it emphasizes recent price action, and the histogram format provides a visual summary of momentum strength. The alert levels are derived from typical overbought/oversold thresholds for each oscillator, adjusted to ensure consistency across different methods. The trend table adds a layer of interpretation, helping traders quickly assess whether the momentum aligns with the broader trend.
Use Case
Trending Markets: In a bullish trend, green bars above the buy alert level (e.g., 20) indicate strong upward momentum, suggesting potential long entries. In a bearish trend, red bars below the sell alert level (e.g., -20) suggest short opportunities.
Ranging Markets: Grey bars or values between alert levels indicate a lack of clear momentum, prompting caution or scalping strategies.
Confirmation Tool: Use the histogram to confirm price action signals, such as breakouts or reversals, by ensuring momentum aligns with the direction of the move. For example, a breakout with green bars above the buy level may signal a stronger trend.
Settings
Choose Type: Select the oscillator to use (default: RSI - CLASSIC).
Source: Choose between Close or HL2 price data (default: Close).
Histogram Length: Set the period for oscillator calculation (options: 5, 8, 13; default: 8).
Modification Factor: Adjust the sensitivity of the histogram (default: 1).
Notes
The script supports classic oscillators only and operates on the current timeframe.
If volume data is unavailable for your ticker, MFI calculations may not work; select another oscillator to continue plotting.
Disclaimer
This indicator is a tool for analyzing market trends and does not guarantee trading success. Trading involves risk, and past performance is not indicative of future results. Always use proper risk management.
Session extensions [dani]Session Extension
Indicator Description
The Session Extensions indicator is a customizable tool designed to visually represent key price levels during a specified trading session. It calculates and displays the high, low, and midpoints of the session, along with extension levels based on user-defined multipliers. These extensions help traders identify potential support and resistance zones beyond the initial session range.
This indicator is particularly useful for intraday traders who rely on session-based analysis to make informed decisions. It overlays directly on the chart, ensuring seamless integration with price action.
Key Features
Session-Based Analysis : Tracks and highlights key price levels (high, low, midpoint) during a specific trading session.
Customizable Extension Levels : Allows users to define up to six extension levels (both above and below the session range) with unique multipliers, colors, styles, and widths.
Real-Time Updates : Automatically updates during the active session and resets at the start of a new session.
Usage Guidelines
Add the Indicator to Your Chart : Apply the Session Extensions indicator to your chart to visualize key session-based levels.
Intraday Focus : This indicator is optimized for intraday trading. Ensure that the chart's timeframe is set to an intraday interval (e.g., 1-minute, 5-minute).
Session Alignment : Verify that the session time aligns with your trading schedule and timezone. Misalignment may result in incorrect session detection. (This indicator use America - New York timezone)
Avoid Overcrowding : While the indicator supports multiple extension levels, enabling too many levels simultaneously may clutter the chart. Use discretion when configuring extension levels.
Customize Line Styles and Colors : Tailor the appearance of lines and labels to align with your trading style. Use solid, dashed, or dotted lines, and choose colors that enhance visibility without cluttering the chart.
Combine with Other Tools : Pair this indicator with other technical analysis tools (e.g., moving averages, volume profiles) to enhance decision-making.
Disclaimer & Chat
The Session Extensions indicator is intended for educational and analytical purposes only. It does not provide financial advice or guarantee trading success. Users are responsible for verifying the accuracy of session times and ensuring proper configuration before using the indicator in live trading. This indicator is not a trading signal generator.
Thank you for choosing this indicator! I hope it becomes a valuable part of your trading toolkit. Remember, trading is a journey, and having the right tools can make all the difference. Whether you're a seasoned trader or just starting out, this indicator is designed to help you stay organized and focused on what matters most—price action. Happy trading, and may your charts be ever in your favor! 😊
From, Dani.
Initiative Analysis AdvancedInitiative Analysis Indicator
📊 Initiative Analysis (IA) Indicator
Initiative Analysis (IA) is an innovative technical analysis tool based on a unique concept of visualizing and analyzing the real battle between buyers and sellers.
🔍 What is IA and how does it work?
IA identifies initiatives on the chart — directional price moves caused by the actions of buyers or sellers. These initiatives form the three key phases of the market:
• Sideways range (consolidation)
• Trend
• Transitional period
Each initiative has a time limit and a price range. This helps traders clearly see:
• Who currently controls the market;
• What key levels and activity zones are forming;
• Where the price is likely to meet support or resistance.
________________________________________
📘 Main Features and How to Read the Chart
✅ Identifying Buyer and Seller Initiatives (Dominant Zones)
• A blue background shows a buyer’s initiative — buyers control the market and price is expected to rise (colors can be customized).
• A red background shows a seller’s initiative — sellers control the market and price is expected to fall.
✅ Key Price Levels
• The bottom edge of the blue zone = potential demand/support level.
• The top edge of the red zone = potential supply/resistance level.
• The blue line = potential target level during bullish phases.
• The red line = potential target level during bearish phases.
✅ Levels Inside Initiatives
• The indicator can show up to 5 levels inside each initiative (like Fibonacci levels), which you can set manually in the settings.
✅ Multi-Timeframe Analysis
• Visual elements (initiatives, levels, targets) are shown for two timeframes at once: the current chart timeframe and a higher timeframe of your choice.
• This helps to do full analysis without switching charts.
✅ Key Candles in Initiative Analysis
• KC (Key Candle): the candle with the highest volume within an Initiative.
• tKC (Temporary Key Candle): a temporary high-volume candle that forms after the KC. It may become the new KC if the Initiative extends beyond the previous range.
• IKC (Internal Key Candle): the candle with the highest volume among Initiatives that form inside a sideways range. If KC/tKC and IKC appear in opposite directions within the same Initiative, IKC takes priority.
One possible approach for finding long setups: look for a buyer-side KC, tKC, or IKC within the lower 50% of the Initiative, or a seller-side KC/tKC/IKC on the lower boundary that has been absorbed by buyers. The reverse applies when looking for short setups.
✅ Buyer and seller zones within Initiative:
• Red rectangles represent seller zones. It is preferable to look for sell patterns within the price range of the seller zone when the price returns to that area.
• Blue rectangles represent buyer zones. It is preferable to look for buy patterns within the price range of the buyer zone when the price returns to that area.
✅ Customization
• All colors and elements can be easily adjusted to fit your trading style.
________________________________________
💡 Why is IA useful for traders?
• Color-coded zones make market context easy to understand: who’s in control, key levels, possible initiative change;
• Saves a lot of time on market analysis;
• Helps find return zones and high-potential entry points;
• Helps forecast potential price targets;
• Makes reading market structure simple and clear.
You can learn more about the Initiative Analysis in the related posts.
A New Approach to Market Analysis: How IA Simplifies Trading
Where to find Trading opportunities?
Uptrick: Stellar NexusOverview
Uptrick: Stellar Nexus is a multi-layered chart tool designed to help traders visualize market behavior with enhanced clarity and depth. It presents various overlays, signal triggers, and an asset-level behavioral table in one cohesive interface. Its core focus is to illustrate how different market states shift over time. By displaying directional structures, dynamic zones, momentum shifts, and a real-time probability assessment of multiple assets, it aims to deliver a comprehensive perspective for those looking to navigate complex market environments more confidently.
Purpose
The primary purpose of Stellar Nexus is to unify several market assessment methods into a single framework, sparing users the need to rely on multiple disjointed indicators. It is especially useful for traders who value having layered signals, interactive overlays, and a quick reference to asset-specific metrics within one tool. By consolidating multiple market insights, the script aspires to reduce guesswork, limit information overload, and present clear triggers for potential trade opportunities or risk management decisions.
Originality
Stellar Nexus stands out because it relies on a proprietary set of logic layers, each carefully designed to detect nuanced shifts in price movement. The script brings forward a streamlined depiction of underlying market changes through color-coded zones, shape markers, and short textual tags. Its architecture also accommodates multiple “modes” of viewing the market—be it through layered cloud structures, trend ribbons, or step-based overlays—so traders can adapt its outputs to match changing conditions. The presence of a specialized probability table and a real-time market state meter (HUD Meter) further underscores its uniqueness, providing at-a-glance scoring for various instruments and a gauge that visually displays ongoing transitions from trending to ranging phases.
Inputs
Stellar Nexus includes several user-configurable settings, organized into themed groups. Each input subtly modifies how information is derived or rendered on the chart:
General
Silken Veil (integer input) : Governs how smooth or responsive various underlying signals will appear.
Canvas (dropdown) : Chooses the primary visual overlay style among Nebula Trail, Velora, or Stellar Stepfilter.
Signals (dropdown) : Selects which built-in signal engine (Fluxor or Flowgen) is responsible for painting buy and sell markers.
Nova Tension (integer input) : Influences the internal motion sensitivity used by certain triggers.
Astral Ribbon (integer input) : Imparts a broader directional bias layer that can highlight whether the current environment is bullish or bearish.
Bands
Phase Delay (integer input) : Impacts baseline offsets for certain dynamic band calculations.
Band Softener (float input) : Creates a blended baseline, balancing two distinct smoothing techniques.
Spread Factor (float input) : Scales how wide or narrow the generated envelope bands become.
Layer Offset (float input) : Adjusts spacing between multiple layered boundaries in the band structure.
Smooth Mode (dropdown boolean) : Toggles an extra layer of smoothing on or off for the plotted envelopes.
Feed Matrix
Burst (integer input) : Adjusts how the Flowgen engine interprets momentum buildup. Higher values generally lead to more conservative signals.
Delta Curve Sync (integer input) : Alters the sensitivity of directional alignment within the Flowgen system, refining how quickly the script adapts to market slope changes.
Lambda Pulse Shift (integer input) : Controls timing offsets within the Flowgen structure, subtly influencing the trigger timing of transitions.
Sync Drift Limit (integer input) : Provides a stabilizing effect on the internal motion detection engine, helping reduce erratic behavior during choppy conditions.
WMA Open Filter Tunnel (integer input) : Filters signal validity by applying a dynamic range check on opening price structures, reducing false positives in unstable markets.
Probability Table
Show Predictability Table (boolean) : Enables or disables a table of asset metrics.
Show Numeric Values (boolean) : Switches between displaying numeric values and using simple directional markers in the table cells.
Stepfilter
Sensitivity (dropdown) : Offers a range of speed profiles (Very Fast to Very Slow and TURTLE option) that define how quickly or slowly the step-based overlay reacts to price changes.
HUD Meter
Show Stellar HUD Meter (boolean) : Turns on or off a specialized gauge for quick insight into trending vs. ranging conditions.
Take Profit Signals
Show TP Signals (boolean) : Determines whether exit or take-profit markers are displayed after certain conditions have been met.
Phase Length (integer input) : Influences the internal baseline used for the exit signal logic.
Sync Channel (integer input) : Sets a period within which different data points are compared or synced.
Filter (integer input) : Imposes an additional smoothing on exit-related cues.
Features
Signals (Fluxor and Flowgen)
Fluxor
Logic: Fluxor focuses on detecting specific price transitions, validating them against an internal directional and momentum layer, and then confirming the move based on the script’s overarching market bias.
Visual Representation: When Fluxor is activated, up and down label markers (“▲+” or “▼+”) appear at points the system regards as noteworthy transitions. These do not guarantee trades but are designed to guide users on when buying or selling pressure may have intensified or reversed.
How It Helps: Fluxor is streamlined for those who want simpler, clearer triggers that factor in both trend alignment and short-term motion shifts. This option is more for mean reversion traders.
Flowgen
Logic: Flowgen employs a slightly more sophisticated approach that evaluates multiple “environmental layers,” including structural alignment, directional slope checks, and distinct open-state filters.
Visual Representation: When Flowgen senses a valid transition, it prints discrete up and down markers, much like Fluxor, but triggered by different, multi-layer considerations.
How It Helps: Flowgen caters to traders who desire more emphasis on layered agreement—where multiple aspects of the market must line up before a signal is shown. This option is more for trend following traders.
Overlays (Nebula Trail, Velora, Stellar Stepfilter)
Nebula Trail
Purpose: This indicator employs dynamic, color-coded bands around price action to illustrate prevailing market bias and track which side—bulls or bears—wields greater influence, aligning with a trend-following approach.
Usage: This indicator creates outer and inner “band” regions that can function as potential support or resistance in alignment with market momentum. In bullish phases, the cloud below price acts as a supportive barrier, whereas during bearish conditions, the cloud above price provides a point of resistance. When a bearish signal is detected, traders may enter short positions on a price bounce off this band and then exit when subsequent take-profit cues appear, effectively leveraging the band for both entry and exit strategies.
Velora
Purpose: Extends the concept of band visualization into layered “tiers,” giving a more fine-grained view of how price transitions from one band to another.
Representation: Zones are subdivided into multiple steps, each with distinct shading. As the script’s internal logic detects shifts between bullish or bearish conditions, these layered bands expand or contract to reflect changing momentum.
Usage: Velora subdivides zones into multiple steps, each featuring distinct shading. As the script's internal logic detects shifts between bullish or bearish conditions, these layered bands expand or contract, signaling changes in momentum. When price enters the upper band, especially if the HUD meter shows less definitive momentum, it may hint at a non-trending environment; conversely, in a bearish scenario, the lower band can act as potential support. Narrower bands often point to an impending breakout, while wider bands can suggest a possible reversion in price. Velora is well-suited for traders wanting to see more intermediate zones where the market may hesitate or show partial confirmation—ideal for refined entries or exits.
Smooth:
Choppy:
Stellar Stepfilter
Purpose: Focuses on a persistent directional line that only updates when the script’s logic deems a genuine shift is taking place.
Representation: A single line plots on the chart to represent the “locked” direction. During periods of noise or indecision, this line may remain static, reducing false signals. Optionally, bars can be recolored to reflect bullish or bearish states.
Usage: Traders who prefer a minimalistic, stand-back approach often select Stellar Stepfilter for its ability to filter out choppy conditions and highlight clearer momentum strides. When the line remains flat—particularly in the very slow or “turtle” mode—it signals a ranging market, offering valuable insight into periods of reduced volatility. In TURTLE mode, bars are recolored green or orange to reflect locked trend direction more visibly. TURTLE mode offers the most conservative setting within the Stepfilter engine, emphasizing stability and clarity by reacting only to the strongest directional conditions and visually reinforcing its state through bar coloring.
Very Fast
Very Slow
TURTLE Mode
Probability Table
Description: The Probability Table is displayed on the top-right corner (by default). It automatically fetches data for a handful of assets (in this case, five popular cryptocurrencies), then scores each asset on multiple behavioral metrics. By default, the Probability Table monitors SOL, BTC, ETH, BNB, and XRP from Binance.
Metrics Explained:
HV: Suggests how the asset’s price is fluctuating relative to a standard reference.
ATR/Vol: A ratio that provides insight into volatility compared to trading activity.
WBR: Compares candle wicks against their bodies to gauge the frequency of price swings outside an open-close range.
Liq Clust: Indicates if there are pockets of stable or unstable liquidity.
Momentum: Observes shifts in buying or selling pressure.
PRI: Shows a baseline measure of how far price has deviated from a certain average over time.
Final Verdict: Based on each metric’s reading, an overall classification emerges: Predictable, Moderate, or Chaotic.
How It Helps: Traders can quickly scan this table to see if an asset’s environment is “Predictable” (potentially more structured), “Moderate” (balanced or transitional), or “Chaotic” (unstable and riskier). Each cell can optionally show either numeric approximations or simple “up/down” arrows to reduce clutter.
Non Numeric Values
Numeric Values
Stellar HUD Meter
Description: Located at the top center of the chart, this horizontal gauge toggles between “Trending” and “Ranging,” representing how firmly price is locked in directional expansion versus sideways hesitation.
Mechanics (General): The gauge increments or decrements over time, smoothing out abrupt shifts. A pointer slides across the meter, indicating whether conditions are leaning more toward persistent momentum or uncertain, choppy movement.
How It Helps: This immediate visual feedback helps traders decide if momentum strategies or mean-reversion approaches are more suitable at a given moment, avoiding reliance on guesswork alone.
Take Profit Signals
Description: After any buy or sell trigger occurs (either through Fluxor or Flowgen), the script can flag up to three potential exit points.
Trigger Logic (General): These exits appear when certain internal checks sense that short-term upside or downside pressure may be waning.
Representation: Small markers (“X”) appear near the top or bottom of the candle.
How It Helps: Rather than passively holding a position, these optional signals remind traders of possible exhaustion points. If they choose to follow them, it can help secure partial or full profits during a trend.
Why more than one indicator?
Having more than one internal indicator engine allows Stellar Nexus to adapt to different market behaviors and personal trading styles. Sometimes traders require swift, high-frequency triggers (Fluxor). Other times, they prefer more layered agreement before taking a position (Flowgen). Similarly, each overlay—Nebula Trail, Velora, and Stellar Stepfilter—offers a distinct method for visualizing price action. Markets are dynamic, and no single representation is ideal for all conditions. By blending multiple approaches into one script, Stellar Nexus provides flexibility: a user can switch between sets of signals or overlays based on market phase, personal risk preference, or the timeframe being traded.
Additional Features
Alert System: Built-in alerts for every trigger or state change ensure that traders can receive real-time notifications, even when away from the chart. The alert system includes buy/sell triggers, trend shifts, overlay transitions, take-profit points, and predictability status changes across monitored assets.
Selective Visibility: Users can enable or disable various modules—Probability Table, HUD Meter, Take Profit Signals—to keep their chart interface uncluttered.
State Persistence: Certain modules “lock in” their reading until a strong reason emerges to change it, which can help minimize false flips in volatile conditions.
Tailored Aesthetics: Color choices and label styling are curated to be visually distinct, reducing confusion when multiple signals or overlays occur simultaneously.
Conclusion
Uptrick: Stellar Nexus is a comprehensive, multi-layer script that merges aesthetic clarity with functional depth. It combines diverse overlays, signal engines, probability analyses, and a heads-up market meter into one cohesive tool. By handling trending vs. ranging states, evaluating asset predictability, and offering selective take-profit cues, it serves as a versatile companion for traders who want organized, visually intuitive guidance. Its originality is found not only in how it disguises internal computations, but in the ease with which users can cycle through different overlays and signals to suit changing market conditions. As always, personal due diligence, market awareness, and risk management remain essential. Stellar Nexus simply provides a refined canvas on which to read and interpret price action more confidently.
Disclaimer
This indicator is provided solely for informational and educational purposes. It does not constitute investment advice or a recommendation to engage in any trading activities. Trading and investing in financial markets involve significant risk, and past performance is not indicative of future results. Always conduct your own research, utilize proper risk management, and consider consulting a qualified financial professional before making any investment decisions. Neither the creator nor any contributors to this script accept any liability for financial losses or damages arising from its use. Users of this indicator assume full responsibility for their trading activities.
SuperTrend Momentum OscillatorOverview
The SuperTrend Momentum Oscillator (SMO) is a powerful technical analysis tool designed to identify trend direction and strength in financial markets. It combines short-term and long-term oscillator calculations to provide traders with a comprehensive view of market conditions through an intuitive candle-based visualization system.
Key Features
Dual-period oscillator system (short-term and long-term)
Candle-based visualization showing trend direction and alignment
Color-coded trend direction based on the main (slower) trend line
Candle size reflecting alignment between fast and slow components
High-confidence "Super" signals (green diamonds for buys, purple diamonds for sells)
Market liquidity insights through oscillator readings
Understanding the Candle Visualization
Main Trend vs. Fast Money
The SMO uses two key components that work together:
Main Trend Line (Slower): The longer-period oscillator that acts as the primary trend indicator
Dictates the overall color of the candles (green for uptrend, red for downtrend)
Represents the dominant market direction
Fast Line (Quicker): The shorter-period oscillator that reacts more quickly to price changes
Helps determine the size of candles through its alignment with the main trend
Represents "fast money" or shorter-term price reactions
Candle Components and Their Meaning
1. Candle Color
The color of each candle is determined by the direction of the main trend line:
Green Candles: Main trend line is rising (bullish)
Indicates an overall uptrend regardless of short-term fluctuations
Remains green even when the fast line temporarily moves against the trend
Red Candles: Main trend line is falling (bearish)
Indicates an overall downtrend regardless of short-term fluctuations
Remains red even when the fast line temporarily moves against the trend
2. Candle Body Size
The body size of each candle represents the alignment between fast and main trend lines:
Large Bodies: Both fast and main trend lines are moving in the same direction
Trading Action: Strong confirmation of the trend direction
Confidence Level: High confidence signals
Small Bodies: Fast line is moving against the main trend line
Trading Action: Exercise caution; potential for temporary pullback or consolidation
Confidence Level: Lower confidence in immediate continuation
3. Wick Length
Wicks (shadows) provide additional information about price rejection and volatility:
Long Wicks: Indicate price rejection and potential volatility
Trading Action: Be cautious of trend continuation when long wicks appear
Confidence Level: Reduced confidence in immediate trend continuation
Short Wicks: Indicate strong directional control with minimal rejection
Trading Action: More confidence in trend continuation
Confidence Level: Higher confidence in the current trend direction
Candle Patterns Over Time
The progression of candles provides valuable trend information:
Large Green Candles: Main trend is up and fast line confirms (strong bullish)
Trading Action: Consider entering or adding to long positions
Confidence Level: High confidence in uptrend
Small Green Candles: Main trend is up but fast line is moving down (caution in uptrend)
Trading Action: Hold existing long positions but wait before adding
Confidence Level: Moderate confidence in uptrend, possible short-term pullback
Large Red Candles: Main trend is down and fast line confirms (strong bearish)
Trading Action: Consider entering or adding to short positions
Confidence Level: High confidence in downtrend
Small Red Candles: Main trend is down but fast line is moving up (caution in downtrend)
Trading Action: Hold existing short positions but wait before adding
Confidence Level: Moderate confidence in downtrend, possible short-term bounce
Super Signals - High Confidence Trading Opportunities
The SMO focuses exclusively on high-confidence "Super" signals:
Green Diamond Super Buy Signals
Meaning: Both short-term and long-term oscillators are generating buy signals simultaneously
Visual Indicator: Green diamond markers at the bottom of the indicator (0 level)
Trading Action: Strong entry signal for long positions
Confidence Level: High confidence signal, especially when accompanied by large green candles
Purple Diamond Super Sell Signals
Meaning: Both short-term and long-term oscillators are generating sell signals simultaneously
Visual Indicator: Purple diamond markers at the top of the indicator (100 level)
Trading Action: Strong entry signal for short positions or exit signal for long positions
Confidence Level: High confidence signal, especially when accompanied by large red candles
Market Liquidity Concept
The SMO provides a unique perspective on market conditions that goes beyond traditional oscillator interpretations:
Low Oscillator Readings (Below 20)
When the oscillator shows low readings (below 20), this indicates:
Traditional interpretation: Market is oversold, potential for upward reversal
Liquidity interpretation: Insufficient money in the market
This suggests thin trading conditions where large orders may have outsized impact
Price movements may be more erratic and less predictable
Breakouts may lack follow-through due to insufficient participation
High Oscillator Readings (Above 80)
When the oscillator shows high readings (above 80), this indicates:
Traditional interpretation: Market is overbought, potential for downward reversal
Liquidity interpretation: Abundant money in the market
This suggests deep trading conditions with high participation
Price movements tend to be more orderly and trend-based
Breakouts may have stronger follow-through due to high participation
Trading Strategies with SMO
Strategy 1: Main Trend with Alignment Confirmation
This strategy uses the main trend direction with alignment confirmation:
Entry Criteria:
Main trend direction is established (green or red candles)
Fast line aligns with main trend (large candles)
Super signal confirms (green or purple diamond)
Exit Criteria:
For long positions: When candles turn red or Super Sell signal appears
For short positions: When candles turn green or Super Buy signal appears
Stop Loss Placement:
For long positions: Below recent swing low
For short positions: Above recent swing high
Strategy 2: Counter-Trend Opportunity Detection
This strategy identifies potential counter-trend opportunities:
Entry Criteria:
Small candles appear (indicating disagreement between fast and main trend lines)
Oscillator reaches extreme levels (above 80 or below 20)
Wait for candle color change before entering
Position Sizing:
Use smaller position sizes for counter-trend trades
Increase size only when main trend confirms the new direction
Exit Criteria:
Take profit at the first sign of alignment in the opposite direction
Use tighter stops than with trend-following trades
Strategy 3: Market Liquidity Strategy
This strategy incorporates the market liquidity concept:
For Low Liquidity Conditions (Readings below 20):
Wait for Super Buy signals (green diamond)
Use smaller position sizes
Be prepared for potentially erratic price movements
Look for signs of increasing liquidity (expanding candle bodies) before adding to positions
For High Liquidity Conditions (Readings above 80):
Consider holding positions longer despite "overbought" readings
Use trailing stops to capture extended moves
Be aware that trends may persist longer than expected
Practical Trading Scenarios
Scenario 1: Strong Trend Confirmation
Candle Pattern: Series of large green candles (main trend up, fast line confirms)
Signal: Green diamond Super Buy marker at the bottom (0 level)
Background: Intensifying green gradient
Action: Enter long position with confidence
Stop Loss: Below recent swing low
Take Profit: When candles become small or turn red
Scenario 2: Trend Weakening Detection
Candle Pattern: Green candles becoming smaller (main trend still up, but fast line diverging)
Signal: No new signals
Background: Fading green gradient
Action: Tighten stops on long positions, prepare for potential reversal
Reasoning: Fast money is starting to move against the main trend
Scenario 3: Trend Reversal Identification
Candle Pattern: Transition from small green candles to red candles (main trend changing)
Signal: Appearance of purple diamond Super Sell marker at the top (100 level)
Background: Changing from green to red gradient
Action: Exit long positions and potentially enter short positions
Timing: Most effective when reversal occurs near overbought (80) level
Consecutive Small CandlesThis script identifies relatively "small" candles based on their being smaller than a maximum size you set based on the instrument and your own criteria. Default is 5, as I use this indicator largely on CL which rarely has candles smaller than 3 ticks but frequently greater than 5.
It identifies 2 or more consecutive candles to help identify patterns similar to Bob Volman's Double Doji Break methodolgy. Written by Grok 3.
Candlestick Pattern Indicator – Doji, Harami, More [algo_aakash]This Candlestick Pattern Indicator is designed to help traders identify key price action patterns like Bullish Engulfing, Bearish Engulfing, Doji, Hammer, Morning Star, Evening Star, and many more directly on your TradingView chart. With customizable options to display both bullish and bearish patterns , this indicator provides real-time visual markers and labels, helping you make informed trading decisions.
Key features of the indicator include:
Detects popular candlestick patterns such as Bullish Engulfing, Bearish Engulfing, Hammer, Morning Star, Tweezer Tops, and more.
Customizable settings for displaying pattern shapes, labels, and opacity, tailored to your trading preferences.
Option to plot signals only after a candle closes, ensuring accuracy.
Alerts for immediate notification of detected patterns.
Visual markers on the chart, including arrows and labels, for quick recognition of potential trade setups.
This indicator is ideal for traders who rely on candlestick patterns for technical analysis and want an automated tool to highlight these setups for easier decision-making.
Whether you're a beginner or an experienced trader, this tool will help you spot important patterns in real-time without cluttering your chart.
ES1! vs ZB1! Exponentially Weighted CorrelationES1! vs ZB1! Exponentially Weighted Correlation
This indicator calculates and visualizes the exponentially weighted correlation between the S&P 500 E-mini futures (ES1!) and the 30-Year U.S. Treasury Bond futures (ZB1!) over a user-defined lookback period. By using an exponential moving average (EMA) approach, it emphasizes recent price movements, providing a dynamic view of the relationship between these two key financial instruments.
Features:
- Customizable Inputs: Adjust the lookback length (default: 60) and alpha (default: 0.1) to fine-tune the sensitivity of the correlation calculation.
- Exponentially Weighted Correlation: Measures the strength and direction of the relationship between ES1! and ZB1! prices, with more weight given to recent data.
- Visual Clarity: Displays correlation as colored bars (green for positive, red for negative) for quick interpretation, with reference lines at 0, +1, and -1 for context.
- Non-Overlay Design: Plotted in a separate panel below the chart to avoid cluttering price data.
How It Works:
The indicator fetches closing prices for ES1! and ZB1!, applies an EMA to smooth the data, and computes the exponentially weighted covariance and variances. The correlation is then derived and plotted as a histogram, helping traders identify whether the two markets are moving together (positive correlation), in opposite directions (negative correlation), or independently.
Use Cases:
- Market Analysis: Gauge the relationship between equity and bond markets to inform trading strategies.
- Risk Management: Monitor correlation shifts to adjust portfolio exposure.
- Intermarket Insights: Identify trends or divergences in the stock-bond dynamic for macroeconomic analysis.
Ideal for traders and analysts tracking intermarket relationships, this indicator offers a clear, responsive tool for understanding ES1! and ZB1! correlation in real-time.
Candle Trend PowerThe Candle Trend Power is a custom technical indicator designed for advanced trend analysis and entry signal generation. It combines multiple smoothing methods, candle transformations, and volatility bands to visually and analytically enhance your trading decisions.
🔧 Main Features:
📉 Custom Candle Types
It transforms standard OHLC candles into one of several advanced types:
Normal Candles, Heikin-Ashi, Linear Regression, Rational Quadratic (via kernel filtering), McGinley Dynamic Candles
These transformations help traders better see trend continuations and reversals by smoothing out market noise.
🧮 Smoothing Method for Candle Data
Each OHLC value can be optionally smoothed using:
EMA, SMA, SMMA (RMA), WMA, VWMA, HMA, Mode (Statistical mode) Or no smoothing at all.
This flexibility is useful for customizing to different market conditions.
📊 Volatility Bands
Volatility-based upper and lower bands are calculated using:
Band = price ± (price% + ATR * multiplier)
They help identify overbought/oversold zones and potential reversal points.
📍 Candle Color Logic
Each candle is colored:
Cyan (#00ffff) if it's bullish and stronger than the previous candle
Red (#fd0000) if it's bearish and weaker
Alternating bar index coloring improves visual clarity.
📈 Trend Momentum Labels
The script includes a trend strength estimation using a smoothed RSI:
If the candle is bullish, it shows a BUY label with the overbought offset.
If bearish, it shows a SELL label with the oversold offset.
These labels are dynamic and placed next to the bar.
📍 Signal Markers
It also plots triangles when the price crosses the volatility bands:
Triangle up for potential long
Triangle down for potential short
✅ Use Case Summary
This script is mainly used for:
Visual trend confirmation with enhanced candles
Volatility-based entry signals
RSI-based trend momentum suggestions
Integrating different smoothing & transformation methods to fine-tune your strategy
It’s a flexible tool for both manual traders and automated system developers who want clear, adaptive signals across different market conditions.
💡 What's Different
🔄 Candle Type Transformations
⚙️ Custom Candle Smoothing
📉 Candle's Multi-level Volatility Bands
🔺 Dynamic Entry Signals (Buy/Sell Labels)
❗Important Note:
This script is provided for educational purposes and does not constitute financial advice. Traders and investors should conduct their research and analysis before making any trading decisions.
Candle vs 8 SMA - Red & Green📈 Script Name: Candle vs 8 SMA – Red & Green
This TradingView Pine Script visually compares each candle's close price to the 8-period Simple Moving Average (SMA) and highlights the chart accordingly:
🔍 What It Does:
Calculates the 8-period SMA
sma8 = ta.sma(close, 8)
This line computes the average of the last 8 closing prices to smooth out short-term fluctuations.
Plots the SMA Line
Orange line shown on the chart.
Helps you visually track the short-term trend.
Identifies Candle Position
candleAbove: true if the candle’s close is above the SMA
candleBelow: true if the candle’s close is below the SMA
Highlights Background
If the close is above the 8 SMA → Green background (indicating bullish behavior)
If the close is below the 8 SMA → Red background (indicating bearish behavior)
Plots Triangle Shapes
Green triangle below candle when above the SMA
Red triangle above candle when below the SMA
Helps quickly identify conditions at a glance
🧠 Why Use It?
This script is useful for:
Intraday trend confirmation
Spotting momentum shifts
Visual clarity on how price reacts to a dynamic support/resistance (SMA)
Aiding quick decisions for scalping or intraday trades
Green*DiamondGreen*Diamond (GD1)
Unleash Dynamic Trading Signals with Volatility and Momentum
Overview
GreenDiamond is a versatile overlay indicator designed for traders seeking actionable buy and sell signals across various markets and timeframes. Combining Volatility Bands (VB) bands, Consolidation Detection, MACD, RSI, and a unique Ribbon Wave, it highlights high-probability setups while filtering out noise. With customizable signals like Green-Yellow Buy, Pullback Sell, and Inverse Pullback Buy, plus vibrant candle and volume visuals, GreenDiamond adapts to your trading style—whether you’re scalping, day trading, or swing trading.
Key Features
Volatility Bands (VB): Plots dynamic upper and lower bands to identify breakouts or reversals, with toggleable buy/sell signals outside consolidation zones.
Consolidation Detection: Marks low-range periods to avoid choppy markets, ensuring signals fire during trending conditions.
MACD Signals: Offers flexible buy/sell conditions (e.g., cross above signal, above zero, histogram up) with RSI divergence integration for precision.
RSI Filter: Enhances signals with customizable levels (midline, oversold/overbought) and bullish divergence detection.
Ribbon Wave: Visualizes trend strength using three EMAs, colored by MACD and RSI for intuitive momentum cues.
Custom Signals: Includes Green-Yellow Buy, Pullback Sell, and Inverse Pullback Buy, with limits on consecutive signals to prevent overtrading.
Candle & Volume Styling: Blends MACD/RSI colors on candles and scales volume bars to highlight momentum spikes.
Alerts: Set up alerts for VB signals, MACD crosses, Green*Diamond signals, and custom conditions to stay on top of opportunities.
How It Works
Green*Diamond integrates multiple indicators to generate signals:
Volatility Bands: Calculates bands using a pivot SMA and standard deviation. Buy signals trigger on crossovers above the lower band, sell signals on crossunders below the upper band (if enabled).
Consolidation Filter: Suppresses signals when candle ranges are below a threshold, keeping you out of flat markets.
MACD & RSI: Combines MACD conditions (e.g., cross above signal) with RSI filters (e.g., above midline) and optional volume spikes for robust signals.
Custom Logic: Green-Yellow Buy uses MACD bullishness, Pullback Sell targets retracements, and Inverse Pullback Buy catches reversals after downmoves—all filtered to avoid consolidation.
Visuals: Ribbon Wave shows trend direction, candles blend momentum colors, and volume bars scale dynamically to confirm signals.
Settings
Volatility Bands Settings:
VB Lookback Period (20): Adjust to 10–15 for faster markets (e.g., 1-minute scalping) or 25–30 for daily charts.
Upper/Lower Band Multiplier (1.0): Increase to 1.5–2.0 for wider bands in volatile stocks like AEHL; decrease to 0.5 for calmer markets.
Show Volatility Bands: Toggle off to reduce chart clutter.
Use VB Signals: Enable for breakout-focused trades; disable to focus on Green*Diamond signals.
Consolidation Settings:
Consolidation Lookback (14): Set to 5–10 for small caps (e.g., AEHL) to catch quick consolidations; 20 for higher timeframes.
Range Threshold (0.5): Lower to 0.3 for stricter filtering in choppy markets; raise to 0.7 for looser signals.
MACD Settings:
Fast/Slow Length (12/26): Shorten to 8/21 for scalping; extend to 15/34 for swing trading.
Signal Smoothing (9): Reduce to 5 for faster signals; increase to 12 for smoother trends.
Buy/Sell Signal Options: Choose “Cross Above Signal” for classic MACD; “Histogram Up” for momentum plays.
Use RSI Div + MACD Cross: Enable for high-probability reversal signals.
RSI Settings:
RSI Period (14): Drop to 10 for 1-minute charts; raise to 20 for daily.
Filter Level (50): Set to 55 for stricter buys; 45 for sells.
Overbought/Oversold (70/30): Tighten to 65/35 for small caps; widen to 75/25 for indices.
RSI Buy/Sell Options: Select “Bullish Divergence” for reversals; “Cross Above Oversold” for momentum.
Color Settings:
Adjust bullish/bearish colors for visibility (e.g., brighter green/red for dark themes).
Border Thickness (1): Increase to 2–3 for clearer candle outlines.
Volume Settings:
Volume Average Length (20): Shorten to 10 for scalping; extend to 30 for swing trades.
Volume Multiplier (2.0): Raise to 3.0 for AEHL’s volume surges; lower to 1.5 for steady stocks.
Bar Height (10%): Increase to 15% for prominent bars; decrease to 5% to reduce clutter.
Ribbon Settings:
EMA Periods (10/20/30): Tighten to 5/10/15 for scalping; widen to 20/40/60 for trends.
Color by MACD/RSI: Disable for simpler visuals; enable for dynamic momentum cues.
Gradient Fill: Toggle on for trend clarity; off for minimalism.
Custom Signals:
Enable Green-Yellow Buy: Use for momentum confirmation; limit to 1–2 signals to avoid spam.
Pullback/Inverse Pullback % (50): Set to 30–40% for small caps; 60–70% for indices.
Max Buy Signals (1): Increase to 2–3 for active markets; keep at 1 for discipline.
Tips and Tricks
Scalping Small Caps (e.g., AEHL):
Use 1-minute charts with VB Lookback = 10, Consolidation Lookback = 5, and Volume Multiplier = 3.0 to catch $0.10–$0.20 moves.
Enable Green-Yellow Buy and Inverse Pullback Buy for quick entries; disable VB Signals to focus on Green*Diamond logic.
Pair with SMC+ green boxes (if you use them) for reversal confirmation.
Day Trading:
Try 5-minute charts with MACD Fast/Slow = 8/21 and RSI Period = 10.
Enable RSI Divergence + MACD Cross for high-probability setups; set Max Buy Signals = 2.
Watch for volume bars turning yellow to confirm entries.
Swing Trading:
Use daily charts with VB Lookback = 30, Ribbon EMAs = 20/40/60.
Enable Pullback Sell (60%) to exit after rallies; disable RSI Color for cleaner candles.
Check Ribbon Wave gradient for trend strength—bright green signals strong bulls.
Avoiding Noise:
Increase Consolidation Threshold to 0.7 on volatile days to skip false breakouts.
Disable Ribbon Wave or Volume Bars if the chart feels crowded.
Limit Max Buy Signals to 1 for disciplined trading.
Alert Setup:
In TradingView’s Alerts panel, select:
“GD Buy Signal” for standard entries.
“RSI Div + MACD Cross Buy” for reversals.
“VB Buy Signal” for breakout plays.
Set to “Once Per Bar Close” for confirmed signals; “Once Per Bar” for scalping.
Backtesting:
Replay on small caps ( Float < 5M, Price $0.50–$5) to test signals.
Focus on “GD Buy Signal” with yellow volume bars and green Ribbon Wave.
Avoid signals during gray consolidation squares unless paired with RSI Divergence.
Usage Notes
Markets: Works on stocks, forex, crypto, and indices. Best for volatile assets (e.g., small-cap stocks, BTCUSD).
Timeframes: Scalping (1–5 minutes), day trading (15–60 minutes), or swing trading (daily). Adjust settings per timeframe.
Risk Management: Combine with stop-losses (e.g., 1% risk, $0.05 below AEHL entry) and take-profits (3–5%).
Customization: Tweak inputs to match your strategy—experiment in replay to find your sweet spot.
Disclaimer
Green*Diamond is a technical tool to assist with trade identification, not a guarantee of profits. Trading involves risks, and past performance doesn’t predict future results. Always conduct your own analysis, manage risk, and test settings before live trading.
Feedback
Love Green*Diamond? Found a killer setup?
Market OracleMarket Oracle Indicator: User Guide
Market Oracle is a powerful, all-in-one trading indicator for TradingView that combines multiple technical signals into a clear, actionable dashboard. Built for traders seeking a reliable edge, it analyzes trend, momentum, volatility, volume, and more to generate high-confidence buy and sell signals. With features like dynamic position sizing, market regime performance tracking, and customizable settings, it’s perfect for stocks, forex, crypto, or any market on any timeframe.
What It Does
Market Oracle evaluates market conditions using a blend of proven indicators (RSI, Stochastic RSI, EMAs, SuperTrend, MACD, Ichimoku Cloud, Bollinger Bands, ATR, ADX, and candlestick patterns) to produce a Composite Score (0-100) that reflects bullish or bearish strength. It generates:
Buy/Sell Signals: Triggered when the score crosses user-defined thresholds, filtered by volume, ADX, and trading hours.
Dynamic Position Sizing: Adjusts trade size based on volatility (ATR), reducing risk in choppy markets.
Market Regime Insights: Tracks performance in trending vs. ranging markets to highlight strategy strengths.
Comprehensive Dashboard: Displays real-time metrics like signal confidence, stop/take-profit levels, win rates, and more.
Whether you’re a day trader, swing trader, or long-term investor, Market Oracle simplifies decision-making with clear insights and robust backtesting.
Key Features
Composite Score:
Combines trend (EMAs, SuperTrend, MACD), momentum (RSI, Stochastic RSI), volatility (Bollinger Bands, ATR), volume (OBV, MA), Ichimoku Cloud, divergences, multi-timeframe trends, and candlestick patterns.
Score > 50 indicates bullishness; < 50 indicates bearishness. Extreme values (>90 or <10) flag overbought/oversold conditions.
Smart Signals:
Buy signals trigger when the score exceeds a threshold (default 70), with filters for volume, ADX strength, and Ichimoku/pattern confirmation.
Sell signals trigger below 100-threshold (default 30), with similar filters.
Signals include confidence levels (0-100%) based on indicator alignment.
Dynamic Position Sizing:
Scales trade size using ATR to limit risk in volatile markets (e.g., smaller positions when ATR is high).
Caps volatility adjustments (default 3x ATR) to maintain reasonable sizing.
Bases risk on a user-defined percentage (default 1% per trade).
Market Regime Performance:
Identifies trending (high ADX or wide Bollinger Bands) vs. ranging markets.
Tracks win rates separately for each regime, helping you optimize strategies for specific conditions.
Backtesting Metrics:
Shows buy/sell win rates, recent win rate, trending/ranging win rates, profit factor, max drawdown, and equity trend.
Helps evaluate strategy performance over time.
Customizable Dashboard:
Displays key metrics: Composite Score, Trend, Momentum, Volatility, Ichimoku, ADX, Divergences, Signal Status, Confidence, Stop/Take-Profit, Position Size, and more.
Toggles to show/hide backtest stats, Ichimoku Cloud, or multi-timeframe trends.
Clean layout with no clutter (e.g., no unnecessary “!” markers).
Alerts:
Set alerts for Buy/Sell Signals, Signal Exits, High Scores, or Overbought/Oversold conditions.
Messages include score and confidence (e.g., “Oracle+: Buy signal (Score: 75.2, Confidence: 80%)”).
Flexible Settings:
Adjust thresholds, indicator lengths, weights, risk parameters, and more.
Enable/disable features like trailing stops, market regime filters, or trading hour restrictions.
How to Use It
1. Add to TradingView
Copy the Market Oracle script into TradingView’s Pine Editor.
Click “Add to Chart” to apply it to your chosen market (e.g., BTC/USD, EUR/USD, SPY).
The dashboard appears in the bottom-right corner, showing real-time data.
2. Read the Dashboard
The dashboard is split into three sections:
Market State:
Composite Score: Current score and confidence (e.g., “75.2 (50.4%)”). “(OB)” or “(OS)” flags overbought/oversold.
Adjusted Threshold: Signal trigger level, adjusted for market regime.
Trend/MTF Trend: Bullish, Bearish, or Neutral (based on EMAs, SuperTrend, higher timeframe).
Momentum: Bullish, Bearish, or Neutral (RSI, Stochastic RSI).
Volatility: High or Low (Bollinger Bands, ATR).
Ichimoku Cloud: Bullish, Bearish, or Neutral (if enabled).
ADX Strength: Strong or Weak.
Divergence: Bullish, Bearish, or None (RSI, MACD).
Signals:
Signal Status: “Buy”, “Sell”, or “None”.
Signal Confidence: Percentage (e.g., “80%”) based on indicator agreement.
Stop Level/Take-Profit: Price levels for risk management.
Position Size: Units to trade, adjusted for volatility.
Avg Trade Duration: Average bars per trade.
Signal History: Recent signals/exits (e.g., “Buy | Buy Win”).
Backtest (optional):
Buy/Sell Win Rate: Percentage of winning trades.
Recent Win Rate: Win rate for recent trades.
Trending/Ranging Win Rate: Performance by market condition.
Profit Factor: Profit-to-loss ratio.
Max Drawdown: Largest equity drop.
Equity Trend: Up, Down, or Flat.
3. Customize Settings
Access the indicator’s settings by clicking the gear icon:
Signal Sensitivity:
Base Signal Threshold (default 70): Higher = stricter signals.
Min Confidence for Alerts (default 60%): Filters weaker alerts.
Risk Management:
Risk % per Trade (default 1%): Sets base risk.
Max ATR Multiplier (default 3.0): Caps position size reduction.
Take-Profit Ratio (default 2.0): Sets reward-to-risk ratio.
Use Trailing Stop (default false): Enable for dynamic stops.
Filters:
Use Volume Filter (default true): Requires above-average volume.
Use ADX Filter (default true): Requires strong trend (ADX > 25).
Use Market Regime Filter (default true): Adjusts thresholds for trending/ranging markets.
Avoid Specific Hours (default false): Skip signals during set hours (e.g., 0-6 UTC).
Indicators:
Adjust lengths for RSI (14), EMAs (20/50), MACD (12/26/9), etc.
Enable/disable Use Candlestick Patterns (default true) and choose type (Hammer, Engulfing, etc.).
Display:
Show Backtest Metrics (default true): Show win rates and stats.
Show Ichimoku Cloud (default true): Include cloud signals.
Show MTF Trend (default true): Include higher timeframe trend.
4. Set Alerts
In TradingView, click the alarm icon and select Market Oracle conditions:
Buy/Sell Signal: Triggers on new signals with sufficient confidence.
Signal Exit: Triggers when a trade closes (stop or take-profit hit).
High Score Alert: Triggers when score exceeds a threshold (default 80).
Overbought/Oversold: Warns of extreme conditions (if enabled).
Alerts include details for easy tracking (e.g., score, confidence).
5. Test and Trade
Test Markets: Try on forex (EUR/USD 1H), crypto (BTC/USD 4H), or stocks (AAPL daily).
Check Volatility: Monitor Position Size in volatile markets (e.g., XAU/USD); it shrinks to reduce risk.
Evaluate Regimes: Use “Trending Win Rate” and “Ranging Win Rate” to see where the strategy shines.
Backtest: Review Profit Factor and Max Drawdown to assess performance.
Start Small: Use a demo account to test signals before trading live.
Tips for Success
Match Your Style: Adjust scoreThreshold and timeframe to suit day trading (e.g., 15m, stricter threshold) or swing trading (e.g., 4H, looser threshold).
Monitor Regimes: If “Trending Win Rate” is higher, focus signals during strong trends (high ADX).
Manage Risk: Keep riskPerTrade low (e.g., 0.5-2%) and review Position Size for sanity.
Combine with Analysis: Use signals alongside support/resistance or news events for confirmation.
Tune Parameters: Experiment with atrVolatilityCap (e.g., 2.0 for tighter sizing) or adxThreshold (e.g., 30 for stronger trends).
Avoid Overtrading: Filter signals with minConfidenceForAlert (e.g., 70%) to focus on high-probability setups.
Example Scenarios
Crypto Breakout (BTC/USD 4H):
Composite Score jumps to 82, Signal Status shows “Buy” with 80% confidence.
Position Size is moderate due to high ATR during a rally.
“Trending Win Rate” is 65%, suggesting strength in directional moves.
Set an alert and enter with a 2:1 take-profit (e.g., stop at 60,000, target at 62,000).
Forex Range (EUR/USD 1H):
Score hovers near 45, no signal (Neutral).
“Ranging Win Rate” is 55%, indicating decent performance in consolidation.
Wait for a score above 70 or use a higher timeframe (e.g., Daily MTF Trend).
Stock Swing (AAPL daily):
Score hits 75, “Buy” signal with a small Position Size (low ATR).
Dashboard shows Bullish Ichimoku and MTF Trend.
Trade with a trailing stop to capture a multi-day move.
Why Choose Market Oracle?
All-in-One: Combines multiple indicators into one easy-to-read dashboard, saving you time.
Adaptive: Adjusts signals and sizing for market conditions (trending, ranging, volatile).
Transparent: Shows confidence, win rates, and risk levels to build trust in trades.
Customizable: Tailor to any market, timeframe, or trading style with dozens of settings.
No Clutter: Clean interface with no distracting visuals, just actionable data.
Getting Started
Add Market Oracle to your chart and explore the dashboard.
Test on a market you trade (e.g., ETH/USD 1H) with default settings.
Adjust scoreThreshold or riskPerTrade to match your risk tolerance.
Set alerts for Buy/Sell Signals and monitor performance via “Trending Win Rate” and “Profit Factor”.
Join TradingView communities to share setups and tips!
For questions or tweaks (e.g., adding VWAP, changing alert conditions), consult your indicator’s developer or TradingView’s Pine Script resources. Happy trading!
Supply & Demand Histogram and Lines [BerlinCode42]Happy Trade,
This is a Supply & Demand Histogram—also referred to as a Heatmap—that highlights key S&D levels on the chart. Unlike traditional approaches that use volume, this script identifies specific chart patterns and evaluates them to generate the Supply & Demand Histogram. It analyzes the Supply and the Demand separately.
The script is equipped with trade signals for external use (Indicator on Indicator) and is fully compatible with my strategy template script. This allows you to easily create backtests and combine it with other indicators to build a custom strategy.
Intro
Calculation of the Supply & Demand Histogram
Usage and Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
1. Calculation of the Supply & Demand Histogram
Initially, the total price range—spanning from the absolute minimum to the absolute maximum observed price—is discretized into 10,000 equally sized intervals. For each interval, the algorithm performs the following:
It detects chart patterns that typically emerge in zones of varying volatility, categorizing them accordingly. Each identified pattern is assigned a individual weight based on its structural parameters, such as amplitude or slope. Lets call them Structural Weights. These weighted occurrences are then aggregated per interval, resulting in a quantitative representation of supply and demand pressure across the price spectrum, visualized as a histogram.
This pattern-based methodology facilitates the quantitative estimation of supply and demand zones without reliance on volume metrics.
2. Usage and Settings Menu
Initially, the user can configure the granularity of the price segmentation used in the Supply & Demand Histogram. This is achieved by enabling the 'Show Price Range' option, as illustrated in Image 1. Activating this feature overlays a gray-shaded region on the chart, visually representing the defined price range.
Image 1
The vertical position of this range can be adjusted using the 'Price Range Offset' parameter, while the interval widths are modifiable via the 'Step Factor' setting. It is critical to ensure that the specified range encapsulates the entirety of historical and anticipated price movements; failure to do so may result in calculation errors if price action extends beyond the defined bounds. Nevertheless, the default Step Factor has been conservatively chosen to accommodate most price dynamics.
Due to performance considerations, the indicator does not render all 10,000 discrete intervals comprising the full histogram. Instead, it selectively displays a subset of 100 intervals centered around the most recent price."
Once the price range has been configured, disable the “Show Price Range” option again in order to display the Supply & Demand Histogram.
Subsequently, users can fine-tune the histogram computation via two key settings, shown in Image 2:
Volume Count – This option allows selection between a pattern-based structural weighting method and a traditional volume-based approach for histogram construction. The structural method estimates significance through pattern characteristics rather than traded volume.
Supply + Demand – This toggle determines whether Supply and Demand levels are calculated and displayed independently or merged into a unified histogram. If one subscribes to the principle that a breached Supply zone can transform into a Demand zone (and vice versa), enabling this option will reflect that assumption by aggregating both into a single composite structure.
Image 2
Once this setup is complete, the Supply & Demand Histogram along with its most significant price levels will be visualized on the chart. Users can further refine the display settings to tailor the visual output.
In the settings menu, refer to the section illustrated in Image 3. There, you can adjust the number of displayed price levels by increasing or decreasing the S&D Line Filter percentage. A lower percentage results in fewer, more prominent levels being shown, while a higher percentage includes more levels.
The S&D histogram itself can also be hidden if desired.
Image 3
This indicator supports external integration via Indicator on Indicator Functionality or alerts. Specifically, when a price level is either touched or broken, an alert can be triggered. To visually identify where such alerts would occur, enable Show Alert Labels, which marks the respective bars on the chart.
If you want to import the trade signals into a Backtest or Strategy Template script, simply use the two signal outputs: "Break Signals" and "Touch Signals".
A value of zero indicates that no touching or breaking event is occurring.
A positive value signifies that a supply level has been touched or broken.
A negative value indicates a demand level interaction.
The absolute value of each signal corresponds to the price level of the respective Supply or Demand line.
The colors used to represent Supply and Demand levels can be customized to your preference.
Additionally, a Time and Session Filter has been added. This feature allows you to exclude specific time periods and dates from the analysis, enabling a better understanding of which trading times and market sessions are responsible for the formation of particular Supply & Demand levels.
To activate the filter, check the leftmost checkbox, then define the desired Date, Time, and Session parameters accordingly as shown in image 4.
Image 4
3. Declaration for Tradingview House Rules on Script Publishing
The unique feature of this Supply & Demand Histogram is its pattern-based calculation methodology. This approach enables the estimation of Supply and Demand levels even for assets that do not provide volume data. Additionally, it allows for separate computation of Supply and Demand. That means a broken Demand level does not necessarily convert into a Supply level, and vice versa.
This script is closed-source and invite-only to support and compensate for months long development work.
4. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
Now it’s your turn!
Global M2 Money+ Supply Input Lead (USD)Global M2 Money Supply + INR+CAD Input Lead (USD)
This indicator calculates the global M2 money supply in USD by aggregating M2 data from multiple economies, converted to USD using their respective exchange rates. It overlays the scaled M2 data on the chart with a user-defined time shift to analyze potential correlations with asset prices, such as Bitcoin. The indicator is designed to help traders assess global liquidity trends with a customizable lead or lag.
Countries Included:
Eurozone (EUM2)
North America: United States (USM2), Canada (CAM2)
Non-EU Europe: Switzerland (CHM2), United Kingdom (GBM2), Finland (FIM2), Russia (RUM2)
Pacific: New Zealand (NZM2)
Asia: China (CNM2), Taiwan (TWM2), Hong Kong (HKM2), India (INM2), Japan (JPM2), Philippines (PHM2), Singapore (SGM2)
Latin America: Brazil (BRM2), Colombia (COM2), Mexico (MXM2)
Middle East: United Arab Emirates (AEM2), Turkey (TRM2)
Africa: South Africa (ZAM2)
Input for Lead/Lag:
Time Shift (days): Adjust this input to shift the M2 data forward (positive values) or backward (negative values) on the chart. For example, setting a lead of 85 days shifts the M2 data 85 days into the future, helping traders analyze potential leading indicators for price movements.
Triple Confirmation Scalper v2 - Alarm CompatibleTriple Confirmation Scalper Strategy
A high-probability scalping strategy combining trend momentum, overbought/sold conditions, and volume confirmation to filter low-noise signals.
📊 Strategy Logic
Trend Direction
Dual EMA crossover (9 & 21 periods) for momentum and trend bias.
Overbought/Oversold Zones
RSI (14-period) to avoid entries at extremes.
Volume Spike Filter
OBV + 20-period volume average to confirm breakout validity.
Dynamic Risk Management
Stop-loss: Adaptive to recent price action (5-candle low/high ±1%).
Take-profit: 1.5% target (1.5:1 risk/reward).
🔍 Advanced Features
Precision VWAP (20-period, HLC3-based) for dynamic S/R levels.
Visual Aids:
EMA/VWAP bands + trend-colored background.
Volume spike alerts.
TradingView Alerts pre-configured for long/short signals.
⚙️ Default Settings
Commission: 0.1% factored into backtests.
Mode: Supports both long/short positions.
⚠️ Disclaimer
This is a technical analysis tool, not financial advice.
Past performance ≠ future results. Test thoroughly in a demo account.
Adjust parameters (e.g., EMA periods, RSI thresholds) to match your risk tolerance.
✅ TradingView Compliance Notes:
No exaggerated claims (e.g., "100% win rate").
Clear disclaimer included.
Focus on objective strategy logic (no promotional language).
Weekly Open (Current Week Only)📘 Indicator Name: Weekly Open (Current Week Only)
📝 Description:
This indicator plots a horizontal line representing the weekly open price, visible only during the current trading week. At the beginning of each new week (based on TradingView’s weekly time segmentation), the indicator captures the open price of the first candle and draws a constant line across the chart until the week ends. Once the new week begins, the line resets and updates with the new weekly open.
🎯 How to Use – ICT Concepts Integration (Weekly Profile):
This tool is designed to complement ICT (Inner Circle Trader) trading strategies, particularly within the weekly profile framework, by offering a clear and persistent visual of the weekly open, which is a critical reference point in ICT’s market structure theory.
✅ Use Cases:
Directional Bias:
According to ICT concepts, price trading above the weekly open suggests a bullish bias for the week, while trading below it implies bearish conditions.
Traders can use the weekly open line to align their intraweek trades with higher timeframe directional bias.
Dealing Ranges:
Weekly open helps frame the weekly dealing range, especially when combined with other levels like weekly high/low or previous week’s range.
It allows traders to identify potential liquidity pools or areas where price may seek to rebalance.
Mean Reversion Entries:
Price often reverts to or reacts from the weekly open. Traders may use this as a target or entry level, particularly during Monday/Tuesday setups.
Works well in conjunction with concepts like OTE (Optimal Trade Entry) and Judas Swings.
Risk Management:
Acts as a clean and visual anchor to structure stop losses or take-profits based on weekly bias shifts.
Volume & ATR Projection Tracker w/ Table & Alerts# README: Volume & ATR Projection Tracker (Pine Script Indicator)
## Overview
This Pine Script indicator for TradingView is designed to help traders analyze volume activity and potential short-term price volatility. It plots volume bars, calculates a moving average of volume, highlights unusual volume spikes (differentiating between up and down bars), and projects potential price ranges for upcoming hours based on Average True Range (ATR). It also provides a status table and configurable alerts.
**Disclaimer:** This indicator provides informational analysis and projections based on historical data and volatility. It does **not** provide guaranteed price predictions or financial advice. Trading involves substantial risk. Always do your own research and consult with a qualified financial advisor.
## Features
* **Volume Plotting:** Displays volume as a histogram in a separate panel.
* **Volume Moving Average:** Calculates and plots a configurable MA (SMA, EMA, WMA) of volume.
* **Unusual Volume Detection:** Identifies bars where volume significantly exceeds its moving average (based on a user-defined multiplier).
* **Differentiated Volume Analysis:**
* Colors volume bars differently based on whether unusual volume occurred on an up-bar (Close > Open), down-bar (Close < Open), or neutral bar (Close == Open).
* Plots different spike markers (up/down triangles) on the price chart for unusual volume on up/down bars.
* **ATR Volatility Projections:**
* Calculates the Average True Range (ATR) as a measure of recent volatility.
* Projects a potential price range (Close +/- ATR \* Multiplier) for a specified number of future hours.
* Plots these ranges as dashed lines and labels on the price chart.
* **Important:** These are volatility-based *ranges*, not directional predictions.
* **Status Table:** Displays a concise summary table on the chart including:
* Current Volume Status (Normal, High (Up), High (Down), High (Neut)).
* Current Volume compared to its MA (as a percentage).
* The projected ATR range for the next hour.
* **Configurable Alerts:** Provides alert conditions for:
* Unusual Volume detection.
* Volume crossing above its MA.
* Volume crossing below its MA.
* **Customizable Inputs:** Allows users to configure MA settings, volume threshold, ATR settings, projection hours, trading session times, and colors.
## How it Works
1. **Volume Analysis:**
* Calculates a Moving Average (SMA, EMA, or WMA) of the volume over a specified length (`MA Length`).
* Compares the current bar's volume to this MA. If `Volume > MA * Unusual Vol Multiplier`, the volume is flagged as "unusual".
* Checks if the unusual volume occurred on a bar where `Close > Open` (Up), `Close < Open` (Down), or `Close == Open` (Neutral).
* Colors the volume bars and plots spike markers based on this differentiated status.
2. **ATR Projections:**
* Calculates the ATR over a specified length (`ATR Length`).
* At the start of each hour *within the defined Trading Session*:
* Calculates an upper projection level: `Current Close + (Current ATR * ATR Multiplier)`.
* Calculates a lower projection level: `Current Close - (Current ATR * ATR Multiplier)`.
* Stores these levels for the specified number of `Projection Hours Ahead`.
* Draws dashed lines and labels on the price chart representing these hourly ranges for the future, but only if they are within TradingView's 500-bar drawing limit from the current bar.
3. **Status Table:**
* Updates on the last bar of the chart.
* Displays the current differentiated volume status, the percentage difference between current volume and its MA, and the calculated ATR range for the *next* hour.
4. **Alerts:**
* Uses `alertcondition()` to create trigger conditions based on `unusualVolumeBase`, `vol_cross_above`, and `vol_cross_below`. Users can create alerts based on these conditions in the TradingView UI.
## Input Settings
The indicator settings are organized into groups:
**Group 1: Volume Analysis Settings**
* **MA Length:** (Default: 20) Number of bars for the volume MA calculation.
* **MA Type:** (Default: SMA) Type of moving average (SMA, EMA, WMA).
* **Unusual Vol Multiplier:** (Default: 2.0) Threshold for detecting unusual volume (Volume > MA * Multiplier).
* **Show Volume Spikes:** (Default: true) Toggle visibility of triangle markers on the price chart.
* **Show Volume MA:** (Default: true) Toggle visibility of the MA line on the volume panel.
**Group 2: ATR Projection Settings**
* **ATR Length:** (Default: 14) Number of bars for the ATR calculation.
* **ATR Multiplier:** (Default: 1.5) Factor applied to ATR to determine the projection range width. Higher values create wider ranges.
* **Projection Hours Ahead:** (Default: 8) How many hours forward to calculate and display projections.
* **Show Projections:** (Default: true) Toggle visibility of projection lines and labels on the price chart.
**Group 3: Session & Colors**
* **Trading Session:** (Default: "0930-1600") Defines the hours during which projections are calculated. **Crucial:** Format is HHMM-HHMM based on the exchange timezone (see Timezone Note below).
* **Normal Vol Color:** (Default: blue) Color for volume bars when volume is not unusual.
* **Volume MA Color:** (Default: yellow) Color of the volume MA line.
* **Unusual Vol (Up Bar) Color:** (Default: light green) Color for unusual volume bars where Close > Open.
* **Unusual Vol (Down Bar) Color:** (Default: light red) Color for unusual volume bars where Close < Open.
* **Unusual Vol (Neutral Bar) Color:** (Default: light gray) Color for unusual volume bars where Close == Open.
* **Projection Line Color:** (Default: orange) Color of the dashed projection range lines.
* **Proj Label Bg Color:** (Default: semi-transparent gray) Background color for projection labels.
* **Proj Label Text Color:** (Default: white) Text color for projection labels.
## Timezone Note
The `Trading Session` input relies on a timezone setting within the `is_in_session` function in the code (currently hardcoded to `"UTC-4"` as an example for US Eastern Time). **You may need to edit the script code** to change this timezone string (e.g., `"America/New_York"`, `"Europe/London"`, `"Asia/Tokyo"`) to match the exchange time of the instrument you are trading. Consult Pine Script documentation for valid timezone strings.
## Limitations
* **Drawing Limit:** TradingView limits drawing objects (lines, labels) to a maximum of ~500 bars into the future from the current bar. On lower timeframes, the script automatically stops drawing projections that exceed this limit.
* **Projection vs. Prediction:** The ATR ranges are based on past volatility and are *not* price predictions. The market can easily move outside these projected ranges.
* **Alerts:** Alerts for price crossing the projected future levels are not implemented due to technical complexity in Pine Script.
## Disclaimer
Trading financial markets involves substantial risk of loss and is not suitable for all investors. The information provided by this indicator is for educational and informational purposes only and does not constitute financial advice, investment advice, trading advice, or any other sort of advice. You should not make any investment decision based solely on the information provided by this indicator. Past performance is not indicative of future results.