Atif's Liquidity Toolkit💎 GENERAL OVERVIEW:
Atif’s Liquidity Toolkit is a price-action-based indicator used to identify Buyside & Sellside Liquidity Levels, Liquidity Sweeps, FVG Sweeps, and Buy/Sell signals, following specific rules from Atif Hussain.
This indicator was developed by Flux Charts in collaboration with Atif Hussain.
🔹Purpose of this indicator:
The purpose of Atif’s Liquidity Toolkit is to help traders understand where liquidity is forming, when it’s being taken, and how momentum shifts immediately afterward. It automates the entire process of identifying buyside & sellside liquidity, detecting liquidity sweeps, and confirming whether displacement followed through a Fair Value Gap. The goal is to give traders a consistent, rule-based framework to interpret market structure.
🎯ATIF’S LIQUIDITY TOOLKIT FEATURES:
Atif’s Liquidity Toolkit indicator includes 6 main features:
Fair Value Gaps
Multi-Timeframe Liquidity Levels
Liquidity Sweeps
Fair Value Gap Sweeps
Buy & Sell Signals with Take-Profit & Stop-Loss Levels
Alerts
1️⃣Fair Value Gaps
🔹What is a Fair Value Gap?:
A Fair Value Gap (FVG) is an area where the market’s perception of fair value suddenly changes. On your chart, it appears as a three-candle pattern: a large candle in the middle, with smaller candles on each side that don’t fully overlap it. A bullish FVG forms when a bullish candle is between two smaller bullish/bearish candles, where the first and third candles’ wicks don’t overlap each other at all. A bearish FVG forms when a bearish candle is between two smaller bullish/bearish candles, where the first and third candles’ wicks don’t overlap each other at all.
Bullish & Bearish FVGs:
In the settings, you can toggle on/off FVGs, choose the invalidation method, adjust the sensitivity, and toggle on FVG Midline & Labels.
🔹Invalidation Method:
The Invalidation Method setting allows traders to choose how an FVG is invalidated. You can choose between Close and Wick.
Close: A candle must close below a bullish FVG or above a bearish FVG to invalidate it.
Wick: A candle’s wick must go below a bullish FVG or above a bearish FVG to invalidate it.
🔹Sensitivity:
The sensitivity setting determines the minimum gap size required for an FVG detection. A higher sensitivity will filter out smaller gaps, while a lower sensitivity will detect more frequent, smaller gaps. Setting the sensitivity to 0 will display all gaps, regardless of their size.
On the left, the sensitivity is 5. On the right, the sensitivity is 0.
🔹Midline:
When enabled, a dashed line is drawn at the center of the FVG.
🔹Labels:
When enabled, a text label will be plotted with the gap, clearly identifying the zone as a FVG.
2️⃣ Multi-Timeframe Liquidity Levels
The indicator automatically detects and plots Buyside Liquidity (BSL) & Sellside Liquidity (SSL) Levels across up to three timeframes simultaneously.
🔹What is Buyside Liquidity?
Buyside Liquidity (BSL) represents price levels where many buy stop orders are sitting, usually from traders holding short positions. When price moves into these areas, those stop-loss orders get triggered and short sellers are forced to buy back their positions. These zones often form above key highs such as the previous day, week, or month. Understanding BSL is important because when price reaches these levels, the sudden wave of buy orders can create sharp reactions or reversals as liquidity is taken from the market.
🔹What is Sellside Liquidity?
Sellside Liquidity (SSL) represents price levels where many sell stop orders are waiting, usually from traders holding long positions. When price drops into these areas, those stop-loss orders are triggered and long traders are forced to sell their positions. These zones often form below key lows such as the previous day, week, or month. Understanding SSL is important because when price reaches these levels, the surge of sell orders can cause sharp reactions or reversals as liquidity is taken from the market.
Atif’s Liquidity Toolkit indicator automatically plots Buyside & Sellside Liquidity levels using the following levels:
Previous Day High (PDH) & Previous Day Low (PDL)
Previous Week High (PWH) & Previous Week Low (PWL)
Previous Month High (PMH) & Previous Month Low (PML)
Asia Session Highs/Lows
London Session Highs/Lows
New York Session Highs/Lows
The session start and end times are not customizable. The following times in EST are used for each session:
Asia Session: 20:00-00:00
London Session: 02:00-05:00
New York Sessions:
NY AM: 09:30-11:00
NY Lunch: 12:00-13:00
NY PM: 14:00-16:00
Users can also plot swing highs/lows using a lookback period and choosing the higher timeframe. Users can choose two custom higher timeframes and also enable swing highs/lows from the current chart’s timeframe.
There are three settings to customize for the current chart’s timeframe and higher timeframes:
Current TF - when toggled on, swing highs/lows will be plotted from the chart’s timeframe using the pivot length input
HTF 1 - when toggled on, swing highs/lows will be plotted from the user-inputted timeframe using the pivot length input
HTF 2 - when toggled on, swing highs/lows will be plotted from the user-inputted timeframe using the pivot length input
The Pivot Length controls how far back the indicator checks to confirm whether a candle’s high or low is a true swing point (also called a “pivot”). When detecting a swing high, the indicator checks if that candle’s high is higher than the highs of the previous X candles and the next X candles. For a swing low, it checks if the candle’s low is lower than the lows of the previous X candles and the next X candles. The number X comes from your Pivot Length setting.
A lower Pivot Length input (for example, 3 or 4) means the indicator only looks at a few candles on each side, so it will detect more swing points, including smaller, less significant ones. A higher Pivot Length input (for example, 20 or 25) makes the indicator look at more candles on each side, so it only marks major turning points that stand out clearly on the chart.
In short:
Low Pivot Length = more frequent, smaller levels (short-term focus)
High Pivot Length = fewer, stronger levels (major swing focus)
The Pivot Length input for each setting (Current TF, HTF 1, and HTF 2) are displayed below in the red boxes:
Each liquidity level is plotted with a text label, making it easy to identify where a level came from. You can turn off the ‘Show Levels’ setting if you don’t want to see the levels on your chart.
Please note: Liquidity Levels play a key role in finding liquidity sweeps, FVG Sweeps, and Buy/Sell signals. Keeping the levels turned off will not stop the indicator from using the levels that are enabled from being used for the other features mentioned.
3️⃣Liquidity Sweeps:
The indicator automatically detects bullish and bearish liquidity sweeps using the liquidity levels you have enabled.
🔹What is a Liquidity Sweep?
A liquidity sweep is a market phenomenon where significant players, such as institutional traders, deliberately drive prices through key levels to trigger clusters of pending buy or sell orders. It’s how the market gathers the liquidity needed for larger participants to enter positions.
Traders often place stop-loss orders around obvious highs and lows, such as the previous day’s, week’s, or month’s levels. When price pushes through one of these areas, it triggers the stops placed there and generates a burst of volume. This often creates a short-term fake-out before the market reverses in the opposite direction.
By detecting these sweeps in real time, traders can identify potential reversal areas or “trap” areas where liquidity has been taken.
🔹Bullish Liquidity Sweep
These occur when price dips below a Sellside Liquidity (SSL) level, taking out the stop-loss orders placed by long traders below that low. The indicator marks a zone around the candle that swept the SSL to highlight where liquidity was removed from the market.
When this happens, it shows that the market just cleared out sell-side liquidity, meaning traders who were long had their stops hit. This is often followed by a reversal or strong reaction upward, because the market no longer has pending liquidity to fill below that level.
🔹Bearish Liquidity Sweep
These occur when price dips above a Buyside Liquidity (BSL) level, taking out the stop-loss orders placed by short seller traders above that high. The indicator marks a zone around the candle that swept the BSL to highlight where liquidity was removed from the market.
When this happens, it shows that the market just cleared out buyside liquidity, meaning short traders had their stops hit. This is often followed by a reversal or strong reaction downward, because the market no longer has pending liquidity to fill above that level.
Under the ‘Liquidity Sweeps’ section in the settings, you can toggle on/off Bullish Regular Sweeps and Bearish Regular Sweeps. You can also customize the line style and color of liquidity levels that have been swept.
🔹How to Use Liquidity Sweeps
Liquidity sweeps are not direct trade signals. They are best used as context when forming a directional bias. A sweep shows that the market has removed liquidity from one side, which can hint at where the next move may develop.
For example:
When Buyside Liquidity (BSL) is swept, it often signals that buy stops have been triggered and the market may be preparing to move lower. Traders may then begin looking for short opportunities.
When Sellside Liquidity (SSL) is swept, it often signals that sell stops have been triggered and the market may be preparing to move higher. Traders may then begin looking for long opportunities.
It’s common practice to use liquidity sweeps as the first step in building a trade idea. Many traders will wait for additional confirmation, such as a fair value gap forming after the sweep, before opening a position.
Under the ‘Liquidity Sweeps’ section in the settings, you can toggle on/off:
Bullish Regular Sweeps - when disabled, Bullish Regular Sweeps won’t appear on your chart.
Bearish Regular Sweeps - when disabled, Bearish Regular Sweeps won’t appear on your chart.
4️⃣Fair Value Gap Sweeps:
The indicator automatically detects bullish and bearish Fair Value Gap sweeps (FVG Sweep) using the liquidity levels you have enabled.
🔹What is a FVG Sweep?
A FVG Sweep is a specific type of liquidity sweep that not only clears liquidity above or below a key level, but also forms a Fair Value Gap (FVG) immediately afterward.
The liquidity sweep shows where stop orders were triggered, areas where the market aggressively took out one side’s liquidity. The formation of a Fair Value Gap right after the sweep confirms that displacement followed. This means that the sweep was not just a stop hunt, but a deliberate move backed by momentum.
In simple terms, a regular liquidity sweep only tells you that liquidity was taken. A FVG Sweep tells you that liquidity was taken and a strong directional move started immediately after, leaving an imbalance in price. That imbalance represents where aggressive buyers or sellers entered the market without enough opposite-side orders to keep price balanced. This combination adds a confirmation and intent behind regular liquidity sweeps.
🔹Bullish FVG Sweep
The indicator automatically detects bullish FVG Sweeps when price takes out a Sellside Liquidity (SSL) level and then forms a bullish FVG within the next few candles. This sequence shows that sellers were stopped out and buyers immediately entered the market with momentum.
🔹Bearish FVG Sweep
The indicator automatically detects bearish FVG Sweeps when price takes out a Buyside Liquidity (BSL) level and then forms a bearish FVG shortly after. This shows that short sellers’ stops were triggered, and new selling pressure entered the market right away.
🔹How to Use FVG Sweeps
Unlike regular liquidity sweeps, FVG Sweeps can be used as trade entries because they confirm both liquidity being cleared and immediate momentum. A regular sweep only shows that stop-losses were triggered, but an FVG Sweep proves that price not only cleared liquidity but also moved away with momentum, leaving behind an imbalance (Fair Value Gap). This shift often marks the start of a new short-term trend.
We’ll cover this in more detail in the Buy and Sell Signal section below, but in short, a bullish FVG Sweep can act as confirmation for a potential long entry after price takes out a low, while a bearish FVG Sweep can confirm a short entry after price takes out a high.
The strongest FVG Sweeps come from extremely sharp reversals. On the chart, they look like a “V” shape for bullish setups or an inverted “V” shape for bearish setups. This shape shows how quickly momentum shifted after liquidity was cleared. When price instantly reverses and leaves a Fair Value Gap behind, it’s a clear sign that buyers or sellers stepped in aggressively and absorbed all available liquidity on the opposite side.
In practice, traders often use FVG Sweeps as a trigger to align their bias. For example, after a bullish FVG Sweep, the focus shifts toward looking for long setups within the new imbalance or during a small retracement into the Fair Value Gap. After a bearish FVG Sweep, traders focus on short setups as price retraces back into the gap before continuing lower. The key takeaway is that FVG Sweeps show conviction.
Under the ‘Liquidity Sweeps’ section in the settings, you can toggle on/off:
Bullish FVG Sweeps - when disabled, Bullish FVG Sweeps won’t appear on your chart.
Bearish FVG Sweeps - when disabled, Bearish FVG Sweeps won’t appear on your chart.
Please Note: the settings you choose to use for Fair Value Gaps, under the ‘Fair Value Gaps’ section, will be used for FVG Sweeps. This is important because if you increase the sensitivity value for FVGs, not all FVG Sweeps will appear if the FVG’s size doesn’t meet the sensitivity threshold.
5️⃣Buy & Sell Signals:
This indicator also plots Buy & Sell signals. These signals follow logic based on Atif Hussain’s FVG trading model. The entry requirements for a Long & Short signal are outlined below.
🔹Buy Signal:
In order for a Buy Signal to generate, the following conditions must occur in order:
Bullish FVG Sweep
Price Retraces to the Bullish FVG
🔹Sell Signal:
In order for a Buy Signal to generate, the following conditions must occur in order:
Bearish FVG Sweep
Price Retraces to the FVG
🔹Require Retracement:
Under the ‘Signals’ section in the settings, you can toggle on/off the ‘Require Retracement’ setting. When disabled, a long/short signal will appear immediately after a Bullish or Bearish FVG Sweep, instead of waiting for price to retrace back to the gap.
Please Note: the liquidity levels you enable under the ‘Liquidity Levels’ section will be the levels used for signals. Thus, if you only have the Previous Day Highs/Lows enabled, then only those levels will be used to generate buy/sell signals. Also, long Signals will only appear if Bullish FVG Sweeps are enabled, and Short Signals will only appear if Bearish FVG Sweeps are enabled.
When a Buy Signal or Sell Signal is plotted, three suggested take-profit levels and one suggested stop-loss level are plotted. There are two different Take-Profit methods you can choose from within the indicator settings: Manual or Auto.
🔹Manual Take-Profit:
If you’re using manual take-profit levels, you can customize the Risk-to-Reward (RR) for Take-Profit 1, 2, and 3 by adjusting the “RR 1”, “RR 2”, and “RR 3” settings. Setting RR 1 to 1 means take-profit 1 is a 1:1 risk-to-reward ratio. The stop-loss will always be placed at the recent low for Buy Signals, and at the recent high for Sell Signals.
🔹Auto Take-Profit:
If you select to use Auto Take-Profit instead of Manual, then Take-Profit 1, 2, and 3 will be automatically determined based on nearby liquidity levels. The stop-loss will be placed at the recent low for Buy Signals, and at the recent high for Sell Signals. Take-Profit Levels 1, 2, and 3 will be placed at the three closest opposite liquidity levels. If the take-profit 2 and take-profit 3 levels are too far away, only one take-profit level will be displayed.
🔹Signal Settings:
Long Signals:
When enabled, long signals are shown. When disabled, long signals will not appear.
Short Signals:
When enabled, short signals are shown. When disabled, short signals will not appear.
Require Retracement:
When enabled, price must retrace to a FVG after a FVG Sweep in order for a signal to be generated.
Take-Profit Levels:
When enabled, take-profit levels (TP 1, TP 2, and TP 3) are shown with long/short signals. When disabled, take-profit levels and their price labels are not displayed.
Take-Profit Labels:
When enabled, take-profit labels are displayed when price reaches one of the three take-profit levels. When disabled, labels won’t appear when price reaches take-profit levels.
Stop-Loss Levels:
When enabled, stop-loss levels are shown for long/short signals. When disabled, the stop-loss level and its price label are not displayed.
Stop-Loss Labels:
When enabled, stop-loss levels are shown for long/short signals. When disabled, a label won’t appear when price reaches the stop-loss level.
6️⃣Alerts:
The indicator supports alerts, so you never miss a key market move. You can choose to receive alerts for each of the following conditions:
Bearish Liquidity Sweep
Bullish Liquidity Sweep
Bearish FVG Sweep
Bullish FVG Sweep
Long Signal
Short Signal
TP 1
TP 2
TP 3
Stop-Loss
‼️Important Notes:
TradingView has limitations when running features on multiple timeframes, such as the liquidity levels, which can result in the following error:
🔹Computation Error:
The computation of using MTF features are very intensive on TradingView. This can sometimes cause calculation timeouts. When this occurs, simply force the recalculation by modifying one indicator’s settings or by removing the indicator and adding it to your chart again.
🚩 UNIQUENESS:
This indicator is unique because it identifies a specific type of liquidity event referred to as FVG Sweeps, where price takes liquidity and then immediately forms a Fair Value Gap in the opposite direction. These FVG Sweeps serve as the foundation of the model, and the script uses them as the required condition for generating Buy and Sell signals. Once an FVG Sweep is confirmed, the indicator automatically produces a fully defined trade idea with a stop-loss and up to three take-profit targets, following a consistent rule-based execution approach.
Puntos pivote y niveles
Smart Liquidity 📊 # 💎 Smart Liquidity Indicator - User Guide
## 📋 Overview
**Smart Liquidity Indicator** is an advanced technical analysis tool for analyzing liquidity and volume in financial markets. It combines several powerful analytical tools to help you make informed trading decisions.
---
## 🎯 Main Components
### 1. 📊 Volume Profile
- **Function**: Displays volume distribution across different price levels
- **Benefit**: Identify strong support and resistance zones based on trading activity
- **Elements**:
- Colored boxes representing volume density at each level
- Labels showing HIGH/LOW of the price range
- PEAK FLOW line indicating the strongest volume level
### 2. 📦 Order Blocks
- **Function**: Identify bullish and bearish Order Block zones
- **Benefit**: Potential areas for price reversal or trend continuation
- **Displayed Information**:
- Delta %: Zone strength (difference between buying and selling pressure)
- Liquidity: Accumulated liquidity in the zone
- Buy/Sell ratios within the zone
### 3. 📈 SuperTrend (Market Direction)
- **Two lines for confirmation**:
- **🎯 Current SuperTrend** (Green/Red): Current timeframe direction
- **🔄 MTF SuperTrend** (Light Green/Red): Higher timeframe direction (4H default)
- **Benefit**: Trade with the overall market trend
### 4. 📊 Dashboard (Information Panel)
- Display current market status
- Trend and momentum information
- Active Order Blocks statistics
---
## 🚀 How to Use
### 1️⃣ **Reading Volume Profile**
- **Dense boxes** = High volume accumulation areas = Strong support/resistance
- **PEAK FLOW line** = Strongest price level (POC - Point of Control)
- **HIGH/LOW Labels** = Boundaries of the analyzed price range
### 2️⃣ **Analyzing Order Blocks**
- **Positive Delta (+)** = Strong buying pressure → Reliable bullish zone
- **Negative Delta (-)** = Strong selling pressure → Reliable bearish zone
- **Delta near 0** = Balance → Weak zone, avoid it
### 3️⃣ **Using SuperTrend**
- **Current TF (Green bullish / Red bearish)**: Current timeframe direction
- **MTF (Light Green bullish / Light Red bearish)**: Higher timeframe direction
- **Best Trading**: When both lines agree on the same direction
### 4️⃣ **Suggested Strategy**
```
✅ Strong Entry Signal:
1. Order Block with strong Delta (>30% or <-30%)
2. Current SuperTrend and MTF in the same direction
3. Volume Profile confirms the level (dense box or PEAK)
4. Price tests the zone for the first time
❌ Avoid Entry When:
- Weak Delta (between -10% and +10%)
- Conflict between Current and MTF SuperTrend
- Zone tested multiple times (weakened)
```
---
## 🎨 Understanding Colors
### Order Blocks
- 🟢 **Green**: Bullish Order Block
- 🔴 **Red**: Bearish Order Block
### SuperTrend
- 🟢 **Green**: Current SuperTrend bullish (same color as Order Blocks)
- 🔴 **Red**: Current SuperTrend bearish (same color as Order Blocks)
- 🟢 **Light Green**: MTF SuperTrend bullish
- 🔴 **Light Red**: MTF SuperTrend bearish
**Note**: Each SuperTrend has different transparency levels based on trend strength
### Volume Profile
- **Gradient from light to dark**: Represents volume density (darker = higher volume)
---
## ⚡ Performance Tips
### For Maximum Speed (Current Settings):
✅ **Enabled**:
- Order Blocks: 2 zones per side
- Volume Profile: 20 levels
- SuperTrends: Both active
- Strength Delta: Displayed
❌ **Disabled** (for speed):
- Gradient Fill
- Predictive Zones
- Background Fill
- MTF Calculations (in internal calculations)
### If Indicator is Slow:
1. Reduce `Profile Rows` from 20 → 15
2. Reduce `Lookback Period` from 50 → 40
3. Reduce `Max Zones` from 2 → 1
4. Turn off `Show OB Labels` if not needed
---
## 🔄 Additional Tools
### ♻️ Reset Now
- **Location**: Visual Tweaks
- **Usage**: If Volume Profile is cluttered, enable it to redraw
- **Note**: Disable after use
### 🎯 Draw Mode
- **Live**: Direct drawing on the last candle
- **Confirmed**: Draw only on closed candles (more stable)
---
## ⚠️ Disclaimer
### 🚨 Important Notice
**This indicator is a technical analysis tool only and is not considered financial advice or a trading recommendation.**
#### 📌 Please Note:
1. **Just an Analytical Tool**:
- The indicator provides technical information based on historical data
- Past results do not guarantee future results
2. **Personal Responsibility**:
- You are solely responsible for your own trading decisions
- Conduct your own research before making any investment decision
- Use appropriate risk management (Stop Loss, Position Sizing)
3. **No Guarantees**:
- There is no guarantee of profit or success in trading
- Financial markets carry high risks
- You may lose your entire invested capital
4. **Consult a Professional**:
- Consult a licensed financial advisor before making important investment decisions
- Ensure you fully understand the risks associated with trading
5. **Proper Use**:
- The indicator is designed as an assistive tool, not an automated trading system
- Preferably combine it with your own analysis and other tools
- Do not rely on a single signal alone
#### ⚖️ Acceptance:
By using this indicator, you acknowledge and agree that:
- The indicator developer is not responsible for any financial losses
- All trading decisions are your personal responsibility
- You understand the risks associated with trading in financial markets
---
## 💡 Final Advice
**"The best traders use tools wisely, not blindly"**
- Learn how the indicator works before relying on it
- Test settings on a demo account first
- Always use Stop Loss
- Don't risk more than you can afford to lose
---
## 📞 Contact and Support
**If you need any help or have any questions, feel free to contact me.**
I'm here to help you understand and use the indicator correctly! 🤝
---
**Good Luck & Trade Safe! 🚀📈**
Dynamic S/R Levels - MTF (1-Week, Strong/Spaced)dynamic support and resistance levels based on timeframe
DanteVita Broadening FormationsThis indicator marks off broadening formations. While many people think these are uncommon they are actually the core mechanic of price discovery that all trading is based on. Price discovery happens within a broadening formation until it breaks to another range, then more price discovery in the new range. These are used heavily by "The Strat" by Rob Smith. Learn it.
If it is running too slow for you, reduce number of bars or number of formations it will search for.
Pivot Points High Low Multi Time Frame + AlertsThis script is a modified version of “Pivot Points High Low Multi Time Frame” for TradingView, enhanced with price alerts when the market reaches or crosses recent pivot levels.
What it does:
Detects Pivot Highs and Pivot Lows based on your chosen timeframe and bar settings.
Draws visual lines and labels at each pivot level for clear identification.
Keeps track of the latest pivot high and low values.
Triggers an alert condition when the price crosses either of those pivots.
Alert conditions included:
🔔 Price Crossed Pivot High — notifies when the price touches or moves above the last pivot high.
🔔 Price Crossed Pivot Low — notifies when the price touches or moves below the last pivot low.
How to use:
Add the script to your chart in TradingView.
Click the Alarm (🔔) icon → choose Add Alert.
Under Condition, select this indicator and pick one of the two alert types.
Choose your preferred alert frequency (Once per bar, Every time, etc.).
Tip: You can also visually see when alerts are triggered — small green and red triangles will appear above or below the bars where the price crosses a pivot.
KSK One Signal + Full TableThis indicator helps intraday traders identify high-probability entry points by combining four powerful concepts:
VWAP (Volume-Weighted Average Price) – Institutional benchmark
EMA Crossover (9 & 21) – Short-term trend direction
RSI (14-period) – Momentum & overbought/oversold filter
MACD (10,20,9) – Momentum confirmation
✅ No signal spam – Only one BUY appears until a SELL occurs (and vice versa).
✅ Real-time data table shows all values so you understand why a signal triggered.
✅ Works best on 5-minute or 15-minute charts for stocks, futures, or forex.
📈 Signal Rules
✅ BUY Signal Appears When ALL Are True:
Price is above VWAP (bullish bias)
EMA 9 > EMA 21 and price > EMA 9 (uptrend confirmed)
RSI between 55–80 (strong but not overextended)
MACD line > Signal line (positive momentum)
📉 SELL Signal Appears When ALL Are True:
Price is below VWAP (bearish bias)
EMA 9 < EMA 21 and price < EMA 9 (downtrend confirmed)
RSI between 20–55 (weak but not oversold)
MACD line < Signal line (negative momentum)
⚠️ Important: Once a BUY appears, no new BUY will show until a SELL happens first (and vice versa). This prevents overtrading.
🖥️ On-Chart Features
Orange line: VWAP (resets daily)
Blue line: EMA 9
Red line: EMA 21
Green "BUY" label below bar → Long entry
Red "SELL" label above bar → Short entry
Live table (top-right) shows:
Current time, price, VWAP, EMAs
RSI & MACD values
Whether BUY/SELL conditions are met
Current trading state ("In Buy", "In Sell", or "Neutral")
🛠️ How to Use
Apply to a 5m or 15m chart
Wait for a green BUY or red SELL label
Enter trade at the close of that candle (non-repainting)
Use your own stop-loss & take-profit (not included)
Ignore new signals of the same type until the opposite appears
💡 Why This Works
VWAP filters out noise — only trades in the day’s dominant sentiment.
EMA 9/21 acts as a dynamic trend filter (faster than 20 EMA).
RSI zone tweaks (55–80 / 20–55) avoid chasing extremes.
MACD adds momentum confirmation.
Single-signal logic forces discipline — no FOMO entries.
📝 Note
This is a manual trading tool — not a fully automated strategy.
VWAP resets at market open — do not use on daily/weekly charts.
👨💻 Customizable Inputs
You can adjust:
RSI length (default: 14)
Short EMA (default: 9)
Long EMA (default: 21)
MACD settings (hardcoded as 10,20,9 for responsiveness)
FVG / FRACTALS HELPERTG: imjustdanya
Индикатор автоматически находит фракталы/имбалансы на выбранных таймфреймах
Можно настраивать всё,от внешнего вида, до количества отображаемых объектов
Экономит много времени,и очень эффективен при интрадей торговле в стратегии Price Action
The indicator automatically detects fractals and imbalances on selected timeframes.
You can customize everything — from appearance to the number of displayed objects.
It saves a lot of time and is highly effective for intraday trading within a Price Action strategy.
BK AK-13⚔️ BK AK-13 — The Mentor’s 13. Revealed on 11. Command the Band. Punish the Extremes. ⚔️
This is my 11th release—and that matters. 11 is a sacred number to me, so for release eleven I’m doing something I never planned to do: I’m putting my mentor’s secret 13 MA into the open.
For years, this 13-based MA framework was part of our private playbook—quietly doing work behind the scenes. Now I’m handing it to you fully armed, because I believe in karma in, karma out: I took years of wisdom from the market. I took years of wisdom from the men who taught me. This is one of the ways I give back—with structure, respect, and intent.
🎖 Full Credit — Respect the Origin
The core architecture of BK AK-13 is not mine. It stands firmly on the work of DZIV.
What comes from DZIV:
The Heikin Ashi MA engine (MA calculated on HA Open/High/Low/Close)
The multi-MA engine on the HA feed (ALMA / HMA / SMA / RMA / VWMA / WMA / ZLEMA / EMA)
The Body / Wick / Band zone classification for price
The dynamic body & wick clouds that give this structure its clean visual form
If this framework changes the way you see trend and price location, remember the name: DZIV.
On top of his backbone, I forged the BK AK-13 enhancement layer: trend-strength regimes, background modes, structured band-reversal arrows, momentum acceleration dots, extreme pivot markers, historical band-touch rails, the info panel, and a complete alert suite.
And as always, the “AK” in the name is not branding—it’s honor. It belongs to my mentor A.K. His secret 13 MA is the spine of this system, and his obsession with clarity, patience, and zero shortcuts sits behind every decision in this tool. Above that, all glory and gratitude to Gd—the real source of any wisdom, edge, or endurance we have in this game.
🧠 Why “BK AK-13”?
BK — my mark, the house I’m building.
AK — my mentor, the standard I’m still chasing.
13 — his secret moving average, the length that quietly shaped how I see trend, location, and pressure.
For years, 13 stayed off the public record—used, not discussed. Now, on indicator number 11, I’m putting that weapon in the open: 11th release. Sacred number. Secret 13 revealed, not for hype—but as karmic give-back. Karma in. Karma out.
🧱 What BK AK-13 Actually Is
BK AK-13 is a Heikin Ashi MA battle band with a brain and a conscience.
It does three big things:
Builds a smoothed HA-MA band using Heikin Ashi OHLC to create a cleaner, truer band around price.
Maps price into zones: Body, Upper Wick, Lower Wick, Above Band, Below Band—so every bar has a role.
Assigns a trend regime by computing a normalized trend-strength %, classifying the environment as Weak / Normal / Strong / Extreme.
You’re never guessing: Is this real trend or just drift? Am I in the spine, the wick, or off the rails? Is this where I press, fade, or stand down? The band, zones, and regimes answer that for you.
🎨 Visual Architecture — Band, Clouds, Regimes
Body & Wick Clouds (DZIV’s craft)
Body cloud between HA-MA Open & Close.
Wick clouds between body and HA-MA High/Low.
Color follows trend: bull, bear, or neutral.
You’re not decoding noisy candles—you’re reading the spine and skin of the move.
Background Regime Modes (BK layer)
Standard – background always on, soft trend-follow color.
Hybrid (Extreme + Breaks) – lights only on extreme trend states or reversal break events.
Hybrid (Strong/Extreme + Breaks) – shows strong & extreme regimes, darker tone on true extremes.
Breaks Only – background flashes only on reversal arrows.
When the background goes quiet, you’re in ordinary flow. When it lights up, something is strategic, not cosmetic.
🎯 Weapons Inside BK AK-13
⭐ Trend Change Stars
Stars appear when the internal band trend crosses zero: bull star when it flips negative → positive, bear star from positive → negative. They’re your pivot flags for swing shifts when aligned with your higher timeframe bias.
🔁 Band Reversal Arrows — Edge Flip Logic
Not every band tap—only structured reversals:
Reversal Down (short idea): first a break of the upper band, then later, for the first time, a break of the lower band.
Reversal Up (long idea): first a break of the lower band, then later, for the first time, a break of the upper band.
You can require a close outside the band and set a minimum break distance (% of band range) so only real punches count. These arrows mark campaign flips, not noise.
💡 Momentum Acceleration Dots
In strong trend regimes only:
Green dot = trend accelerating in its own direction (uptrend steepening, downtrend deepening).
Red dot = trend decelerating, even if direction hasn’t flipped yet.
They protect you from chasing late when the engine is dying and from staying stubborn when momentum is bleeding out.
⚠ Extreme Pivot Markers
Pivot highs/lows are found with a configurable lookback and only marked when trend strength at that pivot bar is above your threshold. You’ll see ⚠ above likely exhaustion tops in strong bulls and ⚠ below likely exhaustion lows in strong bears—perfect for final scale-outs, countertrend scouts, and knowing where campaigns commonly run out of blood.
📏 Historical Band-Touch Rails
Over your lookback window, BK AK-13 tracks the highest upper band touch and lowest lower band touch, drawing them as dashed rails. They’re dynamic SR built from real band extremes—ideal for trend targets, fade zones, and stop/scale-out context.
🧭 Info Panel — On-Chart War Room
The Info Panel compresses everything into a single strip: direction + strength codes (BULL STR, BEAR EXT, NEUT WEAK), four segments that brighten as |trend| climbs from weak → normal → strong → extreme, and a zone + deviation label (BDY/UW/LW/AB/BL × OK/AL/EX).
Hover and you get a full tactical brief: trend, momentum change, acceleration, band levels, distances to upper/lower/nearest band in ticks, outer-band streaks, strategic state, plus “Action” guidance and a “What-if” forward scenario. It doesn’t just tell you where you are—it pushes you toward a structured thought process on each bar.
🕹 How to Use BK AK-13 with Intent
1️⃣ Trend-Rider Mode
In Strong/Extreme bull with price in Body or Lower Wick: buy dips into the band (mid/lower) instead of chasing tops; target the upper band / upper rail while structure holds.
In Strong/Extreme bear with price in Body or Upper Wick: sell rallies into the band; target lower band / lower rail while acceleration stays healthy.
The band defines where you’re allowed to do business.
2️⃣ Extreme Snapback Hunter
Prime conditions: trend tagged Extreme, price pressed into the outer band in trend direction, strategic state lit + Hybrid background active. That’s where pressing fresh risk often flips from reward to punishment. Use it to stop adding, start harvesting, or launch controlled mean-reversion probes back to the midline—if your system and risk rules allow it.
3️⃣ Exhaustion & Turn Zones
Watch for confluence: red momentum dots, extreme pivot ⚠ markers, a reversal arrow, and a nearby historical rail or your own key level (Fibs, VWAP, volume structure, etc.). That’s where campaigns often end, traps are set, and new campaigns begin.
🔔 Alerts — The Chart Calls You
Included alerts: Bullish/Bearish Trend Change, Strategic Extreme at Outer Band, Reversal Up/Down, Extreme Pivot High/Low, and Body Zone Entry during Strong Trend. Use them so you respond to events, not impulses.
🔧 Tuning the Extremes — Help Me Perfect the Advanced Side
The extreme thresholds and advanced features are powerful but sensitive, and there is no single perfect universal setting. I’m still tuning them myself across instruments and timeframes: strong/extreme trend thresholds, extreme background thresholds, momentum acceleration threshold, pivot lookback + pivot trend filter, band-touch lookback, and minimum break distance for reversals.
Different markets and timeframes breathe differently.
If you find killer settings for a specific symbol + timeframe, please share:
Instrument & timeframe
Your tuned values for extremes and advanced modules
A few charts showing why they work
Experiment. Dial it in. Then share your best settings for the extremes and advanced features. Let this become a crowd-forged battle manual: I gave you the engine, you tune it to your battleground, and we all benefit from what’s discovered in live fire. Karma in. Karma out.
🤝 Pay It Forward
If BK AK-13 sharpens your read, don’t just flex screenshots—teach structure. Show newer traders body vs wick vs edge. Talk about when you didn’t take a trade because the band said “danger,” not just the wins. Share your settings, charts, and lessons—especially around the extremes and advanced modules. I’m sharing a mentor’s secret on release 11 for a reason. If it blesses you, don’t let it stop with you.
📜 King Solomon’s Lens
King Solomon said: “The prudent sees danger and hides himself, but the simple go on and suffer for it.”
BK AK-13 is built exactly around that dividing line: the simple chase candles at the outer band in extreme regimes and get punished; the prudent see danger in the structure, hide their size, hedge, or reverse with intent.
This indicator won’t make you prudent. It just removes your excuse for being simple.
⚔️ BK AK-13 — The mentor’s secret 13, revealed on 11. Let the band define the field. Let wisdom define your strike.
May Gd bless your eyes, your patience, your settings, and every decision you make at the edge. 🙏
Quantura - Trendchange ZonesIntroduction
“Quantura – Trendchange Zones” is an advanced technical indicator that identifies and visualizes potential market reversal zones using dynamic RSI-based logic. It highlights areas of overbought and oversold conditions, marking them as visual zones directly on the price chart, and generates corresponding bullish and bearish signals when the RSI exits these extremes. The tool helps traders anticipate possible trend change regions and confirm momentum shifts in a clean, intuitive way.
Originality & Value
Unlike traditional RSI indicators that only show a static oscillator, this tool transforms RSI behavior into on-chart visual zones that represent structural overbought and oversold phases. It converts RSI threshold breaches into price-based regions (boxes) and marks reversal signals at the moment of momentum change.
The indicator’s originality and usefulness come from its:
Direct visualization of RSI overbought and oversold areas as dynamic chart zones.
Automatic detection of potential reversal regions where momentum exhaustion is likely.
Integration of RSI-based signals and visual cues without requiring users to monitor the RSI window.
Adjustable sensitivity for RSI length and upper/lower levels.
Clear color-coded separation of bullish and bearish phases.
Functionality & Core Logic
The indicator continuously monitors RSI values relative to the user-defined thresholds.
When RSI moves above the upper level, an Overbought Zone is created and extends until RSI falls back below that threshold.
When RSI moves below the lower level, an Oversold Zone is generated and extends until RSI returns above that level.
When RSI exits one of these zones, a corresponding Trendchange Signal (▲ bullish or ▼ bearish) appears at the transition point.
Each zone dynamically adjusts its high and low levels during formation, representing the complete range of the exhaustion phase.
Parameters & Customization
RSI Length: Defines the sensitivity of RSI calculation. Shorter lengths make signals more responsive; longer lengths filter noise.
Upper Level / Lower Level: Set thresholds for overbought and oversold conditions (default 70 / 30).
Signals: Toggle on/off for displaying bullish (▲) and bearish (▼) reversal signals.
Zones: Toggle the visualization of shaded RSI-based zones.
Colors: Fully customizable bullish and bearish colors for both signals and zones.
Visualization & Display
Bullish reversal zones (oversold exits) are shaded using the chosen bullish color (default: blue).
Bearish reversal zones (overbought exits) are shaded using the chosen bearish color (default: red).
Each completed zone is outlined and filled with transparent shading for better clarity.
Reversal arrows (▲ for bullish, ▼ for bearish) are displayed at the bar where RSI exits the extreme level.
Clean overlay design ensures compatibility with any chart style or color scheme.
Use Cases
Identify overbought and oversold periods directly on the price chart without switching to the RSI window.
Anticipate potential market reversals or exhaustion points based on RSI momentum shifts.
Combine with trend indicators, moving averages, or volume tools for confirmation.
Apply across multiple timeframes to align short-term reversal signals with higher timeframe momentum.
Use zone width and duration to assess the strength and persistence of overbought/oversold conditions.
Limitations & Recommendations
The indicator is not a standalone trading system but a visual confirmation tool.
False signals may occur in strongly trending markets where RSI remains overextended.
Optimal RSI settings may differ between assets (e.g., crypto vs. equities).
Combining this indicator with additional trend or structure filters can enhance accuracy.
Markets & Timeframes
The “Quantura – Trendchange Zones” indicator works across all markets and timeframes, including cryptocurrencies, Forex, stocks, and commodities. It is suitable for both short-term scalping and long-term swing analysis.
Author & Access
Developed 100% by Quantura. Published as a Open-source script indicator. Access is free.
Important
This description complies with TradingView’s Script Publishing and House Rules. It provides a clear explanation of the indicator’s originality, logic, and function while avoiding unrealistic performance or predictive claims.
Quantura - Liquidity Sweep & Run LevelsIntroduction
“Quantura – Liquidity Sweep & Run Levels” is a structural price-action indicator designed to automatically detect swing-based liquidity zones and visualize potential sweep and run events. It helps traders identify areas where liquidity has likely been taken (sweep) or released (run), improving precision in market structure analysis and timing of entries or exits.
Originality & Value
This tool translates institutional liquidity concepts into an automated visual framework. Instead of simply marking highs and lows, it dynamically monitors swing points, tracks their breaches, and identifies subsequent reactions. The indicator is built to highlight the liquidity dynamics that often precede reversals or continuations.
Its originality lies in:
Automatic identification and tracking of swing highs and lows.
Real-time detection of broken levels and liquidity sweeps.
Distinction between “Run” and “Sweep” modes for different market behaviors.
Persistent historical visualization of liquidity levels using clean line structures.
Configurable signal markers for bullish and bearish sweep confirmations.
Functionality & Core Logic
Detects swing highs and lows using a user-defined Swing Length parameter.
Stores and updates all swing levels dynamically with arrays for efficient memory handling.
Draws horizontal lines from each detected swing point to visualize potential liquidity zones.
Monitors when price breaks a swing level and marks that event as “broken.”
Generates signals when the market either sweeps above/below or runs away from those levels, depending on the chosen mode.
Provides optional visual signal markers (“▲” for bullish sweeps, “▼” for bearish sweeps).
Parameters & Customization
Mode: Choose between “Sweep” (detects liquidity grabs) or “Run” (detects breakout continuations).
Swing Length: Sets the sensitivity for detecting swing highs/lows. A higher value focuses on larger structures, while smaller values detect micro liquidity points.
Bullish Color / Bearish Color: Customize color themes for sweep/run lines and signal markers.
Signals: Enables or disables visual up/down markers for confirmed events.
Visualization & Display
Horizontal lines represent potential liquidity levels (unbroken swing highs/lows).
Once broken, lines automatically stop extending, marking the moment liquidity is taken.
Depending on the selected mode:
“Sweep” mode identifies false breaks or stop-hunt behavior.
“Run” mode highlights breakouts that continue the trend.
Colored arrows indicate the direction and type of liquidity reaction.
Clean, non-intrusive visualization suitable for overlaying on price charts.
Use Cases
Detect liquidity sweeps before major reversals.
Identify breakout continuations after liquidity runs.
Combine with Supply/Demand or FVG indicators for multi-layered confirmation.
Validate liquidity bias in algorithmic or discretionary strategies.
Analyze market manipulation patterns and institutional stop-hunting behavior.
Limitations & Recommendations
This indicator identifies structural behavior but does not guarantee trade direction or profitability.
Works best on liquid markets with clear swing structures (e.g., crypto, forex, indices).
Signal interpretation should be combined with confluence tools such as volume, order flow, or structure-based filters.
Excessively small swing settings may cause over-signaling in volatile markets.
Markets & Timeframes
Optimized for all major asset classes — including crypto, Forex, indices, and equities — and for intraday to higher-timeframe structural analysis (5-minute up to daily charts).
Author & Access
Developed 100% by Quantura. Published as a Open-source script indicator. Access is free.
Compliance Note
This description fully complies with TradingView’s Script Publishing Rules and House Rules . It avoids performance claims, provides transparency on methodology, and clearly describes indicator behavior and limitations.
ATHENS GOLD MASTER v1.1e — by ATHENSATHENS GOLD MASTER v1.1e — by ATHENS
Professional Smart-Money-Based Gold Trading System
Built with institutional precision and ICT logic for XAUUSD traders.
⚙️ Core Strategy Components
✅ ICT Premium/Discount Model
✅ Daily Pivot Points & Price Bias
✅ Order Block & Break of Structure Detection
✅ Fair Value Gap (FVG) Mitigation Logic
✅ Dynamic Support & Resistance Recognition
✅ Candlestick + Chart Pattern Confirmation
✅ Multi-Timeframe Structure Alignment
💡 How It Works
The indicator scans real-time GOLD price action and generates Buy / Sell signals only when 3 or more confirmations align across smart money and technical confluence.
Each signal is visually marked on the chart with labels showing:
Confirmation count (1–5)
Key structure notes (Pivot, OB, FVG, etc.)
Support/Resistance zone tags
🧠 Optional Filters for Accuracy (90%+)
EMA-200 Trend Filter
ATR Volatility Filter
Volume Strength Filter
Session-Time Restriction (London–New York Overlap)
🟩 Buy Signal Example
Price above Pivot & in Discount Zone
Bullish Order Block Retest
FVG Mitigation Confirmed
Bullish Engulfing / Pin-Bar Confirmation
🟥 Sell Signal Example
Price below Pivot & in Premium Zone
Bearish Order Block Retest
FVG Mitigation Confirmed
Bearish Engulfing / Pin-Bar Confirmation
📊 Extra Features
Live Bias Table (Panel)
Selective Smart S/R Zones
Auto Session Filter
Alerts for Buy, Sell, and Strong Confluences
Best for: Gold Traders, ICT Students, Smart-Money Concepts Enthusiasts, and Professional Price-Action Analysts.
⚜️ Developed by ATHENS | Sahan Akalanka
📈 “Trade Smart. Think Institutional.”
Deyler IndicatorMerge indicators:
Nwog
ICT Killzones and Pivots
BTC Keylevels
9h30 First FVG
Round Number
Enhanced 50% Level TrackerEnhanced 50% Level Support/Resistance Indicator
This Pine Script indicator automatically draws horizontal lines at the 50% level (midpoint) of each candlestick and tracks when price revisits these levels, providing comprehensive statistics on support and resistance effectiveness.
Key Features:
📊 Core Functionality:
Draws lines at the 50% level of bull/bear candles
Tracks when price touches these levels again
Real-time statistics on revisit rates and timing
🎨 Visual Customization:
Customizable line colors, styles, and widths
Smart labels showing creation date, price, and revisit count
Line strength coloring based on age and revisit frequency
Fade-over-time option for older lines
📈 Advanced Analytics:
97%+ revisit rate - shows how effective 50% levels are as S/R
Bull vs Bear performance - compares bullish vs bearish candle effectiveness
Timing analysis - tracks fastest/slowest revisit times
Multi-revisit tracking - identifies the strongest levels
⚙️ Smart Features:
Auto-deletion after X revisits to keep chart clean
Memory management for optimal performance
Separate label positioning for bull vs bear candles
Toggle between bars/hours/days time format
Practical Use:
Ideal for traders looking to identify high-probability support and resistance levels based on historical 50% retracement zones. The 97%+ revisit rate demonstrates that these midpoint levels are statistically significant areas where price tends to react.
Best for: Swing trading, support/resistance identification, and understanding market structure patterns.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Bostonshamrock
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by
Bifurcation Point Adaptive (Auto Oscillator ML)Bifurcation Point Adaptive - Auto Oscillator ML
Overview
Bifurcation Point Adaptive (🧬 BPA-ML) represents a paradigm shift in divergence-based trading systems. Rather than relying on static oscillator settings that quickly become obsolete as market dynamics shift, BPA-ML employs multi-armed bandit machine learning algorithms to continuously discover and adapt to the optimal oscillator configuration for your specific instrument and timeframe. This self-learning core is enhanced by a Cognitive Analytical Engine (CAE) that provides market-state intelligence, filtering out low-probability setups before they reach your chart.
The result is a system that doesn't just detect divergences - it understands context, learns from outcomes, and evolves with the market.
What Sets This Apart: Technical Comparison
The TradingView community has many excellent divergence indicators and several claiming "machine learning" capabilities. However, a detailed technical analysis reveals that BPA-ML operates at a fundamentally different level of sophistication.
Machine Learning: Real vs Marketing
Most indicators labeled "ML" or "AI" on TradingView use one of three approaches:
K-Nearest Neighbors (KNN): These indicators find similar historical patterns and assume current price will behave similarly. This is pattern matching, not learning. The system doesn't improve over time or adapt based on outcomes - it simply searches historical data for matches.
Clustering (K-Means): These indicators group volatility or market states into categories (high/medium/low). This is statistical classification, not machine learning. The clusters are recalculated but don't learn which classifications produce better results.
Gaussian Process Regression (GPR): These indicators use kernel weighting to create responsive moving averages. This is advanced curve fitting, not learning. The system doesn't evaluate outcomes or adjust strategy.
BPA-ML's Approach: True Reinforcement Learning
BPA-ML implements multi-armed bandit algorithms - a proven reinforcement learning technique used in clinical trials, A/B testing, and recommendation systems. This is fundamentally different:
Exploration vs Exploitation: The system actively balances trying new configurations (exploration) against using proven winners (exploitation). KNN and clustering don't do this - they simply process current data against historical patterns.
Reward-Based Learning: Every configuration is scored based on actual forward returns, normalized by volatility and clipped to prevent outlier dominance. The system receives a bonus when signals prove profitable. This creates a feedback loop where the indicator literally learns what works for your specific instrument and timeframe.
Four Proven Algorithms: UCB1 (Upper Confidence Bound), Thompson Sampling (Bayesian), Epsilon-Greedy, and Gradient-based learning. Each has different exploration characteristics backed by peer-reviewed research. You're not getting marketing buzzwords - you're getting battle-tested algorithms from academic computer science.
Continuous Adaptation: The learning never stops. As market microstructure evolves, the bandit discovers new optimal configurations. Other "adaptive" indicators recalculate but don't improve - they use the same logic on new data. BPA-ML fundamentally changes which logic it uses based on what's working.
The Configuration Grid: 40 Arms vs Fixed Settings
Traditional divergence indicators use a single oscillator with fixed parameters - typically RSI with length 14. More advanced systems might let you choose between RSI, Stochastic, or CCI, but you're still picking one manually.
BPA-ML maintains a grid of 40 candidate configurations:
- 5 oscillator families (RSI, Stochastic, CCI, MFI, Williams %R)
- 4 length parameters (short, medium, medium-long, long)
- 2 smoothing settings (fast, slow)
The bandit evaluates all 40 continuously and automatically selects the optimal one. When market microstructure changes - say, from trending crypto to ranging forex - the system discovers this and switches configurations without your intervention.
Why This Matters: Markets exhibit different characteristics. Bitcoin on 5-minute charts might favor fast Stochastic (high sensitivity to quick moves), while EUR/USD on 4-hour charts might favor smoothed RSI (filtering noise in steady trends). Manual optimization is guesswork. The bandit discovers these nuances mathematically.
Cognitive Analytical Engine: Beyond Simple Filters
Many divergence indicators include basic filters - perhaps checking if RSI is overbought/oversold or if volume increased. These are single-metric gates that treat all market states the same.
BPA-ML's CAE synthesizes five intelligence layers into a comprehensive market-state assessment:
Trend Conviction Score (TCS): Combines ADX normalization, multi-timeframe EMA alignment, and structural persistence. This isn't just "is ADX above 25?" - it's a weighted composite that captures trending vs ranging regimes with nuance. The threshold itself is adaptive via mini-bandit if enabled.
Directional Momentum Alignment (DMA): ATR-normalized EMA spread creates a regime-aware momentum indicator. The same price move reads differently in high vs low volatility environments. Most indicators ignore this context.
Exhaustion Modeling: Aggregates volume spikes, pin bar formations, extended runs without pullback, and extreme oscillator readings into a unified probability of climax. This multi-factor approach catches exhaustion signals that single metrics miss. High exhaustion can override trend filters - allowing reversal trades at genuine turning points that basic filters would block.
Adversarial Validation: Before approving a bullish signal, the engine quantifies both the bull case AND the bear case. If the opposing case dominates by a threshold, the signal is blocked. This is game-theory applied to trading - most indicators don't check if you're fighting obvious strength in the opposite direction.
Confidence Scoring: Every signal receives a 0-1 quality score blending all CAE components plus divergence strength. You can size positions by confidence - a concept absent in most divergence indicators that treat all signals identically.
Adaptive Parameters: Mini-Bandits
Even the filtering thresholds themselves learn. Most indicators have you set pivot lookback periods, minimum divergence strength, and trend filter strictness manually. These are instrument-specific - what works for one asset fails on another.
BPA-ML's mini-bandits optimize:
- Pivot lookback strictness (balance between catching small structures vs requiring major swings)
- Minimum slope change threshold (filter weak divergences vs allow early entries)
- TCS threshold for trend filtering (how strict counter-trend blocking should be)
These learn the same way the oscillator bandit does - via reward scoring and outcome evaluation. The entire system personalizes to your trading context.
Visual Intelligence: Five Presentation Modes
Most indicators offer basic customization - perhaps choosing colors or line thickness. BPA-ML includes five distinct visual modes, each designed for specific use cases:
Quantum Mode: Renders signals as probability clouds where opacity encodes confidence. High-confidence signals are bold and opaque; low-confidence signals are faint and translucent. This visually guides position sizing in a way that static markers cannot. No other divergence indicator I've found uses confidence-based visual encoding.
Holographic Mode: Multi-layer gradient bands create depth perception showing signal quality zones. Excellent for teaching and presentations.
Cyberpunk Mode: Neon centerlines with particle glow trails. High-contrast for immersive dark-theme trading.
Standard Mode: Professional dashed lines and zones. Clean, presentation-ready.
Minimal Mode: Maximum performance for backtesting and low-powered devices.
The visual system isn't cosmetic - it's part of the decision support infrastructure.
Dashboard: Real-Time Intelligence
Many indicators include dashboards showing current indicator values or basic statistics. BPA-ML's dashboard is a comprehensive control center:
Oscillator Section: Shows which configuration is currently selected, why it's selected (pull statistics, reward scores), and learning progression (warmup, learning, active).
CAE Section: Real-time TCS, DMA, Exhaustion, Adversarial cases, and Confidence scores with visual indicators (emoji-coded states, bar graphs, trend arrows).
Bandit Performance: Algorithm selection, mode (Switch vs Blend), arm distribution, differentiation metrics, learning diagnostics.
State Metrics Grid (Large mode): Normalized readings for trend alignment, momentum, volatility, volume flow, Bollinger position, ROC, directional movement, oscillator bias - all synthesized into a composite market state.
This level of transparency is rare. Most "black box" indicators hide their decision logic. BPA-ML shows you exactly why it's making decisions in real-time, enabling informed discretionary overrides.
Repainting: Complete Transparency
Many divergence indicators don't clearly disclose repainting behavior. BPA-ML offers three explicit timing modes:
Realtime: Shows developing signals on current bar. Repaints by design - this is a preview mode for learning, not for trading.
Confirmed: Signals lock at bar close. Zero repainting. Recommended for live trading.
Pivot Validated: Waits for full pivot confirmation (5+ bar delay). Highest purity, zero repainting, ideal for backtesting divergence quality.
You choose the mode based on your priority - speed vs certainty. The transparency empowers rather than obscures.
Educational Value: Learning Platform
Most indicators are tools - you use them, but you don't learn from them. BPA-ML is designed as a learning platform:
Advisory Mode: Signals always appear, but blocked signals receive warning annotations explaining why CAE would have filtered them. You see the decision logic in action without missing learning opportunities.
Dashboard Transparency: Real-time display of all metrics shows exactly how market state influences decisions.
Comprehensive Documentation: In-indicator tooltips, extensive publishing statement, and user guides explain not just what to click, but why the algorithms work and how to apply them strategically.
Algorithm Comparisons: By trying different bandit algorithms (UCB1 vs Thompson vs Epsilon vs Gradient), you learn the differences between exploration strategies - knowledge applicable beyond trading.
This isn't just a signal generator - it's an educational tool that teaches machine learning concepts, market intelligence interpretation, and systematic decision-making.
What This System Is NOT
To be completely transparent about positioning:
Not a Prediction System: BPA-ML doesn't predict future prices. It identifies structural divergences, assesses current market state, and learns which oscillator configurations historically correlated with better forward returns. The learning is retrospective optimization, not fortune telling.
Not Fully Automated: This is a decision support tool, not a push-button profit machine. You still need to execute trades, manage risk, and apply discretionary judgment. The confidence scores guide position sizing, but you determine final risk allocation.
Not Beginner-Friendly: The sophistication comes with complexity. This system requires understanding of divergence trading, basic machine learning concepts, and market state interpretation. It's designed for intermediate to advanced traders willing to invest time in learning the system.
Not Magic: Even with optimal configurations and intelligent filtering, markets are probabilistic. Losing trades are inevitable. The system improves your probability distribution - it doesn't eliminate risk or guarantee profits.
The Fundamental Difference
Here's the core distinction:
Traditional Divergence Indicators: Detect patterns and hope they work.
"ML" Indicators (KNN/Clustering): Detect patterns and compare to historical similarities.
BPA-ML: Detects patterns, evaluates outcomes, learns which detection methods work best for this specific context, understands market state before suggesting trades, and continuously improves without manual intervention.
The difference isn't incremental - it's architectural. This is trading system infrastructure with embedded intelligence, not just a pattern detector with filters.
Who This Is For
BPA-ML is ideal for traders who:
- Value systematic approaches over discretionary guessing
- Appreciate transparency in decision logic
- Are willing to let systems learn over 200+ bars before judging performance
- Trade liquid instruments on 5-minute to daily timeframes
- Want to learn machine learning concepts through practical application
- Seek professional-grade tools without institutional price tags
It's not ideal for:
- Absolute beginners needing simple plug-and-play systems
- 1-minute scalpers (noise dominates at very low timeframes)
- Traders of illiquid instruments (insufficient data for learning)
- Those seeking magic solutions without understanding methodology
- Impatient optimizers wanting instant perfection
What Makes This Original
The innovation in BPA-ML lies in three interconnected breakthroughs that work synergistically:
1. Multi-Armed Bandit Oscillator Selection
Traditional divergence indicators require manual optimization - you choose RSI with a length of 14, or Stochastic with specific settings, and hope they work. BPA-ML eliminates this guesswork through machine learning. The system maintains a grid of 40 candidate oscillator configurations spanning five oscillator families (RSI, Stochastic, CCI, MFI, Williams %R), four length parameters, and two smoothing settings. Using proven bandit algorithms (UCB1, Thompson Sampling, Epsilon-Greedy, or Gradient-based learning), the system continuously evaluates which configuration produces the best forward returns and automatically switches to the winning arm. This isn't random testing - it's intelligent exploration with exploitation, balancing the discovery of new opportunities against leveraging proven configurations.
2. Cognitive Analytical Engine (CAE)
Divergences occur constantly, but most fail. The CAE solves this by computing a comprehensive market intelligence layer:
Trend Conviction Score (TCS): Synthesizes ADX normalization, multi-timeframe EMA alignment, and structural persistence into a single 0-1 metric that quantifies how strongly the market is trending. When TCS exceeds your threshold, the system knows to avoid counter-trend trades unless other factors override.
Directional Momentum Alignment (DMA): Measures the spread between fast and slow EMAs, normalized by ATR. This creates a regime-aware momentum indicator that adjusts its interpretation based on current volatility.
Exhaustion Modeling: Aggregates volume spikes, pin bar formations, extended runs above/below EMAs, and extreme RSI readings into a probability that the current move is reaching climax. High exhaustion can override trend filters, allowing reversal trades at genuine turning points.
Adversarial Validation: Before approving a bullish signal, the engine quantifies both the bull case (proximity to support EMAs, oversold conditions, volume confirmation) and the bear case (distance to resistance, overbought conditions). If the opposing case dominates by your threshold, the signal is blocked or flagged with a warning.
Confidence Scoring: Every signal receives a 0-1 confidence score blending TCS, momentum magnitude, pullback quality, market state metrics, divergence strength, and adversarial advantage. You can gate signals on minimum confidence, ensuring only high-probability setups reach your attention.
3. Adaptive Parameter Mini-Bandits
Beyond the oscillator itself, BPA-ML uses additional bandit systems to optimize:
- Pivot lookback strictness
- Minimum slope change threshold
- TCS threshold for trend filtering
These parameters are often instrument-specific. The adaptive bandits learn these nuances automatically.
Why These Components Work Together
Each layer serves a specific purpose in the signal generation hierarchy:
Layer 1 - Oscillator Selection: The bandit ensures you're always using the oscillator configuration best suited to current market microstructure.
Layer 2 - Divergence Detection: With the optimal oscillator selected, the engine scans for structural divergences using confirmed pivots.
Layer 3 - CAE Filtering: Raw divergences are validated against market intelligence.
Layer 4 - Spacing & Timing: Quality signals need proper spacing to avoid over-trading.
This isn't a random collection of indicators. It's a decision pipeline where each stage refines signal quality, and the machine learning ensures the entire system stays calibrated to your specific trading context.
Core Components - Deep Dive
Divergence Engine
The foundation is a dual-mode divergence detector:
Regular Divergence: Price makes a higher high while oscillator makes a lower high (bearish), or price makes a lower low while oscillator makes a higher low (bullish). These signal potential reversals.
Hidden Divergence: Price makes a lower high while oscillator makes a higher high (bullish continuation), or price makes a higher low while oscillator makes a lower low (bearish continuation). These signal trend strength.
Pivots are confirmed using symmetric lookback periods. Divergence strength is quantified via slope separation between price and oscillator.
Signal Timing Modes
Realtime (live preview): Shows potential signals on current bar. Repaints by design. Use for learning only.
Confirmed (1-bar delay): Signals lock at bar close. No repainting. Recommended for live trading.
Pivot Validated: Waits for full pivot confirmation (5+ bar delay). Highest purity, best for backtesting.
Multi-Armed Bandit Algorithms
UCB1: Optimism under uncertainty. Excellent balance for most use cases.
Thompson Sampling: Bayesian approach with smooth exploration. Great for long-term adaptation.
Epsilon-Greedy: Simple exploitation with random exploration. Easy to understand.
Gradient-based: Lightweight weight adjustment based on rewards. Fast and efficient.
Bandit Operating Modes
Switch Mode: Uses top-ranked arm directly. Maximum amplitude, crisp signals.
Blend Mode: Softmax mixture with dominant-arm preservation. Ensemble stability while maintaining amplitude for overbought/oversold crossings.
How to Use This Indicator
Initial Setup
1. Apply BPA-ML to your chart
2. Select visual mode (Minimal/Standard/Holographic/Cyberpunk/Quantum)
3. Choose signal timing - "Confirmed (1-bar delay)" for live trading
4. Set Oscillator Type to "Auto (ML)" and enable it
5. Select bandit algorithm - UCB1 recommended
6. Choose Blend mode with temperature 0.4-0.5
CAE Configuration
Start with "Advisory" mode to learn the system. Signals appear with warnings if CAE would have blocked them.
Switch to "Filtering" mode when comfortable - CAE actively blocks low-quality signals.
Enable the three primary filters:
- Strong Trend Filter
- Adversarial Validation
- Confidence Gating
Parameter Guidance by Trading Style
Scalping (1-5 minute charts):
- Algorithm: Thompson or UCB1
- Mode: Blend (temp 0.3-0.4)
- Horizon: 8-12 bars
- Min Confidence: 0.30-0.40
- TCS Threshold: 0.70-0.80
- Spacing: 8-12 any, 16-24 same-side
Day Trading (15min-1H charts):
- Algorithm: UCB1
- Mode: Blend (temp 0.4-0.6)
- Horizon: 12-24 bars
- Min Confidence: 0.35-0.45
- TCS Threshold: 0.80-0.85
- Spacing: 12-20 any, 20-30 same-side
Swing Trading (4H-Daily charts):
- Algorithm: UCB1 or Thompson
- Mode: Blend (temp 0.6-1.0) or Switch
- Horizon: 20-40 bars
- Min Confidence: 0.40-0.55
- TCS Threshold: 0.85-0.95
- Spacing: 20-40 any, 30-60 same-side
Signal Interpretation
Bullish Signals: Green markers below price. Enter long when detected.
Bearish Signals: Red markers above price. Enter short when detected.
Blocked Signals: Orange X markers show filtered signals (Advisory mode).
Confidence Rings: Single ring at 50%+ confidence, double at 70%+. Use for position sizing.
Dashboard Metrics
Oscillator Section: Shows active type, value, state, and parameters.
Cognitive Engine:
- TCS: 0.80+ indicates strong trend
- DMA: Momentum direction and strength
- Exhaustion: 0.75+ warns of reversal
- Bull/Bear Case: Adversarial scoring
- Differential: Net directional advantage
Bandit Performance: Shows algorithm, mode, selected configuration, and learning diagnostics.
Visual Zones
- Bullish Zone: Blue/cyan tint - favorable for longs
- Bearish Zone: Red/magenta tint - favorable for shorts
- Exhaustion Zone: Yellow warning - reduce sizing
Visual Mode Selection
Minimal: Clean triangles, maximum performance
Standard: Dashed lines with zones, professional presentation
Holographic: Gradient bands, excellent for teaching
Cyberpunk: Neon glow trails, high contrast
Quantum: Probability cloud with confidence-based opacity
Calculation Methodology
Oscillator Computation
For each bandit arm: calculate base oscillator, apply smoothing, normalize to 0-100.
Switch mode: use top arm directly.
Blend mode: softmax mixture blended with dominant arm (70/30) to preserve amplitude.
Divergence Detection
1. Identify price and oscillator pivots using symmetric periods
2. Store recent pivots with bar indices
3. Scan for slope disagreements within lookback range
4. Require minimum slope separation
5. Classify as regular or hidden divergence
6. Compute strength score
CAE Metrics
TCS: 0.35×ADX + 0.35×structural + 0.30×alignment
DMA: (EMA21 - EMA55) / ATR14
Exhaustion: Aggregates volume, divergence, RSI extremes, pins, extended runs
Confidence: 0.30×TCS + 0.25×|DMA| + 0.20×pullback + 0.15×state + 0.10×divergence + adversarial
Bandit Rewards
Every horizon period: compute log return normalized by ATR, clip to ±0.5, bonus if signal was positive. Update arm statistics per algorithm.
Ideal Market Conditions
Best Performance:
- Liquid instruments with clear structure
- Trending markets with consolidations
- 5-minute to daily timeframes
- Consistent volume and participation
Learning Requirements:
- Minimum 200 bars for warmup
- Ideally 500-1000 bars for full confidence
- Performance improves as bandit accumulates data
Challenging Conditions:
- Extremely low liquidity
- Very low timeframes (1-minute or below)
- Extended sideways consolidation
- Fundamentally-driven gap markets
Dashboard Interpretation Guide
TCS:
- 0.00-0.50: Weak trend, reversals viable
- 0.50-0.75: Moderate trend, mixed approach
- 0.75-0.85: Strong trend, favor continuation
- 0.85-1.00: Very strong trend, counter-trend high risk
DMA:
- -2.0 to -1.0: Strong bearish
- -0.5 to 0.5: Neutral
- 1.0 to 2.0: Strong bullish
Exhaustion:
- 0.00-0.50: Fresh move
- 0.50-0.75: Mature, watch for reversals
- 0.75-0.85: High exhaustion
- 0.85-1.00: Critical, reversal imminent
Confidence:
- 0.00-0.30: Low quality
- 0.30-0.50: Moderate quality
- 0.50-0.70: High quality
- 0.70-1.00: Premium quality
Common Questions
Why no signals?
- Blend mode: lower temperature to 0.3-0.5
- Loosen OB/OS to 65/35
- Lower min confidence to 0.35
- Reduce spacing requirements
- Use Confirmed instead of Pivot Validated
Why frequent oscillator switching?
- Normal during warmup (first 200+ bars)
- After warmup: may indicate regime shifting market
- Lower temperature in Blend mode
- Reduce learning rate or epsilon
Blend vs Switch?
Use Switch for backtesting and maximum exploitation.
Use Blend for live trading with temperature 0.3-0.5 for stability.
Recalibration frequency?
Never needed. System continuously adapts via bandit learning and weight decay.
Risk Management Integration
Position Sizing:
- 0.30-0.50 confidence: 0.5-1.0% risk
- 0.50-0.70 confidence: 1.0-1.5% risk
- 0.70+ confidence: 1.5-2.0% risk (maximum)
Stop Placement:
- Reversals: beyond divergence pivot plus 1.0-1.5×ATR
- Continuations: beyond recent swing opposite direction
Targets:
- Primary: 2-3×ATR from entry
- Scale at interim levels
- Trail after 1.5×ATR in profit
Important Disclaimers
BPA-ML is an advanced technical analysis tool for identifying high-probability divergence patterns and assessing market state. It is not a complete trading system. Machine learning components adapt to historical patterns, which does not guarantee future performance. Proper risk management, position sizing, and additional confirmation methods are essential. No indicator eliminates losing trades.
Backtesting results may differ from live performance due to execution factors and dynamic bandit learning. Always validate on demo before committing real capital. CAE filtering reduces but does not eliminate false signals. Market conditions change rapidly. Use appropriate stops and never risk excessive capital on any single trade.
— Dskyz, Trade with insight. Trade with anticipation.
HVIB UltimateThis script shows specific VIBs (volume imbalances) Customizable
HVIB - shows all HVIBS for short/ long, timeframe customization (current, 10, 15), colour customization, Fill close customisation (body/wick, number of closes needed to stop showing it as a valid)
2: FVIB indicator - shows two types of Failed vibs
FHVIBs (basicaly HVIBS but only those failed ones)
FVIB - Vib between two same candles closed by the third opposite candle (failed vib)
I like to have those two indicators three times copied for each timeframes /HVIBS 3 times and Fhvibs three times. to turn in quickly on and off and look which timeframes are aligned (which is even stronger I believe)
FVG / FRACTALS HELPERTG: imjustdanya
Индикатор автоматически находит фракталы/имбалансы на выбранных таймфреймах
Можно настраивать всё,от внешнего вида, до количества отображаемых объектов
Экономит много времени,и очень эффективен при интрадей торговле в стратегии Price Action
The indicator automatically detects fractals and imbalances on selected timeframes.
You can customize everything — from appearance to the number of displayed objects.
It saves a lot of time and is highly effective for intraday trading within a Price Action strategy.
ATM LEIW23C° Pivot SD Zones Conclusion
I hope you find an use to it, i really like this indicator.
Thanks for reading
Gann_RSGann_RS — Precision Gann Level Indicator (RightSpade Edition)
Gann_RS (RightSpade Edition) is a professional-grade indicator that applies Gann’s square-root progression technique to identify dynamic support and resistance levels around a key reference point (price X).
✅ Key Features
• Auto-detects base level using daily close or daily low.
• Plots symmetrical Gann levels above / below initial X using √X + Step logic.
• Adjustable step size and number of levels.
• Distinct color coding for alternate bands.
⚙️ Usage Tips
• Works on any symbol and timeframe.
• Use smaller Step values (1-2) for tighter intraday analysis, larger values (2-4) for swing setups.
• Combine with trend-based confirmation indicators for maximum accuracy.
🧭 Developed & maintained by
RightSpade Capital Advisors Pvt. Ltd. — SEBI Reg. INH000018799
📌 Disclaimer
This script is for educational & research purposes only and does not constitute investment advice or a buy/sell recommendation. Market participation involves risk; please consult your financial advisor before making trading decisions.
© 2025 RightSpade Capital Advisors Pvt. Ltd. All Rights Reserved.
Market Structure Trailing Stop MTF [Inspired by LuxAlgo]# Market Structure Trailing Stop MTF
**OPEN-SOURCE SCRIPT**
*208k+ views on original · Modified for MTF Support*
This indicator is a direct adaptation of the renowned **Market Structure Trailing Stop** by **LuxAlgo** (original script: [Market Structure Trailing Stop ]()). The core logic remains untouched, providing dynamic trailing stops based on market structure breaks (CHoCH/BOS). The **only modification** is the addition of **Multi-Timeframe (MTF) support**, allowing users to apply the trailing stops and structures from **higher timeframes (HTF)** directly on their current chart. This enhances usability for traders analyzing cross-timeframe confluence without switching charts.
**Special thanks to LuxAlgo** for releasing this powerful open-source tool under CC BY-NC-SA 4.0. Your contributions to the TradingView community have inspired countless traders—grateful for the solid foundation!
## 🔶 How the Script Works: A Deep Dive
At its heart, this indicator detects **market structure shifts** (bullish or bearish breaks of swing highs/lows) and uses them to generate **adaptive trailing stops**. These stops trail the price while protecting profits and acting as dynamic support/resistance levels. The MTF enhancement pulls this logic from user-specified higher timeframes, overlaying HTF structures and stops on the lower timeframe chart for seamless multi-timeframe analysis.
### Core Logic (Unchanged from LuxAlgo's Original)
1. **Pivot Detection**:
- Uses `ta.pivothigh()` and `ta.pivotlow()` with a user-defined lookback (`length`) to identify swing highs (PH) and lows (PL).
- Coordinates (price `y` and bar index/time `x`) are stored in persistent variables (`var`) for tracking recent pivots.
2. **Market Structure Detection**:
- **Bullish Structure (BOS/CHoCH)**: Triggers when `close > recent PH` (break above swing high).
- If `resetOn = 'CHoCH'`, resets only on major shifts (Change of Character); otherwise, on all breaks.
- Sets trend state `os = 1` (bullish) and highlights the break with a horizontal line (dashed for CHoCH, dotted for BOS).
- Initializes trailing stop at the local minimum (lowest low since the pivot) using a backward loop: `btm = math.min(low , btm)`.
- **Bearish Structure**: Triggers when `close < recent PL`, mirroring the bullish logic (`os = -1`, local maximum for stop).
- Structure state `ms` tracks the break type (1 for bull, -1 for bear, 0 neutral), resetting based on user settings.
3. **Trailing Stop Calculation**:
- Tracks **trailing max/min**:
- On new bull structure: Reset `max = close`.
- On new bear: Reset `min = close`.
- Otherwise: `max = math.max(close, max)` / `min = math.min(close, min)`.
- **Stop Adjustment** (the "trailing" magic):
- On fresh structure: `ts = btm` (bull) or `top` (bear).
- In ongoing trend: Increment/decrement by a percentage of the max/min change:
- Bull: `ts += (max - max ) * (incr / 100)`
- Bear: `ts += (min - min ) * (incr / 100)`
- This creates a **ratcheting effect**: Stops move favorably with the trend but never against it, converging toward price at a controlled rate.
- **Visuals**:
- Plots `ts` line colored by trend (teal for bull, red for bear).
- Fills area between `close` and `ts` (orange on retracements).
- Draws structure lines from pivot to break point.
4. **Edge Cases**:
- Variables like `ph_cross`/`pl_cross` prevent multiple triggers on the same pivot.
- Neutral state (`ms = 0`) preserves prior `max/min` until a new structure.
### MTF Enhancement (Our Addition)
- **request.security() Integration**:
- Wraps the entire core function `f()` in a security call for each timeframe (`tf1`, `tf2`).
- Returns HTF values (e.g., `ts1`, `os1`, structure times/prices) to the chart's context.
- Uses `lookahead=barmerge.lookahead_off` for accurate historical repainting-free data.
- Structures are drawn using `xloc.bar_time` to align HTF lines precisely on the LTF chart.
- **Multi-Output Handling**:
- Separate plots/fills/lines for each TF (e.g., `plot_ts1`, `plot_ts2`).
- Colors and toggles per TF to distinguish HTF1 (e.g., teal/red) from HTF2 (e.g., blue/maroon).
- **Benefits**: Spot HTF bias on LTF entries, e.g., enter longs only if both TF1 (1H) and TF2 (4H) show bullish `os=1`.
This keeps the script lightweight—**no repainting, max 500 lines**, and fully compatible with LuxAlgo's original behavior when TFs are set to the chart's timeframe.
## 🔶 SETTINGS
### Core Parameters
- **Pivot Lookback** (`length = 14`): Bars left/right for pivot detection. Higher = smoother structures, fewer signals; lower = more noise.
- **Increment Factor %** (`incr = 100`): Speed of stop convergence (0-∞). 100% = full ratchet (mirrors max/min exactly); <100% = slower trail, reduces whipsaws.
- **Reset Stop On** (`'CHoCH'`): `'CHoCH'` = Reset only on major reversals (dashed lines); `'All'` = Reset on every BOS/CHoCH (tighter stops).
### MTF Support
- **Timeframe 1** (`tf1 = ""`): HTF for first set (e.g., "1H"). Empty = current chart.
- **Timeframe 2** (`tf2 = ""`): Second HTF (e.g., "4H"). Enables dual confluence.
### Display Toggles
- **Show Structures** (`true`): Draws horizontal lines for breaks (per TF colors).
- **Show Trailing Stop TF1/TF2** (`true`): Plots the stop line.
- **Show Fill TF1/TF2** (`true`): Area fill between close and stop.
### Candle Coloring (Optional)
- **Color Candles** (`false`): Enables custom `plotcandle` for body/wick/border.
- **Candle Color Based On TF** (`"None"`): `"TF1"`, `"TF2"`, or none. Colors bull trend green, bear red.
- **Candle Colors**: Separate inputs for bull/bear body, wick, border (e.g., solid green body, transparent wick).
### Alerts
- **Enable MS Break Alerts** (`false`): Notifies on structure breaks (bull/bear per TF) **only on bar close** (`barstate.isconfirmed` + `alert.freq_once_per_bar_close`).
- **Enable Stop Hit Alerts** (`false`): Triggers on stop breaches (long/short per TF), using `ta.crossunder/crossover`.
### Colors
- **TF1 Colors**: Bullish (teal), Bearish (red), Retracement (orange).
- **TF2 Colors**: Bullish (blue), Bearish (maroon), Retracement (orange).
- **Area Transparency** (`80`): Fill opacity (0-100).
## 🔶 USAGE
Trailing stops shine in **trend-following strategies**:
- **Entries**: Use structure breaks as signals (e.g., long on bullish BOS from HTF1).
- **Exits**: Trail stops for profit-locking; alert on hits for automation.
- **Confluence**: Overlay HTF1 (e.g., 1H) for bias, HTF2 (e.g., Daily) for major levels—enter LTF only on alignment.
- **Risk Management**: Lower `incr` avoids early stops in chop; reset on `'All'` for aggressive trailing.
! (i.imgur.com)
*HTF1 shows bullish structure (teal line), trailing stop ratchets up—long entry confirmed on LTF pullback.*
! (i.imgur.com)
*TF1 (blue) bearish, TF2 (red) neutral—avoid shorts until alignment.*
! (i.imgur.com)
*Colored based on TF1 trend: Green bodies on bull `os=1`.*
Pro Tip: Test on demo—pair with LuxAlgo's other tools like Smart Money Concepts for full structure ecosystem.
## 🔶 DETAILS: Mathematical Breakdown
On bullish break:
- Local min: `btm = ta.lowest(n - ph_x)` (optimized loop equivalent).
- Stop init: `ts = btm`.
- Update: `Δmax = max - max `, `ts_new = ts + Δmax * (incr/100)`.
Bearish mirrors with `Δmin` (negative, so decrements `ts`).
In MTF: HTF `time` aligns lines via `line.new(htf_time, level, current_time, level, xloc.bar_time)`.
No logs/math libs needed—pure Pine v5 efficiency.
## Disclaimer
This is for educational purposes. Not financial advice. Backtest thoroughly. Original by LuxAlgo—modify at your risk. See TradingView's (www.tradingview.com). Licensed under CC BY-NC-SA 4.0 (attribution to LuxAlgo required).
PIVOT-V.13 05-09-25This Pine Script automatically detects pivot levels and generates buy/sell signals based on price action around those pivots. It identifies key support and resistance zones derived from previous period highs, lows, and closes, then marks optimal entry, target, and stop-loss levels on the chart.
The script is designed to assist traders in systematic decision-making using pivot-based strategies.
🔍 Core Features
Automatic Pivot Detection: Calculates and updates pivots in real-time using standard formulas.
Smart Trade Setup:
Buy Signal: Triggered when price action confirms strength above a pivot or resistance level.
Sell Signal: Triggered when price action confirms weakness below a pivot or support level.
Entry, Target & Stop-Loss Levels: Automatically plots potential entry points, stop-loss levels, and take-profit zones based on the nearest pivot structure.
Customizable Settings:
Choose pivot type and timeframe (daily, weekly, or monthly).
Adjust risk ratio, stop size, and confirmation filters.
Enable/disable visual labels or alerts.
Visual Clarity: Clearly marks all pivot levels and trade signals on the chart with colored labels and lines.
🎯 Purpose
This script helps traders quickly identify high-probability entry zones and maintain disciplined trade management by following pre-defined pivot-based rules — reducing emotional bias and enhancing consistency.
coinbot_ICT_Unicorn(AUTOTRADE)1. 🎯 핵심 기능: 자동매매 신호 전송 (Webhook)
이 스크립트는 매매 신호가 발생할 때마다, 사용자가 '자동매매 설정(Autotrade Settings)'에 입력한 값들을 조합하여 구체적인 JSON 메시지를 생성하고 alert() 함수를 통해 웹훅으로 전송합니다.
입력 설정: user_id, exchange(거래소), leverage(레버리지), capital_percent(투입 시드 %), sl_percent(손절 %), 그리고 3단계 분할 익절(tp1_price_percent, tp1_qty_percent 등) 설정을 입력받습니다.
신호 종류:
ENTRY (진입): 매수(buy) 또는 매도(sell) 신호가 발생하면, 위 모든 설정값을 포함한 진입 명령을 보냅니다.
CLOSE (손절): 전략의 내부 로직에 의해 손절가에 도달하면(slAlertTick), 포지션을 종료하라는 신호를 보냅니다.
TAKE_PROFIT (익절): 목표가에 도달하면(tpAlertTick), 설정된 물량만큼 익절하라는 신호를 보냅니다.
2. 📈 작동 원리: "ICT 유니콘" 매매 전략
이 스크립트의 진입 로직은 ICT(Inner Circle Trader) 개념 중 하나인 **'유니콘 모델'**을 따릅니다.
구성 요소 식별:
Breaker Block (BB): '브레이커 블록'을 식별합니다. 이는 특정 고점/저점을 만든 후 그 방향으로 가지 못하고 반대 방향으로 돌파(Break)된 오더 블록(Order Block)입니다.
Fair Value Gap (FVG): '공정 가치 갭' (가격 불균형 영역)을 식별합니다.
핵심 진입 신호 (Unicorn): 이 전략의 핵심 진입 조건은 **Breaker Block(BB)과 Fair Value Gap(FVG)이 중첩(Overlap)**되는, 소위 '유니콘'이라 불리는 강력한 지지/저항 영역이 발생하는 것입니다.
Long (매수) 진입:
가격이 하락하며 **'하락형 브레이커 블록(Bearish Breaker Block)'**을 만듭니다.
이후 가격이 상승 돌파하며 이 브레이커 블록 영역과 중첩되는 **'상승형 FVG(Bullish FVG)'**를 생성합니다.
이 중첩 영역(FVG-BB Overlap)이 바로 매수 진입의 근거가 됩니다. (코드가 dbgRequireRetracement 설정에 따라 FVG로의 되돌림을 기다리거나 즉시 진입 신호를 보냅니다.)
Short (매도) 진입:
가격이 상승하며 **'상승형 브레이커 블록(Bullish Breaker Block)'**을 만듭니다.
이후 가격이 하락 돌파하며 이 브레이커 블록 영역과 중첩되는 **'하락형 FVG(Bearish FVG)'**를 생성합니다.
이 중첩 영역이 매도 진입의 근거가 됩니다.
3. 📊 부가 기능
시각화: 차트 상에 FVG 영역과 Breaker Block 영역을 박스로 그려주어(설정에 따라 표시/숨김 가능) 매매 근거를 시각적으로 확인할 수 있게 합니다.
백테스팅 대시보드: 차트 우측 상단(기본값)에 이 전략의 누적 성과(총 진입 횟수, 승/패, 승률, 총수익률)를 보여주는 대시보드를 표시합니다.
요약
이 스크립트는 **"Breaker Block과 FVG의 중첩(유니콘 모델)"**을 유일한 진입 조건으로 사용하는 매우 구체적인 ICT 전략입니다. 이 조건이 충족되면, 사용자가 미리 설정한 상세한 리스크 관리 값들을 담아 자동매매 봇으로 즉시 실행 가능한 주문 신호를 전송하는 '올인원(All-in-One)' 전략 스크립트입니다.
요청하신 대로, 해당 지표 요약본을 영어로 번역하여 제공합니다.
This script is an automated trading (Autotrade) strategy signal generator based on the ICT "Unicorn" trading model.
As the "AUTOTRADE" in its name implies, the core purpose of this indicator is to detect specific conditions on the chart and send JSON-formatted order signals (webhooks) to an external automated trading bot.
Here are the core mechanics and features of this script:
1. 🎯 Core Feature: Automated Signal Transmission (Webhook)
Whenever a trade signal occurs, this script generates a specific JSON message by combining the values entered by the user in the "Autotrade Settings" and sends it via webhook using the alert() function.
Input Settings: It takes inputs for user_id, exchange, leverage, capital_percent (equity %), sl_percent (stop loss %), and settings for 3-stage split take-profits (e.g., tp1_price_percent, tp1_qty_percent).
Signal Types:
ENTRY: When a "buy" or "sell" signal occurs, it sends an entry command including all the settings above.
CLOSE (Stop-Loss): If the price hits the stop loss according to the strategy's internal logic (slAlertTick), it sends a signal to close the position.
TAKE_PROFIT: When a profit target is reached (tpAlertTick), it sends a signal to take profit on the specified quantity.
2. 📈 How It Works: The "ICT Unicorn" Strategy
The script's entry logic follows the "Unicorn Model," one of the concepts from ICT (Inner Circle Trader).
Identifying Components:
Breaker Block (BB): It identifies a "Breaker Block." This is an Order Block that, after creating a specific high/low, fails to continue in that direction and is instead broken through in the opposite direction.
Fair Value Gap (FVG): It identifies a "Fair Value Gap" (a price imbalance area).
Core Entry Signal (The Unicorn): The core entry condition for this strategy is the overlap of a Breaker Block (BB) and a Fair Value Gap (FVG), which creates a powerful support/resistance zone known as the "Unicorn."
Long Entry:
Price moves down, creating a "Bearish Breaker Block."
Subsequently, price breaks upward, creating a "Bullish FVG" that overlaps with this Breaker Block area.
This overlapping area (FVG-BB Overlap) becomes the basis for the long entry. (Depending on the dbgRequireRetracement setting, the code either waits for a retracement to the FVG or sends an immediate entry signal.)
Short Entry:
Price moves up, creating a "Bullish Breaker Block."
Subsequently, price breaks downward, creating a "Bearish FVG" that overlaps with this Breaker Block area.
This overlapping area becomes the basis for the short entry.
3. 📊 Additional Features
Visualization: It draws the FVG and Breaker Block zones as boxes on the chart (can be toggled in settings), allowing for visual confirmation of the trade setup.
Backtesting Dashboard: It displays a dashboard in the top-right corner (by default) showing the strategy's cumulative performance (total entries, wins/losses, win rate, total profit).
Summary
This script is a highly specific ICT strategy that uses the "overlap of a Breaker Block and an FVG (the Unicorn Model)" as its sole entry condition. When this condition is met, it transmits an immediately executable order signal to an automated trading bot, complete with all the detailed risk management values preset by the user. It is an "all-in-one" strategy script.
Liquidity Pool TimesThis script automatically plots key liquidity pool times on your chart. I will release an updated script that plots the names on the far right when i can figure it out. Until then you will see Monthly Open/Close Weekly Open/Close and Midnight/10AM open






















