JPMorgan Collar LevelsJPMorgan Collar Levels – SPX/SPY Auto-Responsive (Quarterly Logic)
This script tracks the JPMorgan Hedged Equity Fund collar strategy, one of the most watched institutional positioning tools on SPX/SPY. The strategy rolls quarterly and often acts as a magnet or resistance/support zone for price.
Breitenindikatoren
VOLD Ratio Histogram [Th16rry]How to Use the VOLD Ratio Histogram Indicator
The VOLD Ratio Histogram Indicator is a powerful tool for identifying buying and selling volume dominance over a selected period. It provides traders with visual cues about volume pressure in the market, helping them make more informed trading decisions.
How to Read the Indicator:
1. Green Bars (Positive Histogram):
- Indicates that buying volume is stronger than selling volume.
- Higher green bars suggest increasing bullish pressure.
- Useful for confirming uptrends or identifying potential accumulation phases.
2. Red Bars (Negative Histogram):
- Indicates that selling volume is stronger than buying volume.
- Lower red bars suggest increasing bearish pressure.
- Useful for confirming downtrends or identifying potential distribution phases.
3. Zero Line (Gray Line):
- Acts as a neutral reference point where buying and selling volumes are balanced.
- Crossing above zero suggests buying dominance; crossing below zero suggests selling dominance.
How to Use It:
1. Confirming Trends:
- A strong positive histogram during an uptrend supports bullish momentum.
- A strong negative histogram during a downtrend supports bearish momentum.
2. Detecting Reversals:
- Monitor for changes from positive (green) to negative (red) or vice versa as potential reversal signals.
- Divergences between price action and histogram direction can indicate weakening trends.
3. Identifying Volume Surges:
- Sharp spikes in the histogram may indicate strong buying or selling interest.
- Use these spikes to investigate potential breakout or breakdown scenarios.
4. Filtering Noise:
- Adjust the period length to control sensitivity:
- Shorter periods (e.g., 10) are more responsive but may produce more noise.
- Longer periods (e.g., 50) provide smoother signals, better for identifying broader trends.
Recommended Markets:
- Cryptocurrencies: Works effectively with real volume data from exchanges.
- Forex: Useful with tick volume, though interpretation may vary.
- Stocks & Commodities: Particularly effective for analyzing high-volume assets.
Best Practices:
- Combine the VOLD Ratio Histogram with other indicators like moving averages or RSI for confirmation.
- Use different period lengths depending on your trading style (scalping, swing trading, long-term investing).
- Observe volume spikes and divergences to anticipate potential market moves.
The VOLD Ratio Histogram Indicator is ideal for traders looking to enhance their volume analysis and gain a deeper understanding of market dynamics.
Gerald Appel's Percentage of New HighsThis is the original Gerald Appel's Percentage of new High Indicator.
10 day moving avg. of new highs divided by the total of highs plus lows. This ratio gives a good job at identifying both when a rally is weakening (when indicator breaks below from above 70%) as well as good spots to identifying spots to buy bottoms. (When Indicator moves back up through 30% from below)
Fibonacci Sequence NumbersThe "Fibonacci Sequence Numbers" indicator overlays horizontal lines on a trading chart based on Fibonacci sequence values (0, 34, 55, 89, 144, 233, 377, 610) relative to a user-defined reference price and time. Users can specify the direction ("Above," "Below," or "Both") to plot these levels above and/or below the reference price, with customizable line length, width, and colors for each level (e.g., red for Level 0, blue for 34). A vertical dashed line marks the reference time, while horizontal lines extend rightward, accompanied by labeled annotations shifted slightly left for clear view.
[TABLE] Moving Average Stage Indicator Table📈 MA Stage Indicator Table
🧠 Overview:
This script analyzes market phases based on moving average (MA) crossovers, classifying them into 6 distinct stages and displaying statistical summaries for each.
🔍 Key Features:
• Classifies market condition into Stage 1 to Stage 6 based on the relationship between MA1 (short), MA2 (mid), and MA3 (long)
• Provides detailed stats for each stage:
• Average Duration
• Average Width (MA distance)
• Slope (Angle) - High / Low / Average
• Shows current stage details in real-time
• Supports custom date range filtering
• Choose MA type: SMA or EMA
• Optional background coloring for stages
• Clean summary table displayed on the chart
Open Range Volatility (High/Low %)Overview
The Open-to-High/Low Movement Indicator helps traders visualize the percentage change between the opening price and the highest & lowest points of each trading session. This indicator is particularly useful for identifying intraday volatility, momentum strength, and potential reversals.
Key Features
✅ Real-Time High/Low Percentage Movement – Calculates and plots the percentage movement from the opening price to both the session high (green line) and session low (red line).
✅ Separate Chart Pane – Keeps your main price chart clean while displaying movements in a separate panel.
✅ Zero Reference Line – Helps distinguish upward and downward movements.
✅ +10% and -10% Threshold Lines – Assists in identifying significant price swings.
✅ Customizable & Lightweight – Efficiently tracks market movements without slowing down your chart.
How to Use
When the green line moves higher, it indicates strong buying pressure after the open.
When the red line moves lower, it shows selling pressure from the open price.
If movements stay within a small range, the market is experiencing low volatility.
Extreme movements beyond ±10% can indicate potential breakout or reversal zones.
Best for:
📈 Day traders tracking intraday momentum
📊 Swing traders spotting volatility trends
⚡ Scalpers identifying quick price movements
💡 Volatility-based strategies
This indicator works across all timeframes and asset classes, including stocks, forex, commodities, and crypto.
🚀 Add this to your chart today and stay ahead of the market!
ADR Nivele Horizontale dhe EMAThe user provided a Pine Script code for an indicator called "ADR Nivele Horizontale dhe EMA". The task is to explain how this code works. Hmm, first, I need to understand what this indicator does. The title mentions ADR levels and EMA, so it's probably combining horizontal lines based on Average Daily Range and some Exponential Moving Averages.
Looking at the code, the first part is the indicator declaration with version 6. The settings include an ADR period, levels above and below the mid, and line style. Then there's a section for calculations. They request daily high and low to compute the daily range. The ADR is the SMA of the daily range over the specified period. The mid is the average of daily high and low. The adr_val is half of ADR, maybe to create symmetrical levels around the mid.
Next, they create arrays for lines and labels above and below the mid. The loops go from 1 to levels_above/below, calculate each level, draw lines and labels. The mid line is also drawn with a different color. Then, there are several EMAs plotted: 13, 50, 200, 400, 600, 800, each with different colorsWait, but in Pine Script, when you use arrays to store lines and labels, you have to manage them properly to avoid repainting or memory issues. The code uses array.concat to add new lines and labels each bar. However, since this code is running on each bar, the for loops might be creating multiple lines each time, leading to too many objects. Oh right, but they use var to initialize the arrays, so they are only initialized once. Wait, no. The var keyword initializes the variable once, but in each iteration, they are concatenating new lines. Wait, no: the for loops are inside the main script, which runs on each bar. So every time a new bar is processed, the loops will run again, adding new lines and labels. That's a problem because each bar would create new lines, leading to an ever-increasing number of lines, which could hit the maximum limit (max_lines_count is set to 20, but maybe they have more bars). Oh, the indicator has max_lines_count=20, but the code might be creating multiple lines per bar. So maybe the code isn't handling the line management correctly. For example, if levels_above is 2, then each bar would create 2 new lines above and 2 below, plus the mid line. Over 20 bars, that's way over 20 lines. So this could cause the indicator to stop drawing after 20 lines. The user might not have realized that the lines are being recreated every bar, leading to a buildup. But perhaps the original code intended to have the lines update each bar, extending to the current bar. Let's see: in line.new, they use bar_index as the starting x1 and bar_index as x2. So each line is drawn from the previous bar's index to the current one. But since this is done on every bar, each line is only one bar long. Wait, no. Because on each new bar, the code creates a new line from the previous bar's index (bar_index , which is now the bar before the current one) to the current bar_index. So each line is just a segment from the previous bar to the current bar. But when the next bar comes, a new line is created again. So the result is that each level line is a series of one-bar-length segments, which might not be intended. The user probably wants continuous lines that extend from the left to the right, not just per bar. So this approach is incorrect. The correct way would be to have a line that starts at the first bar of the calculation and extends to the right, updating each bar. But the current code creates a new line each bar, leading to multiple short lines instead of one continuous line. That's a mistake.
So the main issue here is that the code is generating a new line segment for each bar, which is not efficient and would quickly hit the line limit. To fix this, instead of creating a new line every bar, they should create the line once and then update its position each bar. But in Pine Script, you can't directly update a line after it's created; instead, you need to track the line ID and use line.set_xy() to extend it. However, the current code uses array.concat to add new lines each bar, which isn't the right approach.
Therefore, the code as written will create multiple short lines instead of continuous horizontal lines. The correct approach for horizontal levels that extend to the right is to create the line once, starting at a certain bar and extending indefinitely, or to update the line's end point each new bar. But in Pine Script, you can't extend lines infinitely; you have to manage them each bar. Alternatively, using the 'line.extend' style might help, but I think the original code's logic is flawed here.
Additionally, the EMA part is straightforward: plotting multiple EMAs with different periods. That part should work as expected.
So the explanation should mention that the ADR levels are calculated based on the daily high and low, then the code attempts to draw horizontal lines above and below the mid-point. However, the way the lines are drawn may lead to multiple short segments instead of continuous lines, potentially causing performance issues or hitting the maximum line count. The EMAs are plotted correctly with various periods..
McClellan Oscillator - IRUS Optimized🧠 McClellan Oscillator (IRUS Index)
Type: Market Breadth Indicator
Category: Breadth, Momentum
Purpose: Gauge the internal strength of the IRUS index and anticipate trend reversals
📌 Based on
This indicator is built on the concept of advancing vs. declining issues — the number of stocks rising vs. falling each day within the IRUS index (a custom group of 40 Russian stocks).
It calculates the net advances (advancers minus decliners), then applies two exponential moving averages (EMA):
java
Copy
Edit
McClellan Oscillator = EMA_19(Net Advances) - EMA_39(Net Advances)
Where:
Net Advances = Number of advancing stocks - Number of declining stocks
Calculated from a fixed set of 40 IRUS stocks
🧭 What it shows
Above 0 → more stocks are rising: market is internally strong.
Below 0 → more stocks are falling: underlying weakness.
Rising from below -100 → oversold breadth, possible bullish reversal.
Falling from above +100 → overbought breadth, possible correction.
🎯 How to use it
1. Buy/Sell Signals
Buy: Oscillator drops below -100 and turns up → oversold, potential rally.
Sell: Oscillator rises above +100 and turns down → overbought, risk of pullback.
2. Trend Strength Confirmation
Sustained above 0 → confirms bullish trend.
Crosses below 0 → early warning of weakening market breadth.
3. Divergences with IRUS Price
IRUS rises, but Oscillator falls → narrowing leadership, bearish divergence.
IRUS falls, but Oscillator rises → improving breadth, bullish divergence.
⚠️ Notes
The oscillator measures participation, not price.
Works best with daily timeframe.
Does not account for volume or magnitude of price moves.
Use with price action or other indicators for confirmation.
⚙️ Custom Implementation
This version is specifically adapted for the IRUS index, using a fixed list of 40 component stocks.
Optimized for Pine Script v6 and complies with TradingView's request limits (max 40).
MOEX Sectors: % Above MA 50/100/200 (EMA/SMA)🧠 Name:
MOEX Sectors: % Above MA 50/100/200 (EMA/SMA)
📋 Description (for TradingView “Description” tab):
This indicator shows the percentage of Moscow Exchange sectoral indices trading above the selected moving average (SMA or EMA) with periods of 50, 100, or 200.
It uses 10 official MOEX sector indices:
MOEXOG (Oil & Gas)
MOEXCH (Chemicals)
MOEXMM (Metals & Mining)
MOEXTN (Transport)
MOEXCN (Consumer)
MOEXFN (Financials)
MOEXTL (Telecom)
MOEXEU (Utilities)
MOEXIT (IT)
MOEXRE (Real Estate)
The indicator plots up to 3 lines representing the % of sectors trading above MA 50, 100, and/or 200. The MA type is user-selectable: EMA (default) or SMA.
Horizontal reference levels (90, 50, 10) help interpret market conditions:
🔼 >90% — Overbought zone, potential market exhaustion
⚖️ ~50% — Neutral state
🔽 <10% — Oversold zone, possible rebound
📈 How to Use in Strategy:
✅ 1. Trend Filter
If >50% of sectors are above MA 200 → market in long-term uptrend
If <50% → avoid long bias, bearish regime likely
✅ 2. Bottom Detection
When <10% of sectors are above MA 200, the market is heavily oversold — often a bottoming signal
✅ 3. Trend Confirmation
If the main index is rising and % of sectors above MA is growing, the trend is supported by breadth
If the index rises while breadth declines → bearish divergence
✅ 4. Contrarian Setups
>90% of sectors above MA 50 → market may be overheated, watch for pullback
<20% above MA 50 → potential local bottom
⚙️ Tips:
Overlay this indicator on the IMOEX index chart to detect narrow leadership
Combine with other breadth metrics or RSI on the index
Use the EMA/SMA toggle to fine-tune sensitivity
London Session 15-min Range – Clean AEST Timestamp Fix (w/ EMAs)London Session 15-min Range – Clean AEST Timestamp Fix (with EMAs)
What it does:
This script is made for traders who want to track the high and low of the first 15-minute candle of the London session, using AEST (UTC+10) as the time reference. It also plots the 50 EMA and 200 EMA to help identify trend direction.
How it works:
Session Timing:
The London session is defined as starting at 6:00 PM AEST.
The session ends at 2:00 AM AEST the next day.
Detects the first 15 minutes of the London session:
During this time, it records the highest and lowest price.
Draws lines once the 15-minute window is over:
A red horizontal line is drawn at the session high.
A green horizontal line is drawn at the session low.
These lines extend 50 bars into the future.
It only draws these once per day/session.
Includes EMAs:
A 50-period EMA is calculated and plotted in yellow.
A 200-period EMA is calculated and plotted in white.
Why use it:
It helps visualise important price levels from the start of the London session and pairs that with moving averages to spot trends or potential breakouts.
Supply & Demand Zones + Order Block (Pro Fusion) - Auto Order Strategy Title:
Smart Supply & Demand Zones + Order Block Auto Strategy with ScalpPro (Buy-Focused)
📄 Strategy Description:
This strategy combines the power of Supply & Demand Zone analysis, Order Block detection, and an enhanced Scalp Pro momentum filter, specifically designed for automated decision-making based on high-volume breakouts.
✅ Key Features:
Auto Entry (Buy Only) Based on Breakouts
Automatically enters a Buy position when the price breaks out of a valid demand zone, confirmed by EMA 50 trend and volume spike.
Order Block Logic
Identifies bullish and bearish order blocks using consecutive candle structures and significant price movement.
Dynamic Stop Loss & Trailing Stop
Implements a trailing stop once price moves in profit, along with static initial stop loss for risk management.
Clear Visual Labels & Alerts
Displays BUY/SELL, Demand/Supply, and Order Block labels directly on the chart. Alerts trigger on valid breakout signals.
Scalp Pro Momentum Filter (Optimized)
Uses a modified MACD-style momentum indicator to confirm trend strength and filter out weak signals.
Supply & Demand Zones + Order Block (Pro Fusion) SuroLevel up your trading edge with this all-in-one Supply and Demand Zones + Order Block TradingView indicator, built for precision traders who focus on price action and smart money concepts.
🔍 Key Features:
Automatic detection of Supply & Demand Zones based on refined swing highs and lows
Dynamic Order Block recognition with customizable thresholds
Highlights Breakout signals with volume confirmation and trend filters
Built-in EMA 50 trend detection
Take Profit (TP1, TP2, TP3) projection levels
Clean visual labels for Demand, Supply, and OB zones
Uses smart box plotting with long extended zones for better zone visibility
🔥 Ideal for:
Traders who follow Smart Money Concepts (SMC)
Supply & Demand strategy practitioners
Breakout & Retest pattern traders
Scalpers, swing, and intraday traders using Order Flow logic
📈 Works on all markets: Forex, Crypto, Stocks, Indices
📊 Recommended timeframes: M15, H1, H4, Daily
✅ Enhance your trading strategy using this powerful zone-based script — bringing structure, clarity, and automation to your chart.
#SupplyAndDemand #OrderBlock #TradingViewScript #SmartMoney #BreakoutStrategy #TPProjection #ForexIndicator #SMC
Time Compression ZonesTime Compression Zones is an experimental indicator based on the idea that markets often "go silent" before making a strong move. During these moments, volatility drops, price action slows down, and energy accumulates beneath the surface — often followed by an explosive breakout.
The indicator identifies "time compression zones" — periods where the current volatility drops below a specific threshold relative to its moving average. These areas are highlighted on the chart and may serve as early signals of upcoming market expansion.
Time Compression Zones — это экспериментальный индикатор, основанный на идее, что рынок перед сильным движением часто "замирает". В такие моменты волатильность падает, движение становится вялым, но внутри копится энергия, которая вскоре может "взорваться" в виде импульса вверх или вниз.
This is not a directional indicator — it highlights pre-breakout conditions
Best used on 1H to 4H timeframes
Ideal for cryptocurrencies, gold, and futures
//RU
Индикатор определяет зоны "временного сжатия" — участки, где текущая волатильность падает ниже определённого порога относительно своей средней величины. Эти участки визуально выделяются на графике и могут указывать на приближающийся выход из "зоны накопления".
Индикатор не даёт направленного сигнала — он показывает периоды ожидания.
Лучше всего работает на 1H–4H таймфреймах
Подходит для криптовалют, фьючерсов, золота
Custom Opening Range FillThis TradingView indicator visualizes a customizable opening range. Users define the start hour, minute (UTC), and range duration. It calculates the high and low prices within this period and fills the area between them on the chart. The range resets daily. This highlights a specific trading window, aiding in identifying potential breakout or breakdown levels. Traders can adjust the time parameters to analyze various market sessions or strategies. It's useful for those focusing on price action within a defined timeframe, simplifying the observation of key price levels.
Arbitrage Spot-Futures Don++Strategy: Spot-Futures Arbitrage Don++
This strategy has been designed to detect and exploit arbitrage opportunities between the Spot and Futures markets of the same trading pair (e.g. BTC/USDT). The aim is to take advantage of price differences (spreads) between the two markets, while minimizing risk through dynamic position management.
[Operating principle
The strategy is based on calculating the spread between Spot and Futures prices. When this spread exceeds a certain threshold (positive or negative), reverse positions are opened simultaneously on both markets:
- i] Long Spot + Short Futures when the spread is positive.
- i] Short Spot + Long Futures when the spread is negative.
Positions are closed when the spread returns to a value close to zero or after a user-defined maximum duration.
[Strategy strengths
1. Adaptive thresholds :
- Entry/exit thresholds can be dynamic (based on moving averages and standard deviations) or fixed, offering greater flexibility to adapt to market conditions.
2. Robust data management :
- The script checks the validity of data before executing calculations, thus avoiding errors linked to missing or invalid data.
3. Risk limitation :
- A position size based on a percentage of available capital (default 10%) limits exposure.
- A time filter limits the maximum duration of positions to avoid losses due to persistent spreads.
4. Clear visualization :
- Charts include horizontal lines for entry/exit thresholds, as well as visual indicators for spread and Spot/Futures prices.
5. Alerts and logs :
- Alerts are triggered on entries and exits to inform the user in real time.
[Points for improvement or completion
Although this strategy is functional and robust, it still has a few limitations that could be addressed in future versions:
1. [Limited historical data :
- TradingView does not retrieve real-time data for multiple symbols simultaneously. This can limit the accuracy of calculations, especially under conditions of high volatility.
2. [Lack of liquidity management :
- The script does not take into account the volumes available on the order books. In conditions of low liquidity, it may be difficult to execute orders at the desired prices.
3. [Non-dynamic transaction costs :
- Transaction costs (exchange fees, slippage) are set manually. A dynamic integration of these costs via an external API would be more realistic.
4. User-dependency for symbols :
- Users must manually specify Spot and Futures symbols. Automatic symbol validation would be useful to avoid configuration errors.
5. Lack of advanced backtesting :
- Backtesting is based solely on historical data available on TradingView. An implementation with third-party data (via an API) would enable the strategy to be tested under more realistic conditions.
6. [Parameter optimization :
- Certain parameters (such as analysis period or spread thresholds) could be optimized for each specific trading pair.
[How can I contribute?
If you'd like to help improve this strategy, here are a few ideas:
1. Add additional filters:
- For example, a filter based on volume or volatility to avoid false signals.
2. Integrate dynamic costs:
- Use an external API to retrieve actual costs and adjust thresholds accordingly.
3. Improve position management:
- Implement hedging or scalping mechanisms to maximize profits.
4. Test on other pairs:
- Evaluate the strategy's performance on other assets (ETH, SOL, etc.) and adjust parameters accordingly.
5. Publish backtesting results :
- Share detailed analyses of the strategy's performance under different market conditions.
[Conclusion
This Spot-Futures arbitrage strategy is a powerful tool for exploiting price differentials between markets. Although it is already functional, it can still be improved to meet more complex trading scenarios. Feel free to test, modify and share your ideas to make this strategy even more effective!
[Thank you for contributing to this open-source community!
If you have any questions or suggestions, please feel free to comment or contact me directly.
Previous Day, Week, Monday Liq + Asian, London & Ny session LiqGM Gs,
This indicator helps traders identify key liquidity levels from different market sessions (Asian, London, NY), as well as weekly and daily highs/lows. It automatically plots these levels on the chart, making it easier to spot potential support/resistance zones where price might react.
Key Features:
1. Multi-Timeframe Liquidity Zones
Previous Day High/Low – Tracks the prior day’s range.
Monday High/Low – Useful for weekly opening liquidity.
Previous Week High/Low – Helps identify broader weekly levels.
2. Customizable Session Times
Asian, London, and NY Session Highs/Lows – Automatically detects and plots key levels from each trading session.
Adjustable Time Zones – Supports multiple GMT offsets (GMT-8 to GMT+3), making it adaptable for traders worldwide.
3. Visual Customization
Color & Style Options – Each level type (e.g., London High, NY Low) can be customized in color, line style (solid, dashed, dotted), and width.
Faded Opacity for Swept Levels – When a level is swept (price breaks but closes beyond it), it becomes semi-transparent, helping traders distinguish active vs. invalidated levels.
4. Clean & Informative Labels
Each level has a clear label (e.g., "Asia High," "PW Low") for easy identification.
Adjustable label offsets prevent clutter on the chart.
Pros & Benefits for Traders:
✅ Helps Identify Key Liquidity Zones – Institutional traders often target session highs/lows for liquidity grabs. This indicator makes these levels visible at a glance.
✅ Adaptable to Different Trading Styles
Day Traders – Can use Asian/London/NY session levels for intraday setups.
Swing Traders – Can focus on weekly and Monday levels for broader trends.
✅ No Repainting – Levels are fixed once formed and do not change retroactively.
✅ Customizable for Personal Preference – Traders can adjust colors, line styles, and visibility to match their trading setup.
✅ Useful for Multiple Markets – Works well on Forex (major pairs), indices, and even crypto (due to 24/7 market structure similarities).
Suggested Use Cases:
Breakout Trading – Watch for price reactions at session highs/lows.
Mean Reversion – Fade moves into weekly or daily extremes.
Institutional Liquidity Analysis – Identify potential stop hunts or accumulation zones.
Conclusion:
This indicator is a powerful tool for traders who rely on session-based liquidity, institutional order flow, and key support/resistance levels. By automating the detection of these zones, it saves time and helps traders make more informed decisions.
HMA PLANz1. High Liquidity Candle Detection:
The indicator looks for candles with high liquidity (identified by comparing the current candle's volume with the highest volume of the last 10 candles).
If a candle has high liquidity, it is highlighted in yellow.
2. Midpoint Calculation of the Candle:
The midpoint of the candle is calculated by averaging the High and Low prices of the candle:
Midpoint
=
High
+
Low
2
Midpoint=
2
High+Low
3. Draw a Line at the Midpoint of the High Liquidity Candle:
A horizontal line is drawn at the calculated midpoint value of the high liquidity candle and continues for the next five candles.
4. Change Line Color Based on Price vs. Midpoint:
If the current price is above the midpoint, the line is drawn in green.
If the current price is below the midpoint, the line is drawn in red.
5. Moving Averages (MA):
In addition to liquidity analysis, the indicator calculates and plots two moving averages on the chart.
Users can choose between EMA, SMA, WMA, or HMA for each moving average.
Users can also select the source for the moving averages (Close, High, Low).
The length for each moving average is customizable.
6. Display Moving Averages with Labels:
The moving average lines are plotted on the chart.
Labels are displayed above each moving average to show its type and source (e.g., "MA - HMA (Close)").
Summary of Key Features:
High Liquidity Candle Detection: Highlighted in yellow.
Draw a Horizontal Line at the Midpoint of the high liquidity candle: The line color changes based on price relation to the midpoint.
Moving Averages: Allows customization of types and lengths.
Labels: Shows details of the moving averages.
MACD Crossover MultiframeThis Pine Script indicator displays multiple MACD signals across different timeframes (15, 30, 60, and 240 minutes) to identify crossovers between MACD lines and their respective signal lines, highlighting potential market trend reversals. User-defined channels (upper and lower horizontal lines) mark critical zones for recognizing extreme market conditions. It's particularly important to consider these channels, as they provide clear reference levels where MACD crossovers may carry greater significance, aiding in determining optimal entry and exit points for trades. Additionally, the indicator highlights market consolidation periods by coloring the background whenever the MACD remains within a user-defined lateral range.
[blackcat] L2 Risk Assessment for Trend StrengthOVERVIEW
This script provides an advanced technical analysis tool combining real-time **Risk Assessment** and **Trend Strength Indicators**, displayed independently from price charts. It calculates multi-layered metrics using weighted algorithms and visualizes risk thresholds via dynamically-colored zones.
FEATURES
- Dual ** RISKA ** calculations ( RSVA1 / RSVA2 ) across 9-period cycles
- Smoothed outputs via proprietary **boldWeighted Moving Averages (WMAs)**
- Dynamic **Current Safety Level Plot** (fuchsia area-style visualization)
- Color-coded **Trend Strength Line** reacting to real-time shifts across four danger/optimism tiers
- Automated threshold validation mechanism using last-valid-value logic
- Visually distinct risk zones (blue/green/yellow/red/fuchsia) filling background areas
HOW TO USE
1. Add to your chart to observe two core elements:
- Area plot showing current risk tolerance buffer
- Thick line indicating momentum strength direction
2. Interpret values relative to vertical thresholds:
• Above 100 = Ultra-safe zone (light blue)
• 80–100 = Safe zone (green)
• 20–80 = Moderate/high-risk zones (yellow)
• Below 20 = Extreme risk (red)
3. Monitor trend confidence shifts using the colored line:
> **Blue**: Strong bullish momentum (>80%)
> **Green/Yellow**: Neutral/moderate trends (50%-80%)
> **Red**: Bearish extremes (<20%)
LIMITATIONS
• Relies heavily on prior 33-period low and 21-period high volatility patterns
• WMA smoothing introduces minor backward-looking bias
• Not optimized for intraday timeframe sub-hourly usage
• Excessive weighting parameters may amplify noise during sideways markets
RSI-Colored Price Candles with BackgroundThis Pine Script indicator visually enhances price candles based on **RSI (Relative Strength Index)** behavior, helping traders quickly assess momentum directly on the price chart.
**RSI Calculation:**
The RSI is computed using a traditional 14-period lookback. It uses `ta.rma()` to smooth average gains and losses, and then transforms the result into an RSI value between 0 and 100. This value is used to determine both **candle color** and optional **background shading**.
**Candle Coloring:**
Each price candle is recolored based on the current RSI value:
- If RSI is **greater than or equal to 50**, the candle is **bright green**, indicating bullish momentum.
- If RSI is **less than 50**, the candle is **bright red**, indicating bearish momentum.
The actual OHLC values of the candles remain unchanged. Only their color is modified to reflect RSI strength.
**Optional Background Highlighting:**
A user setting called `Show Overbought/Oversold Background` lets traders toggle background shading on or off. When enabled:
- If RSI is **above 70**, a soft **green** background appears, signaling overbought conditions.
- If RSI is **below 30**, a soft **red** background appears, signaling oversold conditions.
This provides an intuitive visual cue that highlights potential reversal or exhaustion zones based on RSI extremes.
**Custom Settings:**
- The RSI length and source are customizable.
- Background highlighting is turned **off by default**, giving users a clean chart unless they choose to enable it.
**Purpose and Use:**
This script is designed for traders who want to visually integrate RSI momentum directly into their chart candles, reducing the need to look away from price action. It's clean, responsive, and adjustable — perfect for intraday or swing traders who value simplicity backed by momentum data.
M2SL/DXY RatioThis is the ratio of M2 money supply (M2SL) to the U.S. dollar index (DXY), taking into account the impact of U.S. dollar strength and weakness on liquidity.
M2SL/DXY better represents the current impact of the United States on cryptocurrency prices.
Basic Pivot-Based S/R with Stopping LinesBasic Pivot-Based S/R with Intrabar Pressure Analysis
Overview:
This indicator identifies potential support and resistance levels based on a combination of traditional pivot point analysis and a unique intrabar volume pressure assessment. It goes beyond simply identifying pivot highs and lows; it qualifies these pivots by examining the underlying buying and selling pressure within the candles that form the pivot. This approach aims to identify stronger, more reliable support and resistance levels than those based on price action alone.
Core Concepts and Calculations:
Pivot Points: The indicator uses the standard ta.pivothigh() and ta.pivotlow() functions to detect pivot highs and lows. The user can choose whether to use the candle wicks ("Wick" mode) or the candle bodies ("Body" mode) for pivot detection. The leftBars and rightBars parameters control the number of bars on either side of the pivot used in the calculation.
Intrabar Volume Pressure: This is the indicator's key differentiator. It analyzes the volume distribution within each candle by accessing data from a lower timeframe (specified by the user, defaulting to 1-second data). For each candle:
Up Volume: The total volume associated with price increases within the candle is calculated (on the lower timeframe). This uses the volume multiplied by how much the price has moved up.
Down Volume: The total volume associated with price decreases within the candle is calculated (on the lower timeframe). This uses the volume multiplied by how much the price has moved down.
These up and down volumes are then summed across all lower timeframe candles.
Pressure Imbalance at Pivots: The indicator then checks for a specific condition at each identified pivot point
These lines are dynamic. They continue to extend to the right as long as the price does not decisively cross them.
A support line (green) stops extending if the price closes below the line.
A resistance line (red) stops extending if the price closes above the line. *This behavior reflects the idea that a support/resistance level is "validated" as long as the price respects it and "invalidated" once the price breaks through.
Interpretation and Usage:
The core idea is that a pivot point where the internal volume pressure contradicts the external price action (e.g., a green candle with more selling pressure) is a stronger and more reliable support or resistance level. This suggests that there's hidden buying or selling interest at that level, which may not be immediately obvious from the candlestick pattern alone.
Green Lines (Support): Indicate potential areas where buyers are likely to step in, even if the price is currently declining. These are levels where buying pressure was surprisingly strong despite a red candle forming at a pivot low.
Red Lines (Resistance): Indicate potential areas where sellers are likely to emerge, even if the price is currently rising. These are levels where selling pressure was surprisingly strong despite a green candle forming at a pivot high.
Line Extensions: The length of the line indicates how long the support or resistance level has held. Longer lines suggest stronger, more established levels.
Line Breaks: When a line stops extending, it indicates that the support or resistance level has been broken. This can be a signal of a potential trend change or a breakout.
Advantages:
Combines Price and Volume: Integrates both price action (pivots) and volume information (intrabar pressure) for a more comprehensive analysis.
Identifies "Hidden" S/R: Highlights support and resistance levels that might be missed by traditional pivot analysis.
Dynamic Lines: The lines adapt to market conditions, extending only as long as the S/R level remains valid.
Simple Visualization: Uses clear, horizontal lines for easy identification of potential support and resistance.
High Resolution Data: Uses data from a user selectable lower timeframe for better accuracy.
Limitations:
Lower Timeframe Data Dependency: The accuracy of the intrabar pressure analysis depends on the availability and quality of lower timeframe data.
Parameter Sensitivity: The indicator's performance is influenced by the pivot detection parameters (leftBars, rightBars) and the chosen lowerTimeframe.
Not a Standalone System: This indicator, like all indicators, should be used in conjunction with other forms of analysis and as part of a complete trading strategy.
In summary, this indicator offers a refined approach to identifying support and resistance levels by combining classic pivot point analysis with a detailed examination of the volume dynamics within the candles that form those pivots. This provides a more nuanced view of buying and selling pressure, potentially leading to the identification of stronger and more reliable S/R levels.
Min-Max | Buy-Sell Alert with LevelsMin-Max | Buy-Sell Alert with Levels
Description:
The Min-Max | Buy-Sell Alert with Levels indicator is a powerful tool designed to help traders identify key levels of support and resistance based on the previous day's high and low prices. It plots horizontal lines for the previous day's minimum (Min) and maximum (Max) prices, along with four intermediate levels (Stop Loss 1 to Stop Loss 4) calculated as equal percentage steps between the Min and Max.
This indicator is perfect for traders who want to:
Identify potential entry points when the price returns within the Min-Max range.
Set stop-loss levels based on the calculated intermediate levels.
Receive alerts for buy, sell, and stop-loss conditions.
Key Features:
Previous Day's Min and Max Lines:
Automatically plots the Min (red line) and Max (green line) of the previous day.
These levels act as dynamic support and resistance zones.
Intermediate Stop Loss Levels:
Calculates and plots four intermediate levels (Stop Loss 1 to Stop Loss 4) between the Min and Max.
Each level is equally spaced, representing potential stop-loss or take-profit zones.
Customizable Alerts:
Buy Alert: Triggered when the price returns within the Min-Max range after breaking below the Min.
Sell Alert: Triggered when the price returns within the Min-Max range after breaking above the Max.
Stop Loss Alerts: Triggered when the price reaches any of the four intermediate levels (Stop Loss 1 to Stop Loss 4).
Customizable Appearance:
Adjust the thickness, color, and style (solid, dashed, dotted) of the lines.
Customize the colors of the Stop Loss labels for better visualization.
Labels on the Chart:
Displays "Buy" and "Sell" labels on the chart when the respective conditions are met.
Labels for Stop Loss levels are also displayed for easy reference.
How to Use:
Add the indicator to your chart.
Customize the settings (line colors, thickness, and alert preferences) in the indicator's settings panel.
Use the Min and Max lines as dynamic support and resistance levels.
Monitor the intermediate levels (Stop Loss 1 to Stop Loss 4) for potential stop-loss or take-profit zones.
Set up alerts for Buy, Sell, and Stop Loss conditions to stay informed about key price movements.
Why Use This Indicator?
Simple and Effective: Focuses on the most important levels from the previous day.
Customizable: Tailor the indicator to match your trading style and preferences.
Alerts: Never miss a trading opportunity with customizable alerts for key conditions.
Settings:
Line Thickness: Adjust the thickness of the Min, Max, and intermediate lines.
Line Colors: Customize the colors of the Min, Max, and intermediate lines.
Line Style: Choose between solid, dashed, or dotted lines.
Stop Loss Label Colors: Customize the colors of the Stop Loss labels.
Alerts: Enable or disable alerts for Buy, Sell, and Stop Loss conditions.
Ideal For:
Day traders and swing traders.
Traders who rely on support and resistance levels.
Anyone looking for a clear and customizable tool to identify key price levels.
Disclaimer:
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always conduct your own analysis and trade responsibly.
Get Started Today!
Add the Min-Max | Buy-Sell Alert with Levels indicator to your chart and take your trading to the next level. Customize it to fit your strategy and never miss a key trading opportunity again!
Four-Color Order Flow System Four-Color Order Flow System – Smart Money Liquidity Tracking
Revolutionizing Market Structure with a Four-Color Candle System
Traditional candlestick charts lack real-time liquidity visibility, forcing traders to rely on lagging indicators. The Four-Color Order Flow System solves this by integrating Order Blocks (OBs), Accumulation/Distribution (AD), Swing High/Low (SH/SL), and Delta metrics directly into the candle structure. This mashup of volume, price action, and liquidity flow gives traders an intuitive and immediate read on market conditions.
📌 Key Features & How They Work Together
🔹 Four-Color Candles – A Visual Edge Over Traditional Charts
Instead of basic red/green candles, we introduce a four-color system to highlight key liquidity shifts:
• 🔴 Red – Bearish pressure, aggressive sellers dominating.
• 🟢 Green – Bullish pressure, buyers stepping in.
• 🔵 Blue – Swing Highs (SH), Bullish Order Blocks (OBs), Accumulation zones.
• 🟡 Yellow – Swing Lows (SL), areas of liquidity sweep or potential reversal.
This eliminates the need to switch between multiple indicators—price structure, liquidity zones, and order flow are embedded directly into the chart.
🔹 EMA Logic – The Trend Foundation
The EMA acts as the core trend filter, dynamically adjusting to market bias. When combined with delta and liquidity flow, it helps traders confirm whether price action aligns with smart money movements.
🔹 Order Flow & Liquidity Mashup – What’s Really Moving the Market?
📊 Rolling Delta & Cumulative Delta – Track aggressive buyers/sellers and confirm if momentum is sustained or fading.
💰 Liquidity Flow & Shift – Shows whether market makers are accumulating or distributing, helping traders avoid fake breakouts.
📈 Money Flow Index & Value – Measures real institutional participation vs. retail noise.
These elements combine to validate price moves, making it clear when smart money is truly in control.
🔹 Swing Highs & Lows – Market Structure in Real-Time
SH/SL markers don’t lag behind multiple candles like in traditional indicators. Instead, they align with OBs and liquidity flow, giving a strong confirmation of trend continuation or reversal.
🔹 Live Label Update – Real-Time Market Intelligence
The dynamic label box provides a live feed of critical metrics, including:
✅ EMA Bias – Confirms market direction.
✅ Rolling & Cumulative Delta – Tracks aggressive buy/sell imbalances.
✅ Liquidity Flow & Money Flow Index – Confirms institutional strength.
✅ FVG Execution Scanning (Coming Soon!)
This ensures traders have instant insight into market conditions without needing to check multiple sources.
📈 Why Traders Need This System
🔹 Faster Decision-Making – No need to flip between indicators; everything is visible on the chart.
🔹 Clearer Liquidity Insights – Order flow, delta, and structure all in sync.
🔹 Works for Scalping & Day Trading – Designed for real-time execution, not lagging signals.
By integrating order blocks, liquidity shifts, and a four-color candle system, this tool provides the most complete view of market control in a single chart.
📌 Stop reacting. Start anticipating. Trade with the flow of smart money.