NR4 & NR7 with Breakouts [LuxAlgo]NR4 & NR7 with Breakouts is a simple indicator that utilizes the NR4 and NR7 candle patterns to display candle ranges and signals from range breakouts.
🔶 USAGE
The Narrow Range Patterns are candle formations determined by the last candle having a narrower (high-low) range than the previous number. This indicator showcases the 2 most recognized Narrow Range Patterns, which are the 4 and 7 bar variants (NR4 and NR7).
These patterns, introduced by Toby Crabel, are thought to provide insight for potential market breakouts by identifying periods of low volatility indicated by a candle with a small range. This is due to the idea that markets often move from periods of low volatility (contraction) to high volatility (expansion), and the NR4 and NR7 patterns help spot these transitions.
By utilizing these patterns, traders are better able to anticipate and respond to market shifts for better decision-making and risk management.
NOTE: These patterns have traditionally been studied on the Daily Timeframe Chart. This indicator allows the user to select a timeframe to generate these patterns from. It is suggested to be mindful of this when considering these patterns.
In this indicator, on the bar after the pattern is detected, the Narrow Range Bar will be highlighted with a zone, and lines displaying the range will extend from it. These ranges are helpful for providing levels to set limit orders and for managing risk.
Users are able to adjust which pattern they want visualized on their chart, please note;
All NR7s are NR4s but not all NR4s are NR7s.
Because of this, you will notice that when selecting "NR4" to display, the colors will change, but the detected ranges will not change.
🔹 Signals
When a Narrow Range Bar is detected, the script will wait for the price to close outside of the Range, then a signal will fire indicating the direction of exit. The signals are produced from the last NR4 or NR7 and will have the potential to fire from that range until a new NR4 or NR7 is detected.
After a signal fires, the logic goes into a "reset" period where it will wait for the price to reach the Range Mean before firing another signal.
These signals can be anticipated by considering the underlying logic and watching price approach the range extremities, and can be improved by utilizing other market information for confluence.
🔶 SETTINGS
Timeframe: Choose which timeframe to identify the NR4 and NR7 Pattern on. This must be Higher than the chart timeframe.
Pattern Type: Choose which (or all) patterns to display.
Indicators and strategies
Price OI Division Price OI Division Indicator
Overview
The Price OI Division indicator (`P_OI_D`) is a custom TradingView script designed to analyze the relationship between price momentum and open interest (OI) momentum. It visualizes the divergence between these two metrics using a modified MACD (Moving Average Convergence Divergence) approach, normalized to percentage values. The indicator is plotted as a histogram and two lines (MACD and Signal), with color-coded signals for easier interpretation.
Key Features
- Normalized Price MACD : Compares short-term and long-term price momentum.
- OI-Adjusted MACD : Incorporates open interest data to reflect market positioning.
- Divergence Histogram : Highlights the difference between price and OI momentum.
- Signal Line : Smoothed EMA of the divergence for trend confirmation.
- Threshold Lines : Horizontal reference lines at ±10% and 0 for quick visual analysis.
Interpretation Guide
- Bullish Signal :
Histogram turns red (positive & increasing).
MACD (red line) crosses above Signal (blue line).
Divergence above +10% indicates extreme bullish conditions.
- Bearish Signal :
Histogram turns green (negative & increasing).
MACD (lime line) crosses below Signal (maroon line).
Divergence below -10% indicates extreme bearish conditions.
- Neutral/Reversal :
Histogram fading (teal/pink) suggests weakening momentum.
Crossings near the Zero Line may signal trend shifts.
Usage Notes
Asset Compatibility : Works best with futures/perpetual contracts where OI data is available.
Timeframe : Suitable for all timeframes, but align `fastLength`/`slowLength` with your strategy.
Data Limitations : Relies on exchange-specific OI symbols (e.g., `BTC:USDT.P_OI`). Verify data availability for your asset.
Confirmation : Pair with volume analysis or support/resistance levels for higher accuracy.
Disclaimer
This indicator is for educational purposes only. Trading decisions should not be based solely on this tool. Always validate signals with additional analysis and risk management.
Volume-Weighted Pivot BandsThe Volume-Weighted Pivot Bands are meant to be a dynamic, rolling pivot system designed to provide traders with responsive support and resistance levels that adapt to both price volatility and volume participation. Unlike traditional daily pivot levels, this tool recalculates levels bar-by-bar using a rolling window of volume-weighted averages, making it highly relevant for intraday traders, scalpers, swing traders, and algorithmic systems alike.
-- What This Indicator Does --
This tool calculates a rolling VWAP-based pivot level, and surrounds that central pivot with up to five upper bands (R1–R5) and five lower bands (S1–S5). These act as dynamic zones of potential resistance (R) and support (S), adapting in real time to price and volume changes.
Rather than relying on static session or daily data, this indicator provides continually evolving levels, offering more relevant levels during sideways action, trending periods, and breakout conditions.
-- How the Bands Are Calculated --
Pivot (VWAP Pivot):
The core of this system is a rolling Volume-Weighted Average Price, calculated over a user-defined window (default 20 bars). This ensures that each bar’s price impact is weighted by its volume, giving a more accurate view of fair value during the selected lookback.
Volume-Weighted Range (VW Range):
The highest high and lowest low over the same window are used to calculate the volatility range — this acts as a spread factor.
Support & Resistance Bands (S1–S5, R1–R5):
The bands are offset above and below the pivot using multiples of the VW Range:
R1 = Pivot + (VW Range × multiplier)
R2 = R1 + (VW Range × multiplier)
R3 = R2 + (VW Range x multiplier)
...
S1 = Pivot − (VW Range × multiplier)
S2 = S1 − (VW Range × multiplier)
S3 = S2 - (VW Range x multiplier)
...
You can control the multiplier manually (default is 0.25), to widen or tighten band spacing.
Smoothing (Optional):
To prevent erratic movements, you can optionally toggle on/off a simple moving average to the pivot line (default length = 20), providing a smoother trend base for the bands.
-- How to Use It --
This indicator can be used for:
Support and resistance identification:
Price often reacts to R1/S1, and the outer bands (R4/R5 or S4/S5) act as overshoot zones or strong reversal areas.
Trend context:
If price is respecting upper bands (R2–R3), the trend is likely bullish. If price is pressing into S3 or lower, it may indicate sustained selling pressure or a breakdown.
Volatility framing:
The distance between bands adjusts based on price range over the rolling window. In tighter markets, the bands compress — in volatile moves, they expand. This makes the indicator self-adaptive.
Mean reversion trades:
A move into R4/R5 or S4/S5 without continuation can be a sign of exhaustion — potential for reversal toward the pivot.
Alerting:
Built-in alerts are available for crosses of all major bands (R1–R5, S1–S5), enabling trade automation or scalp alerts with ease.
-- Visual Features --
Fuchsia Lines: Mark all Resistance (R1–R5) levels.
Lime Lines: Mark all Support (S1–S5) levels.
Gray Circle Line: Marks the rolling pivot (VWAP-based).
-- Customizable Settings --
Rolling Length: Number of bars used to calculate VWAP and VW Range.
Multiplier: Controls how wide the bands are spaced.
Smooth Pivot: Toggle on/off to smooth the central pivot.
Pivot Smoothing Length: Controls how many bars to average when smoothing is enabled.
Offset: Visually shift all bands forward/backward in time.
-- Why Use This Over Standard Pivots? --
Traditional pivots are based on previous session data and remain fixed. That’s useful for static setups, but may become irrelevant as price action evolves. In contrast:
This system updates every bar, adjusting to current price behavior.
It includes volume — a key feature missing from most static pivots.
It shows multiple bands, giving a full view of compression, breakout potential, or trend exhaustion.
-- Who Is This For? --
This tool is ideal for:
Day traders & scalpers who need relevant intraday levels.
Swing traders looking for evolving areas of confluence.
Algorithmic/systematic traders who rely on quantifiable, volume-aware support/resistance.
Traders on all assets: works on crypto, stocks, futures, forex — any chart that has volume.
MES - 3WS long v2📘 3WS Long v2 (Three White Soldiers)
Description:
Detects the Three White Soldiers long reversal candlestick pattern on the MES futures chart. The script includes confirmation filters using rolling VWAP, trend structure (EMA/SMA), and volume/momentum signals to reduce false positives. Designed to support discretionary scalping strategies in trending market conditions.
MES - 3BC short v2📕 3BC Short v2 (Three Black Crows)
Description:
Identifies the Three Black Crows short reversal candlestick pattern on the MES futures chart. It applies a trend validation system based on VWAP and moving averages, along with order flow and momentum filters for higher-quality entries. Optimized for traders looking to monitor clean short setups during downtrending phases.
MTF Stochastic RSIOverview: MTF Stochastic RSI
is a momentum-tracking tool that plots the Stochastic RSI oscillator for up to four user-
defined timeframes on a single panel. It provides a compact yet powerful view of how
momentum is aligning or diverging across different timeframes, making it suitable for both
scalpers and swing traders looking for multi-timeframe confirmation.
What it does:
Calculates Stochastic RSI values using the RSI of price as the base input and applies
smoothing for stability.
Aggregates and displays the values for four customizable TF (e.g., 5min, 15min, 1h, 4h).
Highlights potential support and resistance zones in the oscillator space using adaptive zone
logic.
Optionally draws dynamic support/resistance zone lines in the oscillator space based on
historical turning points.
How it works:
Each timeframe uses the same RSI and Stoch calculation settings but runs independently via
the request.security() function.
Stochastic RSI is calculated by first applying the RSI to price, then applying a stochastic
formula on the RSI values, and finally smoothing the %K output.
Adaptive overbought and oversold thresholds adjust based on ATR-based volatility and simple
trend filtering (e.g., price vs EMA).
When a crossover above the oversold zone or a crossunder below the overbought zone
occurs, the script checks for proximity to previously stored zones and either adjusts or
records a new one.
These zones are stored and re-plotted as dotted support/resistance levels within the
oscillator space.
What it’s based on:
The indicator builds upon traditional Stochastic RSI by applying it to multiple timeframes in
parallel.
Zone detection logic is inspired by the idea of oscillator-based support/resistance levels.
Volatility-adjusted thresholds are based on ATR (Average True Range) to make the
overbought/oversold zones responsive to market conditions.
How to use it:
Look for alignment across timeframes (e.g., all four curves pushing into the overbought
region suggests strong trend continuation).
Reversal risk increases when one or more higher timeframes are diverging or showing signs of
cooling while lower timeframes are still extended.
Use the zone lines as soft support/resistance references within the oscillator—retests of
these zones can indicate strong reversal opportunities or continuation confirmation.
This script is provided for educational and informational purposes only. It does not constitute financial advice, trading recommendations, or an offer to buy or sell any financial instrument. Always perform your own due diligence, use proper risk management, and consult a qualified financial professional before making any trading decisions. Past performance does not guarantee future results. Use this tool at your own discretion and risk.
Binary Options Time/Price Entry HelperFor those who like to trade the Nadex 5 minute binary options.
✅ Features:
Marks the start of every 5-minute candle (HH:00, HH:05, HH:10, etc.)
Highlights price action signals:
Bullish Engulfing
Bearish Engulfing
Long rejection wicks (potential reversals)
Designed for 1-minute charts
Ideal for manual binary entries
Look for:
🔽 Gray markers: start of a 5-min cycle
🟩 CALL or 🟥 PUT: bullish or bearish engulfing
🟢 or 🟠 circles: strong rejection wicks
You can take off the 5 minute chart cycle markers and the rejection wick markers for a clean looking chart.
Jump in the trade when the call/put arrows appear. These can be fast moving trades. Be prepared to exit if need be. Nadex lets you exit at any time.
Example: if you enter a call around $75 you can get out at $50 if the trade goes against you. If you enter a put around $25 and the trade goes against you, exit at $50, or as close as possible. If you do this it will keep your rr close to 1:1 - this is VERY important for these trades.
I'm not responsible for how you do on these trades. I've only used it for EURUSD, but it works well. Test it on all the 5 minute binaries if you want and see what you think.
Don't wear yourself out on these. Nadex has 5 minute binaries continuously. Work at it for a couple hours and get good. You can collect the $25 premium several times a day. Just get out if it moves against you.
ORDERFLOW - CHOCH STATUS WITH MULTI TF PANNELThis code gives you the status of the orderflow direction (defined by the Choch theory, see Somstradamus for more information on how it is defined) in the form of barcolor for the current TF.
We also have a pannel which let you know the orderflow's status of different timeframes on 1 glances.
DMI + Didi Index (Convergência)This indicator combines the power of DMI/ADX with the Didi Index to detect high-probability trade signals only when the market is trending and momentum is aligned.
✅ ADX and DMI help filter out sideways markets by identifying low-trend strength zones.
✅ The Didi Index uses the convergence and divergence of exponential moving averages (EMAs 3, 8, and 20) to spot trend reversals and continuations.
✅ Buy and sell signals are only plotted when both trend strength and directional alignment are confirmed.
Designed for traders who prefer momentum and trend-following strategies while avoiding noise during ranging conditions.
CCI Cross Signal with RSI FilterThis indicator is made for educational purpose. Use it to predict the change of trend, it helps to saving wrong decisions in trading. Please use own analysis also
Bot Institucional - EMAs + Volumen + SR InternoThis script is a technical trading tool that combines three main features:
EMA Cross Alerts
Uses two Exponential Moving Averages (EMAs): a short-term (default 9) and a long-term (default 21).
Generates alerts and labels when the fast EMA crosses above (bullish) or below (bearish) the slow EMA.
Institutional Volume Detection
Highlights bars where volume exceeds a user-defined multiple (default: 2×) of the 20-bar average volume.
These spikes are marked as potential signs of institutional activity.
Support/Resistance Level Detection (internal only)
Automatically identifies significant pivot highs/lows to estimate strong support/resistance zones.
These levels are tracked internally but not displayed on the chart to keep visuals clean.
The script provides clear visual labels and alert conditions, making it useful for momentum traders, scalpers, and volume-based strategies.
🚀 BB+MACD Dip Screener @alptekinkekilli🌟 **What it does**
• Detects deep “dip-and-bounce” setups when price is trading below both the 50EMA and 200EMA
• Ensures the entire Bollinger Band sits beneath those EMAs for optimal risk/reward
• Fires only when price crosses up through the lower BB AND MACD line crosses above its signal line
🔍 **Why use it**
• Quickly scan hundreds of tickers for textbook dip-and-bounce entries
• Filter out noisy false signals by requiring multi-timeframe alignment (EMAs + BB + MACD)
• Perfect for trending markets where retracements offer low-risk entries
⚙️ **How to add the screener filter**
1. Copy & paste this script into Pine Editor → **Save & Add to Chart**
2. Publish as **Public** so it appears in Stock Screener → Technical
3. In **Stock Screener → Filters**, search for **BB+MACD Dip Screener** → select **BB_MACD_Dip > 0**
4. Voilà! You’ll see all symbols flashing “1” when a dip buy emerges.
🚨 **Bonus Alert**
Use the built-in `alertcondition(buyCond, "BB+MACD Dip Buy", "Dip buy confirmed!")` to fire real-time notifications to your phone or email.
Happy scanning & safe trading! 📈💰
Stochastic RSI with MTF TableThis Pine Script creates a Stochastic RSI indicator with a multi-timeframe (MTF) table for TradingView. It calculates the Stochastic RSI (using RSI length of 14, Stochastic length of 14, and smoothing of 3 for K and D lines) on the current chart timeframe and plots K (blue) and D (orange) lines, with overbought (80) and oversold (20) levels. The script also displays a horizontal table showing the overbought/oversold status for multiple timeframes (5m, 15m, 30m, 1h, 4h, 1D), with customizable table position (Top-Left, Top-Right, Bottom-Left, Bottom-Right). The table uses green for oversold, red for overbought, and gray for neutral, ensuring independent calculations for each timeframe using historical data to avoid repainting.
HTF/LTF Boxes DRBBUpdated original script with gann box of previous hour and added second LTF box.
All credits to an author of an original code @smitty1021
MM Smart Visualizer V2📌 Indicator Description for TradingView:
MM Smart Visualizer V2 – Limited Free Version
This indicator is designed for traders who want to understand Market Maker behavior (MM) and make smarter trading decisions using a multi-layered visual analysis.
🔍 Features:
📊 Multi-timeframe trend detection (4H, 1H, 15m, 5m) – automatically identifies trend direction based on SMA 50/200
💡 Smart Sentiment Analysis – detects strong bullish/bearish candles based on volume and SMA positioning, shown with visual arrows
🚨 Fakeout Detection – identifies liquidity grabs and false breakouts above or below previous swing points
🔵🔴 4H Support & Resistance Levels – draws automatic key S/R lines from higher timeframe
📦 MM Info Panel – displays trend direction, volume strength, price location within range, sentiment, and fakeout signals in one clean box
✅ Ideal for scalpers, intraday, and swing traders looking to catch clean, confirmed entries without noise.
📣 This version is free for a limited time only.
The indicator will soon become invite-only for traders who support the project.
🔒 Enjoy the free access while it lasts. If you like it, follow for updates and future premium tools.
#MMVisualizer #SmartTrading #MarketMakerTools #FakeoutDetector #VolumePower #XAUUSD #PineScript #ScalpingTools
Change in State of Delivery (CISD) [SB Instant]🧠 Modified by SB | Core Logic by LuxAlgo
🔗 Licensed under CC BY-NC-SA 4.0
Change in State of Delivery (CISD) is a concept rooted in observing shifts in order flow behavior, designed to detect the first signs of trend exhaustion and potential reversal. This model tracks when the current delivery (trend) structure — bullish or bearish — is violated by an opposing force, signaling a potential change in market intent.
In simple terms:
A Bullish CISD is triggered when sellers fail to maintain control, and buyers break above a delivery line.
A Bearish CISD is triggered when buyers fail, and sellers break below a delivery line.
This version uses real-time logic, triggering alerts immediately on break, rather than waiting for candle-close confirmation — giving faster, actionable signals to precision-driven traders.
⚙️ Core Features
Detection Modes
Classic: Traditional swing-based structural break detection
Liquidity Sweep: Logic incorporating wick sweeps (liquidity grabs)
Custom Parameters
Swing Length: Number of candles used to identify swing points
Minimum CISD Duration: Minimum length required for valid delivery phase
Maximum Swing Validity: How long the structure remains valid for potential breaks
Visual Options
Label and line styling options
Solid line = Initial break of delivery structure
Dashed line = Continuation break in the same trend direction
This allows you to visually differentiate a new reversal vs. a continuation of the existing trend.
🚨 Built-in Alerts
Bullish CISD Detected (Instant)
Bearish CISD Detected (Instant)
These alerts fire immediately when structure is broken, offering early confirmation for aggressive or reactive trade setups.
🔔 IMPORTANT:
If an alert triggers but the delivery line is not present, wait for the price to form the CISD label again and manually mark the price level using a horizontal ray. This ensures you are trading from a clearly defined structure.
🕒 Recommended Timeframes
✅ Use 30-Minute or 4-Hour charts to identify high-confidence CISD zones
🎯 Then drop to the 1-Minute or 5-Minute chart for precise entry execution
This top-down approach aligns higher timeframe narrative with lower timeframe entry triggers, increasing your edge in both timing and context.
🧠 How to Use CISD Effectively
Bullish Scenario:
Watch for breaks above bearish delivery structures, especially if confirmed with:
Fair Value Gaps (FVG)
The Strat 2-2 reversal
MSS (Market Structure Shift)
Bearish Scenario:
Look for breaks below bullish delivery setups in alignment with:
BOS (Break of Structure)
The Strat 3-1-2
Bearish liquidity sweeps
Key Tip:
Solid line = Initial CISD (new shift)
Dashed line = Continuation of current trend
This visual distinction helps you determine when a market is shifting vs. extending.
📎 Disclaimer
This tool is provided for educational purposes only and is not intended as financial advice. Always backtest, paper trade, and manage risk responsibly.
📚 Credits
Original CISD framework developed by LuxAlgo
Real-time execution logic, alert enhancements, and intraday utility designed by SB (SamB)
ETF Builder & Backtest System [TradeDots]Create, analyze, and monitor your own custom “ETF-like” portfolio directly on TradingView. This script merges up to 10 different assets with user-defined weightings into a single composite chart, allowing you to see how your personalized portfolio would have performed historically. It is an original tool designed to help traders and investors quickly gauge risk and return profiles without leaving the TradingView platform.
📝 HOW IT WORKS
1. Custom Portfolio Construction
Multiple Assets : Combine up to 10 different stocks, ETFs, cryptocurrencies, or other symbols.
User-Defined Weights : Allocate each asset a percentage weight (e.g., 15% in AAPL, 10% in MSFT, etc.).
Single Composite Value : The script calculates a weighted “ETF-style” price, effectively simulating a merged portfolio curve on your chart.
2. Performance Tracking & Return Analysis
Automatic History Capture : The indicator records each asset’s starting price when it first appears in your chosen date range.
Rolling Updates : As time progresses, all asset prices are continually evaluated and the portfolio value is updated in real time.
Buy & Hold Returns : See how each asset—and the overall portfolio—performed from the “start” date to the most recent bar.
Annualized Return : Automatically calculates CAGR (Compound Annual Growth Rate) to help visualize performance over varying timescales.
3. Table & Visual Output
Performance Table : A comprehensive table displays individual asset returns, annualized returns, and portfolio totals.
Normalized Chart Plot : The composite ETF value is scaled to 100 at the start date, making it easy to compare relative growth or decline.
Optional Time Filter : You can define a specific date range (Start/End Dates) to focus on a particular period or to limit historical data.
⚙️ KEY FEATURES
1. Flexible Asset Selection
Choose any symbols from multiple asset classes. The script will only run calculations when data is available—no need to worry about missing quotes.
2. Dynamic Table Reporting
Start Price for each asset
Percentage Weight in the portfolio
Total Return (%) and Annualized Return (%)
3. Simple Backtesting Logic
This script takes a straightforward Buy & Hold perspective. Once the start date is reached, the portfolio remains static until the end date, so you can quickly assess hypothetical growth.
4. Plot Customization
Toggle the main “ETF” plot on/off.
Alter the visual style for tables and text.
Adjust the time filter to limit or extend your performance measurement window.
🚀 HOW TO USE IT
1. Add the Script
Search for “ETF Builder & Backtest System ” in the Indicators & Strategies tab or manually add it to your chart after saving it in your Pine Editor.
2. Configure Inputs
Enable Time Filter : Choose whether to restrict the analysis to a particular date range.
Start & End Date : Define the period you want to measure performance over (e.g., from 2019-12-31 to 2025-01-01).
Assets & Weights : Enter each symbol and specify a percentage weight (up to 10 assets).
Display Options : Pick where you want the Table to appear and choose background/text colors.
3. Interpret the Table & Plots
Asset Rows : Each asset’s ticker, weighting, start price, and performance metrics.
ETF Total Row : Summarizes total weighting, composite starting value, and overall returns.
Normalized Plot : Tracks growth/decline of the combined portfolio, starting at 100 on the chart.
4. Refine Your Strategy
Compare how different weights or a new mix of assets would have performed over the same period.
Assess if certain assets contribute disproportionately to your returns or volatility.
Use the results to guide allocations in your real trading or paper trading accounts.
❗️LIMITATIONS
1. Buy & Hold Only
This script does not handle rebalancing or partial divestments. Once the portfolio starts, weights remain fixed throughout the chosen timeframe.
2. No Reinvestment Tracking
Dividends or other distributions are not factored into performance.
3. Data Availability
If historical data for a particular asset is unavailable on TradingView, related results may display as “N/A.”
4. Market Regimes & Volatility
Past performance does not guarantee similar future behavior. Markets can change rapidly, which may render historical backtests less predictive over time.
⚠️ RISK DISCLAIMER
Trading and investing carry significant risk and can result in financial loss. The “ETF Builder & Backtest System ” is provided for informational and educational purposes only. It does not constitute financial advice.
Always conduct your own research.
Use proper risk management and position sizing.
Past performance does not guarantee future results.
This script is an original creation by TradeDots, published under the Mozilla Public License 2.0.
Use this indicator as part of a broader trading or investment approach—consider fundamental and technical factors, overall market context, and personal risk tolerance. No trading tool can assure profits; exercise caution and responsibility in all financial decisions.
Multi-Timeframe EMAs with Cross Alerts (Up & Down)📌 Indicator Name:
Multi-Timeframe EMAs with Cross Alerts (Up & Down)
🛠️ Core Features:
✅ 1. Multi-Timeframe EMA Display
The script calculates and displays 6 different Exponential Moving Averages (EMAs).
Each EMA has:
Custom length input (e.g., 9, 21, etc.).
Custom timeframe selection (e.g., 1H, 4H, 1D).
Custom color for easy identification on the chart.
✅ 2. EMA Visualization
Each of the six EMAs is plotted on the chart using the selected color and thickness.
They respond dynamically to different timeframes (current or higher/lower).
✅ 3. Cross Detection Logic
The script can detect crossover and crossunder between EMA pairs:
EMA 1 and EMA 2
EMA 3 and EMA 4
EMA 5 and EMA 6
(Optional: can be extended to other combinations.)
✅ 4. Alert Toggles
Users can enable or disable alerts for each pair independently:
Alert: EMA 1 crosses EMA 2
Alert: EMA 3 crosses EMA 4
Alert: EMA 5 crosses EMA 6
(You added an additional option for EMA 4 vs EMA 6 later.)
✅ 5. Visual Alert Markers
The script uses alert() function to send alert messages when:
An EMA crosses above another (crossover)
An EMA crosses below another (crossunder)
Alerts include clear icons like 🔼 and 🔽 in the messages.
🔔 Use Case Scenarios
Swing traders: Identify longer-term cross signals on higher timeframes.
Scalpers: Use lower-timeframe EMAs with fast alert reactions.
Multi-timeframe analysis: Spot alignment between trend-following EMAs across different periods.
✅ Bonus
Fully customizable — great for adapting to your own strategy, whether it's trend confirmation, re-entry signals, or early reversals
📌 اسم المؤشر:
المتوسطات المتحركة الأسية (EMA) متعددة الفريمات مع تنبيهات تقاطع صاعدة وهابطة
🛠️ الميزات الأساسية:
✅ 1. دعم متعدد للفريمات الزمنية
يقوم السكربت بحساب وعرض 6 متوسطات متحركة أسية (EMA) مختلفة.
يمكن تخصيص كل EMA من حيث:
الطول (مثل: 9، 21...).
الفريم الزمني (مثل: الساعة، الأربع ساعات، اليومي...).
اللون، لتسهيل التمييز بين الخطوط على الشارت.
✅ 2. عرض المتوسطات على الرسم البياني
يتم رسم كل من المتوسطات الستة باستخدام اللون والتنسيق الذي تختاره.
المتوسطات تتفاعل تلقائيًا مع التغييرات في الفريم الزمني.
✅ 3. كشف التقاطعات
يمكن للسكربت كشف تقاطعات (صعودًا أو هبوطًا) بين أزواج المتوسطات التالية:
EMA 1 و EMA 2
EMA 3 و EMA 4
EMA 5 و EMA 6
(ويمكنك إضافة المزيد مثل EMA 4 مع EMA 6 حسب الحاجة)
✅ 4. التحكم في التنبيهات
يمكن للمستخدم تفعيل أو تعطيل التنبيهات لكل زوج من المتوسطات على حدة:
تنبيه عند تقاطع EMA 1 و EMA 2
تنبيه عند تقاطع EMA 3 و EMA 4
تنبيه عند تقاطع EMA 5 و EMA 6
(وأي أزواج إضافية يتم إضافتها لاحقًا)
✅ 5. تنبيهات مرئية برسائل واضحة
السكربت يرسل تنبيهات عبر وظيفة alert() عند حدوث:
تقاطع صاعد (EMA يتقاطع من الأسفل إلى الأعلى).
تقاطع هابط (EMA يتقاطع من الأعلى إلى الأسفل).
التنبيه يحتوي على رموز توضيحية مثل 🔼 و 🔽 ليسهل قراءته.
🎯 مناسب لـ:
المتداولين المتأرجحين (Swing Traders): لاكتشاف تقاطعات على الفريمات الكبرى.
المضاربين (Scalpers): باستخدام EMA سريعة على فريمات صغيرة مع تنبيهات فورية.
محللي الفريمات المتعددة: لتأكيد الاتجاه أو الانعكاس بناءً على تقاطع متوسطات من فريمات مختلفة.
✅ مزايا إضافية:
قابل للتخصيص بشكل كامل حسب استراتيجيتك.
مناسب لعدة أساليب: تأكيد الترند، إعادة الدخول، أو إشارات الانعكاس المبكر.
Grid Bot Visualizer V1
📊 Grid Bot Visualizer – V1
A dynamic and visual support tool for grid trading strategies.
🔧 Key Features
• Fixed grid levels based on a central entry price
• Customizable spacing, number of levels, and range
• Color-coded lines (🟢 green above, 🔴 red below)
• Expands automatically when price exceeds boundaries (within the defined box)
• Optional price labels shown outside the grid
• Grid visually framed by a blue box
• Vertical line to mark grid origin
• Built-in alert when price hits a grid level
⚙️ Use Case
Ideal for visualizing grid bot logic in volatile markets.
Monitor how price interacts with predefined zones.
✅ Alert Ready
Use alertcondition to get notified when a grid level is touched.
Compression Patterns (w/ Trend + Proximity Filter)🧠 Description:
This indicator identifies high-probability price compression patterns within trending environments — a setup prized by experienced swing and day traders alike. It combines the classic NR4, NR7, 2-Bar NR, 3-Bar NR, and Inside Day formations with a powerful trend filter and proximity logic to deliver clear, focused signals.
🔍 What's Inside:
▪️ Compression Patterns
The core of this tool lies in the logic of price compression. These patterns signal the market taking a breath — volatility contracts, volume dries up, and price coils like a spring.
When this happens in the right context, the next move is often explosive.
NR4 / NR7: Narrowest range in 4 or 7 bars — excellent for spotting the quiet before the storm.
2-Bar NR / 3-Bar NR: These identify the tightest consecutive 2 or 3-day ranges over the past 20 days — contextually rare and powerful.
Inside Day: A simple but highly effective consolidation pattern, especially when it clusters around key moving averages.
▪️ Trend Filter (EMA Stack)
You could say this is where most indicators fall apart — no context.
This one doesn’t make that mistake.
Signals only fire when the 10 EMA > 20 EMA > 50 EMA, and price is above the 20 EMA. That’s a strong, established uptrend — the only environment where breakouts are statistically favourable.
Why?
Because trend following works.
It may not give you fixed daily returns, but it’s the only strategy with theoretically infinite profit potential. You risk little, trade less, and position yourself for rare but massive moves. That’s the edge.
▪️ Proximity Filter (1 ATR to EMA)
We’ve added another layer of discipline. Signals only fire when price is:
Within 1 ATR of the 10 EMA (if price is above it), or
Within 1 ATR of the 20 EMA (if price is below the 10 EMA)
This ensures you’re not chasing. You’re waiting for tight, controlled pullbacks into dynamic support — exactly where institutions add size, not exit.
⚙️ Fully Customisable:
Toggle visibility of each pattern
Custom colours and transparency for label & background
Adjustable ATR length and multiplier
Change label text if needed (useful for translations or tweaks)
🎯 Ideal Use Case:
Swing trading off the daily chart
Day trading with VWAP/MACD filters (in alternate versions)
Supplementing price action strategies
🔚 Final Word:
This isn’t an “everything scanner.”
It’s a discerning sniper scope for traders who wait patiently for clean trends, tight consolidations, and perfect proximity — then strike.