Bollinger Bands Breakout Strategy// ©
// Bollinger Bands Breakout Strategy
// 🔹 Strategy Overview:
// This strategy trades **breakouts** using Bollinger Bands. It enters long when the price breaks above the upper band and enters short when the price breaks below the lower band. The strategy includes a take profit and stop loss mechanism to manage risk.
// 📌 When to BUY (Long Entry):
// ✅ Price **closes above the upper Bollinger Band** (breakout signal).
// ✅ Confirms a strong bullish trend, suitable for trending markets.
// 📌 When to SELL (Short Entry):
// ✅ Price **closes below the lower Bollinger Band** (breakdown signal).
// ✅ Indicates a strong bearish trend, ideal for volatile conditions.
// ⚠️ When to AVOID Trading:
// ❌ Sideways or ranging markets where price frequently **touches bands but reverses**.
// ❌ When volatility is **too low**, leading to false breakouts.
// ❌ During major news events that cause **sudden price spikes**.
// 🔧 Additional Considerations:
// - Best used in **trending markets** to avoid false breakouts.
// - Can be improved by adding **volume filters or trend confirmation (e.g., moving averages, RSI)**.
// - Adjust **Bollinger Bands settings (length & multiplier)** based on asset volatility.
// 🚀 Optimize this strategy by testing different timeframes & market conditions before live trading!
Trend Analysis
Fibonacci Retracement with SignalsThis script automatically detects recent swing highs and lows to plot Fibonacci retracement levels dynamically. The levels adjust in real-time, moving along with price action, ensuring traders have accurate support and resistance zones.
How to Use for Buying & Selling:
Buy Entry: Look for price to bounce from key Fibonacci support levels (0.618, 0.5, or 0.382). A bullish confirmation (e.g., candlestick patterns or trendline support) increases trade confidence.
Sell Entry: If the price retraces to key resistance levels (0.618, 0.5, or 0.382) and shows rejection (e.g., wicks, bearish engulfing), it may indicate a selling opportunity.
Breakout Trading: If the price breaks above the 0.0 Fibonacci level, it may indicate strong bullish momentum. Conversely, breaking below the 1.0 level signals bearish continuation.
Additional Features to Look For:
✔ Dynamic Fibonacci levels update in real-time with price action
✔ Works across all timeframes and assets (stocks, forex, crypto, indices)
✔ Key retracement levels (0.236, 0.382, 0.5, 0.618, 0.786) highlighted
✔ Helps identify high-probability trade setups with confluence zones
This indicator is best used with price action, trendlines, volume, or other confirmation indicators for stronger trade setups. 🚀
Enhanced Demand & Supply Zones// How to Use the Enhanced Demand & Supply Zones Indicator
/*
## Understanding the Indicator
The Enhanced Demand & Supply Zones (EDSZ) Indicator identifies strong demand (support) zones and supply (resistance) zones on the chart. It also incorporates:
- Multi-timeframe trend confirmation to determine the market direction.
- RSI filtering to validate overbought and oversold conditions.
- Strong Buy & Sell Signals based on key confluences.
## When to Buy (Strong Buy Signal)
A strong buy opportunity is signaled when all the following conditions are met:
1. Price is above the last demand zone (support level).
2. RSI is below 35, indicating oversold conditions.
3. Bullish Trend Confirmation - Price is above SMA trends across multiple timeframes (1M, 5M, 15M, 1H, 4H, Daily).
4. Price crosses above the last demand zone (crossover).
### Ideal Buy Entry:
- Enter a long position after the BUY label appears.
- Set a stop-loss slightly below the demand zone.
- Take-profit at the next supply zone or based on risk-reward ratio (1:2 or 1:3).
## When to Sell (Strong Sell Signal)
A strong sell opportunity is signaled when all the following conditions are met:
1. Price is below the last supply zone (resistance level).
2. RSI is above 65, indicating overbought conditions.
3. Bearish Trend Confirmation - Price is below SMA trends across multiple timeframes.
4. Price crosses below the last supply zone (crossunder).
### Ideal Sell Entry:
- Enter a short position after the SELL label appears.
- Set a stop-loss slightly above the supply zone.
- Take-profit at the next demand zone or based on risk-reward ratio (1:2 or 1:3).
## When NOT to Trade
Avoid trading under the following conditions:
1. Choppy or sideways market - If price is bouncing between zones without strong trends.
2. Weak or conflicting trends - If price is hovering near SMAs without a clear direction.
3. RSI is in the middle range (35-65) - No strong overbought or oversold conditions.
4. No clear demand/supply crossovers - If price is stuck in a zone without a breakout.
## Additional Strategies to Improve Trading
1. Volume Confirmation - Check if a breakout above demand or below supply is accompanied by high volume.
2. Candlestick Patterns - Look for reversal patterns (e.g., pin bars, engulfing candles) near zones.
3. Fibonacci Retracement - Combine demand and supply zones with Fibonacci levels for confluence.
4. Market Structure - Confirm trend strength using break of structure (BoS) and change of character (ChoCH).
5. Risk Management - Always set stop-loss and manage risk per trade to avoid large drawdowns.
By following these rules and integrating additional confirmations, traders can maximize their probability of success using the EDSZ Indicator.
*/
Breakout Support & Resistance SwiftEdgeBreakout Support & Resistance
The Breakout is a technical analysis tool designed to identify breakout opportunities in the market by detecting price movements through support and resistance levels. It plots potential entry points, stop-loss (SL), and take-profit (TP) levels based on user-defined percentages, helping traders visualize breakout setups on their charts.
How It Works
Support and Resistance Detection: The indicator uses pivot points to identify support and resistance levels over a user-defined lookback period.
Breakout Identification: A breakout is confirmed when the price crosses above a resistance level (bullish) or below a support level (bearish) and remains there for a specified number of bars.
Entry, SL, and TP Levels: Upon a confirmed breakout, the indicator sets an entry point at the closing price and calculates SL, TP1, and TP2 levels based on user-defined percentages.
Directional Filtering: To avoid conflicting signals, the indicator filters breakouts based on the current trade direction. A new entry in the opposite direction is only set if the price moves a user-defined percentage away from the previous entry or if the previous trade hits its SL, TP1, or TP2.
Visuals: The indicator plots support and resistance lines, breakout labels, and entry/SL/TP levels on the chart. Users can choose to display only the latest entry or up to 5 recent entries.
Features
Customizable Settings: Adjust the lookback period for pivot points, breakout confirmation bars, SL/TP percentages, and more.
Directional Change Control: A direction change is indicated when the price moves significantly in the opposite direction, helping to manage trend reversals.
Multiple Entry Display: Option to show up to 5 recent entries for tracking multiple breakouts.
Alerts: Receive alerts when a breakout is confirmed, including entry, SL, TP1, and TP2 levels.
Settings
Pivot Lookback Length: Number of bars to look back for identifying support and resistance levels (default: 5).
Breakout Confirmation Bars: Number of bars the price must stay above/below the level to confirm a breakout (default: 2).
Take Profit 1 (%): First take-profit level as a percentage above/below the entry (default: 2.0%).
Take Profit 2 (%): Second take-profit level as a percentage above/below the entry (default: 4.0%).
Stop Loss (%): Stop-loss level as a percentage below/above the entry (default: 1.0%).
Show Multiple Entries: Toggle to display up to 5 recent entries or only the latest (default: false).
Direction Change Threshold (%): Percentage the price must move away from the entry to allow a direction change (default: 2.0%).
How to Use
Add the Breakout Scanner to your chart.
Adjust the settings to match your trading style (e.g., tweak the pivot lookback or SL/TP percentages).
Watch for breakout labels ("Breakout") on the chart, indicating a confirmed breakout.
Use the plotted entry, SL, TP1, and TP2 levels to plan your trades.
Enable alerts to be notified of new breakouts in real-time.
Notes
This indicator is designed to assist with identifying breakout opportunities and does not guarantee specific results. Always combine it with other analysis and risk management techniques.
The direction change feature helps filter breakouts in the opposite direction, but significant price movements may still trigger a new entry in the opposite direction.
For best results, test the indicator on a demo account to understand its behavior in your preferred market and timeframe.
SWC QR Oscillator
SWC QR Oscillator
Overview
The SWC QR Oscillator is a powerful trading indicator designed to identify overbought/oversold conditions, trend strength, and potential reversals. By incorporating four different stochastic oscillators , divergence detection , background color alerts , and ABCD pattern recognition , this tool provides a comprehensive view of market momentum .
Key Features:
✅ Identify potential reversals through stochastic slopes.
✅ Confirm trends using multiple stochastic timeframes .
✅ Detect bullish & bearish divergences between price and momentum.
✅ Recognize ABCD pattern formations for trend continuation.
✅ Generate alerts for critical stochastic conditions.
---
🔹 How to Use
1️⃣ Understanding the Stochastic Oscillators
The indicator plots four stochastic oscillators :
Stochastic 1 (Red) – Short-term, reacts quickly to price.
Stochastic 2 (Aqua) – Medium-short, confirms early signals.
Stochastic 3 (Yellow) – Medium-long, filters noise.
Stochastic 4 (Green) – Long-term, used for trend strength analysis.
---
2️⃣ Identifying Overbought & Oversold Conditions
Above 80 = Overbought (Potential selling opportunity).
Below 20 = Oversold (Potential buying opportunity).
Above 90 / Below 10 = Extreme overbought/oversold zones.
📌 Reversal Signal: When multiple stochastics align in these regions and curve inward , a trend shift may be forming.
---
3️⃣ Background Coloring for Strong Signals
The background color changes based on the number of stochastics moving in the same direction:
🟥 Red Background – X number of stochastics are above 80 & sloping down.
🟩 Green Background – X number of stochastics are below 20 & sloping up.
🎯 Customization Tip: Adjust the "Min # of Stochastics for BG Coloring" setting to control signal sensitivity.
---
4️⃣ Divergence Detection
The indicator automatically identifies bullish & bearish divergences :
🔴 Bearish Divergence – Price makes a higher high, but stochastic makes a lower high (potential reversal down).
🟢 Bullish Divergence – Price makes a lower low, but stochastic makes a higher low (potential reversal up).
✅ Pro Tip: Enable "Match Divergence Lines to Stochastic Color" for better visual clarity.
---
5️⃣ ABCD Pattern Recognition
The script detects ABCD patterns based on Stochastic 4 remaining in extreme zones:
ABCD Long (Green X) – Stochastic 4 stuck above 90 , signaling trend continuation up .
ABCD Short (Red X) – Stochastic 4 stuck below 10 , indicating bearish continuation .
---
### 6️⃣ Super Signals (Strong Buy/Sell Conditions)
🚨 Super Signal Down (⬇️ Red Arrow) – All 4 stochastics above 80 & sloping down → Strong Bearish Reversal .
🚀 Super Signal Up (⬆️ Green Arrow) – All 4 stochastics below 20 & sloping up → Strong Bullish Reversal .
📌 High-Confidence Trade Setups: These signals work best when combined with price action analysis.
---
7️⃣ Alerts for Key Conditions
Set alerts for:
✅ Background color changes (Red/Green).
✅ ABCD pattern detection (Long/Short).
✅ Super Signal Up/Down confirmations .
✅ Divergence alerts for each stochastic .
🔔 Never miss a trade! Enable alerts in TradingView for real-time notifications.
---
📌 Final Tips for Traders
✔ Adjust "Min # of Stochastics for BG Coloring" to control signal sensitivity.
✔ Use ABCD patterns to confirm trend continuation before entering trades.
✔ Combine divergences, background signals, & super signals for stronger confirmations.
✔ Always monitor higher timeframe trends to align with dominant market direction.
💡 This indicator provides valuable confluence signals but works best when combined with price action strategies and risk management techniques .
Trend Detection
#### *Description:*
This *Trend Detection* indicator is designed to help traders identify and confirm trends in the market using a combination of moving averages, volume analysis, and MACD filters. It provides clear visual signals for uptrends and downtrends, along with customizable settings to adapt to different trading styles and timeframes. The indicator is suitable for both beginners and advanced traders who want to improve their trend-following strategies.
---
#### *Key Features:*
1. *Trend Detection:*
- Uses *Moving Averages (MA)* to determine the overall trend direction.
- Supports multiple MA types: *SMA (Simple), **EMA (Exponential), **WMA (Weighted), and **HMA (Hull)*.
2. *Advanced Filters:*
- *MACD Filter:* Confirms trends using MACD crossovers.
- *Volume Filter:* Ensures trends are supported by above-average volume.
- *Multi-Timeframe Filter:* Validates trends using a higher timeframe (e.g., Daily or Weekly).
3. *Visual Signals:*
- Plots a *trend line* on the chart to indicate the current trend direction.
- Fills the background with *green* for uptrends and *red* for downtrends.
4. *Customizable Settings:*
- Adjust the *MA lengths, **MACD parameters, and **confirmation thresholds* to suit your trading strategy.
- Control the transparency of the background fill for better chart readability.
5. *Alerts:*
- Generates *buy/sell signals* when a trend is confirmed.
- Alerts can be set to trigger at the close of a candle for precise entry/exit points.
---
#### *How to Use:*
1. *Adding the Indicator:*
- Copy and paste the Pine Script code into the TradingView Pine Script editor.
- Add the indicator to your chart.
2. *Configuring the Settings:*
- *Trend Settings:*
- Choose the *MA type* (e.g., EMA for faster response, HMA for smoother trends).
- Set the *Trend MA Period* (e.g., 200 for long-term trends) and *Filter MA Period* (e.g., 100 for medium-term trends).
- *Advanced Filters:*
- Enable/disable the *MACD Filter* and adjust its parameters (Fast, Slow, Signal).
- Enable/disable the *Volume Filter* to ensure trends are supported by volume.
- *Multi-Timeframe Filter:*
- Enable this filter to validate trends using a higher timeframe (e.g., Daily or Weekly).
3. *Interpreting the Signals:*
- *Uptrend:* The trend line turns *green*, and the background is filled with a transparent green color.
- *Downtrend:* The trend line turns *red*, and the background is filled with a transparent red color.
- *Alerts:* Buy/sell signals are generated when the trend is confirmed.
4. *Using Alerts:*
- Set up alerts for *Buy Signal* (bullish reversal) and *Sell Signal* (bearish reversal).
- Alerts can be configured to trigger at the close of a candle for precise execution.
---
#### *Settings and Their Effects:*
1. *MA Type:*
- *SMA:* Smooth but lagging. Best for long-term trends.
- *EMA:* Faster response to price changes. Suitable for medium-term trends.
- *WMA:* Gives more weight to recent prices. Useful for short-term trends.
- *HMA:* Combines speed and smoothness. Ideal for all timeframes.
2. *Trend MA Period:*
- A longer period (e.g., 200) identifies long-term trends but may lag.
- A shorter period (e.g., 50) reacts faster but may produce false signals.
3. *Filter MA Period:*
- Acts as a secondary filter to confirm the trend.
- A shorter period (e.g., 50) provides tighter confirmation but may increase noise.
4. *MACD Filter:*
- Ensures trends are confirmed by MACD crossovers.
- Adjust the *Fast, **Slow, and **Signal* lengths to match your trading style.
5. *Volume Filter:*
- Ensures trends are supported by above-average volume.
- Reduces false signals during low-volume periods.
6. *Multi-Timeframe Filter:*
- Validates trends using a higher timeframe (e.g., Daily or Weekly).
- Increases reliability but may delay signals.
7. *Confirmation Value:*
- Sets the minimum percentage deviation from the trend MA required to confirm a trend.
- A higher value (e.g., 2.0%) reduces false signals but may delay trend detection.
8. *Confirmation Bars:*
- Sets the number of bars required to confirm a trend.
- A higher value (e.g., 5 bars) ensures sustained trends but may delay signals.
---
#### *Who Should Use This Indicator?*
1. *Trend Followers:*
- Traders who focus on identifying and riding long-term trends.
- Suitable for *swing traders* and *position traders*.
2. *Day Traders:*
- Can use shorter MA periods and faster filters (e.g., EMA, HMA) for intraday trends.
3. *Volume-Based Traders:*
- Traders who rely on volume confirmation to validate trends.
4. *Multi-Timeframe Traders:*
- Traders who use higher timeframes to confirm trends on lower timeframes.
5. *Beginners:*
- Easy-to-understand visual signals and alerts make it beginner-friendly.
6. *Advanced Traders:*
- Customizable settings allow for fine-tuning to match specific strategies.
---
#### *Example Use Cases:*
1. *Long-Term Investing:*
- Use a *200-period SMA* with a *Daily* higher timeframe filter to identify long-term trends.
- Enable the *Volume Filter* to ensure trends are supported by strong volume.
2. *Swing Trading:*
- Use a *50-period EMA* with a *4-hour* higher timeframe filter for medium-term trends.
- Enable the *MACD Filter* to confirm trend reversals.
3. *Day Trading:*
- Use a *20-period HMA* with a *1-hour* higher timeframe filter for short-term trends.
- Disable the *Volume Filter* for faster signals.
---
#### *Conclusion:*
The *Trend Detection* indicator is a versatile tool for traders of all levels. Its customizable settings and advanced filters make it suitable for various trading styles and timeframes. By combining moving averages, volume analysis, and MACD filters, it provides reliable trend signals with minimal lag. Whether you're a beginner or an advanced trader, this indicator can help you make better trading decisions by identifying and confirming trends in the market.
---
#### *Publishing on TradingView:*
- *Title:* Trend Detection with Advanced Filters
- *Description:* A powerful trend detection tool using moving averages, volume analysis, and MACD filters. Suitable for all trading styles and timeframes.
- *Tags:* Trend, Moving Averages, MACD, Volume, Multi-Timeframe
- *Category:* Trend-Following
- *Access:* Public or Private (depending on your preference).
---
Let me know if you need further assistance or additional features!
fractal candle The fractal candle technical indicator to identify potential trend reversals in financial markets. It works by counting a series of price bars and looking for specific patterns that indicate when a trend is likely to reverse.
How the Indicator Works:
Counting Candles:
The indicator compares the closing price of the current candle with the closing price from 4 candles ago.
If the current close is higher, the bullish (buy) count increases.
If the current close is lower, the bearish (sell) count increases.
When a count reaches 9 or 13, it may signal a trend reversal.
Buy and Sell Setup:
A buy setup occurs when there have been 9 consecutive candles where each close is lower than the close 4 candles before. This suggests a possible bullish reversal.
A sell setup occurs when there have been 9 consecutive candles where each close is higher than the close 4 candles before. This suggests a possible bearish reversal.
Support and Resistance Levels:
The indicator tracks previous highs and lows during buy/sell setups to identify potential support and resistance levels.
These levels can help traders decide where price might reverse or consolidate.
Candle Coloring for Visual Aid:
The script changes candle colors:
Red for sell signals 📉
Green for buy signals 📈
Different shades for overshoot conditions (extended trends)
Jigga-SectorTrendViewThe Jigga-SectorView script is indicator designed to analyze and visualize sector trends based on given input. Based on input of multiple sector indices, calculates key technical values, and presents a structured summary in a table.
Calculating Sector Strength & Momentum:
For each selected symbol
Step 1 - 52-week lowest low is fetched.
Step 2 - Daily closing price is retrieved.
Step 3 - A crossover between 50-day EMA and 200-day EMA determines trend shifts.
Step 4 - Percentage difference from the identified level is calculated.
Output:
A bottom-right table is created with sector-wise trend insights which shows Symbol name and how much its away from SL in percentage terms.
MACD EMA Merge"MACD EMA Merge is a custom indicator that combines the MACD (Moving Average Convergence Divergence) with an EMA (Exponential Moving Average) applied to the MACD Histogram. It helps traders identify trend strength and potential reversals by plotting buy signals when the histogram crosses above the EMA and sell signals when it crosses below. The indicator is displayed in a separate pane below the main chart for better visualization."
Zen Urgency v1Zen Urgency v1
Identify High-Urgency Market Moves with Precision
The Zen Urgency v1 indicator highlights urgent bull and bear bars, helping traders recognize fast-moving price action that signals momentum shifts, breakouts, or potential reversals.
Key Features
✅ Customizable Urgency Thresholds – Set the % threshold for urgent bull and bear bars to match your trading strategy.
✅ Body Range Control – Filter urgency signals based on the bar's body-to-range size for improved precision.
✅ Custom Arrow Colors & Sizes – Personalize the indicator’s appearance with flexible color settings and adjustable arrow sizes (Small, Normal, Large).
✅ Clear Visual Signals – Urgent bullish bars are marked with upward arrows; urgent bearish bars are marked with downward arrows.
How to Use
Urgency Thresholds: Lower values highlight more bars; higher values identify only the strongest urgency signals.
Body Range Control: Set a percentage to ensure only bars with substantial body sizes are marked.
Visual Customization: Adjust arrow colors and sizes for optimal chart visibility.
Ideal for traders seeking to spot momentum bursts, scalp entries, or manage breakout trades with enhanced urgency detection.
SPY QQQ DayTrade Clean Buy/Sell + Target/Stop [锁仓+ATR过滤+明显目标]test SPY & QQQ
apply for 3 $ 5mins
This is the test version, will post updated version shortly.
Hope all of your guys can test it and let me know how is it.
3 Level ZZ Semafor-V13 Level ZZ Semfor Version 1
Semafors:
Unlike what it appears like in the chart, Semafors are not points of reversals. They are simply high and low points.
Which is why, when a new high/low is created, a semafor will shift to the new bar. So one should be very careful trading semafors.
As it’s important to wait and see that the reversal is actually real.
You can use tools like:
Halftrend or Supertrend to see if trend indeed has reversed.
Pivot points or Fibo or SR levels to see strong Support/Resistance points. Where reversal is most likely
Strong volume bars which means that Buyers for a Bullish (Green) bar or Sellers for a bearish (Red) bar are increasing which makes reversal stronger
3LZZ uses 3 types of points.
Semafor 1: smaller high/lows
Semafor 2: medium
Semafor 3: Longer
Semafor 1: Depth: 5, Deviation: 1, Backstep: 3
Semafor 2: Depth: 13, Deviation: 8, Backstep: 5
Semafor 3: Depth: 34, Deviation: 13, Backstep: 8
You will notice that these are all numbers from the Fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, and so on :)
Deviation (Percentage) — The minimal price change required for the indicator to form a high/low.
Percentage of change that represents when the trend changes.
For example, if the price drops 5% from the high, then the Zigzag indicator show a red line falling, showing that the trend has changed.
Depth (No. of Bars) — Minimum interval during which the indicator will draw a new high/low if the Deviation changes.
So within “depth” (period) number of bars, there cannot be another high/low.
Backstep (No. of Bars) — Number of bars (candlesticks) required to separate two local extremes. At this interval, new highs/lows will not be drawn if they differ in size from the prior ones. So backstep needs to be less than depth. Or else it can’t work.
Let’s take default values:
Depth: 12
Deviation: 5
Backstep: 3
So, it will look at past 12 (depth) bars and find highest high and lowest low levels. Distance between the two levels should be more than 3 (backstep) bars.
Now, let’s say that the latest extreme level was a low. A few bars back (more than backstep 3).
And now at current bar, price deviates more than 5% upwards. Then it will create a red zigzag line to the high of this newest bar.
If price in next bar still shifts upwards, then zigzag line will move to the new high.
Let’s say that more than 3 (backstep) bars have passed again. And price now goes 5% deviation lower. Then a new red zigzag line will be drawn to the low of this newest bar.
And so on…
SQLevel SNRThis indicator is designed to automatically detect support and resistance levels and then highlight potential "break" events on a price chart. Here’s a breakdown of how it works:
1. Pivot Detection for Support and Resistance
Inputs for Pivots:
The indicator uses two inputs, Left Bars and Right Bars, to determine how many bars on each side are used to identify a local pivot. A pivot high (resistance) is a price that is higher than the surrounding bars, while a pivot low (support) is lower than its neighbors.
Calculating Pivots:
The functions ta.pivothigh(leftBars, rightBars) and ta.pivotlow(leftBars, rightBars) are used to compute these levels.
The code then uses fixnan() to handle cases when a pivot isn’t found, ensuring that only valid pivot values are used.
Plotting the Levels:
Once identified, the pivot high is plotted as a resistance line (in red) and the pivot low as a support line (in blue). An offset is applied so that these levels align correctly on the chart.
2. Volume Oscillator Calculation
Purpose:
The indicator calculates a volume-based oscillator to help determine whether a price breakout is significant.
How It Works:
It computes two exponential moving averages (EMAs) of the volume:
A short-term EMA (5-period)
A long-term EMA (10-period)
Then, it calculates the percentage difference between these EMAs. If this oscillator exceeds the user-defined Volume Threshold, it implies that volume is strong, which is often a sign of a valid breakout.
3. Identifying and Plotting Breakouts
Break Conditions:
The script checks for two main types of break events:
Support Break: When the closing price crosses below the support (pivot low).
Resistance Break: When the closing price crosses above the resistance (pivot high).
Additional Candlestick Filters:
The indicator adds extra conditions to filter out false breakouts by examining the shape of the candlestick (e.g., the relation between open, close, high, and low). This helps distinguish between genuine breaks and simple wicks.
Plotting Shapes:
When these conditions are met and the volume oscillator is above the threshold, a small label (or shape) is plotted on the chart:
A label “B” appears above the bar for a support break.
A label “B” appears below the bar for a resistance break.
Additional labels such as “Bull Wick” or “Bear Wick” are plotted when the candlestick’s wick characteristics support the breakout indication.
4. Alert Conditions
Automated Alerts:
The indicator sets up alert conditions using alertcondition() so that you can be notified if:
Price crosses under support (indicating a potential support break).
Price crosses over resistance (indicating a potential resistance break).
These alerts are triggered only when the volume conditions are met, ensuring that alerts are based on strong, high-volume moves.
Summary
In essence, the indicator:
Identifies local highs and lows (pivots) as resistance and support.
Uses a volume oscillator to confirm that any break of these levels is backed by significant trading volume.
Visually marks the chart with lines and shapes for both the levels and the breaks.
Provides alert conditions so traders can be automatically notified of potential breakouts.
This combination of price action analysis and volume confirmation helps traders focus on meaningful support and resistance levels and potentially valid breakout signals.
ICT Sessions And Range Breakout [ADB]great indicator for ict traders. help you to set your own range area and breakout levels
Support and Resistance Levels EnhancedThis indicator is designed to automatically detect support and resistance levels and then highlight potential "break" events on a price chart. Here’s a breakdown of how it works:
1. Pivot Detection for Support and Resistance
Inputs for Pivots:
The indicator uses two inputs, Left Bars and Right Bars, to determine how many bars on each side are used to identify a local pivot. A pivot high (resistance) is a price that is higher than the surrounding bars, while a pivot low (support) is lower than its neighbors.
Calculating Pivots:
The functions ta.pivothigh(leftBars, rightBars) and ta.pivotlow(leftBars, rightBars) are used to compute these levels.
The code then uses fixnan() to handle cases when a pivot isn’t found, ensuring that only valid pivot values are used.
Plotting the Levels:
Once identified, the pivot high is plotted as a resistance line (in red) and the pivot low as a support line (in blue). An offset is applied so that these levels align correctly on the chart.
2. Volume Oscillator Calculation
Purpose:
The indicator calculates a volume-based oscillator to help determine whether a price breakout is significant.
How It Works:
It computes two exponential moving averages (EMAs) of the volume:
A short-term EMA (5-period)
A long-term EMA (10-period)
Then, it calculates the percentage difference between these EMAs. If this oscillator exceeds the user-defined Volume Threshold, it implies that volume is strong, which is often a sign of a valid breakout.
3. Identifying and Plotting Breakouts
Break Conditions:
The script checks for two main types of break events:
Support Break: When the closing price crosses below the support (pivot low).
Resistance Break: When the closing price crosses above the resistance (pivot high).
Additional Candlestick Filters:
The indicator adds extra conditions to filter out false breakouts by examining the shape of the candlestick (e.g., the relation between open, close, high, and low). This helps distinguish between genuine breaks and simple wicks.
Plotting Shapes:
When these conditions are met and the volume oscillator is above the threshold, a small label (or shape) is plotted on the chart:
A label “B” appears above the bar for a support break.
A label “B” appears below the bar for a resistance break.
Additional labels such as “Bull Wick” or “Bear Wick” are plotted when the candlestick’s wick characteristics support the breakout indication.
4. Alert Conditions
Automated Alerts:
The indicator sets up alert conditions using alertcondition() so that you can be notified if:
Price crosses under support (indicating a potential support break).
Price crosses over resistance (indicating a potential resistance break).
These alerts are triggered only when the volume conditions are met, ensuring that alerts are based on strong, high-volume moves.
Summary
In essence, the indicator:
Identifies local highs and lows (pivots) as resistance and support.
Uses a volume oscillator to confirm that any break of these levels is backed by significant trading volume.
Visually marks the chart with lines and shapes for both the levels and the breaks.
Provides alert conditions so traders can be automatically notified of potential breakouts.
CIB-webhookThe CIB webhook strategy developed by Andy Shelby leverages the Ichimoku Cloud for automated trading signals. This method integrates the Ichimoku indicator with webhooks to execute trades efficiently, reducing manual intervention and improving market responsiveness.
Hurst-Based Trend Persistence w/Poisson Prediction
---
# **Hurst-Based Trend Persistence w/ Poisson Prediction**
## **Introduction**
The **Hurst-Based Trend Persistence with Poisson Prediction** is a **statistically-driven trend-following oscillator** that provides traders with **a structured approach to identifying trend strength, persistence, and potential reversals**.
This indicator combines:
- **Hurst Exponent Analysis** (to measure how persistent or mean-reverting price action is).
- **Color-Coded Trend Detection** (to highlight bullish and bearish conditions).
- **Poisson-Based Trend Reversal Probability Projection** (to anticipate when a trend is likely to end based on statistical models).
By integrating **fractal market theory (Hurst exponent)** with **Poisson probability distributions**, this indicator gives traders a **probability-weighted view of trend duration** while dynamically adapting to market volatility.
---
## **Simplified Explanation (How to Read the Indicator at a Glance)**
1. **If the oscillator line is going up → The trend is strong.**
2. **If the oscillator line is going down → The trend is weakening.**
3. **If the color shifts from red to green (or vice versa), a trend shift has occurred.**
- **Strong trends can change color without weakening** (meaning a bullish or bearish move can remain powerful even as the trend shifts).
4. **A weakening trend does NOT necessarily mean a reversal is coming.**
- The trend may slow down but continue in the same direction.
5. **A strong trend does NOT guarantee it will last.**
- Even a powerful move can **suddenly reverse**, which is why the **Poisson-based background shading** helps anticipate probabilities of change.
---
## **How to Use the Indicator**
### **1. Understanding the Rolling Hurst-Based Trend Oscillator (Main Line)**
The **oscillator line** is based on the **Hurst exponent (H)**, which quantifies whether price movements are:
- **Trending** (values above 0 → momentum-driven, persistent trends).
- **Mean-reverting** (values below 0 → price action is choppy, likely to revert to the mean).
- **Neutral (Random Walk)** (values around 0 → price behaves like a purely stochastic process).
#### **Interpreting the Oscillator:**
- **H > 0.5 → Persistent Trends:**
- Price moves tend to sustain in one direction for longer periods.
- Example: Strong uptrends in bull markets.
- **H < 0.5 → Mean-Reverting Behavior:**
- Price has a tendency to revert back to its mean.
- Example: Sideways markets or fading momentum.
- **H ≈ 0.5 → Random Walk:**
- No clear trend; price is unpredictable.
A **gray dashed horizontal line at 0** serves as a **baseline**, helping traders quickly assess whether the market is **favoring trends or mean reversion**.
---
### **2. Color-Coded Trend Signal (Visual Confirmation of Trend Shifts)**
The oscillator **changes color** based on **price slope** over the lookback period:
- **🟢 Green → Uptrend (Price Increasing)**
- Price is rising relative to the selected lookback period.
- Suggests sustained bullish pressure.
- **🔴 Red → Downtrend (Price Decreasing)**
- Price is falling relative to the selected lookback period.
- Suggests sustained bearish pressure.
#### **How to Use This in Trading**
✔ **Stay in trends until a color change occurs.**
✔ **Use color changes as confirmation for trend reversals.**
✔ **Avoid counter-trend trades when the oscillator remains strongly colored.**
---
### **3. Poisson-Based Trend Reversal Projection (Anticipating Future Shifts)**
The **shaded orange background** represents a **Poisson-based probability estimation** of when the trend is likely to reverse.
- **Darker Orange = Higher Probability of Trend Reversal**
- **Lighter Orange / No Shade = Low Probability of Immediate Reversal**
💡 **The idea behind this model:**
✔ Trends **don’t last forever**, and their duration follows **statistical patterns**.
✔ By calculating the **average historical trend duration**, the indicator predicts **how likely a trend shift is at any given time**.
✔ The **Poisson probability function** is applied to determine the **expected likelihood of a reversal as time progresses**.
---
## **Mathematical Foundations of the Indicator**
This indicator is based on **two primary statistical models**:
### **1. Hurst Exponent & Trend Persistence (Fractal Market Theory)**
- The **Hurst exponent (H)** measures **autocorrelation** in price movements.
- If past trends **persist**, H will be **above 0.5** (meaning trend-following strategies are favorable).
- If past trends tend to **mean-revert**, H will be **below 0.5** (meaning reversal strategies are more effective).
- The **Rolling Hurst Oscillator** calculates this exponent over a moving window to track real-time trend conditions.
#### **Formula Breakdown (Simplified for Traders)**
The Hurst exponent (H) is derived using the **Rescaled Range (R/S) Analysis**:
\
Where:
- **R** = **Range** (difference between max cumulative deviation and min cumulative deviation).
- **S** = **Standard deviation** of price fluctuations.
- **Lookback** = The number of periods analyzed.
---
### **2. Poisson-Based Trend Reversal Probability (Stochastic Process Modeling)**
The **Poisson process** is a **probabilistic model used for estimating time-based events**, applied here to **predict trend reversals based on past trend durations**.
#### **How It Works**
- The indicator **tracks trend durations** (the time between color changes).
- A **Poisson rate parameter (λ)** is computed as:
\
- The **probability of a reversal at any given time (t)** is estimated using:
\
- **As t increases (trend continues), the probability of reversal rises**.
- The indicator **shades the background based on this probability**, visually displaying the likelihood of a **trend shift**.
---
## **Dynamic Adaptation to Market Conditions**
✔ **Volatility-Adjusted Trend Shifts:**
- A **custom volatility calculation** dynamically adjusts the **minimum trend duration** required before a trend shift is recognized.
- **Higher volatility → Requires longer confirmation before switching trend color.**
- **Lower volatility → Allows faster trend shifts.**
✔ **Adaptive Poisson Weighting:**
- **Recent trends are weighted more heavily** using an exponential decay function:
- **Decay Factor (0.618 by default)** prioritizes **recent intervals** while still considering historical trends.
- This ensures the model adapts to changing market conditions.
---
## **Key Takeaways for Traders**
✅ **Identify Persistent Trends vs. Mean Reversion:**
- Use the oscillator line to determine whether the market favors **trend-following or counter-trend strategies**.
✅ **Visual Trend Confirmation via Color Coding:**
- **Green = Uptrend**, **Red = Downtrend**.
- Trend changes help confirm **entry and exit points**.
✅ **Anticipate Trend Reversals Using Probability Models:**
- The **Poisson projection** provides a **statistical edge** in **timing exits before trends reverse**.
✅ **Adapt to Market Volatility Automatically:**
- Dynamic **volatility scaling** ensures the indicator remains effective in **both high and low volatility environments**.
Happy trading and enjoy!
JL - DWM OHLCThis indicator plots the following price levels on your chart automatically AND will not show up if you are using a timeframe bigger than 60 minutes, 1 day, or 1 week.
Here are the price levels that are automatically plotted for you, and so you know the styling is different for Daily, Weekly, Monthly levels so you can easily distinguish between them:
- Prior Day: High / Low / Close
- Current Day: Open
- Prior Week: High / Low / Close
- Current Week: Open
- Prior Month: High / Low / Close
- Current Month: Open
These plots are timeframe dependent and will not plot on subsequently higher timeframes, here is how they work:
Daily Price Levels are only shown on timeframes that are smaller than 60 minutes.
Weekly Price Levels are only shown on timeframes smaller than 1 Day.
Monthly Price Levels are only shown on timeframes smaller than 1 Week.
This way, you can turn on the indicator and not have to think about turning off certain price levels if you switch to a larger / longer timeframe than what you typically use.
For example, Daily OHLC price levels will quickly clutter the 60 minute chart, and likely you don't need to know the HLC of the Prior Day if you are looking at the 60 minute chart. Therefor it may be helpful to automatically hide the Daily price level plots, and only show the Weekly and Monthly plots on the 60 minute timeframe.
I hope you find this indicator helpful, thanks for reading.
day of Month | xilixMonthly Marker (1D Only)
The Monthly Marker indicator automatically highlights a specific day of the month on a daily (1D) chart by drawing a vertical line. Users can select their desired day of the month and customize the line color.
Features:
✅ Marks the chosen day of each month with a vertical line.
✅ Customizable line color (set in the indicator settings).
✅ Helps traders quickly identify key monthly dates.
Note: This indicator will not work on lower timeframes (e.g., 4H, 1H) and will show an error if applied outside the 1D timeframe.
Best Use Cases: Monthly trend tracking, economic event alignment, and custom date-based analysis. 🚀
Forex Pips Tracker PinescriptlabsThis algorithm is exclusively designed for the Forex market 🌐 and serves as a tool to measure volatility, helping to determine on average how many pips positions move per hour. With this information, a trader can place take profit and stop loss orders with greater certainty, since they know the average pip movement range during each hour of the day.
What does it do and how does it work?
• Volatility measurement in pips 📊:
The algorithm calculates the size of the movement (or range) of each candle expressed in pips. To do this, it takes the difference between the highest and lowest price of each candle and converts it into pips.
👉
• Time zone adjustment ⏰:
It allows you to configure the time zone so that the data aligns with your desired schedule. This is especially useful for comparing movements at different times based on the trader's location.
• Analysis by time intervals 🕒:
The algorithm’s logic organizes the information for each hour of the day. It stores data for the current day, the previous day, weekly, and historically (200 candles). This allows you to see how volatility varies across different periods, providing a dynamic view of market behavior.
👉
• Directionality of movement 🔄:
In addition to averaging the pip range, the algorithm determines the predominant direction of each candle (bullish or bearish). This translates into visual indicators (like arrows) that help identify whether, on average, the movement during that hour tends to go up or down.
• Table visualization 📈:
Finally, the information is presented in an integrated table on the chart. Each row corresponds to an hour of the day and shows the average number of pips and the direction (bullish, bearish, or neutral) for each analyzed period. This table makes it easy to quickly and practically interpret the volatility data.
By combining these features, the algorithm becomes an essential tool for traders looking to better understand market dynamics and optimize their trading strategies! 💼✨
Español:
Este algoritmo está diseñado exclusivamente para el mercado Forex 🌐 y sirve como una herramienta para medir la volatilidad, ayudando a determinar en promedio cuántos pips se mueven las posiciones por hora. Con esta información, un trader puede colocar el take profit y el stop loss con mayor certeza, ya que conoce el rango promedio de movimiento en pips durante cada hora del día.
¿Qué hace y cómo funciona?
• Medición de volatilidad en pips 📊:
El algoritmo calcula el tamaño del movimiento (o rango) de cada vela expresado en pips. Para ello, toma la diferencia entre el precio máximo y el mínimo de cada vela y la convierte a pips.
👉
• Ajuste de zona horaria ⏰:
Permite configurar la zona horaria para que los datos se ajusten al horario deseado. Esto es especialmente útil para comparar movimientos durante distintas horas en función de la localización del trader.
• Análisis por intervalos de tiempo 🕒:
La lógica del algoritmo organiza la información por cada hora del día. Guarda datos para el día actual, el día anterior, a nivel semanal e histórico (200 velas). Esto permite ver cómo varía la volatilidad en diferentes periodos, proporcionando una visión dinámica del comportamiento del mercado.
👉
• Direccionalidad del movimiento 🔄:
Además de promediar el rango en pips, el algoritmo determina la dirección predominante de cada vela (alcista o bajista). Esto se traduce en indicadores visuales (como flechas) que permiten identificar si, en promedio, el movimiento en esa hora tiende a subir o bajar.
• Visualización en tabla 📈:
Finalmente, la información se presenta en una tabla integrada en el gráfico. Cada fila corresponde a una hora del día y muestra el promedio de pips y la dirección (alcista, bajista o neutral) para cada uno de los periodos analizados. Esta tabla facilita la interpretación rápida y práctica de los datos de volatilidad.
Al combinar estas funciones, el algoritmo se convierte en una herramienta esencial para traders que buscan entender mejor la dinámica del mercado y optimizar sus estrategias de trading! 💼✨
My Custom RSIthis is a improvement to the rsi script in trading view. wanted as many options as possible so did my own thing. let me know if you like it. it works well for me and the way i trade. if you can improve it drop me a line, Im in.