Smart FlexRange Breakout [The_lurker]The Smart FlexRange Breakout tool aims to identify trading opportunities based on price breakouts of dynamic levels (CALL, PUT) with a dotted centerline and the ability to select the applicable market. The tool relies on candlestick analysis over a specific time period (such as 3 hours). Candle data (searchHours) is collected to identify the most significant candle based on candlestick patterns and trading volume during the selected timeframe. Breakout levels and take-profit (TP) targets are then plotted, along with buy and sell signals, breakout notifications, and up/down trend lines based on Pivot Points.
The tool is run according to the selected timeframe.
Practical Use
1- Setup: Adjust the market, timeframe, number of hours, and time zone to suit the trader's needs.
2- Trading: Monitor signals (BUY/SELL) and TP levels to determine entry and exit points.
3- Trend Lines: Use them to understand the overall trend and confirm signals.
---
1. Objective: Identify trading opportunities based on price breakouts
- Trading opportunities: The indicator is designed to help traders identify moments when significant price movements are likely, allowing them to enter buy or sell trades based on market changes.
- Price breakouts: The indicator focuses on moments when prices break through key levels (resistance or support). A breakout occurs when the price exceeds a resistance level (up) or breaks a support level (down), indicating a potential continuation of the movement in the same direction.
- Dynamic: Resistance and support levels are not static; rather, they are calculated based on candlestick analysis over a specific period of time, making them adaptive to current market conditions.
---
2. Dynamic levels (resistance and support levels)
- Resistance levels: These represent prices that the price is difficult to break above, defined here as the high of the most significant candle during the specified period.
- Support levels: These represent prices below which the price is difficult to fall, defined as the low of the most significant candle.
- Dynamic: These levels are recalculated every new search period (searchHours), meaning they change based on the latest market data, unlike traditional static levels.
---
3. Adding a Dotted Center Line
- Center Line: A horizontal dotted line is drawn at the midpoint between the high and low of the most significant candle.
- Purpose:
- Provides a visual reference point for determining the current price position relative to support and resistance levels.
- Helps assess whether the price is moving toward a breakout (near resistance) or a breakout (near support).
- Dotted: The dotted pattern distinguishes it from the solid upper and lower lines, making it easier to distinguish visually.
---
4. Relying on candlestick analysis over a specific time period (searchHours)
- Candlestick Analysis: The indicator examines candlesticks to determine which ones have the most influence on price movement.
- Timeframe (searchHours):
- The user specifies the number of hours (1-6) for candle analysis, which determines the range of data the indicator relies on.
- Example: If searchHours = 3 and timeframe = 30 minutes, 6 candles are analyzed (3 hours ÷ 30 minutes).
- Flexibility: This period can be adjusted to suit different markets (such as volatile cryptocurrencies or more stable Forex).
---
5. Determining the Most Important Candle Based on Candle Patterns and Volume
- The most important candle: is the candle believed to have the greatest impact on price movement based on specific criteria.
- Candle Patterns:
- Candles are analyzed using a candlestick pattern library (such as Engulfing, Hammer, Doji).
- Reversal patterns (such as Morning Star, Shooting Star) are given a high importance score (100 points) because they indicate potential trend changes.
- Trading Volume:
- The trading volume of each candle is measured and compared to the maximum and minimum during the period.
- Volume is calculated as a percentage (0-100) and added to the pattern score to determine the most significant candle.
- Result: The candle with the highest score (patterns + volume) is used to determine support and resistance levels.
---
6. Timeframe
- Time interval: The user selects a time frame for the candles (15, 30, or 60 minutes).
- Importance:
- Determines the number of candles analyzed during the searchHours period.
- Affects the accuracy and speed of the signals (shorter timeframe = faster but less reliable signals; longer timeframe = slower but more reliable signals).
- Example: If the timeframe is 60 minutes and searchHours is 3, only 3 candles are analyzed.
---
7. Drawing Breakout Levels and Take Profit Targets (TP)
- Breakout Levels:
- Upper line (resistance): Drawn at the highest price of the most significant candle and is labeled "CALL".
- Lower line (support): Drawn at the lowest price of the most important candle and is called "PUT."
- These lines represent levels where a breakout is expected to lead to a strong price movement.
- Take Profit Targets (TP):
- Up to 8 bullish (above the upper line) and bearish (below the lower line) TP levels are calculated.
- They are calculated based on a percentage (tpPercentage) added or subtracted from the base lines.
- Example: If tpPercentage = 0.6% and the high price = 100, then bullish TP1 = 100.6, TP2 = 101.2, etc.
- Labels: Labels are drawn for each TP level indicating the value and level (TP1, TP2, etc.).
---
8. Buy and Sell Signals
- Buy (BUY) signal:
- Generated when the price breaks the upper line (ta.crossover).
- The "BUY" label is drawn with the redrawing of the TP levels.
- Sell signal (SELL):
- Generated when the price breaks the lower line (ta.crossunder).
- The "SELL" label is drawn with the redrawing of the TP levels.
- Purpose: To provide clear signals to the trader for making trade entry decisions.
=========================================================================
Thank you, n00btraders.
For using the import library: n00btraders/Timezone/1
For using the import library: The_lurker/AllCandlestickPatternsLibrary/1
========================================================================
Disclaimer:
The information and publications are not intended to be, nor do they constitute, financial, investment, trading, or other types of advice or recommendations provided or endorsed by TradingView.
تهدف أداة Smart FlexRange Breakout إلى تحديد فرص التداول بناءً على اختراقات الأسعار للمستويات الديناميكية (CALL، PUT) مع خط مركزي منقط، مع إمكانية اختيار السوق المناسب. تعتمد الأداة على تحليل الشموع اليابانية على مدى فترة زمنية محددة (مثل 3 ساعات). تُجمع بيانات الشموع (searchHours) لتحديد أهم شمعة بناءً على أنماط الشموع وحجم التداول خلال الإطار الزمني المحدد. ثم تُرسم مستويات الاختراق وأهداف جني الأرباح (TP)، بالإضافة إلى إشارات البيع والشراء، وإشعارات الاختراق، وخطوط الاتجاه الصعودي/الهبوطي بناءً على نقاط المحور.
يتم تشغيل الاداه حسب الفاصل المختار timeframe
الاستخدام العملي
1- الإعداد: اضبط السوق، والإطار الزمني، وعدد الساعات، والمنطقة الزمنية لتناسب احتياجات المتداول.
2- التداول: راقب إشارات (الشراء/البيع) ومستويات جني الأرباح لتحديد نقاط الدخول والخروج.
3- خطوط الاتجاه: استخدمها لفهم الاتجاه العام وتأكيد الإشارات.
1. الهدف: تحديد فرص التداول بناءً على اختراقات الأسعار
- فرص التداول: صُمم هذا المؤشر لمساعدة المتداولين على تحديد اللحظات التي يُحتمل فيها حدوث تحركات سعرية كبيرة، مما يسمح لهم بالدخول في صفقات شراء أو بيع بناءً على تغيرات السوق.
- اختراقات الأسعار: يُركز المؤشر على اللحظات التي تخترق فيها الأسعار مستويات رئيسية (مقاومة أو دعم). يحدث الاختراق عندما يتجاوز السعر مستوى مقاومة (صعودًا) أو يخترق مستوى دعم (هبوطًا)، مما يُشير إلى احتمال استمرار الحركة في نفس الاتجاه.
- ديناميكي: مستويات المقاومة والدعم ليست ثابتة؛ بل تُحسب بناءً على تحليل الشموع اليابانية على مدى فترة زمنية محددة، مما يجعلها مُكيفة مع ظروف السوق الحالية.
2. المستويات الديناميكية (مستويات المقاومة والدعم)
- مستويات المقاومة: تُمثل هذه الأسعار التي يصعب على السعر تجاوزها، وتُعرف هنا بأنها ارتفاع الشمعة الأكثر أهمية خلال الفترة المحددة.
- مستويات الدعم: تُمثل هذه الأسعار التي يصعب على السعر الانخفاض دونها، وتُعرف بأنها أدنى مستوى للشمعة الأكثر أهمية.
- ديناميكي: تُعاد حساب هذه المستويات مع كل فترة بحث جديدة (ساعات البحث)، مما يعني أنها تتغير بناءً على أحدث بيانات السوق، على عكس المستويات الثابتة التقليدية.
3. إضافة خط مركزي منقط
- خط المركز: يُرسم خط أفقي منقط عند نقطة المنتصف بين أعلى وأدنى شمعة ذات أهمية.
- الغرض:
- يوفر نقطة مرجعية بصرية لتحديد وضع السعر الحالي بالنسبة لمستويات الدعم والمقاومة.
- يساعد في تقييم ما إذا كان السعر يتحرك نحو اختراق (بالقرب من المقاومة) أو اختراق (بالقرب من الدعم).
- منقط: يُميزه النمط المنقط عن الخطوط العلوية والسفلية المتصلة، مما يُسهّل تمييزه بصريًا.
4. الاعتماد على تحليل الشموع اليابانية على مدى فترة زمنية محددة (ساعات البحث)
- تحليل الشموع اليابانية: يفحص المؤشر الشموع اليابانية لتحديد أيها الأكثر تأثيرًا على حركة السعر.
- الإطار الزمني (ساعات البحث):
- يُحدد المستخدم عدد الساعات (من 1 إلى 6) لتحليل الشموع، والذي يُحدد نطاق البيانات التي يعتمد عليها المؤشر.
- مثال: إذا كانت ساعات البحث = 3 والإطار الزمني = 30 دقيقة، فسيتم تحليل 6 شموع (3 ساعات ÷ 30 دقيقة).
- المرونة: يُمكن تعديل هذه الفترة لتناسب الأسواق المختلفة (مثل العملات المشفرة المتقلبة أو سوق الفوركس الأكثر استقرارًا).
5. تحديد الشمعة الأكثر أهمية بناءً على أنماط الشموع وحجم التداول
- الشمعة الأكثر أهمية: هي الشمعة التي يُعتقد أن لها التأثير الأكبر على حركة السعر بناءً على معايير محددة.
- أنماط الشموع:
- يتم تحليل الشموع باستخدام مكتبة أنماط الشموع (مثل شمعة الابتلاع، وشمعة المطرقة، وشمعة الدوجي).
- تُمنح أنماط الانعكاس (مثل نجمة الصباح، ونجم الشهاب) درجة أهمية عالية (100 نقطة) لأنها تُشير إلى تغيرات محتملة في الاتجاه.
- حجم التداول:
- يُقاس حجم تداول كل شمعة ويُقارن بالحد الأقصى والأدنى خلال الفترة.
- يُحسب الحجم كنسبة مئوية (0-100) ويُضاف إلى درجة النمط لتحديد الشمعة الأكثر أهمية.
- النتيجة: تُستخدم الشمعة ذات أعلى درجة (الأنماط + الحجم) لتحديد مستويات الدعم والمقاومة.
٦. الإطار الزمني
- الفاصل الزمني: يختار المستخدم إطارًا زمنيًا للشموع (١٥، ٣٠، أو ٦٠ دقيقة).
- الأهمية:
- يحدد عدد الشموع المُحللة خلال فترة ساعات البحث.
- يؤثر على دقة وسرعة الإشارات (الإطار الزمني الأقصر = إشارات أسرع ولكن أقل موثوقية؛ الإطار الزمني الأطول = إشارات أبطأ ولكن أكثر موثوقية).
- مثال: إذا كان الإطار الزمني ٦٠ دقيقة وساعات البحث ٣، فسيتم تحليل ٣ شموع فقط.
---
٧. رسم مستويات الاختراق وأهداف جني الأرباح (TP)
- مستويات الاختراق:
- الخط العلوي (المقاومة): يُرسم عند أعلى سعر للشمعة الأكثر أهمية ويُسمى "CALL".
- الخط السفلي (الدعم): يُرسم عند أدنى سعر للشمعة الأكثر أهمية ويُسمى "PUT".
- تمثل هذه الخطوط المستويات التي يُتوقع أن يؤدي فيها الاختراق إلى حركة سعرية قوية.
- أهداف جني الأرباح (TP):
- يتم حساب ما يصل إلى 8 مستويات جني أرباح صعودية (فوق الخط العلوي) وهبوطية (تحت الخط السفلي).
- يتم حسابها بناءً على نسبة مئوية (tpPercentage) تُضاف أو تُطرح من خطوط الأساس.
- مثال: إذا كانت نسبة جني الأرباح = 0.6% وكان أعلى سعر = 100، فإن هدف الربح الصعودي الأول = 100.6، وهدف الربح الثاني = 101.2، وهكذا.
- العلامات: تُرسم علامات لكل مستوى جني أرباح تشير إلى القيمة والمستوى (TP1، TP2، وهكذا).
---
8. إشارات الشراء والبيع
- إشارة الشراء (BUY):
- تُولّد عند اختراق السعر للخط العلوي (ta.crossover).
- تُرسم علامة "الشراء" مع إعادة رسم مستويات جني الأرباح.
- إشارة البيع (SELL):
- تُولّد عند اختراق السعر للخط السفلي (ta.crossunder). - يُرسم مؤشر "بيع" مع إعادة رسم مستويات جني الأرباح.
- الغرض: توفير إشارات واضحة للمتداول لاتخاذ قرارات دخول الصفقة.
==========================================================================
شكرًا لكم، أيها المتداولون الجدد.
لاستخدام مكتبة الاستيراد: n00btraders/Timezone/1
لاستخدام مكتبة الاستيراد: The_lurker/AllCandlestickPatternsLibrary/1
==============================================================================
إخلاء مسؤولية:
لا يُقصد بهذه المعلومات والمنشورات أن تكون، ولا تُشكل، نصائح أو توصيات مالية أو استثمارية أو تجارية أو أي نوع آخر من النصائح أو التوصيات المُقدمة من TradingView أو المُعتمدة منها.
Indicatori e strategie
Deviation over Deviation (DoD) (DAFE) Deviation over Deviation (DoD)
Let’s call it out: The vast majority of “volatility” tools on TradingView are just new wrappers on old math—ATR, bands, and basic deviation, all chasing the same tired after-the-fact moves. They’re built to describe the aftermath, not the ignition. If you’re still relying on these, you’re trading in the rearview mirror while the real edge is already gone. That’s not our game, and it shouldn’t be yours.
Why is this different?
Deviation over Deviation (DoD) is built for one purpose:
To expose the hidden regime shifts—the moments when volatility itself becomes volatile, when the market’s “normal” deviation is no longer normal, and when the next move is about to erupt. This isn’t just another overlay. This is a quant-grade anomaly detector, engineered to show you the probability surface before the crowd even knows it’s changed.
What sets this apart:
Deviation over Deviation (DoD):
Not just “how much did price move,” but “how unusual is the current volatility compared to its own history?” This is the Z-score of Z-scores—a true rarity detector for market stress, lull, or impending breakout.
VoVix Integration:
Select VoVix as your source and you’re not just tracking price, but the volatility of volatility—the same math that powers institutional regime models. This is the edge that front-runs the move, not follows it.
Multi-Timeframe Comparative Engine:
Instantly compare current and higher timeframe DoD Z-scores. See when the micro and macro regimes align—or when they’re about to collide.
Professional, Adaptive Dashboard:
No cosmetic fluff, always showing you the real quant state: current DoD Z, HTF DoD Z, and regime warnings. Every color, every plot, every signal is a direct function of the logic—no distractions, no lag.
How this destroys the lag:
Standard deviation, ATR, and “volatility bands” are always late. They tell you what just happened. DoD and VoVix show you when the nature of volatility itself is changing—when the market is about to leave the old regime behind. This is the difference between trading the past and trading the future.
Inputs/Signals—explained for clarity:
Deviation Lookback & DoD Lookback:
Control the sensitivity and selectivity of the regime detector. Shorter = more signals, longer = only the rarest events.
Source Selection:
Choose from price, volume, volatility, or VoVix. Each source gives you a different lens on market stress. VoVix is for those who want to see the “regime quake” before the aftershocks.
HTF (Comparative Timeframe):
Set your higher timeframe for macro regime confirmation. When both DoD Z-scores align, you’re seeing a true market inflection.
VoVix Parameters:
Fine-tune the volatility-of-volatility engine for your market. Lower ATR Fast = more responsive; higher ATR Slow = more selective. Adjust for your asset, your timeframe, your edge.
Bottom line:
This isn’t just another “volatility” script. This is a regime anomaly detector, built for traders who want to anticipate, not react. Every input is there for a reason. Every plot is a direct readout of the quant logic. Use it to filter your entries, to time your exits, or to simply see the market’s hidden structure in real time.
Disclaimer:
Trading is risky. This script is for research and informational purposes only, not financial advice. Backtest, paper trade, and know your risk before going live. Past performance is not a guarantee of future results.
To TradingView mods and serious users:
This isn’t just another indicator. This is a quant tool for the next era. If flagged, we’ll keep adapting and republishing until real quant innovation gets its place.
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Global M2 by Colin Talks Crypto // Days Offset =The official Global M2 Money Supply script used by Colin Talks Crypto
x.com/colintcrypto
colintalkscrypto.com
To change the number of days offset for the M2 line, hover over the indicator name on your TradingView chart and click the settings icon.
Renko Trend Reversal StrategyThis Pine Script implements a simple Renko-based trend reversal trading strategy for TradingView. Here’s what it does, broken down clearly:
🔍 Purpose
The script is a strategy (not just an indicator) designed to simulate trading based on Renko-style trend changes, using smoothed price data to detect entries and exits.
🧠 How It Works
1. Trend Detection Using SMAs
It uses two simple moving averages (SMAs) to simulate a Renko-like trend signal:
renko_trend = ta.sma(close, 2) > ta.sma(close, 10) ? 1 : -1
If the short-term SMA (2) is above the long-term SMA (10), the trend is considered bullish (1).
If below, it's bearish (-1).
2. Trend Reversal Detection
A trend change is detected using:
trend_change = ta.change(renko_trend)
It checks if the renko_trend has flipped since the previous candle.
3. Trade Entry Conditions
A long trade is entered when the trend changes to bullish.
A short trade is entered when the trend changes to bearish.
if long_condition
strategy.entry("Long", strategy.long)
if short_condition
strategy.entry("Short", strategy.short)
4. Exit Conditions
Exits are handled using a trailing stop:
strategy.exit(..., trail_points = 50, trail_offset = 20)
A trailing stop loss of 50 points is used, activating only after the price moves 20 points in favor of the trade.
📈 Visualization
It plots the current trend (1 or -1) on the chart as a blue line, which helps you see trend direction changes visually.
⚙️ Strategy Settings
Uses 10% of equity per trade (default_qty_value = 10).
Works on regular candlestick charts, but mimics a Renko-style trend-following behavior.
✅ Summary
This strategy:
Enters trades on trend reversals based on short-term vs. long-term SMA crossover.
Uses trailing stops for exits.
Mimics Renko behavior without using real Renko bricks—just SMA-based smoothing.
Apex Edge – Super RSIThe Apex Edge – Super RSI is not your average RSI. This is an institutional-grade signal engine designed for serious traders who want confluence, control, and confidence — all wrapped into one visual powerhouse.
━━━━━━━━━━━━━━━━━━━━
KEY FEATURES
━━━━━━━━━━━━━━━━━━━━
✔ **RSI + Divergence Engine**
• Classic & Hidden Divergences (auto-detected)
• Labelled with shapes:
▲ Green Triangle – Buy Signal (strength-based size)
▼ Red Triangle – Sell Signal
◆ Green Diamond – Classic Bullish Divergence
◆ Red Diamond – Classic Bearish Divergence
● Green Circle – Hidden Bullish Divergence
● Red Circle – Hidden Bearish Divergence
Note - Users can edit symbol colours in settings for better clarity
✔ **Trap Detection System**
• Detects low-move, high-signal clusters (liquidity traps)
• Automatically suppresses signals for X bars after detection
• Trap zones shown with shaded background (optional)
✔ **Signal Scoring Logic**
• Each signal is scored 1–6 based on:
• RSI Threshold Break
• RSI Slope
• Divergence Detected
• Trap Avoidance
• Multi-Timeframe Confluence (optional)
• The plotted shape size reflects the strength of the entry signal
✔ **Multi-Timeframe Confluence (MTF)**
• Optional filter that uses HTF and VHTF RSI alignment
• Prevents countertrend signals
• MTF Bias shown on HUD panel
✔ **Always-On HUD Panel**
• Displays:
• Signal Type
• Signal Score
• Divergence Type
• RSI (LTF & HTF)
• Trap & Cooldown Status
• MTF Bias
• Volatility %
✔ **Alert Ready**
• Buy/Sell alerts
• Trap Detected alert
• Divergence alert with dynamic message
• Perfect for webhook integrations
━━━━━━━━━━━━━━━━━━━━
📘 HOW TO TRADE IT
━━━━━━━━━━━━━━━━━━━━
✅ **Buy Setup**
• Green triangle (▲) appears **below bar**
• RSI is oversold and rising
• HTF RSI agrees (optional)
• Signal score is 3+ for best confidence
• Avoid signals during cooldown zone
✅ **Sell Setup**
• Red triangle (▼) appears **above bar**
• RSI is overbought and falling
• HTF RSI agrees (optional)
• Signal score is 3+ for best confidence
✅ **Divergences**
• Use diamonds/circles to identify momentum shifts
• Strongest when aligned with score 4–6
❗**Trap Zones**
• When background is shaded, wait for cooldown
• Signals during traps are suppressed for safety
━━━━━━━━━━━━━━━━━━━━
📊 BEST USED WITH
━━━━━━━━━━━━━━━━━━━━
🔹 Apex Edge – Session Sweep Pro (to visualize liquidity levels)
🔹 Volume Profile or OBV (volume-based confirmation)
🔹 EMA Ribbon (for trend alignment)
🔹 Fair Value Gap indicator (smart money models)
━━━━━━━━━━━━━━━━━━━━
🧠 PRO TIPS
━━━━━━━━━━━━━━━━━━━━
• Use the HUD for decision confidence — if everything aligns, you’ve got an Apex-grade setup.
• Wait for candle close to confirm divergence-based entries.
• Score 5–6 = sniper entries. Score 1–2 = warning shots.
This indicator can be used alongside Apex Edge Session Sweep Pro for better visual clarity.
━━━━━━━━━━━━━━━━━━━━
© Apex Edge | All rights reserved.
3 days ago
Release Notes
Update - Added a toggle to show/hide HUD when using on smaller mobile devices so as not to clutter the screen.
ClarityTrend SwiftEdge# TrendSync Indicator
## Overview
The TrendSync Indicator is a powerful tool designed to help traders identify high-probability trading opportunities by combining two proven technical analysis methods: Linear Regression-based candlesticks and an ATR-based trailing stop strategy (UT Bot Alerts). This indicator enhances these components with unique features, including candlestick smoothing for improved visual clarity and signal reinforcement to reduce noise, making it ideal for trend-following and swing trading across various markets and timeframes.
## Originality and Purpose
This indicator merges the strengths of Linear Regression Candles and UT Bot Alerts to create a synergistic approach to trend detection:
- **Linear Regression Candles** use linear regression to smooth price data, producing candlesticks that highlight the underlying trend while filtering out market noise. This helps traders visualize trend direction more clearly.
- **UT Bot Alerts** employ an ATR-based trailing stop to generate dynamic buy and sell signals, adapting to market volatility and identifying key reversal points.
- **Unique Contributions**:
- **Candlestick Smoothing**: Added an optional SMA or EMA-based smoothing feature to make candlesticks visually cleaner and easier to interpret, especially in volatile markets.
- **Signal Reinforcement**: Introduces a filter that only displays buy/sell signals when both Linear Regression Candles and UT Bot Alerts confirm the same trend direction, reducing false signals and improving reliability.
The combination is purposeful: Linear Regression Candles provide a smoothed trend context, while UT Bot Alerts pinpoint precise entry and exit points. The reinforcement feature ensures that only the strongest signals are shown, enhancing decision-making for traders.
## How It Works
### Linear Regression Candles
- The indicator applies linear regression to OHLC (open, high, low, close) prices over a user-defined period (default: 11 bars) to create smoothed candlesticks.
- Bullish candlesticks (green) are plotted when the smoothed open is below the smoothed close, and bearish candlesticks (red) when the open is above the close.
- An optional smoothing layer (SMA or EMA, default length: 5 bars) can be applied to further reduce noise, making trends visually clearer.
- A signal line (SMA or EMA, default length: 11 bars) tracks the smoothed close price to highlight the overall trend direction.
### UT Bot Alerts
- Uses an ATR-based trailing stop (default ATR period: 10 bars, sensitivity: 1) to generate buy and sell signals.
- A buy signal is triggered when the price crosses above the trailing stop, and a sell signal when it crosses below, confirmed by a 1-period EMA crossover.
- Optionally, signals can be based on Heikin Ashi close prices (manually calculated) for smoother trend detection.
### Signal Reinforcement
- When enabled (default: true), buy signals are only shown if the Linear Regression Candles are bullish, and sell signals if they are bearish. This ensures alignment between the trend context and signal triggers, reducing false positives.
### Visuals
- **Candlesticks**: Semi-transparent green (bullish) and red (bearish) candlesticks for clear trend visualization.
- **Signal Line**: A white line (thicker for visibility) showing the smoothed trend.
- **Signals**: Large "BUY" (green) and "SELL" (red) labels below/above bars for easy identification.
- **Bar Coloring**: Green bars for bullish UT Bot conditions, red for bearish, enhancing trend awareness.
## How to Use
1. **Add to Chart**: Apply the TrendSync Indicator to any chart in TradingView.
2. **Configure Inputs** (accessible via the indicator’s settings):
- **LinReg Settings**:
- *Signal Smoothing (default: 11)*: Length of the signal line (SMA or EMA).
- *Use SMA for Signal Line*: Toggle between SMA (checked) or EMA (unchecked).
- *Enable Linear Regression (default: true)*: Turn on/off linear regression for candlesticks.
- *Linear Regression Length (default: 11)*: Period for linear regression calculation.
- *Smooth Candlesticks (default: false)*: Enable smoothing for cleaner candlesticks.
- *Candlestick Smoothing Length (default: 5)*: Period for SMA/EMA smoothing.
- *Smoothing Type (default: SMA)*: Choose SMA or EMA for candlestick smoothing.
- **UT Bot Settings**:
- *Key Value (Sensitivity, default: 1)*: Adjusts the ATR multiplier for the trailing stop. Higher values widen the stop, reducing signals.
- *ATR Period (default: 10)*: Period for ATR calculation.
- *Use Heikin Ashi for Signals (default: false)*: Use Heikin Ashi close prices for UT Bot signals.
- **Signal Settings**:
- *Reinforce Signals (default: true)*: Only show signals when LinReg and UT Bot agree.
3. **Interpret Signals**:
- **BUY**: A green "BUY" label below a bar indicates a potential long entry, especially strong when reinforced.
- **SELL**: A red "SELL" label above a bar indicates a potential short entry.
- Use the signal line and candlestick colors to confirm the trend context.
4. **Set Alerts**:
- Create alerts for "TrendSync Long" (buy) and "TrendSync Short" (sell) to receive notifications when reinforced signals occur.
## Best Practices
- **Timeframes**: Works on all timeframes, but 1H-4H charts are recommended for swing trading, and 5M-15M for scalping.
- **Markets**: Suitable for stocks, forex, crypto, and commodities. Test on your preferred market to optimize settings.
- **Settings Optimization**:
- Increase `Candlestick Smoothing Length` (e.g., 7-10) for volatile markets to reduce noise.
- Adjust `Key Value` (e.g., 0.5-2) to balance signal frequency and reliability.
- Disable `Reinforce Signals` for more frequent signals, but expect potential noise.
- **Confirmation**: Combine with other tools (e.g., support/resistance, volume) for better trade validation.
## Credits
- **Original Scripts**: Built upon "Humble LinReg Candles" and "UT Bot Alerts" from TradingView’s public library.
- **Enhancements by **: Developed candlestick smoothing, signal reinforcement, and custom visuals to create a unique, trader-friendly tool.
## License
MIT License: Free to use, modify, and share, provided original credits are retained.
## Disclaimer
This indicator is for educational and informational purposes only and should not be considered financial advice. Always conduct your own research and test strategies before trading.
Rabbit Moves - Buy Sell Signals [No Repaint]Buy and sell signals no repaint on the chart...reversal indicator
Linear Regression Volume | Lyro RSLinear Regression Volume | Lyro RS
⚠️Disclaimer⚠️
Always combine this indicator with other forms of analysis and risk management. Please do your own research before making any trading decisions.
The LR Volume | 𝓛𝔂𝓻𝓸 𝓡𝓢 indicator blends linear regression with volume-adjusted moving average s to dynamically outline price equilibrium and trend intensity. By integrating volume into its regression model, it highlights meaningful price movement relative to trading activity.
📌 How It Works:
Volume-Weighted Regression Baseline
Price is filtered through one of four volume-adjusted moving averages (SMA, RMA, HMA, ALMA) before being passed through a linear regression model, forming a dynamic fair value line.
Deviation Bands
The indicator plots 1x, 2x, and 3x standard deviation zones above and below the baseline, helping identify potential extremes, volatility spikes, and mean reversion areas.
Slope-Based Color Logic
The baseline and fill areas are dynamically colored:
- 🟢 Green for positive slope (uptrend)
- 🔴 Red for negative slope (downtrend)
- ⚪ Gray for neutral movement
⚙️ Inputs & Options:
Regression Length – Controls how many bars are used in the moving average and regression calculation.
Deviation Multiplier – Adjusts the width of the bands surrounding the regression baseline.
MA Type – Choose from 4 types:
SMA (Simple Moving Average)
RMA (Relative Moving Average)
HMA (Hull Moving Average)
ALMA (Arnaud Legoux Moving Average)
Band Colors – Customizable upper/lower band colors to match your visual style.
🔔 Alerts:
Long Signal – Triggers when the regression slope turns positive.
Short Signal – Triggers when the regression slope turns negative.
Order Block Matrix [Alpha Extract]The Order Block Matrix indicator identifies and visualizes key supply and demand zones on your chart, helping traders recognize potential reversal points and high-probability trading setups.
This tool helps traders:
Visualize key order blocks with volume profile histograms showing liquidity distribution.
Identify high-volume price levels where institutional activity occurs.
rank historical order blocks and analyze their strength based on volume.
Receive alerts for potential trading opportunities based on price-block interactions.
🔶 CALCULATION
The indicator processes chart data to identify and analyze order blocks:
Order Block Detection
Inputs:
Price action patterns (consolidation areas followed by breakouts).
Volume data from current and lower timeframes.
User-defined lookback periods and thresholds.
Detection Logic:
Identifies consolidation areas using a dynamic range comparison.
Confirms breakout patterns with percentage threshold validation.
Maps volume distribution across price levels within each order block.
🔶Volume Analysis
Volume Profiling:
Divides each order block into configurable grid segments.
Maps volume distribution across price segments within blocks.
Highlights zones with highest volume concentration.
Strength Assessment:
Calculates total block volume and relative strength metrics.
Compares block volume to historical averages.
Determines probability of reversal based on volume patterns.
isConsolidation(len) =>
high_range = ta.highest(high, len) - ta.lowest(high, len)
low_range = ta.highest(low, len) - ta.lowest(low, len)
avg_range = (high_range + low_range) / 2
current_range = high - low
current_range <= avg_range * (1 + obThreshold)
🔶 DETAILS
Visual Features
Volume Profile Histograms:
Color-coded bars showing volume concentration within order blocks.
Gradient coloring based on relative volume (high volume = brighter colors).
Bull blocks (green/teal) and bear blocks (red) with varying opacity.
Block Visualization:
Dynamic box sizing based on volume concentration.
Optional block borders and background fills.
Volume labels showing total block volume.
Screener Table:
Real-time analysis of order block metrics.
Shows block direction, proximity, retest count, and volume metrics.
Color-coded for quick reference.
Interpretation
High Volume Areas: Zones with institutional interest and potential reversal points.
Block Direction: Bullish blocks typically support price, bearish blocks typically resist price.
Retests: Multiple tests of an order block may strengthen or weaken its influence.
Block Age: Newer blocks often have stronger influence than older ones.
Volume Concentration: Brightest segments within blocks represent the highest volume areas.
🔶 EXAMPLES
The indicator helps identify key trading opportunities:
Bullish Order Blocks
Support Zones: Identify strong support levels where price is likely to bounce.
Breakout Confirmation: Validate breakouts with volume analysis to avoid false moves.
Retest Strategies: Enter trades when price retests a bullish order block with high volume.
Bearish Order Blocks
Resistance Zones: Identify strong resistance levels where price is likely to reverse.
Distribution Areas: Detect zones where smart money is distributing to retail.
Short Opportunities: Find optimal short entry points at high-volume bearish blocks.
Combined Strategies
Order Block Stacking: Multiple aligned blocks create stronger support/resistance zones.
Block Mitigation: When price breaks through a block, it often indicates a strong trend continuation.
Volume Profile Applications: Higher volume segments provide more precise entry and exit points.
🔶 SETTINGS
Customization Options
Order Block Detection:
Consolidation Lookback: Adjust the period for consolidation detection.
Breakout Threshold: Set minimum percentage for breakout confirmation.
Historical Lookback Limit: Control how far back to scan for historical order blocks.
Maximum Order Blocks: Limit the number of visible blocks on the chart.
Visual Style:
Grid Segments: Adjust the number of volume profile segments.
Extend Blocks to Right: Enable/disable extending blocks to current price.
Show Block Borders: Toggle border visibility.
Border Width: Adjust thickness of block borders.
Show Volume Text: Enable/disable volume labels.
Volume Text Position: Control placement of volume labels.
Color Settings:
Bullish High/Low Volume Colors: Customize appearance of bullish blocks.
Bearish High/Low Volume Colors: Customize appearance of bearish blocks.
Border Color: Set color for block outlines.
Background Fill: Adjust color and transparency of block backgrounds.
Volume Text Color: Customize label appearance.
Screener Table:
Show Screener Table: Toggle table visibility.
Table Position: Select positioning on the chart.
Table Size: Adjust display size.
The Order Block Matrix indicator provides traders with powerful insights into market structure, helping to identify key levels where smart money is active and where high-probability trading opportunities may exist.
Rocky's Dynamic DikFat Supply & Demand ZonesDynamic Supply & Demand Zones
Overview
The Dynamic Supply & Demand Zones indicator identifies key supply and demand levels on your chart by detecting pivot highs and lows. It draws customizable boxes around these zones, helping traders visualize areas where price may react. With flexible display options and dynamic box behavior, this tool is designed to assist in identifying potential support and resistance levels for various trading strategies.
Key Features
Pivot-Based Zones: Automatically detects supply (resistance) and demand (support) zones using pivot highs and lows on the chart’s timeframe.
Dynamic Box Sizing: Boxes shrink when price enters them, reflecting reduced zone strength, and stop adjusting once price fully crosses through.
Customizable Display: Choose to show current-day boxes, historical boxes, or all boxes, with an option to update past box colors dynamically.
Session-Based Extension: Boxes can extend to the current bar or stop at 4:00 PM of the creation day’s 9:30 AM–4:00 PM trading session (ideal for stock markets).
Color Coding: Borders change color based on price position:
Green for demand zones (price above the box).
Red for supply zones (price below the box).
White for neutral zones (price inside the box).
User-Friendly Inputs: Adjust pivot lookback periods, box visibility, extension behavior, and colors via intuitive input settings.
How It Works
Zone Detection: The indicator uses pivot highs and lows to define supply and demand zones, plotting boxes between these levels.
Box Behavior:
Boxes are created when pivot highs and lows are confirmed, with no overlap with the previous box.
When price enters a box, it shrinks to reflect interaction, stopping once price exits completely.
Boxes can extend to the current bar or end at 4:00 PM of the creation day (or next trading day if created after 4:00 PM or on weekends).
Display Options:
Current Only: Shows boxes created on the current day.
Historical Only: Shows boxes from previous days, with optional color updates.
All Boxes: Shows all boxes, with an option to hide historical box color updates.
Performance: Limits the number of boxes to 200 to ensure smooth performance, removing older boxes as needed.
Inputs
Pivot Look Right/Left: Set the number of bars (default: 2) to confirm pivot highs and lows.
What Boxes to Show: Select Current Only, Historical Only, or All Boxes (default: Current Only).
Boxes On/Off: Toggle box visibility (default: on).
Extend Boxes to Current Bar: Choose whether boxes extend to the current bar or stop at 4:00 PM (default: off, stops at 4:00 PM).
Update Past Box Colors: Enable/disable color updates for historical boxes (default: on).
Demand/Supply/Neutral Box Color: Customize border colors (default: green, red, white).
How to Use
Add the indicator to your chart.
Adjust inputs to match your trading style (e.g., pivot lookback, box extension, colors).
Use the boxes to identify potential support (demand) and resistance (supply) zones:
Green-bordered boxes (price above) may act as support.
Red-bordered boxes (price below) may act as resistance.
White-bordered boxes (price inside) indicate active price interaction.
Combine with other analysis tools (e.g., trendlines, indicators) to confirm trade setups.
Monitor box shrinking to gauge zone strength and watch for breakouts when price fully crosses a box.
Understanding Supply and Demand in Stock Trading
In stock trading, supply and demand are fundamental forces driving price movements. Demand refers to the willingness of buyers to purchase a stock at a given price, often creating support levels where buying interest prevents further price declines. Supply represents the willingness of sellers to offload a stock, forming resistance levels where selling pressure halts price increases. These zones are critical because they highlight areas where significant buying or selling activity has occurred, influencing future price behavior.
The importance of supply and demand lies in their ability to reveal where institutional traders, with large orders, have entered or exited the market. Demand zones, often seen at pivot lows, indicate strong buying interest and potential areas for price reversals or bounces. Supply zones, typically at pivot highs, signal heavy selling and possible reversal points for downward moves. By identifying these zones, traders can anticipate where price is likely to stall, reverse, or break out, enabling better entry and exit decisions. This indicator visualizes these zones as dynamic boxes, making it easier to spot high-probability trading opportunities while emphasizing the core market dynamics of supply and demand.
Feedback
This indicator is designed to help traders visualize supply and demand zones effectively. If you have suggestions for improvements, please share your feedback in the comments!
[blackcat] L3 Volume Sync TradeOVERVIEW
The L3 Volume Sync Trade indicator empowers traders 📈💹 with advanced tools to pinpoint precise entry and exit points leveraging intricate volume and price momentum analyses. By encapsulating sophisticated technical calculations into an intuitive visual format, this script aids in identifying high-probability trades while minimizing guesswork. Whether you're a seasoned trader looking to enhance your strategy or a newcomer seeking structured guidance, this indicator offers invaluable insights tailored to elevate your trading precision.
FEATURES
Advanced Volume Analysis 📊✨: Employs comprehensive volume dynamics to spot underlying market trends and resonance levels, allowing you to align your trades with significant movements.
Dynamic Price Momentum Metrics ⚡️: Computes both immediate and sustained price strengths, providing a holistic view of market directionality.
Customizable Indicators 🎯: Adjustable periods across multiple moving averages ensure flexibility in adapting the script to diverse trading styles and timeframes.
Intuitive Visual Representation 🖼️: Displays critical information via colorful histograms and candlestick patterns, facilitating quick comprehension even amidst fast-paced markets.
Automated Buy/Sell Labels 🔍: Clearly marks chart locations where buy/sell actions are recommended, reducing the need for constant manual monitoring.
Real-Time Alert Capabilities 🔔: Stay ahead with customizable alerts that notify you instantly whenever favorable trading conditions arise.
HOW TO USE
Initial Setup:
Begin by adding the L3 Volume Sync Trade indicator to your TradingView chart.
Familiarize yourself with the default settings provided within the script’s input parameters.
Configuring Input Parameters:
Short Period: Adjust if focusing on shorter-term fluctuations; defaults at 5 bars.
Long Period: Ideal for capturing broader trends over extended intervals; set initially at 27 bars.
EMA and SMA Periods: Tweak these for fine-tuning the sensitivity of trend-following mechanisms; default values are 3 and 3 respectively.
Long/EMA Periods: These influence smoothing effects; start with 360 and 21 respectively but experiment based on volatility.
Capital Threshold: Defines minimal risk level per trade; default set at 1 unit but can be increased/decreased based on your risk appetite.
Understanding Chart Elements:
Histograms & Candles: Blue/green histograms represent positive-negative resonances, red/green bands signify crossover events, aqua candles denote resonance points, orange highlights trade signals.
Labels: Green “BUY” tags appear above bars indicating bullish conditions; red “SELL” tags below bars suggest bearish reversals.
Activating Alarms:
Go to the alert settings in TradingView.
Enable conditional alerts for buy/sell signals ensuring timely responses without missing crucial moves.
Monitoring Performance:
Keep track of how often alerts trigger versus actual winning trades.
Periodically revisit input adjustments to optimize responsiveness under varying market phases.
ADVANCED USAGE TIPS
Backtesting Your Strategy: Before going live, apply historical data tests to gauge reliability.
Combining With Other Tools: Enhance accuracy by integrating additional indicators like RSI or MACD alongside Volume Sync.
Risk Management Integration: Use stop-loss/take-profit markers derived from script outputs to safeguard capital efficiently.
LIMITATIONS
Market Conditions Variability: Different assets or volatile environments might yield inconsistent outcomes.
Dependent On User Expertise: Best utilized by those familiar with technical analysis fundamentals.
Limited Flexibility In Real-time Adjustments: Once applied, real-time tweaking requires reloading script which might delay responses during rapid market shifts.
NOTES
Parameter Sensitivity: Minor changes can lead to drastic differences; always test modifications cautiously.
Regular Reviews: Continuously assess indicator efficacy against evolving market behaviors.
Complementary Techniques: Supplement this script with fundamental analysis or news-driven insights for well-rounded decisions.
THANKS
A heartfelt acknowledgment goes to our community of developers and enthusiasts whose feedback has been instrumental in refining this powerful indicator.
BB Vicinity Reversal SignalsThis indicator detects potential intraday reversal opportunities based on price action near the outer edges of Bollinger Bands (±2.7 std dev). Unlike traditional Bollinger Band signals that require strict band touches or crossings, this tool identifies reversals that occur in the vicinity of the outer bands, increasing signal frequency while maintaining logical precision.
✅ Key Features:
Buy Signal: Triggered when a bullish candle with a strong body forms near the lower Bollinger Band.
Sell Signal: Triggered when a bearish candle with a strong body forms near the upper Bollinger Band.
Vicinity logic: User-adjustable % range from the outer bands (default: 20%) to define how close price must be.
Body-to-candle ratio filter: Ensures that only meaningful directional candles trigger signals.
No repainting: All signals are generated in real-time based on confirmed candle closes.
Built-in alerts: Receive instant notifications for buy and sell setups.
This tool is ideal for traders looking to capture high-probability mean-reversion trades without being overly restrictive. It works well on intraday timeframes like 5m, 15m, and 1h.
Max Trend Points [BigBeluga]🔵 OVERVIEW
A clean and powerful tool for identifying major trend shifts and quantifying the strength of each move using dynamically calculated price extremes.
This indicator helps traders visualize the most significant trend changes by plotting trend direction lines and dynamically tracking the highest or lowest point within each trend leg. It’s ideal for identifying key price impulses and measuring their magnitude in real time.
🔵 CONCEPTS
Uses an adaptive trend-following logic based on volatility envelopes created from HMA of the price range (high - low).
Identifies trend direction and flips when price breaks above or below these dynamic envelopes.
Tracks swing highs and lows within the current trend leg to highlight trend extremes.
Calculates and displays the percentage gain or drop from trend start to trend peak/valley.
🔵 FEATURES
Trend Shift Detection:
Plots a colored trend line (uptrend or downtrend) that updates based on price action volatility.
Impulse Mapping:
Draws a dashed line between the point of trend change (close) and the current trend leg's extreme (highest high or lowest low).
Percentage Labeling:
Displays a floating label showing the exact percent change from the trend start to the current extreme.
Real-Time Adjustments:
As the trend progresses, the extreme point and the percent label update automatically to reflect new highs/lows.
🔵 HOW TO USE
Look for the trend color shift and circular marker to identify a new potential trend direction.
Use the dashed lines and percent label to evaluate the strength and potential maturity of each move.
Combine this tool with support/resistance levels or other indicators to identify confluence zones.
Adjust the "Factor" input to make the trend detection more or less sensitive depending on your timeframe.
🔵 CONCLUSION
Max Trend Points is an efficient visual indicator for understanding the structure and magnitude of trending moves. It provides essential feedback on how far a trend has traveled, where momentum may be peaking, and when a shift may be underway—all with real-time adaptability and clean presentation.
RSIOMA IndicatorI trust the RSIOMA by itself when I am at work, on the road, at play, and using only my cell phone.
When I find the long, high plateau or the bottom river bed, my attention perks up.
I examine the nearby timeframes to see if there are any similar patterns.
Please don't use any of the middle crosses; they don't have the power out of the gate that the flat ones do.
I wait and wait for the smaller timeframe to make its cross and add one position.
At every pullback, I start adding positions. Each of you needs to become comfortable with this indicator and start trusting it first.
I am guilty of fading this flat top or bottom, but they can go forever, it seems.
But then that 200-point bar drops, and all the pain goes away with a considerable profit.
I reset and start scanning other charts for the same.
VWAP Channel | Multi Timeframe by OsbrahVWAP Channel including:
- Daily VWAP
- Weekly VWAP
- Monthly VWAP
- Session VWAP
Customizeable.
棉花(爱老婆版本) – 云图Below is a concise English guide so you—or anyone on your team—can load, understand, and trade with the script you just updated. 云图 开源 收费的都是骗子
VWAP Double Touch Alert (Timeframe-Aware)📌 VWAP Double Touch Alert — Smart Re-entry Signal for Precision Traders
Take your VWAP trading to the next level with this intelligent indicator that filters out the noise and zeroes in on high-probability re-entry setups.
💡 How it works:
This script tracks every time price touches the VWAP line and alerts you when it happens twice within a defined window of time (adjustable per your timeframe). This is often a sign of smart money accumulation, potential reversals, or explosive breakouts.
🔍 Why Traders Love It:
✅ Filters out weak signals — only alerts on confirmed double touches
✅ Fully adjustable VWAP zone sensitivity
✅ Selectable timeframe profiles or custom window (1m, 5m, 15m, 30m, etc.)
✅ Clean visual cues with minimal chart clutter
✅ Perfect for scalping, intraday reversals, or VWAP mean-reversion strategies
⚙️ Customization:
VWAP zone width (in %)
Time window in bars or automatic based on timeframe
Custom alert messages
Alert only triggers once per double-touch event to avoid spamming
🎯 Best For:
Crypto scalpers & day traders
VWAP bounce and mean-reversion traders
Traders who want clean, conclusive entry alerts without lag
Pivot Points High Low with AlertsDefinition
The Pivot Points High Low indicator is used to determine and anticipate potential changes in market price and reversals. The Highs referred to in the title are created based on the number of bars that exhibit lower highs on either side of a Pivot Point High, whereas the Lows are created based on the number of bars that exhibit higher lows on either side of a Pivot Point Low.
Calculations
As mentioned above, Pivot Point Highs are calculated by the number of bars with lower highs on either side of a Pivot Point High calculation. Similarly, Pivot Point Lows are calculated by the number of bars with higher lows on either side of a Pivot Point Low calculation.
Takeaways and what to look for
A Pivot Point is more significant or noteworthy if the trend is extended or longer than average. This can mean if a trader selects a higher period for before and after the Pivot Point, the trend could be longer and therefore prove the Pivot Point itself more notable.
Additionally, Pivot Points can help a trader assess where would be best to draw. By analyzing price changes and reversals, a trader has more of an ability to determine and predict price patterns and general price trends.
Summary
The Pivot Points High Low indicator can predict and determine price changes and potential reversals in the market. Pivot Points can also help traders identify price patterns and trends, depending on the period and significance of the Pivot Point value.
Functionally Weighted Moving AverageOVERVIEW
An anchor-able moving average that weights historical prices with mathematical curves (shaping functions) such as Smoothstep , Ease In / Out , or even a Cubic Bézier . This level of configurability lends itself to more versatile price modeling, over conventional moving averages.
SESSION ANCHORS
Aside from VWAP, conventional moving averages do not allow you to use the first bar of each session as an anchor. This can make averages less useful near the open when price is sufficiently different from yesterdays close. For example, in this screenshot the EMA (blue) lags behind the sessionally anchored FWMA (yellow) at the open, making it slower to indicate a pivot higher.
An incrementing length is what makes a moving average anchor-able. VWAP is designed to do this, indefinitely growing until a new anchor resets the average (which is why it doesn't have a length parameter). But conventional MA's are designed to have a set length (they do not increment). Combining these features, the FWMA treats the length like a maximum rather than a set length, incrementing up to it from the anchor (when enabled).
Quick aside: If you code and want to anchor a conventional MA, the length() function in my UtilityLibrary will help you do this.
Incrementing an averages length introduces near-anchor volatility. For this reason, the FWMA also includes an option to saturate the anchor with the source , making values near the anchor more resistant to change. The following screenshot illustrates how saturation affects the average near the anchor when disabled (aqua) and enabled (fuchsia).
AVERAGING MATH
While there's nothing special about the math, it's worth documenting exactly how the average is affected by the anchor.
Average = Dot Product / Sum of Weights
Dot Product
This is the sum of element-wise multiplication between the Price and Weight arrays.
Dot Product = Price1 × Weight1 + Price2 × Weight2 + Price3 × Weight3 ...
When the Price and Weight arrays are equally sized (aka. the length is no longer incrementing from the anchor), there's a 1-1 mapping between Price and Weight indices. Anchoring, however, purges historical data from the Price array, making it temporarily smaller. When this happens, a dot product is synthesized by linearly interpolating for proportional indices (rather than a 1-1 mapping) to maintain the intended shape of weights.
Synthetic Dot Product = FirstPrice × FirstWeight + ... MidPrice × MidWeight ... + LastPrice × LastWeight
Sum of Weights
Exactly what it sounds like, the sum of weights used by the dot product operation. The sum of used weights may be less than the sum of all weights when the dot product is synthesized.
Sum of Weights = Weight1 + Weight2 + Weight3 ...
CALCULATING WEIGHTS
Shaping functions are mathematical curves used for interpolation. They are what give the Functionally Weighted Moving Average its name, and define how each historical price in the look back period is weighted.
The included shaping functions are:
Linear (conventional WMA)
Smoothstep (S curve)
Ease In Out (adjustable S curve)
Ease In (first half of Ease In Out)
Ease Out (second half of Ease In Out)
Ease Out In (eases out and then back in)
Cubic Bézier (aka. any curve you want)
In the following screenshot, the only difference between the three FWMA's is the shaping function (Ease In, Ease In Out, and Ease Out) illustrating how different curves can influence the responsiveness of an average.
And here is the same example, but with anchor saturation disabled .
ADJUSTING WEIGHTS
Each function outputs a range of values between 0 and 1. While you can't expand or shrink the range, you can nudge it higher or lower using the Scalar . For example, setting the scalar to -0.2 remaps to , and +0.2 remaps to . The following screenshot illustrates how -0.2 (lightest blue) and +0.2 (darkest blue) affect the average.
Easing functions can be further adjusted with the Degree (how much the shaping function curves). There's an interactive example of this here and the following illustrates how a degrees 0, 1, and 20 (dark orange, orange, and light orange) affect the average.
This level of configurability completely changes how a moving average models price for a given length, making the FWMA extremely versatile.
INPUTS
You can configure:
Length (how many historical bars to average)
Source (the bar value to average)
Offset (horizontal offset of the plot)
Weight (the shaping function)
Scalar (how much to adjust each weight)
Degree (how much to ease in / out)
Bézier Points (controls shape of Bézier)
Divisor & Anchor parameters
Style of the plot
BUT ... WHY?
We use moving averages to anticipate trend initialization, continuation, and termination. For a given look back period (length) we want the average to represent the data as accurately and smoothly as possible. The better it does this, the better it is at modeling price.
In this screenshot, both the FWMA (yellow) and EMA (blue) have a length of 9. They are both smooth, but one of them more accurately models price.
You wouldn't necessarily want to trade with these FWMA parameters, but knowing it does a better job of modeling price allows you to confidently expand the model to larger timeframes for bigger moves. Here, both the FWMA (yellow) and EMA (blue) have a length of 195 (aka. 50% of NYSE market hours).
INSPIRATION
I predominantly trade ETF derivatives and hold the position that markets are chaotic, not random . The salient difference being that randomness is entirely unpredictable, and chaotic systems can be modeled. The kind of analysis I value requires a very good pricing model.
The term "model" sounds more intimidating than it is. Math terms do that sometimes. It's just a mathematical estimation . That's it. For example, a regression is an "average regressing" model (aka. mean reversion ), and LOWESS (Locally Weighted Scatterplot Smoothing) is a statistically rigorous local regression .
LOWESS is excellent for modeling data. Also, it's not practical for trading. It's computationally expensive and uses data to the right of the point it's averaging, which is impossible in realtime (everything to the right is in the future). But many techniques used within LOWESS are still valuable.
My goal was to create an efficient real time emulation of LOWESS. Specifically I wanted something that was weighted non-linearly, was efficient, left-side only, and data faithful. Incorporate trading paradigms (like anchoring) and you get a Functionally Weighted Moving Average.
The formulas for determining the weights in LOWESS are typically chosen just because they seem to work well. Meaning ... they can be anything, and there's no justification other than "looks about right". So having a variety of functions (aka. kernels) for the FWMA, and being able to slide the weight range higher or lower, allows you to also make it "look about right".
William Cleveland, prominent figure in statistics known for his contributions to LOWESS, preferred using a tri-cube weighting function. Using Weight = Ease Out In with the Degrees = 3 is comparable to this. Enjoy!
Apex Edge - Session Sweep ProApex Edge Session Sweep Pro
By Apex Edge | 2025 Edition
🔍 What is it?
The Apex Session Sweep Pro is a precision trading tool designed for identifying high-probability liquidity sweep entries during key global market sessions. It combines powerful sweep detection logic with dynamic candle colouring, session visualization, TP projections, and real-time alerts — all within a clean, performance-optimized Pine Script engine.
This is not your average session box indicator. This is Apex-grade.
⚙️ How it Works
The indicator detects session liquidity sweeps by tracking price action relative to previous session highs and lows. When a session high/low is swept (i.e., price breaches it and then closes in the opposite direction), it generates a signal:
Buy Signal → Price sweeps previous low and closes back above it
Sell Signal → Price sweeps previous high and closes back below it
Each session is boxed on the chart (Tokyo, London, New York, Sydney), color-coded, and dynamically labelled.
Upon detecting a valid sweep, the script:
Plots a small entry label (toggleable)
Projects up to 5 customizable TP levels
Coloured candles for visual trade direction
Alerts for Buy or Sell sweep signals (optional)
All elements are memory-managed and customizable to suit your trading style.
🧠 Key Features
✅ Smart Sweep Detection Logic
✅ Global Market Session Boxes (Custom Times)
✅ Toggleable Entry Labels + TP Levels
✅ Candle Colouring by Signal
✅ Manual TP input + TP toggles
✅ Real-time Alerts for Apex entries
🕒 Why Are My Sessions Offset?
Your chart’s time zone may be different from UTC. This script is UTC-based by design, so if your chart is set to UTC+1, for example, the sessions will appear one hour later. Either:
Adjust your chart to UTC or or Exchange for perfect alignment,
Or tweak the session input times manually.
🧰 Who is this for?
This tool is made for:
Intraday traders looking for sweeps into liquidity
SMC (Smart Money Concept) strategists
Forex, crypto, and indices traders
Anyone who uses session-based levels to define entries
Whether you scalp London or ride NY swings, this tool frames each session cleanly — and shows you where the traps are laid.
🚨 Disclaimer
This indicator is a technical tool, not financial advice. Use proper risk management. Past performance ≠ future results.
ATR Volatilità giua64🇬🇧 FULL GUIDE – ATR Punti++++ (per la lingua italiana scorri dopo la spiegazione in inglese)
📌 What is this script?
ATR Volatilità is a visual dashboard that analyzes market volatility, using:
ATR and its moving average
ATR as % of price
Range in points (current candle & extended timeframe)
External volatility index (e.g., VIX)
Directional arrows and color-coded volatility levels (🔴🟡🔵)
Ideal for traders who want to understand volatility at a glance, across any asset.
🧭 Table – Column by Column
Column Meaning
🔼 / 🔽 / → ATR Direction: shows whether volatility is rising, falling, or stable
🔴 / 🟡 / 🔵 Volatility Level: calculated by comparing ATR with its moving average
ATR: Current ATR value based on the selected length (e.g. 14 bars)
MA: ATR Moving Average, baseline to classify volatility levels
ATR %: ATR as a percentage of current price = (ATR / price) × 100
VIX: Last daily close of external volatility index (e.g., VIX or others)
Punti Curr: Range of current candle, converted into standardized points
Punti D: Daily (or chosen TF) range, shows broader price movement
⚙️ Inputs – Explained One by One
Input Setting What It Does
ATR Length Number of periods for ATR calculation
ATR Smoothing Method: RMA, SMA, EMA, or WMA
ATR MA Length Period for the ATR moving average
Show ATR Line on Chart Enables optional ATR line plot
Asset Class Preset Auto-configures multiplier & thresholds:
Manual, Forex, Indices, Gold
Points Multiplier Converts price movement into "points" (e.g. 10 for Gold, 10000 for EUR/USD)
Volatility Thresholds Define when volatility is LOW (< MA×0.8) or HIGH (> MA×1.0)
Extended Timeframe Used for the Punti D column (D, W, 4H, etc.)
External Volatility Index (VIX) Custom symbol for fear index (e.g. “VIX”, “CBOE:VIX”, “VSTOXX”)
VIX Low / High Thresholds Color background green/red based on these thresholds
Table Position Where the table appears on the chart
🔍 How to Use in Practice
ATR rising + 🔴 + wide Punti Curr → Volatility breakout likely → Good for momentum trades
ATR falling + 🔵 + narrow Punti Curr → Calm or ranging market → Good for mean reversion
Compare Punti Curr vs Punti D:
If current range is much smaller than daily → breakout could be coming
If current range is larger than daily → volatility spike in play
Watch the VIX:
High VIX with low ATR may mean tension is rising before price reacts
🇮🇹 GUIDA COMPLETA – ATR Punti++++
📌 Cos’è questo script?
ATR Volatilità è una dashboard visiva che analizza la volatilità del mercato tramite:
ATR e media mobile
ATR in % rispetto al prezzo
Range in punti (candela attuale + timeframe esteso)
Indice esterno di volatilità (es. VIX)
Frecce direzionali e livelli colorati di volatilità (🔴🟡🔵)
Perfetto per trader che vogliono capire subito quanto è "nervoso" il mercato.
🧭 Tabella – Spiegazione Colonna per Colonna
Colonna Significato
🔼 / 🔽 / → Direzione ATR: indica se la volatilità sta salendo, scendendo o è stabile
🔴 / 🟡 / 🔵 Livello Volatilità: calcolato confrontando l’ATR con la sua media mobile
ATR: Valore attuale dell’ATR basato sulla lunghezza impostata (es. 14 barre)
MA: Media mobile dell’ATR, usata come riferimento per definire le soglie
ATR %: L’ATR in percentuale rispetto al prezzo = (ATR / prezzo) × 100
VIX: Ultima chiusura giornaliera dell’indice di volatilità esterno
Punti Curr: Range della candela attuale, convertito in punti standardizzati
Punti D: Range su timeframe esteso (es. giornaliero), utile per confronti ampi
⚙️ Impostazioni – Spiegazione Completa
Impostazione Cosa fa
Periodo ATR Numero di barre usate per calcolare l’ATR
Smoothing ATR Metodo di calcolo: RMA, SMA, EMA o WMA
Lunghezza Media ATR Periodi usati per la media dell’ATR
Mostra Linea ATR sul Grafico Attiva/disattiva la linea ATR sul grafico
Preset Classe Asset Imposta automaticamente moltiplicatore e soglie:
Manuale, Forex, Indici, Oro
Moltiplicatore Punti Converte la differenza prezzo in “punti” (es. 10 per Oro, 10000 per Forex)
Soglie Volatilità Manuali Soglie per classificare la volatilità come BASSA / MEDIA / ALTA
Timeframe Esteso Usato per il calcolo di Punti D (es. 1D, 4H, 1W...)
Simbolo Indice VIX Inserisci simbolo dell’indice (es. VIX, CBOE:VIX, VSTOXX)
Soglie VIX Colora lo sfondo VIX in rosso, verde o bianco
Posizione Tabella Dove posizionare la dashboard sul grafico
🎯 Come Usarlo nel Trading
ATR in salita + 🔴 + Punti Curr larghi → Volatilità in crescita → Buono per breakout o trend
ATR in calo + 🔵 + Punti Curr bassi → Mercato calmo → Meglio range o reversal
Confronta Punti Curr con Punti D:
Se Punti Curr ≪ Punti D → probabile esplosione di volatilità
Se Punti Curr ≫ Punti D → siamo già in fase esplosiva
Controlla il VIX:
Se il VIX è alto ma l’ATR è ancora basso → attenzione: possibile shock imminente
✅ Note Finali
Il moltiplicatore adatta il calcolo dei punti al tipo di asset (Gold = 10, EURUSD = 10000)
Il confronto tra candela attuale e range daily è visivamente immediato
Nessun segnale, nessun rumore: solo dati concreti e ben visualizzati
Rich HarvesterDynamic leverage management: supports flexible adjustment from 0.1 to 100 times to adapt to different risk preferences
Dual stop loss mechanism:
Fixed stop loss: initial protection based on ATR multiple (atr_mult)
Trailing stop loss: profit protection through slPoints and slOffset
Fund risk control: calculate the position according to the equity percentage (usr_risk), formula: risk amount = total funds × risk% × leverage
Professional signal filtering
Triple trend verification:
Fast EMA > Medium EMA > Slow SMA (bullish trend)
Fast EMA < Medium EMA < Slow SMA (bearish trend)
Pin Bar pattern enhancement:
Requires classic reversal pattern with shadows accounting for more than 66%
Filter conditions combined with trend direction
Time window control: ent_canc parameter automatically cancels expired signals