Trend Persistence Counter (TPC) by riskcipher🧭 Trend Persistence Counter (TPC) – A Simple Price Action Trend Duration Tool
Trend Persistence Counter (TPC) is a lightweight indicator that counts how long a trend persists after a breakout.
It is entirely based on price action, without using any moving averages or smoothing. The goal is to give a simple, rule-based view of trend continuity.
🧠 How It Works (Logic Overview)
This indicator switches between two modes: bullish and bearish.
If close > previous high, the counter enters bullish mode, and starts at +1
While in bullish mode:
If close >= previous low → continue the uptrend → +1 each bar
If close < previous low → trend ends → reset to 0, switch to bearish mode
If close < previous low, the counter enters bearish mode, and starts at -1
While in bearish mode:
If close <= previous high → continue the downtrend → -1 each bar
If close > previous high → trend ends → reset to 0, switch to bullish mode
This provides a bar-by-bar count of trend persistence based on whether price holds structure.
🎯 Use Cases
Track how long a trend continues after a breakout
Quickly detect when trend structure breaks
Help visually filter “strong” vs “weak” moves
Build logic-based alerts (e.g., trend continues for N bars)
🔍 Why Use This Instead of Traditional Indicators?
This is not meant to replace moving averages or trend filters.
But it offers some advantages for those who prefer structure-based logic:
Feature TPC
Based on Price Action ✅ Yes
Uses Lagging Filters ❌ No moving average or smoothing
Trend Duration Measurement ✅ Counts valid consecutive moves
Complexity ⚪ Very simple and transparent
It’s a simple concept and easy to understand, but still useful when combined with other tools or visualized on its own.
⚙️ Technical Notes
Works on any timeframe or instrument
The value is positive during bullish persistence, negative during bearish
Value resets to 0 when trend structure breaks
All logic is calculated bar-by-bar, in real time
✅ Example Usage Ideas
Highlight candles when TPC value crosses a certain threshold (e.g., strong breakout continuation)
Use the zero-cross as a potential reversal warning
Filter trend signals in your existing strategies
在腳本中搜尋"bear"
Trend Continuation IdentifierKey Features:
1. Trend Identification:
- Uses 20-period SMA to determine trend direction
- Close above SMA = Uptrend
- Close below SMA = Downtrend
2. Continuation Signals:
- Bullish Continuation (green up-arrow below bar):
- Green candle in uptrend with strong volume OR
- Break above previous high with strong volume OR
- Consecutive green candles with strong volume and RSI > 50
- Bearish Continuation (red down-arrow above bar):
- Red candle in downtrend with strong volume OR
- Break below previous low with strong volume OR
- Consecutive red candles with strong volume and RSI < 50
3. Volume Confirmation:
- Volume must be at least 1.2x the 20-period average volume
4. RSI Filter:
- Uses 7-period RSI to confirm strength in multi-candle patterns
- Bullish: RSI > 50
- Bearish: RSI < 50
5. Adjustable Parameters:
- All key parameters (lookback period, volume period, RSI period, volume factor) are configurable in settings
### Usage:
1. Apply to any chart/timeframe
2. Signals appear as colored arrows:
- Green ↑ below candle: Bullish continuation expected
- Red ↓ above candle: Bearish continuation expected
3. Blue SMA line shows trend reference
### Customization:
Adjust parameters in the indicator settings:
- Increase lookback period for longer-term trends
- Increase volume factor for stricter volume requirements
- Modify RSI period for more/less sensitive momentum confirmation
This indicator combines price action, volume confirmation, momentum (RSI), and trend analysis to identify high-probability continuation patterns in any timeframe.
Candle Body TableCandle Body Table is a lightweight, easy-to-use indicator that displays a live summary of candle “body strength” across multiple timeframes, along with how much time is left on each candle. Simply choose up to five timeframes (1, 5, 15, 30, and 60 minutes by default), adjust the table’s corner and font size, and you’ll always have a quick, at-a-glance view of:
OC (Body %): The percentage of the candle that’s composed of its body (|open – close| divided by high–low).
Strength: A label (Weak, Balanced, or Strong) based on the body percentage.
Time Left: How many minutes and seconds remain before the current candle closes.
The table updates in real time (using lookahead), coloring each row background green if that timeframe’s current candle is bullish, or red if it’s bearish. That way, you can instantly see which timeframes have strong momentum, which are balanced or weak, and exactly when each candle will finish.
Use Cases
Multi-Timeframe Momentum Check:
If you want to confirm that both your 1m and 5m candles have “Strong” bodies before entering a trade, Candle Body Table shows you that instantly. No more switching back and forth between charts—just glance at the table.
Time-Sensitive Entries/Exits:
Suppose you trade breakouts only at the close of a 5-minute candle. The “Time Left” column counts down so you know exactly when that candle is about to close—down to the second—letting you prepare your order.
Quick Visual Scan:
When markets are choppy, you may want to see which timeframes are weak or balanced rather than diving into each timeframe separately. If the 15m row says “Weak” (small body %), you might avoid taking a trend-following position at that moment.
Session Overlaps & Volatility Windows:
During London/N.Y. overlap or U.S. cash close, traders often check for stronger bodies on higher timeframes (e.g., 30m or 60m). The table immediately highlights if that timeframe’s candle body heats up, indicating increased volatility.
Swing-to-Scalp Transition:
If you typically scalp on 1m but only when the 15m candle is “Strong,” this table gives a green/red cue and a strength label. That makes it easier to wait patiently until multiple timeframes align.
FAQ
Q1. What does “OC” mean, and why is it shown as a percentage?
A1. “OC” stands for Open/Close difference. So it reflects how much of the candle’s total range (high–low) is taken up by its body(open-close). A high OC% means the candle body is large relative to its wick. In other words a strong Bullish/Bearish candle.
Q2. How is “Strength” determined?
A2. The script uses three buckets:
Weak if OC% ≤ 30%
Balanced if 30% < OC% ≤ 55%
Strong if OC% > 55%
This gives you a quick label instead of having to interpret raw percentages every time.
Q3. Why do some rows have a green background and others red?
A3. If close > open (bullish candle), that entire row’s background is shaded green(70%). If close < open (bearish candle), it’s shaded red(70%). If open = close (doji), there’s no background shade. This lets you instantly spot bullish vs. bearish candles across your chosen timeframes.
Q4. Will this repaint?
A4. No. Because each OHLC value is requested with lookahead_on, you see the live developing OHLC. However, once a candle closes, those values are final. The “Time Left” column dynamically changes throughout the bar but does not redraw past values.
Breakout Scanner with VWAP + RSI + MACD + Volume SpikePRICE & MOVING AVERAGES
🟠 MA(10), MA(50), MA(200)
Purpose: Track price trends over different time horizons
MA10 – Very short-term trend (micro pullbacks)
MA50 – Intermediate trend (support/resistance)
MA200 – Long-term sentiment (bullish or bearish overall)
Use: Crossovers indicate trend reversals. E.g., MA10 < MA50 = bearish.
📉 EMA(9), EMA(12), EMA(34)
EMA = Exponential Moving Average
Reacts faster than MA, used for quick entries/exits
Common Strategy: EMA 9 crossing below EMA 34 → short signal
You’re currently in a downtrend, as all EMAs slope down and price is below them.
🔵 VWAP (Volume Weighted Average Price)
Purpose: Institutional benchmark
Traders use VWAP as a mean reversion level.
If price is below VWAP → bearish control; above → bullish control.
In your chart: QQQ is below VWAP, suggesting institutional selling.
📊 BOLL(20) = Bollinger Bands
Tracks volatility using 20-period MA ± 2 std. dev.
Bands widen when volatility increases.
In your chart: Price is riding the lower band → bearish pressure
🔁 RSI(14) = Relative Strength Index
Measures momentum
Ranges from 0 to 100
Above 70 = Overbought
Below 30 = Oversold
Current RSI is around 30–40, suggesting weak momentum, near oversold
📉 MACD (12, 26, 9)
MACD Line (blue) = 12EMA - 26EMA
Signal Line (red) = 9 EMA of MACD line
Histogram = MACD – Signal
When MACD crosses below Signal line → bearish
Your chart: Histogram is red and increasing → bearish strength increasing
✅ SUMMARY FOR QQQ CHART (LIVE INTERPRETATION)
Indicator Reading Signal
MA/EMA All sloping down ❌ Bearish
VWAP Price below VWAP ❌ Bearish
Bollinger Price hugging lower band ❌ Bearish
RSI(14) ~30-40 ⚠️ Weak
MACD Red histogram growing ❌ Bearish
Would you like me to generate a script-based trade signal system combining EMA + RSI + MACD for QQQ intraday calls/puts?
MirPapa:ICT:HTF: Candle OB Threeple# MirPapa:ICT:HTF: Candle OB Threeple
**Version:** Pine Script® v6
---
## Installation
1. Open TradingView’s Pine Editor.
2. Paste the entire script (including `import goodia/MirPapa_Library_ICT/3 as lib`).
3. Click **“Add to Chart”**.
---
## Inputs & Configuration
After adding to chart, open the indicator’s settings panel:
1. **Box Close Color**
- Choose the color applied when a Candle OB box is finalized (recolored).
2. **HighTF COB Settings**
- **HighTF Label:** Select a higher timeframe (e.g., “4시간” for 4H).
- **Enable HighTF COB Boxes:** Toggle drawing of HighTF boxes.
- **Enable HighTF COB Midlines:** Toggle drawing of the horizontal midpoint line inside each HighTF box.
- **HighTF COB Close Count:** Number of HTF closes beyond the box required to finalize (1–10).
- **HighTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish HighTF boxes.
- **HighTF Box Transparency:** Adjust box opacity (1–100).
3. **MidTF COB Settings**
- **MidTF Label:** Select a middle timeframe (e.g., “1시간” for 1H).
- **Enable MidTF COB Boxes:** Toggle drawing of MidTF boxes.
- **Enable MidTF COB Midlines:** Toggle the midpoint line inside each MidTF box.
- **MidTF COB Close Count:** Number of MidTF closes beyond the box required to finalize (1–10).
- **MidTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish MidTF boxes.
- **MidTF Box Transparency:** Adjust box opacity (1–100).
4. **CurrentTF COB Settings**
- **Enable CurrentTF COB Boxes:** Toggle drawing of COB boxes on the chart’s own timeframe.
- **Enable CurrentTF COB Midlines:** Toggle the midpoint line inside each CurrentTF box.
- **CurrentTF COB Close Count:** Number of closes beyond the box required to finalize (1–10).
- **COB Detection Level:** Choose pivot strength for detection (1 or 2).
- **CurrentTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish CurrentTF boxes.
- **CurrentTF Box Transparency:** Adjust box opacity (1–100).
---
## Display & Interpretation
- **Candle OB Boxes**
- Each box appears at the moment a reversal candle is detected on the chosen timeframe.
- Bullish boxes have the “Bull Color”; bearish boxes have the “Bear Color.”
- The midpoint line (if enabled) is drawn across the box’s center.
- **Box Extension**
- Once created, each box extends to the right on every new bar of the chart.
- You will see the box tracking along with price until it is finalized.
- **Box Finalization (Recoloring)**
- After the specified number of closes beyond the candle range, the box’s border and fill change to the **Box Close Color**.
- Finalized boxes remain visible in semi-transparent form, indicating that the zone has been “tested.”
- **Multiple Timeframes**
- If HighTF, MidTF, and/or CurrentTF boxes are all enabled, you’ll see up to three separate layers of boxes (one per timeframe).
- Higher-timeframe boxes typically span more candles; MidTF and CurrentTF boxes will be narrower.
---
## Tips
- **Adjust Opacity** to avoid clutter when multiple boxes overlap.
- **Use Distinct Colors** for each timeframe to quickly differentiate HighTF vs. MidTF vs. CurrentTF.
- **Experiment with Close Count** to control how long boxes remain active before finalizing.
- **Toggle Midlines** if you prefer seeing only the box or want an added visual cue at its center.
Enjoy clear, multi-timeframe Candle Order Block visualization on your chart!
MirPapa:ICT:HTF: FVG OB Threeple# MirPapa:ICT:HTF: FVG OB (Fair Value Gap Order Block)
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“FVG OB” (Fair Value Gap Order Block) identifies higher-timeframe candle ranges where a gap (imbalance) exists between two non-consecutive candles, signaling potential institutional order blocks. This module draws bullish or bearish FVG OB boxes on your lower-timeframe chart, extends them until price interacts a specified number of times, and then finalizes (recolors) the box.
---
## Inputs
- **Enable FVG OB Boxes** (`bool`)
Toggle drawing of HTF FVG OB boxes on the chart.
- **Enable FVG OB Midlines** (`bool`)
Toggle drawing of a midpoint line inside each FVG OB box.
- **FVG OB Close Count** (`int` 1–10)
Number of HTF closes beyond the FVG range required to finalize (recolor) the box.
- **FVG OB Bull Color** (`color`)
Fill & border color for bullish FVG OB boxes.
- **FVG OB Bear Color** (`color`)
Fill & border color for bearish FVG OB boxes.
- **FVG OB Box Transparency** (`int` 1–100)
Opacity level for FVG OB box fills (higher = more transparent).
---
## How It Works
1. **HTF Data Retrieval**
- The script uses `request.security()` (via `GetHTFrevised()`) to fetch HTF OHLC and historical values:
- `_htfHigh3` (high three bars ago) and `_htfLow1` (low one bar ago) for bullish FVG OB.
- `_htfLow3` (low three bars ago) and `_htfHigh1` (high one bar ago) for bearish FVG OB.
- It also tracks the HTF `bar_index` on the lower timeframe to align drawing.
2. **FVG OB Detection**
- **Bullish FVG OB**: Occurs when the HTF low of the previous bar (`low `) is strictly above the HTF high of three bars ago (`high `), creating a gap.
- **Bearish FVG OB**: Occurs when the HTF high of the previous bar (`high `) is strictly below the HTF low of three bars ago (`low `), creating a gap.
3. **Box Creation**
- On each new HTF bar (`ta.change(time(HTF)) != 0`), if a bullish or bearish FVG OB condition is met, the script calls `CreateBoxData()` with:
- **Bullish**: `bottom = HTF low `, `top = HTF high `, `_isBull = true`.
- **Bearish**: `bottom = HTF low `, `top = HTF high `, `_isBull = false`.
- Midline toggled by input.
- A `BoxData` struct is created and stored in either the Bull or Bear array.
4. **Box Extension & Finalization**
- On **every LTF bar**, `ProcessBoxDatas(...)` iterates over all active FVG OB boxes:
1. **Extend Right Edge**: `box.set_right(bar_index)` ensures the box follows the latest bar.
2. **Record Volume Delta**: Tracks buy/sell volume inside the box.
3. **Touch Stage Update**: `modBoxUpdateStage()` increments `_stage` when price touches its “basePoint” (for FVG OB, the basePrice is one side of the gap).
4. **Finalize**: `setBoxFinalize()` checks if the configured number of closes beyond the FVG gap (`FVG OB Close Count`) has occurred. If so:
- `_isActive := false`
- Border and background colors are changed to the “Box Close Color” (input).
- Finalized boxes remain on screen semi-transparent, indicating that the FVG OB zone has been tested.
5. **Midline (Optional)**
- If “Enable FVG OB Midlines” is checked, `ProcessBoxDatas()` also extends a horizontal midpoint line inside the box with `line.set_x2(bar_index)`.
---
## Usage Instructions
1. **Installation**
- Copy the FVG OB section of the Pine Script into TradingView’s Pine Editor (ensure the library import is included).
- Click “Add to Chart.”
2. **Configure Inputs**
- Choose a Higher Time Frame via the dropdown (e.g., “4시간” maps to a 4H timeframe).
- Toggle “Enable FVG OB Boxes” and “Enable FVG OB Midlines.”
- Select colors for bullish and bearish boxes and set transparency.
- Adjust “FVG OB Close Count” to control how many closes beyond the gap finalize the box.
3. **Interpretation**
- **Active FVG OB Boxes** extend to the right until price closes beyond the gap range the specified number of times.
- When finalized, each box changes to the “Box Close Color,” signaling that institutional orders in that gap have likely been filled.
Enjoy precise visualization of higher-timeframe Fair Value Gap Order Blocks on your lower-timeframe chart!
MirPapa:ICT:HTF: FVG Threeple# MirPapa:ICT:FVG Double HTF
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“MirPapa:ICT:FVG Double HTF” is a TradingView indicator that identifies and visualizes Fair Value Gaps (FVG) on two higher time frames (HighTF and MidTF) simultaneously. It can also draw FVG boxes on the current chart’s time frame. When “Overlap Mode” is enabled, the indicator displays only the intersection of HighTF and MidTF FVG areas.
---
## Key Features
- **HighTF FVG**
- Detects bullish and bearish FVGs on a user-selected upper time frame (e.g., 4H).
- Draws colored boxes around gap ranges, optionally with a midpoint line.
- Automatically extends boxes on every bar and finalizes (recolors) them after a specified number of closes beyond the gap.
- **MidTF FVG**
- Same as HighTF FVG but for a second, intermediate time frame (e.g., 1H).
- Runs in parallel to HighTF logic, with separate color and transparency settings.
- **CurrentTF FVG (Optional)**
- If enabled, draws FVG boxes using the chart’s own time frame.
- Behaves identically: extends until broken by price, then finalizes.
- **Overlap Mode**
- When enabled, hides all individual HighTF and MidTF boxes.
- Instead, computes and displays only their overlapping rectangle(s)—separate for bullish and bearish gaps.
---
## Inputs & Configuration
- **Common Inputs**
- **Enable High/Mid Overlap Mode** (`boolean`): Show only overlapping HighTF + MidTF FVG areas.
- **Box Close Color** (`color`): Color applied to any FVG box when it is finalized.
- **HighTF FVG Settings**
- **HighTF Label** (`dropdown`): Choose a Korean label (e.g., “4시간”) that maps to a Pine timeframe (e.g., “240”).
- **Enable HighTF FVG Boxes** (`boolean`): Toggle drawing of HighTF FVG boxes.
- **Enable HighTF FVG Midlines** (`boolean`): Toggle midpoint line inside each HighTF box.
- **HighTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **HighTF FVG Bull Color** (`color`): Fill & border color for bullish HighTF gaps.
- **HighTF FVG Bear Color** (`color`): Fill & border color for bearish HighTF gaps.
- **HighTF Box Transparency** (`integer` 1–100): Opacity level for HighTF box fills.
- **MidTF FVG Settings**
- **MidTF Label** (`dropdown`): Choose a Korean label (e.g., “1시간”) mapped to a Pine timeframe.
- **Enable MidTF FVG Boxes** (`boolean`): Toggle drawing of MidTF FVG boxes.
- **Enable MidTF FVG Midlines** (`boolean`): Toggle midpoint line inside each MidTF box.
- **MidTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **MidTF FVG Bull Color** (`color`): Fill & border color for bullish MidTF gaps.
- **MidTF FVG Bear Color** (`color`): Fill & border color for bearish MidTF gaps.
- **MidTF Box Transparency** (`integer` 1–100): Opacity level for MidTF box fills.
- **CurrentTF FVG Settings**
- **Enable CurrentTF FVG Boxes** (`boolean`): Draw FVG boxes on the chart’s own timeframe.
- **Enable CurrentTF FVG Midlines** (`boolean`): Toggle midpoint line inside each CurrentTF box.
- **CurrentTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **CurrentTF FVG Bull Color** (`color`): Fill & border color for bullish CurrentTF gaps.
- **CurrentTF FVG Bear Color** (`color`): Fill & border color for bearish CurrentTF gaps.
- **CurrentTF Box Transparency** (`integer` 1–100): Opacity level for CurrentTF box fills.
---
## How It Works
1. **Time Frame Conversion**
Korean labels (e.g., “4시간”, “1시간”) are converted internally to Pine timeframe strings via `GetHtfFromLabel()`.
2. **Data Retrieval**
For each chosen TF (HighTF, MidTF, and optionally CurrentTF), the script fetches OHLC and historical values using `GetHTFrevised()`.
- Tracks `bar_index` from that TF to align box drawing on the chart’s base timeframe.
3. **Box Lifecycle**
- **Creation**: On each new TF bar, if a bullish gap (`low > high `) or bearish gap (`low > high `) is detected, `CreateBoxData()` registers a new `BoxData` struct and draws an initial box.
- **Extension**: On every chart bar, `ProcessBoxDatas()` extends each active box’s right edge and updates internal “touch stage” and volume.
- **Finalization**: After the specified number of closes beyond the gap, `setBoxFinalize()` disables the box and changes its border & fill to the “Box Close Color”.
4. **Overlap Mode**
- When enabled, HighTF and MidTF boxes are not drawn individually.
- Instead, at each bar, the script iterates over all active HighTF boxes and all active MidTF boxes, computes their intersection rectangle (if any), and draws only that overlapping area (distinct handling for bullish vs. bearish gaps).
---
## Installation & Usage
1. **Copy & Paste**
Copy the entire Pine Script code into TradingView’s Pine Editor.
Click “Add to Chart.”
2. **Configure Inputs**
- Choose your HighTF and MidTF via the dropdown menus.
- Enable or disable FVG boxes/midlines for each TF.
- Adjust colors, transparency, and “Close Count” settings to taste.
- Toggle “Overlap Mode” if you only want to see common areas between HighTF and MidTF gaps.
3. **Interpretation**
- **Active Boxes** extend to the right as new bars form. When price closes beyond a gap (per “Close Count”), the box is finalized and recolored to the close color.
- In **Overlap Mode**, you’ll see only the overlapping region between HighTF and MidTF gaps, updated on every bar.
Enjoy precise FVG visualization across multiple time frames!
Schmit Trading LiquidityDescription
Schmit Trading Liquidity Marker automatically spots and labels open liquidity sweep levels by detecting classic stop-run patterns (Bull→Bear for highs, Bear→Bull for lows) across multiple timeframes. Lines are drawn exactly at the wick of the triggering candle and removed as soon as price “sweeps” through them, keeping your chart clean and focused on live levels only.
How It Works
1. Pattern Detection
• Liquidity High: When a bullish candle is immediately followed by a bearish candle (Bull→Bear), the script records the higher of the two wicks.
• Liquidity Low: When a bearish candle is immediately followed by a bullish candle (Bear→Bull), the script records the lower of the two wicks.
2. Multi-Timeframe Support
• Choose up to six timeframes (5 min, 15 min, 30 min, 1 h, 4 h, daily) via checkboxes.
• Each timeframe is evaluated independently, and liquidity levels are drawn on your current chart.
3. Precision Wick Placement
• Lines start at bar_index – 1 so they align exactly with the wick of the signal candle, regardless of your chart’s timeframe.
4. Automatic Cleanup
• As soon as price closes beyond a drawn line (sweep), that line is deleted automatically.
Inputs
Input Name Description
Show 5 min. Enable liquidity detection on the 5-minute timeframe.
Show 15 min. Enable liquidity detection on the 15-minute timeframe.
Show 30 min. Enable liquidity detection on the 30-minute timeframe.
Show 1 h. Enable liquidity detection on the 1-hour timeframe.
Show 4 h. Enable liquidity detection on the 4-hour timeframe.
Show 1 D. Enable liquidity detection on the daily timeframe.
High Line Color. Color of Bull→Bear (liquidity high) lines (default: red).
Low Line Color. Color of Bear→Bull (liquidity low) lines (default: blue).
Line Length. How many bars each liquidity line extends to the right.
Usage Tips
• Focus on Live Zones: Combine with volume or order-flow tools to confirm genuine
liquidity sweeps.
• Multiple TFs: Enable higher timeframes for major liquidity clusters; lower timeframes
for fine‐tuning entries.
• Chart Cleanliness: Lines self‐delete on sweep, ensuring no manual cleanup is needed.
⸻
Disclosure & License
This indicator is Open-Source under the Mozilla Public License 2.0. Feel free to review, adapt, and improve the code. No performance guarantees—use responsibly and backtest any strategy before trading live.
Candle Breakout Oscillator [LuxAlgo]The Candle Breakout Oscillator tool allows traders to identify the strength and weakness of the three main market states: bullish, bearish, and choppy.
Know who controls the market at any given moment with an oscillator display with values ranging from 0 to 100 for the three main plots and upper and lower thresholds of 80 and 20 by default.
🔶 USAGE
The Candle Breakout Oscillator represents the three main market states, with values ranging from 0 to 100. By default, the upper and lower thresholds are set at 80 and 20, and when a value exceeds these thresholds, a colored area is displayed for the trader's convenience.
This tool is based on pure price action breakouts. In this context, we understand a breakout as a close above the last candle's high or low, which is representative of market strength. All other close positions in relation to the last candle's limits are considered weakness.
So, when the bullish plot (in green) is at the top of the oscillator (values above 80), it means that the bullish breakouts (close below the last candle low) are at their maximum value over the calculation window, indicating an uptrend. The same interpretation can be made for the bearish plot (in red), indicating a downtrend when high.
On the other hand, weakness is indicated when values are below the lower threshold (20), indicating that breakouts are at their minimum over the last 100 candles. Below are some examples of the possible main interpretations:
There are three main things to look for in this oscillator:
Value reaches extreme
Value leaves extreme
Bullish/Bearish crossovers
As we can see on the chart, before the first crossover happens the bears come out of strength (top) and the bulls come out of weakness (bottom), then after the crossover the bulls reach strength (top) and the bears weakness (bottom), this process is repeated in reverse for the second crossover.
The other main feature of the oscillator is its ability to identify periods of sideways trends when the sideways values have upper readings above 80, and trending behavior when the sideways values have lower readings below 20. As we just saw in the case of bullish vs. bearish, sideways values signal a change in behavior when reaching or leaving the extremes of the oscillator.
🔶 DETAILS
🔹 Data Smoothing
The tool offers up to 10 different smoothing methods. In the chart above, we can see the raw data (smoothing: None) and the RMA, TEMA, or Hull moving averages.
🔹 Data Weighting
Users can add different weighting methods to the data. As we can see in the image above, users can choose between None, Volume, or Price (as in Price Delta for each breakout).
🔶 SETTINGS
Window: Execution window, 100 candles by default
🔹 Data
Smoothing Method: Choose between none or ten moving averages
Smoothing Length: Length for the moving average
Weighting Method: Choose between None, Volume, or Price
🔹 Thresholds
Top: 80 by default
Bottom: 20 by default
$ADD LevelsThis Pine Script is designed to track and visualize the NYSE Advance-Decline Line (ADD). The Advance-Decline Line is a popular market breadth indicator, showing the difference between advancing and declining stocks on the NYSE. It’s often used to gauge overall market sentiment and strength.
1. //@version=5
This line tells TradingView to use Pine Script v5, the latest and most powerful version of Pine.
2. indicator(" USI:ADD Levels", overlay=false)
• This creates a new indicator called ” USI:ADD Levels”.
• overlay=false means it will appear in a separate pane, not on the main price chart.
3. add = request.security(...)
This fetches real-time data from the symbol USI:ADD (Advance-Decline Line) using a 1-minute timeframe. You can change the timeframe if needed.
add_symbol = input.symbol(" USI:ADD ", "Market Breadth Symbol")
add = request.security(add_symbol, "1", close)
4. Key Thresholds
These define the market sentiment zones:
Zone. Value. Meaning
Overbought +1500 Extremely bullish
Bullish +1000 Generally bullish trend
Neutral ±500 Choppy, unclear market
Bearish -1000 Generally bearish trend
Oversold -1500 Extremely bearish
5. Plot the ADD Line hline(...)
Draws static lines at +1500, +1000, +500, -500, -1000, -1500 for reference so you can visually assess where ADD stands.
6. Horizontal Threshold Lines bgcolor(...)
• Green background if ADD > +1500 → extremely bullish.
• Red background if ADD < -1500 → extremely bearish.
7. Background Highlights alertcondition(...)
• Green background if ADD > +1500 → extremely bullish.
• Red background if ADD < -1500 → extremely bearish.
8. Alert Conditions. alertcondition(...)
Lets you create automatic alerts for:
• USI:ADD being very high or low.
• Crosses above +1000 (bullish trigger).
• Crosses below -1000 (bearish trigger).
You can use these to trigger trades or monitor sentiment shifts.
Summary: When to Use It
• Use this script in a market breadth dashboard.
• Combine it with price action and volume analysis.
• Monitor for ADD crosses to signal potential market reversals or momentum.
Indicator: Volatility Candle Based 📊 Volatility Candle-Based Indicator (Pine Script v6)
This custom TradingView indicator is designed for futures traders who want to analyze volatility, candle patterns, and support/resistance zones within specific market hours. It overlays price charts and provides visual signals that help determine potential momentum shifts, trend continuations, or reversals.
🔧 Core Features
⏰ Futures Time Filter
The indicator activates only during specific trading hours, customized per futures contract (e.g., NQ, ES, GC).
Time is adjusted to the New York (EST) timezone.
This ensures the logic only runs during relevant futures market sessions.
💹 Contract-Specific Multipliers
Applies custom point multipliers for futures contracts (e.g., GC = 30, ES = 24).
Supports three types of multipliers:
Trailing Stop
Trailing Plot Stop
Stop Loss
Ensures accurate backtesting and risk modeling for each contract.
📈 Trendline Support & Resistance
Uses pivot high/low logic to dynamically plot:
Central pivot zones
Step-like support/resistance lines
These trendlines update based on price behavior and can indicate bullish or bearish control.
🔍 Candle Momentum Analysis
Evaluates each candle's:
Body-to-range ratio (e.g., Marubozu, Doji)
Shadow dominance (upper/lower wicks)
Detects important reversal or continuation patterns such as:
Bullish/Bearish Inside Candles
Doji Star formations
Uses a custom moving average to confirm directional bias.
🕯️ Plotter Candle Signals
Identifies BullishPlotter and BearishPlotter candles:
Highlights candles likely to signal upcoming momentum.
Also accounts for neutral signals when no clear bias is detected.
Tracks the high/low of recent signal candles for reference.
📌 Visual Elements (not shown in snippet but implied by logic)
Signal arrows, dashed current levels, and filled support/resistance zones can be plotted to provide real-time feedback.
These are useful for both manual trading and strategy development.
🎯 Use Case
Perfect for intraday or short-term futures traders on instruments like:
🟡 Gold (GC), 🟠 Silver (SI)
📉 Nasdaq (NQ/MNQ), S&P 500 (ES/MES)
This script provides both structural context (trendlines, pivots) and price action signals (candle formations, momentum shifts), helping traders align their decisions with the underlying market flow.
Cap's Dual Auto Fib RetracementThis will draw both a bullish retracement and a bearish retracement. It's defaulted to just show the 0.618 level as I feel like this is the "make or break" level.
- A close below the bullish 0.618 retracement would be considered very bearish.
- A close above the bearish 0.618 would be considered very bullish.
(You can still configure whichever levels you want, however.)
This script was removed by TradingView last time it was published. I couldn't find another script that would provide both bearish/bullish retracements, so I'm assuming this is "original" enough. Maybe it was removed because the description wasn't long enough, so...
Detailed Description:
This indicator automatically plots Fibonacci retracement levels based on zigzag pivot points for both bullish (low-to-high) and bearish (high-to-low) price movements. It identifies key pivot points using a customizable deviation multiplier and depth setting, then draws Fibonacci levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1) with user-defined visibility and colors for each level.
Features:
Deviation: Adjusts sensitivity for detecting pivots (default: 2).
Depth: Sets minimum bars for pivot calculation (default: 10).
Extend Lines: Option to extend lines left, right, or both.
Show Prices/Levels: Toggle price and level labels, with options for value or percentage display.
Labels Position: Choose left or right label placement.
Background Transparency: Customize fill transparency between levels.
Alerts: Triggers when price crosses any Fibonacci level.
Usage: Apply to any chart to visualize potential support/resistance zones. Adjust settings to suit your trading style. Requires sufficient data; use lower timeframes or reduce depth if pivots are not detected.
Note: This is a technical analysis tool and does not provide trading signals or financial advice. Always conduct your own research.
Palgo Trading - Palgo🎯THE PALGO INDICATOR
The "Palgo Trading - Palgo" indicator, developed by PALGOTRADING is a sophisticated technical analysis tool designed to identify potential buy and sell signals by combining trend analysis with momentum and optional AI-driven sentiment assessment. This indicator provides a clear visual representation of potential trading opportunities directly on the price chart.
At its core, the Palgo indicator synthesizes information from well-established technical analysis concepts with statistical functions, and has optional AI Integration for social analysis of the asset using external data :
Supertrend: This indicator identifies the prevailing trend direction. A positive Supertrend value suggests an upward trend, while a negative value indicates a downward trend. The Palgo indicator utilizes a Supertrend with a customizable multiplier and a user-configurable Average True Range (ATR) length (defaulting to 21).
🛜Signal Generation Logic
The indicator generates buy and sell signals based on a calculated "final direction" value. This value is derived by combining the Supertrend direction and a modified RSI. The modification involves scaling the RSI output to a range of -0.5 to 0.5 and then further adjusting it.
The buy and sell conditions are as follows:
Buy Signal: A buy signal is triggered when the "final direction" crosses above a positive activation threshold while the current signal is not already bullish. Upon signal generation, a "Buy" label (colored green) appears below the bar, and initial Take Profit (TP) and Stop Loss (SL) levels are calculated and stored.
Sell Signal: Conversely, a sell signal is triggered when the "final direction" crosses below a negative activation threshold while the current signal is not already bearish. A "Sell" label (colored red) is plotted above the bar, and corresponding TP and SL levels are determined.
✅ Optimized Take-Profit / Stop-Loss
The Take-Profit (TP) & Stop-Loss (SL) signals are optimized with Kernel Density Estimation (KDE), the script uses KDE activated by gaussian function on previous pivot points and trains the model, then tries to estimate new pivot points early, to determine new TP / SL levels for the current signal. Kernel Density Estimation takes values of the previous confirmed pivots' RSI values, body size & more factors to determine their role. This indicator can generate up to 5 TP signals per signal.
📈 Signal Trail
Palgo also includes a "Signal Trail" that visually shows the market's momentum. This trail is like a dynamic line that follows the price.
When the market is in an uptrend and looking strong, you'll see a green trail.
When it's in a downtrend and looking weak, you'll see a red trail.
This trail helps you see if the market is currently aligned with Palgo's bullish (buy) or bearish (sell) signal. It also acts as a visual guide for potential support or resistance levels.
📊Backtesting Dashboard
The Palgo indicator includes an optional Backtesting Dashboard to help you understand its historical performance. This dashboard appears directly on your chart and provides a quick summary of how the indicator's signals have performed in the past.
Here's what you'll see on the dashboard:
Sensitivity: This shows the specific "Sensitivity" setting you've chosen for the indicator. This setting influences how often signals are generated.
Wins: This number tells you how many trades initiated by the Palgo indicator historically ended in profit (reached a Take-Profit target or closed profitably when the signal reversed).
Loss: This number indicates how many trades historically ended in a loss (hit the Stop-Loss).
Winrate: This is a very important metric, displayed as a percentage. It shows you the proportion of winning trades compared to the total number of trades (Wins / (Wins + Loss)). A higher winrate generally suggests a more effective strategy.
This dashboard is a valuable tool for reviewing the indicator's effectiveness with different settings and helping you make informed decisions about its use in your trading.
🤖AI Integration (Optional):
A unique feature of the Palgo indicator is the optional integration of Artificial Intelligence (AI) sentiment analysis. When the "Use AI" input is enabled, the indicator incorporates two additional user-defined inputs:
Impression Change %: This input represents the percentage change in overall market sentiment as assessed by an external AI.
Positivity Change: This input reflects the change in positive sentiment, also provided by an AI.
These AI inputs are combined to create an "AI Score," which then influences the "final direction" calculation. A positive AI Score amplifies the bullish signals and dampens bearish signals, while a negative AI Score has the opposite effect.
❓Why PALGO ?
All-in-One Analysis: Palgo combines trend, momentum, and advanced statistical analysis into one easy-to-use tool, giving you a complete picture without needing multiple indicators.
Dynamic Profit & Loss Management: Unlike many tools with fixed targets, Palgo's smart profit and stop-loss system adapts to the market using KDE. This helps you potentially capture more gains and limit losses effectively.
Optional AI Insights: For an extra edge, Palgo can tap into Artificial Intelligence (AI) to gauge overall market mood. If the AI sees a lot of positive buzz, it can strengthen buy signals; if it's negative, it can reinforce sell signals. This helps you trade with a better understanding of the market's pulse.
Clear and Customizable: Palgo is designed to be very visual. It changes the color of the price bars, adds clear "Buy" or "Sell" labels, and marks your profit and stop-loss points. You can also change the colors to suit your preference.
Palgo aims to be a comprehensive and adaptable trading tool, giving you clearer insights.
⚙️Visualizations and Customization
The Palgo indicator offers several visual cues to aid traders:
Bar Coloring: The price bars are colored green when the indicator identifies a bullish signal and red during a bearish signal.
Signal Labels: Clear "Buy" and "Sell" labels are plotted at the signal generation points.
Take Profit and Stop Loss Markers: Distinct shapes and labels indicate when the price reaches the calculated TP and SL levels.
Style Options: Users can customize the colors for bullish and bearish bars, text, and TP/SL markers within the indicator's settings.
Delta Volume Profile [BigBeluga]🔵Delta Volume Profile
A dynamic volume analysis tool that builds two separate horizontal profiles: one for bullish candles and one for bearish candles. This indicator helps traders identify the true balance of buying vs. selling volume across price levels, highlighting points of control (POCs), delta dominance, and hidden volume clusters with remarkable precision.
🔵 KEY FEATURES
Split Volume Profiles (Bull vs. Bear):
The indicator separates volume based on candle direction:
If close > open , the candle’s volume is added to the bullish profile (positive volume).
If close < open , it contributes to the bearish profile (negative volume).
ATR-Based Binning:
The price range over the selected lookback is split into bins using ATR(200) as the bin height.
Each bin accumulates both bull and bear volumes to form the dual-sided profile.
Bull and Bear Volume Bars:
Bullish volumes are shown as right-facing bars on the right side, colored with a bullish gradient.
Bearish volumes appear as left-facing bars on the left side, shaded with a bearish gradient.
Each bar includes a volume label (e.g., +12.45K or -9.33K) to show exact volume at that price level.
Points of Control (POC) Highlighting:
The bin with the highest bullish volume is marked with a border in POC+ color (default: blue).
The bin with the highest bearish volume is marked with a POC− color (default: orange).
Total Volume Density Map:
A neutral gray background box is plotted behind candles showing the total volume (bull + bear) per bin.
This reveals high-interest price zones regardless of direction.
Delta and Total Volume Summary:
A Delta label appears at the top, showing net % difference between bull and bear volume.
A Total label at the bottom shows total accumulated volume across all bins.
🔵 HOW IT WORKS
The indicator captures all candles within the lookback period .
It calculates the price range and splits it into bins using ATR for adaptive resolution.
For each candle:
If price intersects a bin and close > open , volume is added to the positive profile .
If close < open , volume is added to the negative profile .
The result is two side-by-side histograms at each price level—one for buyers, one for sellers.
The bin with the highest value on each side is visually emphasized using POC highlight colors.
At the end, the script calculates:
Delta: Total % difference between bull and bear volumes.
Total: Sum of all volumes in the lookback window.
🔵 USAGE
Volume Imbalance Zones: Identify price levels where buyers or sellers were clearly dominant.
Fade or Follow Volume Clusters: Use POC+ or POC− levels for reaction trades or breakouts.
Delta Strength Filtering: Strong delta values (> ±20%) suggest momentum or exhaustion setups.
Volume-Based Anchoring: Use profile levels to mark hidden support/resistance and execution zones.
🔵 CONCLUSION
Delta Volume Profile offers a unique advantage in market reading by separating buyer and seller activity into two visual layers. This allows traders to not only spot where volume was high, but also who was more aggressive. Whether you’re analyzing trend continuations, reversals, or absorption levels, this indicator gives you the transparency needed to trade with confidence.
Lyapunov Market Instability (LMI)Lyapunov Market Instability (LMI)
What is Lyapunov Market Instability?
Lyapunov Market Instability (LMI) is a revolutionary indicator that brings chaos theory from theoretical physics into practical trading. By calculating Lyapunov exponents—a measure of how rapidly nearby trajectories diverge in phase space—LMI quantifies market sensitivity to initial conditions. This isn't another oscillator or trend indicator; it's a mathematical lens that reveals whether markets are in chaotic (trending) or stable (ranging) regimes.
Inspired by the meditative color field paintings of Mark Rothko, this indicator transforms complex chaos mathematics into an intuitive visual experience. The elegant simplicity of the visualization belies the sophisticated theory underneath—just as Rothko's seemingly simple color blocks contain profound depth.
Theoretical Foundation (Chaos Theory & Lyapunov Exponents)
In dynamical systems, the Lyapunov exponent (λ) measures the rate of separation of infinitesimally close trajectories:
λ > 0: System is chaotic—small changes lead to dramatically different outcomes (butterfly effect)
λ < 0: System is stable—trajectories converge, perturbations die out
λ ≈ 0: Edge of chaos—transition between regimes
Phase Space Reconstruction
Using Takens' embedding theorem , we reconstruct market dynamics in higher dimensions:
Time-delay embedding: Create vectors from price at different lags
Nearest neighbor search: Find historically similar market states
Trajectory evolution: Track how these similar states diverged over time
Divergence rate: Calculate average exponential separation
Market Application
Chaotic markets (λ > threshold): Strong trends emerge, momentum dominates, use breakout strategies
Stable markets (λ < threshold): Mean reversion dominates, fade extremes, range-bound strategies work
Transition zones: Market regime about to change, reduce position size, wait for confirmation
How LMI Works
1. Phase Space Construction
Each point in time is embedded as a vector using historical prices at specific delays (τ). This reveals the market's hidden attractor structure.
2. Lyapunov Calculation
For each current state, we:
- Find similar historical states within epsilon (ε) distance
- Track how these initially similar states evolved
- Measure exponential divergence rate
- Average across multiple trajectories for robustness
3. Signal Generation
Chaos signals: When λ crosses above threshold, market enters trending regime
Stability signals: When λ crosses below threshold, market enters ranging regime
Divergence detection: Price/Lyapunov divergences signal potential reversals
4. Rothko Visualization
Color fields: Background zones represent market states with Rothko-inspired palettes
Glowing line: Lyapunov exponent with intensity reflecting market state
Minimalist design: Focus on essential information without clutter
Inputs:
📐 Lyapunov Parameters
Embedding Dimension (default: 3)
Dimensions for phase space reconstruction
2-3: Simple dynamics (crypto/forex) - captures basic momentum patterns
4-5: Complex dynamics (stocks/indices) - captures intricate market structures
Higher dimensions need exponentially more data but reveal deeper patterns
Time Delay τ (default: 1)
Lag between phase space coordinates
1: High-frequency (1m-15m charts) - captures rapid market shifts
2-3: Medium frequency (1H-4H) - balances noise and signal
4-5: Low frequency (Daily+) - focuses on major regime changes
Match to your timeframe's natural cycle
Initial Separation ε (default: 0.001)
Neighborhood size for finding similar states
0.0001-0.0005: Highly liquid markets (major forex pairs)
0.0005-0.002: Normal markets (large-cap stocks)
0.002-0.01: Volatile markets (crypto, small-caps)
Smaller = more sensitive to chaos onset
Evolution Steps (default: 10)
How far to track trajectory divergence
5-10: Fast signals for scalping - quick regime detection
10-20: Balanced for day trading - reliable signals
20-30: Slow signals for swing trading - major regime shifts only
Nearest Neighbors (default: 5)
Phase space points for averaging
3-4: Noisy/fast markets - adapts quickly
5-6: Balanced (recommended) - smooth yet responsive
7-10: Smooth/slow markets - very stable signals
📊 Signal Parameters
Chaos Threshold (default: 0.05)
Lyapunov value above which market is chaotic
0.01-0.03: Sensitive - more chaos signals, earlier detection
0.05: Balanced - optimal for most markets
0.1-0.2: Conservative - only strong trends trigger
Stability Threshold (default: -0.05)
Lyapunov value below which market is stable
-0.01 to -0.03: Sensitive - quick stability detection
-0.05: Balanced - reliable ranging signals
-0.1 to -0.2: Conservative - only deep stability
Signal Smoothing (default: 3)
EMA period for noise reduction
1-2: Raw signals for experienced traders
3-5: Balanced - recommended for most
6-10: Very smooth for position traders
🎨 Rothko Visualization
Rothko Classic: Deep reds for chaos, midnight blues for stability
Orange/Red: Warm sunset tones throughout
Blue/Black: Cool, meditative ocean depths
Purple/Grey: Subtle, sophisticated palette
Visual Options:
Market Zones : Background fields showing regime areas
Transitions: Arrows marking regime changes
Divergences: Labels for price/Lyapunov divergences
Dashboard: Real-time state and trading signals
Guide: Educational panel explaining the theory
Visual Logic & Interpretation
Main Elements
Lyapunov Line: The heart of the indicator
Above chaos threshold: Market is trending, follow momentum
Below stability threshold: Market is ranging, fade extremes
Between thresholds: Transition zone, reduce risk
Background Zones: Rothko-inspired color fields
Red zone: Chaotic regime (trending)
Gray zone: Transition (uncertain)
Blue zone: Stable regime (ranging)
Transition Markers:
Up triangle: Entering chaos - start trend following
Down triangle: Entering stability - start mean reversion
Divergence Signals:
Bullish: Price makes low but Lyapunov rising (stability breaking down)
Bearish: Price makes high but Lyapunov falling (chaos dissipating)
Dashboard Information
Market State: Current regime (Chaotic/Stable/Transitioning)
Trading Bias: Specific strategy recommendation
Lyapunov λ: Raw value for precision
Signal Strength: Confidence in current regime
Last Change: Bars since last regime shift
Action: Clear trading directive
Trading Strategies
In Chaotic Regime (λ > threshold)
Follow trends aggressively: Breakouts have high success rate
Use momentum strategies: Moving average crossovers work well
Wider stops: Expect larger swings
Pyramid into winners: Trends tend to persist
In Stable Regime (λ < threshold)
Fade extremes: Mean reversion dominates
Use oscillators: RSI, Stochastic work well
Tighter stops: Smaller expected moves
Scale out at targets: Trends don't persist
In Transition Zone
Reduce position size: Uncertainty is high
Wait for confirmation: Let regime establish
Use options: Volatility strategies may work
Monitor closely: Quick changes possible
Advanced Techniques
- Multi-Timeframe Analysis
- Higher timeframe LMI for regime context
- Lower timeframe for entry timing
- Alignment = highest probability trades
- Divergence Trading
- Most powerful at regime boundaries
- Combine with support/resistance
- Use for early reversal detection
- Volatility Correlation
- Chaos often precedes volatility expansion
- Stability often precedes volatility contraction
- Use for options strategies
Originality & Innovation
LMI represents a genuine breakthrough in applying chaos theory to markets:
True Lyapunov Calculation: Not a simplified proxy but actual phase space reconstruction and divergence measurement
Rothko Aesthetic: Transforms complex math into meditative visual experience
Regime Detection: Identifies market state changes before price makes them obvious
Practical Application: Clear, actionable signals from theoretical physics
This is not a combination of existing indicators or a visual makeover of standard tools. It's a fundamental rethinking of how we measure and visualize market dynamics.
Best Practices
Start with defaults: Parameters are optimized for broad market conditions
Match to your timeframe: Adjust tau and evolution steps
Confirm with price action: LMI shows regime, not direction
Use appropriate strategies: Chaos = trend, Stability = reversion
Respect transitions: Reduce risk during regime changes
Alerts Available
Chaos Entry: Market entering chaotic regime - prepare for trends
Stability Entry: Market entering stable regime - prepare for ranges
Bullish Divergence: Potential bottom forming
Bearish Divergence: Potential top forming
Chart Information
Script Name: Lyapunov Market Instability (LMI) Recommended Use: All markets, all timeframes Best Performance: Liquid markets with clear regimes
Academic References
Takens, F. (1981). "Detecting strange attractors in turbulence"
Wolf, A. et al. (1985). "Determining Lyapunov exponents from a time series"
Rosenstein, M. et al. (1993). "A practical method for calculating largest Lyapunov exponents"
Note: After completing this indicator, I discovered @loxx's 2022 "Lyapunov Hodrick-Prescott Oscillator w/ DSL". While both explore Lyapunov exponents, they represent independent implementations with different methodologies and applications. This indicator uses phase space reconstruction for regime detection, while his combines Lyapunov concepts with HP filtering.
Disclaimer
This indicator is for research and educational purposes only. It does not constitute financial advice or provide direct buy/sell signals. Chaos theory reveals market character, not future prices. Always use proper risk management and combine with your own analysis. Past performance does not guarantee future results.
See markets through the lens of chaos. Trade the regime, not the noise.
Bringing theoretical physics to practical trading through the meditative aesthetics of Mark Rothko
Trade with insight. Trade with anticipation.
— Dskyz , for DAFE Trading Systems
Malama's Candle Sniper Malama's Candle Sniper
This Pine Script is an overlay indicator crafted for TradingView to detect and highlight a variety of bullish and bearish candlestick patterns directly on the price chart. Its primary goal is to assist traders in identifying potential reversal or continuation signals by marking these patterns with labeled visual cues. The indicator is versatile, applicable across different markets (e.g., stocks, forex, cryptocurrencies) and timeframes, making it a valuable tool for enhancing technical analysis and informing trading decisions.
Originality and Usefulness
While the candlestick patterns detected by this script are well-established in technical analysis, "Malama's Candle Sniper" stands out due to its comprehensive nature. It consolidates the detection of numerous patterns—ranging from engulfing patterns to doji variations and multi-candle formations—into a single, unified indicator. This eliminates the need for traders to apply multiple individual indicators, streamlining their charting process and saving time.
The indicator’s usefulness lies in its ability to:
Provide Visual Clarity: Labels are plotted on the chart when patterns are detected, offering immediate recognition of potential trading opportunities.
Broad Pattern Coverage: It identifies both bullish and bearish patterns, accommodating various market conditions and trading strategies.
This makes it an ideal tool for traders who incorporate candlestick analysis into their decision-making, whether for spotting trend reversals or confirming ongoing momentum.
How It Works
"Malama's Candle Sniper" operates by defining helper functions in Pine Script that evaluate whether specific candlestick pattern conditions are met for the current bar. Each function returns a boolean value (true/false) based on predefined criteria involving the open, high, low, and close prices of the candles. The script then checks for transitions from false to true (i.e., a pattern newly appearing) and plots a corresponding label on the chart.
Bullish Patterns Detected
The script identifies the following bullish patterns, which typically signal potential upward price movements:
Bullish Engulfing: A small bearish candle followed by a larger bullish candle that engulfs it.
Three White Soldiers: Three consecutive bullish candles with higher closes.
Bullish Three Line Strike: Three bullish candles followed by a bearish candle that doesn’t negate the prior uptrend.
Three Inside Up: A bearish candle, a smaller bullish candle within its range, and a strong bullish confirmation candle.
Dragonfly Doji: A doji with a long lower wick and little to no upper wick, opening and closing near the high.
Piercing Line: A bearish candle followed by a bullish candle that opens below the prior low and closes above the midpoint of the prior candle.
Bullish Marubozu: A strong bullish candle with no upper or lower wicks.
Bullish Abandoned Baby: A bearish candle, a doji gapped below it, and a bullish candle gapped above the doji.
Rising Window: A gap up between two candles, with the current low above the prior high.
Hammer: A candle with a small body and a long lower wick, indicating rejection of lower prices.
Morning Star: A three-candle pattern with a bearish candle, a small-bodied middle candle, and a strong bullish candle.
Bearish Patterns Detected
The script also detects these bearish patterns, which often indicate potential downward price movements:
Bearish Engulfing: A small bullish candle followed by a larger bearish candle that engulfs it.
Three Black Crows: Three consecutive bearish candles with lower closes.
Bearish Three Line Strike: Three bearish candles followed by a bullish candle that doesn’t reverse the downtrend.
Three Inside Down: A bullish candle, a smaller bearish candle within its range, and a strong bearish confirmation candle.
Gravestone Doji: A doji with a long upper wick and little to no lower wick, opening and closing near the low.
Dark Cloud Cover: A bullish candle followed by a bearish candle that opens above the prior high and closes below the midpoint of the prior candle.
Bearish Marubozu: A strong bearish candle with no upper or lower wicks.
Bearish Abandoned Baby: A bullish candle, a doji gapped above it, and a bearish candle gapped below the doji.
Falling Window: A gap down between two candles, with the current high below the prior low.
Hanging Man: A candle with a small body and a long lower wick after an uptrend, signaling potential reversal.
Label Plotting
When a pattern is detected (i.e., its condition transitions from false to true):
Bullish Patterns: A label is plotted at the high of the bar, using a green background with white text and a downward-pointing style (e.g., "Bull Engulf" for Bullish Engulfing).
Bearish Patterns: A label is plotted at the low of the bar, using a red background with white text and an upward-pointing style (e.g., "Bear Engulf" for Bearish Engulfing).
This visual distinction helps traders quickly differentiate between bullish and bearish signals and their precise locations on the chart.
Strategy and Risk Management
Backtesting: "Malama's Candle Sniper" is strictly an indicator and does not include backtesting capabilities or automated trading signals. It does not simulate trades or provide performance statistics such as win rates or profit/loss metrics.
Risk Management: As an informational tool, it lacks built-in risk management features. Traders must independently implement strategies like stop-loss orders, take-profit levels, or position sizing to manage risk when acting on the detected patterns. For example, a trader might place a stop-loss below a Hammer pattern’s low or above a Hanging Man’s high to limit potential losses.
User Settings and Customization
Inputs: The script does not offer user-configurable inputs. All pattern detection logic is hardcoded, meaning traders cannot adjust parameters such as lookback periods or pattern sensitivity through the interface.
Customization: Advanced users with Pine Script knowledge can modify the code directly to:
Add or remove patterns.
Adjust the conditions (e.g., tweak the wick-to-body ratio for a Hammer).
Change label styles or colors.
However, the default version is fixed and ready-to-use as is.
Visualizations and Chart Setup
Plotted Elements:
Bullish Labels: Appear at the candle’s high with a green background, white text, and a downward-pointing arrow (e.g., "Hammer").
Bearish Labels: Appear at the candle’s low with a red background, white text, and an upward-pointing arrow (e.g., "Hanging Man").
Chart Setup: The indicator is configured as an overlay (overlay=true), meaning it integrates seamlessly with the price chart. Labels are displayed directly on the candlesticks, eliminating the need for a separate pane and keeping the focus on price action.
Usage Example
To use "Malama's Candle Sniper":
Add the indicator to your TradingView chart via the Indicators menu.
Observe the price chart for green (bullish) or red (bearish) labels as they appear.
Analyze the context of each pattern (e.g., trend direction, support/resistance levels) to decide on potential trades.
Apply your own entry, exit, and risk management rules based on the signals.
For instance, spotting a "Morning Star" label during a downtrend near a support level might prompt a trader to consider a long position, while a "Dark Cloud Cover" at resistance could signal a short opportunity.
Sentival | QuantEdgeBIntroducing Sentival by QuantEdgeB.
An Adaptive Multi-Factor Indicator for Market Valuation & Trend Strength
____
Overview
The Sentival Valuation System is a medium-term, multi-factor valuation tool designed to assess market conditions using a combination of momentum, mean reversion, and risk-adjusted metrics. It provides traders and investors with a dynamic score reflecting market valuation, ranging from strongly oversold to strongly overbought conditions.
This system leverages a diverse range of technical indicators, including momentum oscillators, volatility measures, risk ratios, and mean-reversion metrics, providing a holistic view of market conditions.
____
1. Key Features
🛠 Multi-Factor Valuation Model
Sentival aggregates nine different indicators, normalizing and rescaling them into a standardized z-score-based valuation system. The final output represents an average of the selected indicators, allowing for flexible customization based on the user’s preference.
📊 Customizable Indicator Selection
Users can enable or disable any of the nine valuation factors, ensuring the system adapts to different market environments, trading styles, and assets.
🔄 Multi-Timeframe Adaptability
Sentival can be used across different time horizons, making it suitable for short-term mean reversion, medium-term traders, or long-term valuation analysis by simply adjusting the timeframe and indicator settings. This flexibility allows traders to adapt Sentival to various market conditions and trading objectives.
🎨 Intuitive Dashboard & Color Coding
- Dynamic Heatmap & Dashboard: Displays valuation strength across multiple factors.
- Gradient-Based Overbought/Oversold Signals: Clear color-coded signals for easy interpretation.
- Background Highlighting: Optional oversold/overbought background zones.
🏆 Statistical & Risk-Based Insights
- Standardized Rescaling & Z-Score Analysis to prevent bias from individual indicators.
- Risk-Adjusted Metrics such as Sharpe, Sortino, and Omega Ratios help assess the overall market risk appetite.
- Trend Following Mode (TF Display): Users can enable the "Trend Following" option to display the trend direction, helping to align valuation signals with the broader market trend.
____
2. How It Works
Sentival is a multi-factor trend and momentum analysis system, designed to track market cycle shifts using a combination of volatility, momentum, risk assessment, and valuation mechanisms. Instead of focusing on one dimension of the market, Sentival integrates multiple methodologies to cross-validate signals and reduce noise. Each indicator in Sentival plays a specific role, ensuring confirmation across different market conditions.
How Each Component Works Together
1️⃣ Chande Momentum Oscillator (CMO)
• A momentum-based measure that determines whether price action is dominated by upward or downward forces.
• Works well in combination with volatility measures to confirm whether a move is sustainable.
2️⃣ Disparity Index
• Measures the distance between price and its moving average, acting as an overextension filter.
• Ensures that trend-following signals are not driven by short-term spikes but sustained trends.
3️⃣ Bollinger Bands % (BB%)
• A volatility measure that indicates how far price is from the statistical mean.
• Helps identify trend exhaustion points where price moves become unstable.
4️⃣ Relative Strength Index (RSI)
• A trend confirmation layer, ensuring that momentum strength aligns with price movement.
• Adds an additional check to prevent false breakouts.
5️⃣ Rate of Change (RoC)
• Captures the speed of price movement, ensuring that the market has enough momentum for trend continuation.
• Works well with risk indicators to filter weaker moves.
6️⃣ Price Z-Score
• A statistical tool to measure how far price is from its long-term equilibrium.
• Helps prevent entering overstretched trends too late.
7️⃣ Risk Ratios (Sharpe, Sortino, Omega)
• This is the risk-adjusted performance component, ensuring that trends have a healthy risk-reward balance.
• Helps determine when a trend has structurally strong backing rather than speculative movement.
8️⃣ Hurst Cycle Analysis
• Measures the persistence of trends by analyzing price fractals.
• Ensures that the market regime is either trending or mean-reverting, improving trade confidence.
9️⃣ Commodity Channel Index (CCI)
• Helps identify strong trend conditions, adding another layer of momentum confirmation.
• Works well with other oscillators to prevent misreading counter-trends.
🔗 Why These Components Work Well Together
• Momentum + Volatility + Risk → Instead of relying on a single category, Sentival merges multiple dimensions of market behavior into a cohesive signal.
• Filters Out False Signals → Combining momentum oscillators, volatility measures, and risk-adjusted metrics ensures high-confidence entries.
• Adaptability Across Market Regimes → Whether the market is trending, consolidating, or volatile, the system adjusts dynamically.
• Cross-Validation for Trend Strength → If multiple components align, it increases certainty that a trend is real and sustainable.
____
3. Sentival Scanner - table breakdown
The dashboard-style table generated is designed to give traders a holistic market view at a glance. It processes a variety of technical signals and distills them into readable labels, visual strength bars, and actionable trend states. Here's a breakdown of what each section means:
1. Direction
This section analyzes whether the average Z-score (a composite of several indicators) is increasing, decreasing, or neutral over time. It does this using a smoothed trend of the Z-score, comparing recent values to older ones.
2. Momentum
Momentum is derived from the rate of change (RoC) of the average Z-score. It evaluates how strong the current move is. If momentum is above a certain positive threshold, it’s considered positive, if below a negative threshold, it’s negative, otherwise it’s neutral.
3. Impulse
Impulse reflects the velocity of momentum — in other words, is the market speeding up or slowing down? High positive values suggest strong acceleration (strong impulse), while negative values show deceleration or stalling.
4. Drive
This metric combines momentum and velocity to create a descriptive phrase that captures the market’s behavior. For example:
• “Strong Upside” means strong momentum with acceleration.
• “Fading Downside” means bearish momentum losing steam.
• “Neutral” appears when momentum is indecisive.
5. Deviation Distance
This represents how far the market price is from fair value in terms of standard deviation units (σ). It’s calculated using Z-scores and classified as:
• +1σ, +2σ, etc., for overvalued regions.
• −1σ, −2σ, etc., for undervalued areas.
• “At Fair Value” if close to the mean.
6. Bull and Bear Strength Bars
The system computes both bullish and bearish strength, using distance from fair value, the rate of change, and the velocity. These strengths are displayed as progress bars, giving a quick visual cue of conviction. The table labels them as:
• “Bull Conviction” if there's a long bias.
• “Bull Potential” if bullish but undecided.
• “Bear Conviction” or “Bear Potential” for short-side equivalents.
7. Trend Signal
This is a simple label that tells you if the scanner recommends a Long, Short, or Cash (neutral) stance based on threshold logic. It is based on whether the average Z-score crosses above a long threshold or below a short one.
8. Stage
The “Stage” label summarizes the valuation environment based on the composite Z-score:
• Strong Undervalued
• Moderately Undervalued
• Fair Value
• Overvalued, etc.
This stage helps traders know whether they are operating in cheap or expensive territory statistically.
Summary
Overall, this table merges advanced technical signals like momentum, volatility, valuation, and risk into a digestible format that updates dynamically with each bar. The goal is to provide traders with a 360° perspective on market conditions, tailored for both trend-following and mean-reversion strategies.
___________
4. Sentival Valuation Score & Interpretation
🔹 Sentival Score Ranges
- 📉 Strongly Oversold (-2 and below) → Market is extremely undervalued; potential reversal.
- 📉 Moderately Oversold (-1.5 to -2) → Discounted market conditions, buying interest may emerge.
- 📉 Slightly Oversold (-0.5 to -1.5) → Possible accumulation phase.
- ⚖ Fair Value (-0.5 to +0.5) → Market trading at equilibrium.
- 📈 Slightly Overbought (+0.5 to +1.5) → Initial signs of market strength.
- 📈 Moderately Overbought (+1.5 to +2) → Market heating up, caution warranted, selling interest may emerge.
- 📈 Strongly Overbought (+2 and above) → Extreme valuation, increased risk of correction.
This classification helps traders gauge overall market sentiment and make better allocation decisions.
Note: Past valuations and buy/sell signals generated by Sentival do not guarantee future performance. Market conditions can change, and proper risk management should always be applied.
____
5. Use Cases & Applications
🔹 📊 Market Rotation & Asset Allocation
- Used as a valuation model to determine if a market or asset is undervalued or overvalued.
- Rotational strategies can benefit from the valuation score by switching exposure between assets.
🔹 📈 Medium-Term Trend Identification
- Detects overbought and oversold conditions while filtering out short-term noise.
- Can be combined with other trend-following indicators for confluence-based strategies.
🔹 🔄 Mean Reversion & Momentum Trading
- Provides statistical validation for momentum breakouts or mean reversion signals.
- Useful for long-short trading strategies, determining optimal entry & exit points.
____
Conclusion
Sentival is a powerful universal valuation system for traders and investors seeking a data-driven, multi-factor approach to market valuation. With its combination of momentum, trend, risk-adjusted, and mean-reversion indicators, it provides a robust, adaptable, and statistically sound framework for making informed market decisions.
🔹 Who Should Use Sentival?
✅ Swing Traders & Medium-Term Investors looking for structured valuation metrics.
✅ Quantitative & Systematic Traders incorporating multi-factor models.
✅ Portfolio Managers optimizing exposure to different market regimes.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
0x278's Swing-Failure-Pattern (SFP)0x278's Swing-Failure-Pattern (SFP) ‑ Confirmed Short
Table of Contents
Introduction
Core Concept – What Is an SFP?
How the Indicator Works
Visual Elements & Their Meaning
Input Parameters Explained
Step-by-Step Trading Playbook
Example Workflow (Daily BTC-USDT)
Alerts & Automation
Tips, Tricks & Best Practices
FAQ
Advanced Configuration & Asset-Class Playbook
1. Introduction
The Swing-Failure-Pattern (SFP) – Confirmed Short indicator spots and tracks bearish SFPs on any market and timeframe, with defaults tuned for Daily charts.
A bearish SFP occurs when price sweeps a prior swing high (liquidity grab) and then decisively rejects lower , signalling a possible trend reversal or sharp pullback.
This script automatically:
Identifies the liquidity sweep & rejection (‐"SFP-SHORT" label)
Confirms directional intent via a structure-breaking close below the setup low
Paints a preferred sell-on-retest zone and tracks its validity
Identifies optimal entry opportunities when price retests the zone
Generates optional retest and entry alerts when trading conditions appear
Self-cleans after a configurable number of bars – keeping your chart tidy
Default Timeframe : Daily
Default Market : Crypto / FX majors
Works On : All symbols + timeframes – simply adjust parameters.
2. Core Concept – What Is an SFP?
Sweep (Liquidity Grab) – Price trades above a meaningful swing high, triggering stops & inducing breakout buyers.
Rejection – The same bar (or the next) closes back below the swept high, invalidating the breakout.
Structure Break – Bears confirm intent by closing below the "setup low" (the most recent pivot low before the sweep).
Retest – Price retraces to the sweep zone. Traders seek entries inside the upper half of that zone with invalidation just above the swing high.
The indicator encodes these four steps so you can spot high-quality bearish reversals without manual bar-by-bar analysis.
3. How the Indicator Works
Phase: Sweep & Rejection
Script Logic: high > lastSwingHigh and close < lastSwingHigh
Visual Cue: Red SFP-SHORT label above candle
Phase: Structure Break
Script Logic: Close < setupLow while pattern locked
Visual Cue: Zone (red line-box) plotted; SFP-SHORT label stays
Phase: Retest Tracking
Script Logic: Zone stays active for retestExpiry bars or until tapped
Visual Cue: Orange SFP-RETEST label when hit
Phase: Entry Signal
Script Logic: Price rejection within retest zone
Visual Cue: Green ENTRY label at optimal entry point
Phase: Expiry / Cleanup
Script Logic: Zone deleted after expiry
Visual Cue: Labels fade but remain visible for reference
All calculations reset after each completed/expired pattern ensuring fresh, uncluttered signals.
4. Visual Elements & Their Meaning
SFP-SHORT (red) – Bar that swept a prior high and closed below it.
Red Box / Line – Preferred sell zone between the swing high (upper bound) and dynamic lower bound (see sizing methods). Extends right until filled/expired.
SFP-RETEST (orange) – Bar that first tags the zone after confirmation.
ENTRY (green) – Appears when a high-probability entry signal occurs within the retest zone.
EXPIRED (gray) – Appears when the retest zone expires without being hit.
Visual Persistence – Labels fade but remain visible after expiry for reference and historical analysis.
5. Input Parameters Explained
Pivot Detection
Pivot left / right : Bars left/right of the pivot that must stay below/above it. Tip : Symmetrical values (3/3) work best for clean structure.
Retest Management
Retest expiry (bars) : Lifespan of a retest zone before it is considered stale. Default: 14 bars on Daily . Tip : Shorten for intraday, lengthen for swing trading.
Retest Zone Sizing
Sizing method : Select Static %, ATR-based or Hybrid logic for the lower boundary. Tip : Hybrid balances tight stops with realistic fills.
Static % : Fixed fraction of sweep range when Static/Hybrid is selected. Tip : Higher % deepens zone & widens stop.
ATR period : Look-back length for ATR when volatility sizing is used. Tip : Increase to smooth choppy markets.
ATR multiplier : Multiplier applied to ATR in ATR-based/Hybrid mode. Tip : Higher value widens zone during volatility.
Visual – Retest Zone
Show retest zone box : Toggles drawing of the semi-transparent sell zone box. Tip : Disable for ultra-clean look.
Retest box color : Fill colour of the box (alpha = transparency). Tip : Match your chart theme.
Max retest boxes : How many historical boxes remain visible (0 = unlimited). Tip : Lower to boost performance.
Only show active boxes : Automatically deletes a box once it's hit. Tip : Reduces clutter during back-testing.
Visual – General
Minimal mode : Hides most visuals apart from critical labels. Tip : Ideal for screenshots.
Show retest zone line : Draws a vertical line linking upper/lower boundaries. Tip : Acts as a quick depth guide.
Show ENTRY labels : Plots 'ENTRY' on optimal candles. Tip : Turn off for manual confirmation.
Labels
Label size : Overall size of all labels. Tip : tiny / small / normal.
Use simple label style : Switches to pixel text style for labels. Tip : Faster rendering on low-spec machines.
Advanced
minPct / maxPct (hard-coded) : Internal floor/cap for Hybrid logic. Tip : Exposed in code for power-users only.
Zone-Sizing Methods
Static – Lower bound = sweepRange × staticPct.
ATR-based – Lower bound = ATR × multiplier, normalised to the sweepRange.
Hybrid – Uses the greater of Static and ATR-based (capped by an internal safety ceiling).
6. Step-by-Step Trading Playbook
Identify Context – Prefer setups against extended moves into obvious highs (e.g., daily swing highs, prior week high, round numbers).
Wait for SFP Confirmation – The indicator will label an SFP-SHORT only after the candle closes. Do not front-run.
Structure-Break Close – A close below setupLow turns the zone live. This is your go signal – prepare sell orders.
Place Orders in the Zone
Entry : Limit order anywhere between retestLower and the swing high.
Stop : 1-2 ticks/pips above the swing high.
Risk Management
Size position so risk per trade ≤ account risk % (common: 0.5-1%).
If no retest before retestExpiry bars → cancel order .
Targets
Conservative: First liquidity pocket / FVG below.
Aggressive: 2-3× risk or next HTF support.
Trail or Partial – Consider trailing stop once 1R is achieved or partial profit at 1R.
7. Example Workflow (Daily BTC-USDT)
BTC trades to a fresh one-month high at $31 050 sweeping prior highs.
Candle closes at $30 420 – below the swept high – SFP-SHORT label appears.
Two days later, candle closes below setupLow at $29 880 – confirmation & zone plotted (upper = $31 050, lower ≈ $30 550).
Five days later price retests the zone hitting $30 750 – SFP-RETEST alert fires, trade filled.
Stop placed @ $31 120 (70$ risk). 1R target = $29 680 reached four days later.
8. Alerts & Automation
SFP Short confirmed
Fires When: Structure-break close below setupLow.
Suggested Action: Prepare/submit sell-limit order in the zone.
SFP Short retest
Fires When: Price enters the retest zone.
Suggested Action: Monitor for entry signals or prepare for manual entry.
SFP Short Entry Signal
Fires When: Optimal entry conditions detected within retest zone.
Suggested Action: Execute short trade with defined risk parameters.
Use TradingView's Webhook URL to forward alerts to a trade-execution bot (e.g., PineConnector) for automated order placement.
9. Tips, Tricks & Best Practices
Combine with HTF Bias – Only take bearish SFPs in bearish weekly trend.
Watch Volume – High volume on the sweep bar adds conviction.
Time Window – SFPs during NY session FX / US session crypto tend to be stronger.
Cluster Zones – Multiple overlapping SFP zones increase probability; treat the cluster as one larger supply.
Avoid News – Skip SFPs forming minutes before high-impact macro news.
10. FAQ
Q: Can I use this on lower timeframes?
A: Yes – reduce retestExpiry (e.g., 15 bars on 15-minute) and test ATR-based sizing.
Q: Does it work for longs?
A: This script focuses on bearish SFPs. Clone & invert conditions for longs.
Q: Why did a zone disappear?
A: Either it expired (retestExpiry) without a retest or the cleanup routine removed old visuals to stay within Pine limits (500 objects per type).
Q: What's the difference between the "SFP-RETEST" and "ENTRY" signals?
A: "SFP-RETEST" indicates price has entered the zone, while "ENTRY" signals an optimal entry opportunity based on price rejection within the zone.
Q: How do I customize the label appearance?
A: Use the "Label size" and "Use simple label style" settings to adjust all labels to your preferred visual style.
Happy trading & trade safe!
11. Advanced Configuration & Asset-Class Playbook
Why does the retest box feel "too high" and how do I actually get filled? Use the quick tweaks below or the power-user code snippet to shape the zone to your personality and instrument.
11.1 Why the default box is shallow
The Static 25 % / ATR-Hybrid logic keeps stops small. Around 50 % of Daily BTC SFPs never look back – that's the cost of tight risk. If you need higher fill-rates, deepen the zone (11.2).
11.2 Three slider moves – no coding required
Retest zone sizing method – switch Static → Hybrid or ATR-based
Static % – raise from 0.25 → 0.45-0.60
ATR multiplier – raise from 1.0 → 1.5-2.0
Each turn pulls the lower edge of the box deeper while keeping the invalidation at the swing high.
11.3 One-liner for coders
To allow >60 % of the sweep range edit the source:
Old code:
minPct = 0.05
maxPct = 0.60
New code:
minPct = 0.05
maxPct = input.float(0.60, "Max retest % of sweep", step = 0.05, minval = 0.10, maxval = 0.95)
Then dial the cap up to ~0.80-0.90 from the settings panel.
11.4 If price never comes back…
No-retest partial – take 25-40 % size on the confirmation candle, stop above the high.
Lower-TF confirmation – drop to 4 h / 1 h and hunt an internal SFP or bearish FVG inside the sweep.
ATR trail – if price dumps immediately, trail the stop above each new lower-high.
11.5 Asset-Class Cheat-Sheet
Crypto – Daily : Static %: 0.20-0.35, ATR mult: 1.0, Retest Expiry: 12-20 . Notes : High volatility; sweeps expand fast.
FX Majors – 4 h/D : Static %: 0.25-0.40, ATR mult: 1.2, Retest Expiry: 15-25 . Notes : ATR handles session compression.
Index Futures – 1 h : Static %: 0.30-0.50, ATR mult: 1.5, Retest Expiry: 10-20 . Notes : Hybrid recommended; gaps tighten sweeps.
US Equities – 30 m : Static %: 0.35-0.55, ATR mult: 1.5-2.0, Retest Expiry: 10-14 . Notes : Consider no-retest entry on earnings spikes.
Always forward-test on your own symbol & timeframe ✔️
Ultimate Scalping Tool[BullByte]Overview
The Ultimate Scalping Tool is an open-source TradingView indicator built for scalpers and short-term traders released under the Mozilla Public License 2.0. It uses a custom Quantum Flux Candle (QFC) oscillator to combine multiple market forces into one visual signal. In plain terms, the script reads momentum, trend strength, volatility, and volume together and plots a special “candlestick” each bar (the QFC) that reflects the overall market bias. This unified view makes it easier to spot entries and exits: the tool labels signals as Strong Buy/Sell, Pullback (a brief retracement in a trend), Early Entry, or Exit Warning . It also provides color-coded alerts and a small dashboard of metrics. In practice, traders see green/red oscillator bars and symbols on the chart when conditions align, helping them scalp or trend-follow without reading multiple separate indicators.
Core Components
Quantum Flux Candle (QFC) Construction
The QFC is the heart of the indicator. Rather than using raw price, it creates a candlestick-like bar from the underlying oscillator values. Each QFC bar has an “open,” “high/low,” and “close” derived from calculated momentum and volatility inputs for that period . In effect, this turns the oscillator into intuitive candle patterns so traders can recognize momentum shifts visually. (For comparison, note that Heikin-Ashi candles “have a smoother look because take an average of the movement”. The QFC instead represents exact oscillator readings, so it reflects true momentum changes without hiding price action.) Colors of QFC bars change dynamically (e.g. green for bullish momentum, red for bearish) to highlight shifts. This is the first open-source QFC oscillator that dynamically weights four non-correlated indicators with moving thresholds, which makes it a unique indicator on its own.
Oscillator Normalization & Adaptive Weights
The script normalizes its oscillator to a fixed scale (for example, a 0–100 range much like the RSI) so that various inputs can be compared fairly. It then applies adaptive weighting: the relative influence of trend, momentum, volatility or volume signals is automatically adjusted based on current market conditions. For instance, in very volatile markets the script might weight volatility more heavily, or in a strong trend it might give extra weight to trend direction. Normalizing data and adjusting weights helps keep the QFC sensitive but stable (normalization ensures all inputs fit a common scale).
Trend/Momentum/Volume/Volatility Fusion
Unlike a typical single-factor oscillator, the QFC oscillator fuses four aspects at once. It may compute, for example, a trend indicator (such as an ADX or moving average slope), a momentum measure (like RSI or Rate-of-Change), a volume-based pressure (similar to MFI/OBV), and a volatility measure (like ATR) . These different values are combined into one composite oscillator. This “multi-dimensional” approach follows best practices of using non-correlated indicators (trend, momentum, volume, volatility) for confirmation. By encoding all these signals in one line, a high QFC reading means that trend, momentum, and volume are all aligned, whereas a neutral reading might mean mixed conditions. This gives traders a comprehensive picture of market strength.
Signal Classification
The script interprets the QFC oscillator to label trades. For example:
• Strong Buy/Sell : Triggered when the oscillator crosses a high-confidence threshold (e.g. breaks clearly above zero with strong slope), indicating a well-confirmed move. This is like seeing a big green/red QFC candle aligned with the trend.
• Pullbacks : Identified when the trend is up but momentum dips briefly. A Pullback Buy appears if the overall trend is bullish but the oscillator has a short retracement – a typical buying opportunity in an uptrend. (A pullback is “a brief decline or pause in a generally upward price trend”.)
• Early Buy/Sell : Marks an initial swing in the oscillator suggesting a possible new trend, before it is fully confirmed. It’s a hint of momentum building (an early-warning signal), not as strong as the confirmed “Strong” signal.
• Exit Warnings : Issued when momentum peaks or reverses. For instance, if the QFC bars reach a high and start turning red/green opposite, the indicator warns that the move may be ending. In other words, a Momentum Peak is the point of maximum strength after which weakness may follow.
These categories correspond to typical trading concepts: Pullback (temporary reversal in an uptrend), Early Buy (an initial bullish cross), Strong Buy (confirmed bullish momentum), and Momentum Peak (peak oscillator value suggesting exhaustion).
Filters (DI Reversal, Dynamic Thresholds, HTF EMA/ADX)
Extra filters help avoid bad trades. A DI Reversal filter uses the +DI/–DI lines (from the ADX system) to require that the trend direction confirms the signal . For example, it might ignore a buy signal if the +DI is still below –DI. Dynamic Thresholds adjust signal levels on-the-fly: rather than fixed “overbought” lines, they move with volatility so signals happen under appropriate market stress. An optional High-Timeframe EMA or ADX filter adds a check against a larger timeframe trend: for instance, only taking a trade if price is above the weekly EMA or if weekly ADX shows a strong trend. (Notably, the ADX is “a technical indicator used by traders to determine the strength of a price trend”, so requiring a high-timeframe ADX avoids trading against the bigger trend.)
Dashboard Metrics & Color Logic
The Dashboard in the Ultimate Scalping Tool (UST) serves as a centralized information hub, providing traders with real-time insights into market conditions, trend strength, momentum, volume pressure, and trade signals. It is highly customizable, allowing users to adjust its appearance and content based on their preferences.
1. Dashboard Layout & Customization
Short vs. Extended Mode : Users can toggle between a compact view (9 rows) and an extended view (13 rows) via the `Short Dashboard` input.
Text Size Options : The dashboard supports three text sizes— Tiny, Small, and Normal —adjustable via the `Dashboard Text Size` input.
Positioning : The dashboard is positioned in the top-right corner by default but can be moved if modified in the script.
2. Key Metrics Displayed
The dashboard presents critical trading metrics in a structured table format:
Trend (TF) : Indicates the current trend direction (Strong Bullish, Moderate Bullish, Sideways, Moderate Bearish, Strong Bearish) based on normalized trend strength (normTrend) .
Momentum (TF) : Displays momentum status (Strong Bullish/Bearish or Neutral) derived from the oscillator's position relative to dynamic thresholds.
Volume (CMF) : Shows buying/selling pressure levels (Very High Buying, High Selling, Neutral, etc.) based on the Chaikin Money Flow (CMF) indicator.
Basic & Advanced Signals:
Basic Signal : Provides simple trade signals (Strong Buy, Strong Sell, Pullback Buy, Pullback Sell, No Trade).
Advanced Signal : Offers nuanced signals (Early Buy/Sell, Momentum Peak, Weakening Momentum, etc.) with color-coded alerts.
RSI : Displays the Relative Strength Index (RSI) value, colored based on overbought (>70), oversold (<30), or neutral conditions.
HTF Filter : Indicates the higher timeframe trend status (Bullish, Bearish, Neutral) when using the Leading HTF Filter.
VWAP : Shows the V olume-Weighted Average Price and whether the current price is above (bullish) or below (bearish) it.
ADX : Displays the Average Directional Index (ADX) value, with color highlighting whether it is rising (green) or falling (red).
Market Mode : Shows the selected market type (Crypto, Stocks, Options, Forex, Custom).
Regime : Indicates volatility conditions (High, Low, Moderate) based on the **ATR ratio**.
3. Filters Status Panel
A secondary panel displays the status of active filters, helping traders quickly assess which conditions are influencing signals:
- DI Reversal Filter: On/Off (confirms reversals before generating signals).
- Dynamic Thresholds: On/Off (adjusts buy/sell thresholds based on volatility).
- Adaptive Weighting: On/Off (auto-adjusts oscillator weights for trend/momentum/volatility).
- Early Signal: On/Off (enables early momentum-based signals).
- Leading HTF Filter: On/Off (applies higher timeframe trend confirmation).
4. Visual Enhancements
Color-Coded Cells : Each metric is color-coded (green for bullish, red for bearish, gray for neutral) for quick interpretation.
Dynamic Background : The dashboard background adapts to market conditions (bullish/bearish/neutral) based on ADX and DI trends.
Customizable Reference Lines : Users can enable/disable fixed reference lines for the oscillator.
How It(QFC) Differs from Traditional Indicators
Quantum Flux Candle (QFC) Versus Heikin-Ashi
Heikin-Ashi candles smooth price by averaging (HA’s open/close use averages) so they show trend clearly but hide true price (the current HA bar’s close is not the real price). QFC candles are different: they are oscillator values, not price averages . A Heikin-Ashi chart “has a smoother look because it is essentially taking an average of the movement”, which can cause lag. The QFC instead shows the raw combined momentum each bar, allowing faster recognition of shifts. In short, HA is a smoothed price chart; QFC is a momentum-based chart.
Versus Standard Oscillators
Common oscillators like RSI or MACD use fixed formulas on price (or price+volume). For example, RSI “compares gains and losses and normalizes this value on a scale from 0 to 100”, reflecting pure price momentum. MFI is similar but adds volume. These indicators each show one dimension: momentum or volume. The Ultimate Scalping Tool’s QFC goes further by integrating trend strength and volatility too. In practice, this means a move that looks strong on RSI might be downplayed by low volume or weak trend in QFC. As one source notes, using multiple non-correlated indicators (trend, momentum, volume, volatility) provides a more complete market picture. The QFC’s multi-factor fusion is unique – it is effectively a multi-dimensional oscillator rather than a traditional single-input one.
Signal Style
Traditional oscillators often use crossovers (RSI crossing 50) or fixed zones (MACD above zero) for signals. The Ultimate Scalping Tool’s signals are custom-classified: it explicitly labels pullbacks, early entries, and strong moves. These terms go beyond a typical indicator’s generic “buy”/“sell.” In other words, it packages a strategy around the oscillator, which traders can backtest or observe without reading code.
Key Term Definitions
• Pullback : A short-term dip or consolidation in an uptrend. In this script, a Pullback Buy appears when price is generally rising but shows a brief retracement. (As defined by Investopedia, a pullback is “a brief decline or pause in a generally upward price trend”.)
• Early Buy/Sell : An initial or tentative entry signal. It means the oscillator first starts turning positive (or negative) before a full trend has developed. It’s an early indication that a trend might be starting.
• Strong Buy/Sell : A confident entry signal when multiple conditions align. This label is used when momentum is already strong and confirmed by trend/volume filters, offering a higher-probability trade.
• Momentum Peak : The point where bullish (or bearish) momentum reaches its maximum before weakening. When the oscillator value stops rising (or falling) and begins to reverse, the script flags it as a peak – signaling that the current move could be overextended.
What is the Flux MA?
The Flux MA (Moving Average) is an Exponential Moving Average (EMA) applied to a normalized oscillator, referred to as FM . Its purpose is to smooth out the fluctuations of the oscillator, providing a clearer picture of the underlying trend direction and strength. Think of it as a dynamic baseline that the oscillator moves above or below, helping you determine whether the market is trending bullish or bearish.
How it’s calculated (Flux MA):
1.The oscillator is normalized (scaled to a range, typically between 0 and 1, using a default scale factor of 100.0).
2.An EMA is applied to this normalized value (FM) over a user-defined period (default is 10 periods).
3.The result is rescaled back to the oscillator’s original range for plotting.
Why it matters : The Flux MA acts like a support or resistance level for the oscillator, making it easier to spot trend shifts.
Color of the Flux Candle
The Quantum Flux Candle visualizes the normalized oscillator (FM) as candlesticks, with colors that indicate specific market conditions based on the relationship between the FM and the Flux MA. Here’s what each color means:
• Green : The FM is above the Flux MA, signaling bullish momentum. This suggests the market is trending upward.
• Red : The FM is below the Flux MA, signaling bearish momentum. This suggests the market is trending downward.
• Yellow : Indicates strong buy conditions (e.g., a "Strong Buy" signal combined with a positive trend). This is a high-confidence signal to go long.
• Purple : Indicates strong sell conditions (e.g., a "Strong Sell" signal combined with a negative trend). This is a high-confidence signal to go short.
The candle mode shows the oscillator’s open, high, low, and close values for each period, similar to price candlesticks, but it’s the color that provides the quick visual cue for trading decisions.
How to Trade the Flux MA with Respect to the Candle
Trading with the Flux MA and Quantum Flux Candle involves using the MA as a trend indicator and the candle colors as entry and exit signals. Here’s a step-by-step guide:
1. Identify the Trend Direction
• Bullish Trend : The Flux Candle is green and positioned above the Flux MA. This indicates upward momentum.
• Bearish Trend : The Flux Candle is red and positioned below the Flux MA. This indicates downward momentum.
The Flux MA serves as the reference line—candles above it suggest buying pressure, while candles below it suggest selling pressure.
2. Interpret Candle Colors for Trade Signals
• Green Candle : General bullish momentum. Consider entering or holding a long position.
• Red Candle : General bearish momentum. Consider entering or holding a short position.
• Yellow Candle : A strong buy signal. This is an ideal time to enter a long trade.
• Purple Candle : A strong sell signal. This is an ideal time to enter a short trade.
3. Enter Trades Based on Crossovers and Colors
• Long Entry : Enter a buy position when the Flux Candle turns green and crosses above the Flux MA. If it turns yellow, this is an even stronger signal to go long.
• Short Entry : Enter a sell position when the Flux Candle turns red and crosses below the Flux MA. If it turns purple, this is an even stronger signal to go short.
4. Exit Trades
• Exit Long : Close your buy position when the Flux Candle turns red or crosses below the Flux MA, indicating the bullish trend may be reversing.
• Exit Short : Close your sell position when the Flux Candle turns green or crosses above the Flux MA, indicating the bearish trend may be reversing.
•You might also exit a long trade if the candle changes from yellow to green (weakening strong buy signal) or a short trade from purple to red (weakening strong sell signal).
5. Use Additional Confirmation
To avoid false signals, combine the Flux MA and candle signals with other indicators or dashboard metrics (e.g., trend strength, momentum, or volume pressure). For example:
•A yellow candle with a " Strong Bullish " trend and high buying volume is a robust long signal.
•A red candle with a " Moderate Bearish " trend and neutral momentum might need more confirmation before shorting.
Practical Example
Imagine you’re scalping a cryptocurrency:
• Long Trade : The Flux Candle turns yellow and is above the Flux MA, with the dashboard showing "Strong Buy" and high buying volume. You enter a long position. You exit when the candle turns red and dips below the Flux MA.
• Short Trade : The Flux Candle turns purple and crosses below the Flux MA, with a "Strong Sell" signal on the dashboard. You enter a short position. You exit when the candle turns green and crosses above the Flux MA.
Market Presets and Adaptation
This indicator is designed to work on any market with candlestick price data (stocks, crypto, forex, indices, etc.). To handle different behavior, it provides presets for major asset classes. Selecting a “Stocks,” “Crypto,” “Forex,” or “Options” preset automatically loads a set of parameter values optimized for that market . For example, a crypto preset might use a shorter lookback or higher sensitivity to account for crypto’s high volatility, while a stocks preset might use slightly longer smoothing since stocks often trend more slowly. In practice, this means the same core QFC logic applies across markets, but the thresholds and smoothing adjust so signals remain relevant for each asset type.
Usage Guidelines
• Recommended Timeframes : Optimized for 1 minute to 15 minute intraday charts. Can also be used on higher timeframes for short term swings.
• Market Types : Select “Crypto,” “Stocks,” “Forex,” or “Options” to auto tune periods, thresholds and weights. Use “Custom” to manually adjust all inputs.
• Interpreting Signals : Always confirm a signal by checking that trend, volume, and VWAP agree on the dashboard. A green “Strong Buy” arrow with green trend, green volume, and price > VWAP is highest probability.
• Adjusting Sensitivity : To reduce false signals in fast markets, enable DI Reversal Confirmation and Dynamic Thresholds. For more frequent entries in trending environments, enable Early Entry Trigger.
• Risk Management : This tool does not plot stop loss or take profit levels. Users should define their own risk parameters based on support/resistance or volatility bands.
Background Shading
To give you an at-a-glance sense of market regime without reading numbers, the indicator automatically tints the chart background in three modes—neutral, bullish and bearish—with two levels of intensity (light vs. dark):
Neutral (Gray)
When ADX is below 20 the market is considered “no trend” or too weak to trade. The background fills with a light gray (high transparency) so you know to sit on your hands.
Bullish (Green)
As soon as ADX rises above 20 and +DI exceeds –DI, the background turns a semi-transparent green, signaling an emerging uptrend. When ADX climbs above 30 (strong trend), the green becomes more opaque—reminding you that trend-following signals (Strong Buy, Pullback) carry extra weight.
Bearish (Red)
Similarly, if –DI exceeds +DI with ADX >20, you get a light red tint for a developing downtrend, and a darker, more solid red once ADX surpasses 30.
By dynamically varying both hue (green vs. red vs. gray) and opacity (light vs. dark), the background instantly communicates trend strength and direction—so you always know whether to favor breakout-style entries (in a strong trend) or stay flat during choppy, low-ADX conditions.
The setup shown in the above chart snapshot is BTCUSD 15 min chart : Binance for reference.
Disclaimer
No indicator guarantees profits. Backtest or paper trade this tool to understand its behavior in your market. Always use proper position sizing and stop loss orders.
Good luck!
- BullByte
Volume-Weighted Price MovementThe Volume-Weighted Price Movement (VWPM) indicator is an easy to read technical analysis tool that analyses how volume and price movement work together to drive market momentum.
How It Works
The VWPM indicator tracks two primary components:
Bullish Movement (green line): Measures the upward price movement weighted by volume. When price closes above the open, this component calculates how much buying pressure exists by multiplying the price change (close - open) by the volume of that period.
Bearish Movement (red line): Measures the downward price movement weighted by volume. When price closes below the open, this component calculates how much selling pressure exists by multiplying the price change (open - close) by the volume of that period.
Bull-Bear Difference (lime/orange line): Shows the net momentum by subtracting bearish movement from bullish movement, providing an at-a-glance view of which force is dominant.
The VWPM integrates volume data to identify whether price movements are backed by significant participation. A large price move with low volume carries less weight than the same move with high volume, providing a more accurate reflection of market strength.
A shorter lookback period makes the indicator more responsive to recent price action, while a longer period smooths out market noise for trend identification.
Interpretation
Bullish Signals
When the green line (bull movement) rises and stays above the red line
When the Bull-Bear Difference line crosses above zero and maintains positive momentum
Divergence between price making lower lows but the bull line making higher lows (hidden strength)
Bearish Signals
When the red line (bear movement) rises and stays above the green line
When the Bull-Bear Difference line crosses below zero and maintains negative momentum
Divergence between price making higher highs but the bull line making lower highs (hidden weakness)
open source, if anyone makes the script better please let me know :)
Trend Finder Using Pull Back Method {Darkoexe}This indicator predicts trends using pull backs structure to predict the trend direction. It builds off the flag pattern concept but it uses precise precise measurements to determine trend direction.
A pull back occurs every time the price direction switches then closes either below or above the open of the previous candle depending on the type of pull back, bullish or bearish.
For an up trend to be a defined, when a bullish pull back occurs and does not go below the previous low, if the price then passes above the start of the pull back, an up trend signal will be printed. Only bullish pull backs will be displayed during an up trend.
For a down trend to be defined, when a bearish pull back occurs and does not go above the previous high, if the price then passes below the start of the pull back, a down trend signal will be printed. Only bearish pull backs will be displayed during a down trend.
If the conditions for an up trend or down trend are not met, no trend will be printed. Both bearish and bullish pull backs will be displayed during a no trend.
All the labels colors can be changed.
//Darkoexe
Dynamic Volatility EnvelopeDynamic Volatility Envelope: Indicator Overview
The Dynamic Volatility Envelope is an advanced, multi-faceted technical indicator designed to provide a comprehensive view of market trends, volatility, and potential future price movements. It centers around a customizable linear regression line, enveloped by dynamically adjusting volatility bands. The indicator offers rich visual feedback through gradient coloring, candle heatmaps, a background volatility pulse, and an on-chart trend strength meter.
Core Calculation Mechanism
Linear Regression Core :
-A central linear regression line is calculated based on a user-defined source (e.g., close, hl2) and lookback period.
-The regression line can be optionally smoothed using an Exponential Moving Average (EMA) to reduce noise.
-The slope of this regression line is continuously calculated to determine the current trend direction and strength.
Volatility Channel :
-Dynamic bands are plotted above and below a central basis line. This basis is typically the calculated regression line but shifts to an EMA in Keltner mode.
-The width of these bands is determined by market volatility, using one of three user-selectable modes:
ATR Mode : Bandwidth is a multiple of the Average True Range (ATR).
Standard Deviation Mode : Bandwidth is a multiple of the Standard Deviation of the source data.
Keltner Mode (EMA-based ATR) : ATR-based bands are plotted around a central Keltner EMA line, offering a smoother channel.
The channel helps identify dynamic support and resistance levels and assess market volatility.
Future Projection :
The indicator can project the current regression line and its associated volatility bands into the future for a user-defined number of bars. This provides a visual guide for potential future price pathways based on current trend and volatility characteristics.
Candle Heatmap Coloring :
-Candle bodies and/or wicks/borders can be colored based on the price's position within the upper and lower volatility bands.
-Colors transition in a gradient from bearish (when price is near the lower band) through neutral (mid-channel) to bullish (when price is near the upper band), providing an intuitive visual cue of price action relative to the dynamic envelope.
Background Volatility Pulse :
The chart background color can be set to dynamically shift based on a ratio of short-term to long-term ATR. This creates a "pulse" effect, where the background subtly changes color to indicate rising or falling market volatility.
Trend Strength Meter :
An on-chart text label displays the current trend status (e.g., "Strong Bullish", "Neutral", "Bearish") based on the calculated slope of the regression line relative to user-defined thresholds for normal and strong trends.
Key Features & Components
-Dynamic Linear Regression Line: Core trend indicator with optional smoothing and slope-based gradient coloring.
-Multi-Mode Volatility Channel: Choose between ATR, Standard Deviation, or Keltner (EMA-based ATR) calculations for band width.
-Customizable Vertical Gradient Channel Fills: Visually distinct fills for upper and lower channel segments with user-defined top/bottom colors and gradient spread.
-Future Projection: Extrapolates regression line and volatility bands to forecast potential price paths.
-Price-Action Based Candle Heatmap: Intuitive candle coloring based on position within the volatility channel, with adjustable gradient midpoint.
-Volatility-Reactive Background Gradient: Subtle background color shifts to reflect changes in market volatility.
-On-Chart Trend Strength Meter: Clear textual display of current trend direction and strength.
-Extensive Visual Customization: Fine-tune colors, line styles, widths, and gradient aggressiveness for most visual elements.
-Comprehensive Tooltips: Detailed explanations for every input setting, ensuring ease of use and understanding.
Visual Elements Explained
Regression Line : The primary trend line. Its color dynamically changes (e.g., green for uptrend, red-pink for downtrend, neutral for flat) based on its slope, with smooth gradient transitions.
Volatility Channel :
Upper & Lower Bands : These lines form the outer boundaries of the envelope, acting as dynamic support and resistance levels.
Channel Fill : The area between the band center and the outer bands is filled with a vertical gradient. For example, the upper band fill might transition from a darker green near the center to a lighter green at the upper band.
Band Borders : The lines outlining the upper and lower bands, with customizable color and width.
Future Projection Lines & Fill :
Projected Regression Line : An extension of the current regression line into the future, typically styled differently (e.g., dashed).
Projected Channel Bands : Extensions of the upper and lower volatility bands.
Projected Area Fill : A semi-transparent fill between the projected upper and lower bands.
Candle Heatmap Coloring : When enabled, candles are colored based on their closing price's relative position within the channel. Bullish colors appear when price is in the upper part of the channel, bearish in the lower, and neutral in the middle. Users can choose to color the entire candle body or just the wicks and borders.
Background Volatility Pulse : The chart's background color subtly shifts (e.g., between a calm green and an agitated red-pink) to reflect the current volatility regime.
Trend Strength Meter : A text label (e.g., "TREND: STRONG BULLISH") positioned on the chart, providing an at-a-glance summary of the trend.
Configuration Options
Users can tailor the indicator extensively via the settings panel, with options logically grouped:
Core Analysis Engine : Adjust regression source data, lookback period, and EMA smoothing for the regression line.
Regression Line Visuals : Control visibility, line width, trend-based colors (uptrend, downtrend, flat), slope thresholds for trend definition, strong slope multiplier (for Trend Meter), and color gradient sharpness.
Volatility Channel Configuration : Select band calculation mode (ATR, StdDev, Keltner), set relevant periods and multipliers. Customize colors for vertical gradient fills (upper/lower, top/bottom), border line colors, widths, and the gradient spread factor for fills.
Future Projection Configuration : Toggle visibility, set projection length (number of bars), line style, and colors for projected regression and band areas.
Appearance & Candle Theme : Set default bull/bear candle colors, enable/disable candle heatmap, choose if body color matches heatmap, and configure heatmap gradient target colors (bull, neutral, bear) and the gradient's midpoint.
Background Volatility Pulse : Enable/disable the background effect and configure short/long ATR periods for the volatility calculation.
Trend Strength Meter : Enable/disable the meter, and choose its on-chart position and text size.
Interpretation Notes
-The Regression Line is the primary indicator of trend direction. Its slope and color provide immediate insight.
-The Volatility Bands serve as dynamic support and resistance zones. Price approaching or touching these bands may indicate potential turning points or breakouts. The width of the channel itself reflects market volatility – widening suggests increasing volatility, while narrowing suggests consolidation.
Future Projections are not predictions but rather an extension of current conditions. They can help visualize potential areas where price might interact with projected support/resistance if the current trend and volatility persist.
Candle Heatmap Coloring offers a quick visual assessment of where price is trading within the dynamic envelope, highlighting strength or weakness relative to the channel.
The Background Volatility Pulse gives a contextual feel for overall market agitation or calmness.
This indicator is designed to be a comprehensive analytical tool. Its signals and visualizations are best used in conjunction with other technical analysis techniques, price action study, and robust risk management practices. It is not intended as a standalone trading system.
Risk Disclaimer
Trading and investing in financial markets involve substantial risk of loss and is not suitable for every investor. The Dynamic Volatility Envelope indicator is provided for analytical and educational purposes only and does not constitute financial advice or a recommendation to buy or sell any security. Past performance is not indicative of future results. Always use sound risk management practices and never trade with capital you cannot afford to lose. The developers assume no liability for any financial losses incurred based on the use of this indicator.
Stop Cascade Detector Stop Cascade Detector (DAFE)
Unlock the Hidden Triggers of Market Momentum!
The Stop Cascade Detector (Bull & Bear, Info Bubble) is a next-generation tool designed for traders who want to see what the crowd can’t: the precise moments when clusters of stop orders are being triggered, unleashing explosive moves in either direction. The reason for this is traders taking there position too early. We on the other hand will take our positions once the less informed traders have been liquidated.
What Makes This Indicator Unique?
Not Just Another Volatility Tool:
This script doesn’t just measure volatility or volume. It detects the chain reactions that occur when price and volume spikes combine to trigger stop-loss clusters—events that often precede the most powerful surges and reversals in any market.
Directional Intelligence:
Unlike generic “spike” detectors, this tool distinguishes between bullish stop cascades (green, above the bar) and bearish stop cascades (red, below the bar), giving you instant clarity on which side of the market is being liquidated.
Visual Precision:
Each event is marked with a color-coded info bubble and a triangle, clearly separated from the price bars for maximum readability. No more guessing where the action is—see it, trade it, and stay ahead.
Universal Application:
Works on any asset, any timeframe, and in any market—futures, stocks, crypto, forex. If there are stops, this indicator will find the cascade.
What makes it work?
Momentum + Volume Spike:
The detector identifies bars where both price momentum and volume are simultaneously extreme (using Z-scores). This combination is a classic signature of stop runs and forced liquidations.
Bull & Bear Detection:
Bull Stop Cascade : Price plunges downward with a volume spike—likely longs getting stopped out.
Bear Stop Cascade: Price surges upward with a volume spike—likely shorts getting stopped out.
Info Bubbles:
Each event is labeled with the exact Z-scores for momentum and volume, so you can gauge the intensity of the cascade at a glance.
What will it do for you?
Front-Run the Crowd:
Most traders react after the move. This tool helps you spot the cause of the move—giving you a tactical edge to fade exhaustion, ride momentum, or avoid getting trapped.
Perfect for Scalpers, Day Traders, and Swing Traders:
Whether you’re looking for high-probability reversals or want to ride the wave, knowing when stops are being triggered is a game-changer.
No More Blind Spots:
Stop cascades are the hidden fuel behind many of the market’s biggest moves. Now you can see them in real time.
How to Use
Red Bubble Above Bar: Bear stop cascade detected—watch for possible trend acceleration or reversal.
Green Bubble Below Bar: Bull stop cascade detected—watch for possible trend acceleration or reversal.
Combine with Your Strategy : Use as a confirmation tool, a reversal signal, or a filter for high-volatility environments. Level up your trading. See the market’s hidden triggers.
Stop Cascade Detector: Because the real edge is knowing what sets the market on fire.
For educational purposes only. Not financial advice. Always use proper risk management.
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems