Momentum Theory ScannerMomentum Theory Scanner is a mechanical pattern-recognition watchlist screener that utilizes higher timeframe breakout and peak levels to determine if an asset fits the criteria for a range, continuation, or reversal setup. It searches for ideal higher timeframe conditions that are usually present in high probability setups in order to reduce pre-market analysis time. It can be equally useful for scalpers, day traders, and swing traders.
✅ 8 Symbol Watchlist Scanner
✅ Mechanical Setups for Ranges, Continuations, Reversals
✅ For Scalpers, Day Traders, and Swing Traders
⚠️ Momentum Theory Scanner searches for assets that have the ideal conditions to trade a specific setup. They are NOT signals to be taken blindly without further analysis.
--- 📷 INDICATOR GALLERY ---
--- ⚡ FEATURES ---
✔ Multi-Timeframe Analysis
Displays various higher timeframe information in order to read how an asset is moving with one quick glance. Utilizes icons that serve as visual cues.
Watchlist Pair - Symbol in the watchlist
Setup Type - Shows the icon of what setup has been found ⭐ Trend Breakout
✨ Trend Breakout (Continuation)
🔥 Continuation
🚧 Range
🚩 Reversal
Quick Analysis - Displays bullish / bearish confluence based on breakout / peak bias ↗️↘️ Breakout Bias Alignment
🔼🔽 Peak Bias Alignment
🔀 Breakout and Peak Bias Alignment, but opposite
✅ Breakout and Peak Bias Alignment
Previous Bar Close - Shows how the previous bar closed Breakout
Fakeout
Inside
Outside
Trigger Type - Shows whether there is a peak breakout or fakeout ⚡ Peak Fakeout
🚀 Peak Breakout
Breakout Continuation - Shows if a timeframe has pulled back to the breakout level ▲▼ Counter-Trend Breakout
★ Breakout Continuation
Momentum Cycles - Shows which part of the momentum cycle price is currently in 🚩 Breakout Reversal
⛰️ False Breakout
🔥 Trend Reversal / Breakout Continuation
Breakout / Peak Bias - Shows the breakout level bias and if the peak has been triggered
✔ Levels Analysis
Hover over the symbol name to view which timeframe levels are bullish or bearish and if peak levels have been triggered.
✔ Built-In Presets
Create your own custom watchlist or use one of the built-in ones (using Oanda charts)
It's recommended to use the same source for all assets in your watchlist whenever possible
✔ Plug-and-Play
Automatically changes the relevant levels depending on the viewed timeframe. Just fill in your watchlist, add it to your chart, and start trading!
Set the indicator to the following timeframes to view those setups. When the momentum timeframe's peak is triggered, the watchlist state changes.
Month Timeframe - 12M / 6M / 3M / Month Momentum
Week Timeframe - 6M / 3M / M / Week Momentum
H1 Timeframe - 3M / M / W / Day Momentum
M20 Timeframe - M / W / D / H12 Momentum
M15 Timeframe - M / W / D / H8 Momentum
M10 Timeframe - M / W / D / H4 Momentum
M5 Timeframe - W / D / H8 / H2 Momentum
M3 Timeframe - D / H8 / H4 / H1 Momentum
--- 🧰 WATCHLIST STATES ---
⭐ Trend Breakout Setup
✨ Trend Breakout (Continuation) Setup
🔥 Continuation Setup
🚧 Range Setup
🚩 Reversal Setup
✔ Signal Bar
Ideal conditions to trade this setup are present, but has not met full setup criteria yet
✔ Signal Cycle
Asset has pulled back towards breakout level and possibly getting ready for a continuation
✔ No Setups
--- 💡 MOMENTUM THEORY CONCEPT ---
The best trade setups are found at swing points for 3 reasons:
They are the highest probability point the market will continue pushing.
They provide the best Stop Loss protection.
They offer the greatest Risk-to-Reward.
The goal of trading is to identify when these swing points occur to take the best trade setups.
Every swing point consists of a push towards a peak, a peak formation, and a push away from a peak. There is no way to know how long a push towards or away from a peak will last, but the peak formation can be identified by 2 elements:
A fakeout of a previous peak level
A flip of its last breakout level
We can track the movement of the market by looking at which peak level is triggered relative to its breakout level. How price behaves at the previous peak levels shows where momentum is headed. It continues to build towards a new peak until it fakes out the previous peak level and flips its breakout level, creating a swing point.
Swing points on the higher timeframes show up as multiple swing points on the lower timeframes, but they often won't be moving in sync. When 2 timeframe swing points get in alignment, the market will move smoothly together. You find the lower timeframe swing point the exact same way you find the higher timeframe one.
The market is constantly moving from one swing point to the next in a repeatable cycle. By using higher timeframe breakout levels and peak levels triggered, we can track where we are in this cycle to anticipate its future movement. This is the Momentum Cycle and it repeats itself over and over.
By using the exact same concept, we can identify mechanical alignment patterns on the lower timeframes to create setups that work in every phase of the market cycle. Momentum Theory Scanner searches for these patterns inside the watchlist.
✔ Range Setups
✔ Continuation Setups
✔ Reversal Setups
--- 📝 HOW TO USE ---
⚠ Click on "Indicators > Invite-Only > Momentum Theory Scanner" to add it to your charts.
1) Create your watchlist or use one of the built-in presets and place it on the timeframe you want to scan for setups (see Features above).
Put multiple together if you want more than 8 items in the watchlist. If you don't want to see the price chart, go to "Object Tree and Data Window" and turn off chart visibility.
2) Signal bars / cycles indicate that ideal conditions exist, but are not fully triggered yet. These are the pairs that should initially be focused on.
3) Setups will trigger in real-time and push to the top of the column.
⚠️ Momentum Theory Scanner searches for assets that have the ideal conditions to trade a specific setup. They are NOT signals to be taken blindly without further analysis.
Corak carta
Quarterly Performance█ OVERVIEW
The Quarterly Performance indicator is designed to visualise and compare the performance of different Quarters of the year. This indicator explores one of the many calendar based anomalies that exist in financial markets.
In the context of financial analysis, a calendar based anomaly refers to patterns or tendencies that are linked to specific time periods, such as days of the week, weeks of the month, or months of the year. This indicator helps explore whether such a calendar based anomaly exists between quarters.
By calculating cumulative quarterly performance and counting the number of quarters with positive returns, it provides a clear snapshot of whether one set of quarters tends to outperform the others, potentially highlighting a calendar based anomaly if a significant difference is observed.
█ FEATURES
Customisable time window through input settings.
Tracks cumulative returns for each quarter separately.
Easily adjust table settings like position and font size via input options.
Clear visual distinction between quarterly performance using different colours.
Built-in error checks to ensure the indicator is applied to the correct timeframe.
█ HOW TO USE
Add the indicator to a chart with a 3 Month (Quarterly) timeframe.
Choose your start and end dates in the Time Settings.
Enable or disable the performance table in the Table Settings as needed.
View the cumulative performance, with Q1 in blue, Q2 in red, Q3 in green and Q4 in purple.
Even vs Odd Days Performance█ OVERVIEW
The Even vs Odd Days Performance indicator is designed to visualise and compare the performance of even-numbered days versus odd-numbered days. This indicator explores one of the many calendar based anomalies that exist in financial markets.
In the context of financial analysis, a calendar based anomaly refers to patterns or tendencies that are linked to specific time periods, such as days of the week, weeks of the month, or months of the year. This indicator helps explore whether such a calendar based anomaly exists between even and odd days.
By calculating cumulative daily performance and counting the number of days with positive returns, it provides a clear snapshot of whether one set of days tends to outperform the other, potentially highlighting a calendar based anomaly if a significant difference is observed.
█ FEATURES
Customisable time window through input settings.
Tracks cumulative returns for even and odd days separately.
Easily adjust table settings like position and font size via input options.
Clear visual distinction between even and odd day performance using different colours.
Built-in error checks to ensure the indicator is applied to the correct timeframe.
█ HOW TO USE
Add the indicator to a chart with a Daily timeframe.
Choose your start and end dates in the Time Settings.
Enable or disable the performance table in the Table Settings as needed.
View the cumulative performance, with even days in green and odd days in red.
Even vs Odd Weeks Performance█ OVERVIEW
The Even vs Odd Weeks Performance indicator is designed to visualise and compare the performance of even-numbered weeks versus odd-numbered weeks. This indicator explores one of the many calendar based anomalies that exist in financial markets.
In the context of financial analysis, a calendar based anomaly refers to patterns or tendencies that are linked to specific time periods, such as days of the week, weeks of the month, or months of the year. This indicator helps explore whether such a calendar based anomaly exists between even and odd weeks.
By calculating cumulative weekly performance and counting the number of weeks with positive returns, it provides a clear snapshot of whether one set of weeks tends to outperform the other, potentially highlighting a calendar based anomaly if a significant difference is observed.
█ FEATURES
Customisable time window through input settings.
Tracks cumulative returns for even and odd weeks separately.
Easily adjust table settings like position and font size via input options.
Clear visual distinction between even and odd week performance using different colours.
Built-in error checks to ensure the indicator is applied to the correct timeframe.
█ HOW TO USE
Add the indicator to a chart with a Weekly timeframe.
Choose your start and end dates in the Time Settings.
Enable or disable the performance table in the Table Settings as needed.
View the cumulative performance, with even weeks in green and odd weeks in red.
Discount/Premium OTE LevelsThis indicator is created to identify discount/premium areas to provide additional confluence to trades taken. The underlying theory is that the trades taken in discounted areas are likely to have less risk due to a smaller stop loss and a higher reward/risk ratio.
The indicator operates by first identifying a zone between the last major swing high and low. These highs and lows are determined as price points that at the extremes within the number of bars to the left, as defined by the "Swing Sensitivity" setting.
Once a price zone is established, the indicator verifies that the zone meets the minimum size in points as configured via the "Minimum size" setting to be considered tradable. Zones that are too small may not provide a sufficient range even for scalping. The default value is 42 points based on Nasdaq, which means that the distance between inner most OTE levels (0.382 and 0.618) is at least 10 points.
When a valid zone is identified, it is then subdivided into areas of interest based on OTE levels, which can be configured/adjusted via the "Levels to Draw" setting. These levels represent the midpoint (50%), which distinguishes between premium and discount, and the three OTE levels 0.79, 0.705, 0.618, above the 50% for discount and below the 50% for premium.
For example, if a zone is formed initially by a swing low followed by a swing high with the assumption that the draw is higher, the indicator can be used to formulate long positions from below the 50% level starting at 0.38 OTE level, or ideally at 0.295 OTE level using 0 as a stop loss. Alternatively, if the 50% level is not yet tapped, short scalp positions can be made from 0.79-0.618 OTE levels with 50% as a partial or TP target.
See for long/short example
Typically, the indicator will show only a single zone. However, there may be cases with two zones: one larger parent zone containing a smaller, valid price zone within itself.
The indicator will automatically invalidate and remove the zone once the high/low of the zone is invalidated.
Configuration:
The indicator provides several visualization options for customization, including:
Color settings for OTE levels, with separate settings for edge/50% color, premium, and discount levels.
Settings for line style for OTE levels.
Settings to determine whether to show prices on level labels.
Settings to decide if lines should be extended to the right.
Candle Gap ScannerThis code will compare the first candle with the second candle. If the highest value reached by the first candle is lower than the lowest value reached by the second candle, and this difference is greater than a percentage value that can be adjusted in the settings, it will place a red mark. Additionally, it will compare the first candle with the second candle again. If the lowest value reached by the first candle is higher than the highest value reached by the second candle, and this difference is greater than a percentage value that can be adjusted in the settings, it will place a red mark.
4Hour Zone SeparatorThis custom TradingView indicator draws vertical lines on your chart to visually separate the 4-hour trading zones within a single trading day. The indicator helps traders identify key time intervals throughout the day for better market analysis and decision-making.
Features:
• Time-Based Zones: The indicator divides the day into six distinct 4-hour periods, starting from midnight (00:00) and continuing every 4 hours. Each zone is marked by a vertical line on the chart.
• User Customization: You can toggle the visibility of the lines for each 4-hour period (00:00, 04:00, 08:00, 12:00, 16:00, 20:00) based on your preference. This allows you to focus on specific zones that matter most for your analysis.
• Line Styling Options: Choose from three different line styles — Solid, Dashed, or Dotted — and adjust the thickness to your desired preference.
• Dynamic Time Adjustment: The indicator automatically adjusts for the time zone, ensuring that the 00:00 timestamp reflects the correct start of the day based on your chart’s time zone.
How It Works:
1. The indicator starts by calculating the beginning of the day at 00:00, then it sequentially places vertical lines every 4 hours.
2. Each line is color-coded for easy identification, and the lines stretch from the highest to the lowest point on the chart for that range.
3. The lines are drawn only when the chart enters a new 4-hour zone.
This tool is especially useful for day traders who want to track price action during specific times of the day and make informed decisions based on market behavior within each 4-hour period.
[TehThomas] - Market Structure Shift (MSS)
- Market Structure Shift (MSS) Script Overview
This TradingView script is designed to help traders identify Market Structure Shifts (MSS) and Breaks of Structure (BOS), which are key concepts in ICT (Inner Circle Trader) and Smart Money Concepts (SMC) trading. By detecting significant shifts in price action, the script provides visual cues and alerts to help traders spot potential trend changes and continuation patterns.
How the Script Works
1. Identifying Swing Highs & Lows
The script detects swing highs and swing lows based on a pivot strength setting (default: 3).
A swing high forms when a candle’s high is higher than the highs of a set number of candles on both sides.
A swing low forms when a candle’s low is lower than the lows of the surrounding candles.
2. Market Structure Shift (MSS) Detection
A bullish MSS occurs when price closes above the most recent swing high after previously being in a bearish trend.
A bearish MSS occurs when price closes below the most recent swing low after being in a bullish trend.
This signals a potential trend reversal and is often a key area for liquidity grabs and smart money entry points.
3. Break of Structure (BOS) Detection (Optional - Can be enabled/disabled in settings)
A BOS is detected when price continues in the direction of the trend, confirming a structural break rather than a shift.
Bullish BOS: Price breaks a swing high but does not reverse (confirms trend continuation).
Bearish BOS: Price breaks a swing low but continues downward.
BOS levels help traders confirm trend strength and potential trade continuation setups.
4. Drawing Structure Lines & Labels
The script plots horizontal lines at the detected MSS and BOS levels.
Labels such as "MSS" or "BOS" appear at the breakout points.
Traders can customize the line style, color, and text size for better visibility.
5. Alert System for MSS & BOS
The script includes alert conditions that notify traders when an MSS or BOS occurs.
Alerts can be set for:
Any MSS / Any BOS
Bullish MSS / Bullish BOS
Bearish MSS / Bearish BOS
Settings You Can Change
The script allows for full customization through the following input parameters:
Pivot Strength (pivot_strength)
Default: 4
Adjusts how many candles must be considered to form a valid swing high or low.
Higher values result in stronger structure points, while lower values detect short-term movements.
Color Settings
Highs Color (highs) → Default: Blue (for bullish structure)
Lows Color (lows) → Default: Red (for bearish structure)
Toggle Display Options
Show BOS (show_bos) → Enables/disables BOS detection.
Show MSS (show_mss) → Enables/disables MSS detection.
Line & Label Customization
BOS Line Style (bos_style) → Options: Solid, Dashed, Dotted
MSS Line Style (mss_style) → Options: Solid, Dashed, Dotted
BOS & MSS Line Width → Adjustable from 1 to 4 pixels
BOS & MSS Text Size → Options: Tiny, Small, Normal, Large, Huge
BOS & MSS Text Position → Options: Left, Center, Right
Why This Script is Useful
✔ Detects Key Market Structure Changes
MSS and BOS are critical for identifying trend reversals and trend continuations.
Helps traders avoid false breakouts by distinguishing between structural shifts and simple breakouts.
✔ Enhances Smart Money Trading Strategies
MSS often aligns with liquidity grabs before price reverses.
BOS confirms continuation trades in strong trends.
Works well with Fair Value Gaps (FVGs), Order Blocks (OBs), and Liquidity Zones.
✔ Customizable Alerts & Visuals
Traders can enable alerts for MSS and BOS to receive notifications when price shifts.
Adjustable styling ensures clarity across different trading setups.
✔ Works on Any Asset & Timeframe
Suitable for Forex, Crypto, Stocks, and Indices.
Can be used on lower timeframes (scalping) or higher timeframes (swing trading).
How to Use the Market Structure Shift Concept in Trading
1️⃣ Identify Market Conditions
Apply the script and check if price is forming Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), or Lower Lows (LL).
Determine if the market is trending or ranging.
2️⃣ Watch for MSS (Reversal Signals)
Bullish MSS: Price closes above a key swing high → potential bullish reversal.
Bearish MSS: Price closes below a swing low → potential bearish reversal.
3️⃣ Confirm BOS (Trend Continuation Signals)
Bullish BOS: Price continues breaking highs, confirming an uptrend.
Bearish BOS: Price continues breaking lows, confirming a downtrend.
4️⃣ Combine with Other ICT & SMC Concepts
Look for Order Blocks (OBs) and Fair Value Gaps (FVGs) near MSS/BOS levels for better trade entries.
Wait for liquidity grabs before entering trades (avoid stop hunts).
Use higher timeframe MSS/BOS zones as key support & resistance areas.
Final Thoughts
This script is a must-have tool for traders using ICT & SMC trading strategies. It helps identify trend shifts, liquidity grabs, and continuation moves by marking Market Structure Shifts (MSS) and Breaks of Structure (BOS) on the chart.
[TehThomas] - ICT Premium & Discount - ICT Premium & Discount: Script Overview
This TradingView script is designed to visualize the ICT (Inner Circle Trader) Premium & Discount Concept by dynamically identifying the key price zones within a specified lookback period. It highlights the Premium Zone, Discount Zone, and Equilibrium Level, helping traders assess where price is trading in relation to historical highs and lows.
How the Script Works
1. Lookback Period Calculation
The script scans the last X bars (user-defined lookback period) to find the highest high and lowest low during that time.
This helps establish a reference range for determining whether the current price is trading in a premium (overbought) or discount (oversold) area.
2. Equilibrium Level
The equilibrium is simply the midpoint between the highest high and the lowest low within the lookback period.
This level serves as a fair value price where price often reacts or consolidates.
3. Drawing the Premium & Discount Zones
The script creates two distinct zones:
Premium Zone (above equilibrium): Price is considered expensive.
Discount Zone (below equilibrium): Price is considered cheap.
These zones are displayed using colored boxes (red for premium, green for discount).
4. Equilibrium Line & Labels
A dashed equilibrium line is plotted at the midpoint to give a visual reference.
Labels for Premium, Discount, and Equilibrium are added to help traders quickly identify these levels.
Settings You Can Change
The script includes multiple input parameters that allow customization:
1. Lookback Period (lookback)
Default: 50 bars
Defines how many past candles to analyze for the highest high and lowest low.
A larger lookback provides a broader market structure, while a smaller one captures short-term moves.
Premium Zone Color (premium_color)
Default: Red (80% transparency)
You can modify this to change how the premium zone appears on the chart.
Discount Zone Color (discount_color)
Default: Green (80% transparency)
Allows customization of the discount zone’s color.
Extend Boxes Right (extend_right)
Default: 15 bars
Defines how far the premium and discount boxes extend into the future for better visibility.
Why This Script is Useful
Identifies High-Probability Trade Zones.
Traders can use the Premium & Discount zones to find optimal trade entries based on ICT concepts.
Buy in the Discount Zone and sell in the Premium Zone when confluence aligns.
Enhances Smart Money Concepts (SMC) Trading
ICT traders look for liquidity sweeps, fair value gaps, and order blocks.
Combining these with premium & discount levels increases trade accuracy.
Works on Any Timeframe & Asset
The script is effective across forex, crypto, stocks, and indices on multiple timeframes.
How to Use the ICT Premium & Discount Concept in Trading
Find the Range
Apply the script to your chart and check the premium and discount levels.
Ensure you are using a relevant lookback period (e.g., 50 bars for intraday, 100+ for higher timeframes).
Wait for Price to Enter a Key Zone
Long Trades: Look for bullish confirmations (e.g., liquidity grabs, order blocks) in the Discount Zone.
Short Trades: Seek bearish setups in the Premium Zone where price is expensive.
Use the Equilibrium as a Reaction Zone
Price often bounces off or retests equilibrium before making a directional move.
Consider it as a dynamic support/resistance level.
Combine with Other ICT Concepts
Fair Value Gaps (FVGs): Look for price inefficiencies inside premium/discount zones.
Liquidity Sweeps: Watch for stop hunts and false breakouts before entering trades.
Order Blocks (OBs): Use smart money footprints to refine your entries.
Final Thoughts
This script is a powerful tool for ICT traders looking to refine their premium & discount analysis. By visually separating the market into premium (overbought) and discount (oversold) zones, traders can make more informed, high-probability trading decisions.
Swing Breakout System (SBS)The Swing Breakout Sequence (SBS) is a trading strategy that focuses on identifying high-probability entry points based on a specific pattern of price swings. This indicator will identify these patterns, then draw lines and labels to show confirmation.
How To Use:
The indicator will show both Bullish and Bearish SBS patterns.
Bullish Pattern is made up of 6 points: Low (0), HH (1), LL (2 | but higher than initial Low), New HH (3), LL (5), LL again (5)
Bearish Patten is made up of 6 points: High (0), LL (1), HH (2 | but lower than initial high), New LL (3), HH (5), HH again (5)
A label with an arrow will appear at the end, showing the completion of a successful sequence
Idea behind the strategy:
The idea behind this strategy, is the accumulation and then manipulation of liquidity throughout the sequence. For example, during SBS sequence, liquidity is accumulated during step (2), then price will push away to make a new high/low (step 3), after making a minor new high/low, price will retrace breaking the key level set up in step (2). This is price manipulating taking liquidity from behind high/low from step (2). After taking liquidity price the idea is price will continue in the original direction.
Step 0 - Setting up initial direction
Step 1 - Setting up initial direction
Step 2 - Key low/high establishing liquidity
Step 3 - Failed New high/low
Step 4 - Taking liquidity from step (2)
Step 5 - Taking liquidity from step 2 and 4
Pattern Detection:
- Uses pivot high/low points to identify swing patterns
- Stores 6 consecutive swing points in arrays
- Identifies two types of patterns:
1. Bullish Pattern: A specific sequence of higher lows and higher highs
2. Bearish Pattern: A specific sequence of lower highs and lower lows
Note: Because the indicator is identifying a perfect sequence of 6 steps, set ups may not appear frequently.
Visualization:
- Draws connecting lines between swing points
- Labels each point numerically (optional)
- Shows breakout arrows (↑ for bullish, ↓ for bearish)
- Generates alerts on valid breakouts
User Input Settings:
Core Parameters
1. Pivot Lookback Period (default: 2)
- Controls how many bars to look back/forward for pivot point detection
- Higher values create fewer but more significant pivot points
2. Minimum Pattern Height % (default: 0.1)
- Minimum required height of the pattern as a percentage of price
- Filters out insignificant patterns
3. Maximum Pattern Width (bars) (default: 50)
- Maximum allowed width of the pattern in bars
- Helps exclude patterns that form over too long a period
Midgar's DikFat Dynamic Support and ResistanceMidgar Heiken-Ashi Commission Indicator
This indicator is a leading indicator designed to identify key price levels and potential support/resistance zones using Heiken-Ashi calculations. It provides visual aids such as dynamic support/resistance lines, price labels, and percentage distance tags to help traders interpret market structure more effectively.
How It Works:
1. Heiken-Ashi Calculation
- The indicator constructs Heiken-Ashi values based on standard formulas.
- The open price is smoothed using prior Heiken-Ashi values to maintain continuity.
2. Dynamic Support & Resistance (S/R) Detection
- Identifies "sandwich" Heiken-Ashi candles (specific bullish or bearish patterns).
- Plots dynamic support and resistance levels based on these key candles.
- Two sets of support/resistance lines are available:
- Primary Dynamic S/R (based on strong HA reversals).
- Companion Indicator Dynamic S/R (a secondary validation layer).
3. Customizable Visualization
- Infinite or right-extended support/resistance lines.
- Price labels at key levels (optional).
- Custom background color highlighting for detected S/R areas.
- Adjustable transparency settings for improved chart clarity.
4. Percentage Distance Calculation
- Calculates the percentage difference between detected support and resistance levels.
- Optionally displays distance tags for quick reference.
Important Notes:
- This is a leading indicator. It aims to highlight potential future support and resistance areas rather than reacting to past movements.
- Recommended for use on a candlestick chart. Using it on a other chart types may produce unintended results.
- No single indicator should be relied upon for trading decisions. Always use multiple forms of analysis and risk management strategies.
- Trading results are never guaranteed. Past performance does not predict future results, and all trading involves risk.
This indicator provides a structured view of market behavior using Heiken-Ashi principles, helping traders visualize potential support and resistance zones more effectively.
HTF Candle Range Box (Fixed to HTF Bars)### **Higher Timeframe Candle Range Box (HTF Box Indicator)**
This indicator visually highlights the price range of the most recently closed higher-timeframe (HTF) candle, directly on a lower-timeframe chart. It dynamically adjusts based on the user-selected HTF setting (e.g., 15-minute, 1-hour) and ensures that the box is displayed only on the bars that correspond to that specific HTF candle’s duration.
For instance, if a trader is on a **1-minute chart** with the **HTF set to 15 minutes**, the indicator will draw a box spanning exactly 15 one-minute candles, corresponding to the previous 15-minute HTF candle. The box updates only when a new HTF candle completes, ensuring that it does not change mid-formation.
---
### **How It Works:**
1. **Retrieves Higher Timeframe Data**
The script uses TradingView’s `request.security` function to pull **high, low, open, and close** values from the **previously completed HTF candle** (using ` ` to avoid repainting). It also fetches the **high and low of the candle before that** (using ` `) for comparison.
2. **Determines Breakout Behavior**
It compares the **last closed HTF candle** to the **one before it** to determine whether:
- It **broke above** the previous high.
- It **broke below** the previous low.
- It **broke both** the high and low.
- It **stayed within the previous candle’s range** (no breakout).
3. **Classifies the Candle & Assigns Color**
- **Green (Bullish)**
- Closes above the previous candle’s high.
- Breaks below the previous candle’s low but closes back inside the previous range **if it opened above** the previous high.
- **Red (Bearish)**
- Closes below the previous candle’s low.
- Breaks above the previous candle’s high but closes back inside the previous range **if it opened below** the previous low.
- **Orange (Neutral/Indecisive)**
- Stays within the previous candle’s range.
- Breaks both the high and low but closes inside the previous range without a clear bias.
4. **Box Placement on the Lower Timeframe**
- The script tracks the **bar index** where each HTF candle starts on the lower timeframe (e.g., every 15 bars on a 1-minute chart if HTF = 15 minutes).
- It **only displays the box on those bars**, ensuring that the range is accurately reflected for that time period.
- The box **resets and updates** only when a new HTF candle completes.
---
### **Key Features & Advantages:**
✅ **Clear Higher Timeframe Context:**
- The indicator provides a structured way to analyze HTF price action while trading in a lower timeframe.
- It helps traders identify **HTF support and resistance zones**, potential **breakouts**, and **failed breakouts**.
✅ **Fixed Box Display (No Mid-Candle Repainting):**
- The box is drawn **only after the HTF candle closes**, avoiding misleading fluctuations.
- Unlike other indicators that update live, this one ensures the trader is looking at **confirmed data** only.
✅ **Flexible Timeframe Selection:**
- The user can set **any HTF resolution** (e.g., 5min, 15min, 1hr, 4hr), making it adaptable for different strategies.
✅ **Dynamic Color Coding for Quick Analysis:**
- The **color of the box reflects the market sentiment**, making it easier to spot trends, reversals, and fake-outs.
✅ **No Clutter – Only Applies to the Relevant Bars:**
- Instead of spanning across the whole chart, the range box is **only visible on the bars belonging to the last HTF period**, keeping the chart clean and focused.
---
### **Example Use Case:**
💡 Imagine a trader is scalping on the **1-minute chart** but wants to factor in **HTF 15-minute structure** to avoid getting caught in bad trades. With this indicator:
- They can see whether the last **15-minute candle** was bullish, bearish, or indecisive.
- If it was **bullish (green)**, they may look for **buying opportunities** at lower timeframes.
- If it was **bearish (red)**, they might anticipate **a potential pullback or continuation down**.
- If the **HTF candle failed to break out**, they know the market is **ranging**, avoiding unnecessary trades.
---
### **Final Thoughts:**
This indicator is a **powerful addition for traders who combine multiple timeframes** in their analysis. It provides a **clean and structured way to track HTF price movements** without cluttering the chart or requiring constant manual switching between timeframes. Whether used for **intraday trading, swing trading, or scalping**, it adds an extra layer of confirmation for trade entries and exits.
🔹 **Best for traders who:**
- Want **HTF structure awareness while trading lower timeframes**.
- Need **confirmation of breakouts, failed breakouts, or indecision zones**.
- Prefer a **non-repainting tool that only updates after confirmed HTF closes**.
Let me know if you want any adjustments or additional features! 🚀
Dynamic 200 EMA with Trend-Based ColoringDescription:
This script plots the 200-period Exponential Moving Average (EMA) and dynamically changes its color based on the trend direction. The script helps traders quickly identify whether the price is above or below the 200 EMA, which is widely used as a long-term trend indicator.
How It Works:
The script calculates the 200 EMA based on the closing price.
If the price is above the EMA, it suggests a bullish trend, and the EMA line turns green.
If the price is below the EMA, it suggests a bearish trend, and the EMA line turns red.
An optional background color is added to enhance visual clarity, highlighting the current trend direction.
Use Cases:
Trend Confirmation: Helps traders determine if the overall trend is bullish or bearish.
Support and Resistance: The 200 EMA is often used as dynamic support/resistance.
Entry & Exit Signals: Traders can use crossovers with the 200 EMA as potential trade signals.
This script is designed for traders looking for a simple yet effective way to incorporate trend visualization into their charts. It is fully open-source and can be customized to fit individual trading strategies.
Advanced 1-Minute Open Range Breakout IndicatorThis indicator is designed for the market on a 1-minute chart. It calculates the open range based on the first 5 minutes after the market open (09:30 – 09:35) and plots the high and low of this period as the daily resistance and support levels respectively. Additionally, the indicator displays the previous day’s high and low as blue horizontal lines, providing extra reference levels.
Trade signals are generated only during the active trading session (09:35 – 16:00). The advanced trade logic works as follows:
• For long entries:
- When the price first breaks above the open range high, the indicator enters a “breakout” state.
- If the price then retraces to (or below) the open range high, it moves to a “retest” state.
- Finally, if the price breaks above the open range high again, a long signal is issued.
• For short entries:
- When the price first breaks below the open range low, the indicator enters a “breakdown” state.
- If the price then retraces to (or above) the open range low, it moves to a “retest” state.
- Finally, if the price breaks below the open range low again, a short signal is issued.
All signals and the open range lines are only displayed during the trading session (09:35 to 16:00).
Use this indicator to help identify high-probability breakout setups in the early part of the trading day.
PullBack_Level_HunterThis script creates an "Auto Fibonacci" indicator that automatically plots selected Fibonacci retracement levels on a chart, based on a defined lookback period. Users can choose from various Fibonacci levels (0.236, 0.382, 0.5, 0.618, or 0.786) via a dropdown input, allowing for quick adjustments to analysis.
**Key Features:**
1. **Fibonacci Level Selection:** Users can select from multiple Fibonacci levels (0.236, 0.382, 0.5, 0.618, and 0.786) for analysis.
2. **Lookback Period:** The script allows users to define a lookback period to determine the highest high and the lowest low for plotting Fibonacci levels.
3. **Fibonacci Level Calculation:** The Fibonacci levels are calculated using two functions:
- `fib_level`: Calculates the Fibonacci level based on the highest high and lowest low of the lookback period.
- `fib_level_from_current`: Calculates the Fibonacci level from the current candle’s high.
4. **Plotting:** The script plots the selected Fibonacci level on the chart, using a red line for the general Fibonacci level and a blue line for the level calculated from the current high.
5. **Dynamic Visualization:** The Fibonacci levels are drawn as step lines to clearly visualize price levels based on historical data and current price action.
This tool is ideal for traders who wish to quickly assess key Fibonacci levels for potential support or resistance within a customizable lookback period.
LRLR [TakingProphets]LRLR (Low Resistance Liquidity Run) Indicator
This indicator identifies potential liquidity runs in areas of low resistance, based on ICT (Inner Circle Trader) concepts. It specifically looks for a series of unmitigated swing highs in a downtrend that form without any bearish fair value gaps (FVGs) between them.
What is an LRLR?
- A Low Resistance Liquidity Run occurs when price creates a series of lower highs without any bearish fair value gaps in between
- The absence of bearish FVGs indicates there is no significant resistance in the area
- These formations often become targets for smart money to collect liquidity above the swing highs
How to Use the Indicator:
1. The indicator will draw a diagonal line connecting a series of qualifying swing highs
2. A small "LRLR" label appears to mark the pattern
3. These areas often become targets for future price moves, as they represent zones of accumulated liquidity with minimal resistance
Key Points:
- Minimum of 4 consecutive lower swing highs
- No bearish fair value gaps can exist between these swing highs
- The diagonal line helps visualize the liquidity run formation
- Can be used for trade planning and identifying potential reversal zones
Settings:
- Show Labels: Toggle the "LRLR" label visibility
- LRLR Line Color: Customize the appearance of the diagonal line
Best Practices:
1. Use in conjunction with other ICT concepts and market structure analysis
2. Pay attention to how price reacts when returning to these levels
3. Consider these areas as potential targets for smart money liquidity grabs
4. Most effective when used on higher timeframes (4H and above)
Note: This is an educational tool and should be used as part of a complete trading strategy, not in isolation.
CCI Buy and Sell Signals with 20/30 EMACCI Buy and Sell Signals with EMA and ATR Stop Loss/Take Profit
This indicator is designed to identify buy and sell signals based on a combination of the Commodity Channel Index (CCI) and Exponential Moving Averages (EMA). It also includes an optional ATR-based stop loss and take profit system, which is useful for traders who want to manage their trades with dynamic risk levels.
Features:
CCI Buy and Sell Signals:
Buy Signal: A buy signal is triggered when the CCI crosses up through -100 (from an oversold condition), the 20-period EMA is above the 30-period EMA, and the price is above the 200-period EMA. This suggests that the market is entering an upward trend.
Sell Signal: A sell signal is triggered when the CCI crosses down through +100 (from an overbought condition), the 20-period EMA is below the 30-period EMA, and the price is below the 200-period EMA. This suggests that the market is entering a downward trend.
Exponential Moving Averages (EMA):
The script plots three EMAs:
20-period EMA (Green): Used to identify short-term trends.
30-period EMA (Red): Used to capture medium-term trends.
200-period EMA (Orange): A long-term trend filter, with the price above it generally indicating bullish conditions and below it indicating bearish conditions.
ATR-Based Stop Loss and Take Profit:
Optional Feature: The ATR (Average True Range) indicator can be used to set stop loss and take profit levels based on market volatility.
Stop Loss: Set at a multiple of the ATR below the entry price for long positions and above the entry price for short positions.
Take Profit: Set at a multiple of the ATR above the entry price for long positions and below the entry price for short positions.
Customizable: You can adjust the ATR length, Stop Loss Multiplier, and Take Profit Multiplier through the settings.
Dots: The stop loss and take profit levels are plotted as dots on the chart when the ATR feature is enabled.
Alert Conditions:
Buy Signal Alert: Triggered when a buy signal occurs based on CCI crossing up -100 and other conditions being met.
Sell Signal Alert: Triggered when a sell signal occurs based on CCI crossing down +100 and other conditions being met.
Any Signal Alert: This is a combined alert that triggers for either a buy or sell signal. It helps you stay updated on both types of signals simultaneously.
How to Use:
The indicator will plot buy and sell arrows on the chart, giving clear entry points for trades based on CCI and EMA conditions.
The ATR stop loss and take profit dots (when enabled) provide automatic risk management levels, adjusting dynamically with market volatility.
Traders can customize the ATR settings to fine-tune their stop loss and take profit levels, making this strategy adaptable to different trading styles and market conditions.
EMA & Bollinger BandsThis indicator combines three main functionalities into a single script:
1. Exponential Moving Average (EMA):
- Purpose: Calculates and plots the EMA of a chosen price source.
- Inputs:
- EMA Length: The period for the EMA calculation.
- EMA Source: The price series (such as close) used for the EMA.
- EMA Offset: Allows shifting the EMA line left or right on the chart.
- Output: A blue-colored EMA line plotted on the chart.
2. Smoothing MA on EMA:
- Purpose: Applies a secondary moving average (MA) on the previously calculated EMA. There is also an option to overlay Bollinger Bands on this smoothed MA.
- Inputs:
- Smoothing MA Type: Options include "None", "SMA", "SMA + Bollinger Bands", "EMA", "SMMA (RMA)", "WMA", and "VWMA".
- Selecting "None" disables this feature.
- Choosing "SMA + Bollinger Bands" will additionally plot Bollinger Bands around the smoothed MA.
- Smoothing MA Length: The period used to calculate the smoothing MA.
- BB StdDev for Smoothing MA: The standard deviation multiplier for the Bollinger Bands (applies only when "SMA + Bollinger Bands" is selected).
- Calculation Details:
- The chosen MA type is applied to the EMA value.
- If Bollinger Bands are enabled, the script computes the standard deviation of the EMA over the smoothing period, multiplies it by the specified multiplier, and then plots an upper and lower band around the smoothing MA.
- Output:
- A yellow-colored smoothing MA line.
- Optionally, green-colored upper and lower Bollinger Bands with a filled background if the "SMA + Bollinger Bands" option is selected.
3. Bollinger Bands on Price:
- Purpose: Independently calculates and plots traditional Bollinger Bands based on a moving average of a selected price source.
- Inputs:
- BB Length: The period for calculating the moving average that serves as the basis of the Bollinger Bands.
- BB Basis MA Type: The type of moving average to use (options include SMA, EMA, SMMA (RMA), WMA, and VWMA).
- BB Source: The price series (such as close) used for the Bollinger Bands calculation.
- BB StdDev: The multiplier for the standard deviation used to calculate the upper and lower bands.
- BB Offset: Allows shifting the Bollinger Bands left or right on the chart.
- Calculation Details:
- The script computes a basis line using the selected MA type on the chosen price source.
- The standard deviation of the price over the specified period is then multiplied by the provided multiplier to determine the distance for the upper and lower bands.
- Output:
- A basis line (typically drawn in a blue tone), an upper band (red), and a lower band (teal).
- The area between the upper and lower bands is filled with a semi-transparent blue background for easier visualization.
---
How It Works Together
- Integration:
The script is divided into clearly labeled sections for each functionality. All parts are drawn on the same chart (overlay mode enabled), providing a comprehensive view of market trends.
- Customization:
Users can adjust parameters for the EMA, the smoothing MA (and its optional Bollinger Bands), as well as the traditional Bollinger Bands independently. This allows for flexible customization depending on the trader's strategy or visual preference.
- Utility:
Combining these three analyses into one indicator enables traders to view:
- The immediate trend via the EMA.
- A secondary smoothed trend that might help reduce noise.
- A volatility measure through Bollinger Bands on both the price and the smoothed EMA.
---
This combined indicator is useful for technical analysis by providing both trend-following (EMA and smoothing MA) and volatility indicators (Bollinger Bands) in one streamlined tool.
Sadosi Gap SelecterThis indicator is designed to be used on daily charts. Please note that it will not work with weekly or hourly data.
The Sadosi Gap Selecter is a powerful indicator designed to identify price gaps that occur between specific dates on the chart. It allows users to easily analyze price movements between selected weeks and days, highlighting these periods with visual boxes. This helps traders spot potential trend reversals and key price levels more effectively. It’s particularly valuable for those utilizing gap trading strategies to identify market inefficiencies.
The core functionality of this indicator is based on detecting price differences between two selected days within a defined date range. With the Start Day (day1) and End Day (day2) options, you can choose the exact days of the week you’d like to analyze. For instance, if you want to focus on price movements from Friday to Monday, simply select those days. Additionally, the Start Week (week1) and End Week (week2) settings allow you to narrow down the time frame on a weekly basis, making it easy to analyze price behavior during specific periods of the year.
For visual customization, several options are available. The Color (renk) setting lets you choose between red and yellow for the highlighted boxes. The Transparency (op) control adjusts the background opacity from 0% (fully opaque) to 100% (completely transparent), allowing you to manage how prominently the boxes appear on your chart. Furthermore, the Border (hat) option enables you to add or remove borders around the boxes, helping reduce visual clutter or emphasize certain areas depending on your preference.
Once applied to the chart, the indicator automatically generates boxes for the specified date ranges. The upper and lower bounds of each box are determined based on the price movement within that period, providing insights into the direction and strength of the trend. However, this tool does not generate definitive buy or sell signals on its own. It is recommended to use it alongside other technical analysis tools to make more informed trading decisions.
With the Sadosi Gap Selecter, you can gain clearer insights into price behavior, strengthen your trend analyses using historical data, and fully customize the settings to match your trading style for more effective results.
This indicator is designed to be used on daily charts. Please note that it will not work with weekly or hourly data
Range Chart Time Analyzer by Shresht
DISCLAIMER :
This indicator is provided for informational and educational purposes only. It is not intended as financial, investment, or trading advice. The calculations and data presented by this indicator are based on available historical information and predefined logic, which may not always reflect real-time market conditions accurately.
I do not guarantee the accuracy, reliability, or completeness of the values displayed by this indicator. Users should independently verify any data before making trading decisions. I am not responsible or liable for any losses, damages, or financial consequences resulting from the use of this indicator.
By using this indicator, you acknowledge and accept full responsibility for any actions taken based on its output. Always conduct your own research and consult with a qualified financial professional before making any investment or trading decisions.
Range-Chart Time Analyzer
Make your Range Chart Complete
Overview:
This indicator is specifically designed for Range Charts. Unlike traditional charts, Range Charts plot bars at varying time intervals. This indicator helps visualize these "time warps" by calculating the difference between the opening time of the current bar and the opening time of the previous bar, along with their averages. Additionally, it offers optional settings to display Green-only, Red-only, or Green vs. Red averages .
Time Unit:
This indicator uses seconds as the unit of measurement for time
Logic: At its core, it relies solely on the opening time of each candle. The averages are calculated based on the time difference between consecutive pair of bars. For example, with a length of 3, the average is computed as:
/ 2
Features :
~Three Averages
~Green Candle only Average , Red Candle only Average and Green vs Red Average ( Green only Average minus Red only Average )
Inputs/Settings :
~Reference Bar: When the indicator is first added to the chart, it will prompt you to select a Reference Bar. This selection can be changed later without reapplying the indicator by either specifying the timestamp in the settings or adjusting the slider that appears above the red "R" label when hovering over it. The Reference Bar allows you to calculate an average starting from a specific point in time, such as the beginning of a trading session or a significant event like a news release or an announcement.
~Session Breaker: This feature ensures that averages are not skewed by the large time gap between trading sessions, i.e., the last candle of the previous session and the first candle of the current session. It is measured in seconds, as mentioned earlier. Set it to a large number of seconds, but ensure that it is less than the actual time gap between sessions.
~ Length and Length 2: The default Length is set to 2, allowing you to see individual differences. It is important to understand the following: WHEN LENGTH IS 2, THE AVERAGE DISPLAYED BELOW A CANDLE REPRESENTS THE DIFFERENCE BETWEEN THE PREVIOUS CANDLE'S OPEN TIME AND THE CURRENT/LATEST CANDLE'S OPEN TIME. BECAUSE, IN RANGE CHARTS, THE CLOSE OF THE PREVIOUS CANDLE AND THE OPEN OF THE CURRENT CANDLE ARE THE SAME, THIS MAY RESULT IN A RED-COLORED COLUMN APPEARING BELOW A GREEN CANDLE IF THE PREVIOUS CANDLE WAS RED. HOWEVER, THIS DOES NOT AFFECT THE ACCURACY OF THE RED ONLY OR GREEN ONLY AVERAGES. THIS INDICATOR IS ALWAYS "ONE CANDLE AHEAD" IN ITS PLOTTING.
Length 2 is used to calculate a third, larger average with a custom length of your choice.
~ Length for Green Only Average and Length for Red Only Average: These inputs define the lookback period for calculating the average of a specific candle color. A crucial point to remember is that when displaying the Green vs Red Average, both these inputs must be set to the same value to ensure an accurate comparison .
DISCLAIMER :
This indicator is provided for informational and educational purposes only. It is not intended as financial, investment, or trading advice. The calculations and data presented by this indicator are based on available historical information and predefined logic, which may not always reflect real-time market conditions accurately.
I do not guarantee the accuracy, reliability, or completeness of the values displayed by this indicator. Users should independently verify any data before making trading decisions. I am not responsible or liable for any losses, damages, or financial consequences resulting from the use of this indicator.
By using this indicator, you acknowledge and accept full responsibility for any actions taken based on its output. Always conduct your own research and consult with a qualified financial professional before making any investment or trading decisions.
the rainbow unicornScript Name: The Rainbow Unicorn
Description:
The Rainbow Unicorn is a unique visual indicator designed to add a touch of color and fun to your trading charts. This indicator colors the bars, wicks, and borders using rainbow colors, making technical analysis more enjoyable and visually appealing.
Features:
Rainbow Colors: Bars, wicks, and borders are colored in red, orange, yellow, green, blue, and purple, creating a dynamic rainbow effect.
Customization: Colors are applied cyclically, offering a continuous and smooth visualization of market data.
Ease of Use: No complex configuration is required. Simply add the indicator to your chart to see the rainbow colors in action.
How It Works:
The indicator uses a function to generate rainbow colors and applies them to the bars on the chart based on their index. The colors are defined in an array and are applied cyclically, meaning each bar receives a different rainbow color.
Usage:
Add the "The Rainbow Unicorn" indicator to your chart.
Observe the rainbow-colored bars for a more visual and fun trading experience.
Use this indicator in conjunction with your other technical analysis tools for better visualization of trends and price movements.
Underlying Concepts:
This indicator is primarily designed to enhance the visual experience of traders by adding vibrant and dynamic colors to the charts. It does not rely on complex calculations or trend detection methods but aims to make technical analysis more enjoyable and engaging.
Overlay Daily Candle [odnac]This script is designed to visually overlay the daily candle on various timeframes, allowing traders to quickly assess the shape of the daily candle, its high and low points, and the relationship between the open and close prices.
Additionally, it helps to intuitively identify upward and downward movements by using color-coded bullish and bearish candles.
Key Features
Candle Color Indication: Bullish candles are shown in green, while bearish candles are shown in red.
Candle Body Box: The box represents the body of the daily candle, based on the open and close prices.
Candle Wick: The wicks of the daily candle are drawn to represent the high and low prices.
Date Change Detection: When a new date begins, the previous data is reset, and new boxes and lines are drawn according to the updated date.
How to Use
You can adjust the script’s options to customize the color of bullish and bearish candles, as well as the transparency of the boxes, to suit your personal style.