Timeframe Display Table with CustomizationsPlaces a single cell table in the top right of the chart to display the currently viewed timeframe at all times on the chart.
Candlestick analysis
beanBean's Multi-Instrument Pattern Scanner.
This indicator scans H1 timeframe for specific technical patterns. Here's how each pattern is detected:
PATTERN DETECTION CRITERIA:
1. Hammer
- Body Size: ≤ 30% of total candle length
- Lower Wick: > 50% of total candle length
- Upper Wick: < 20% of total candle length
- Formula:
* bodySize = |close - open|
* upperWick = high - max(open, close)
* lowerWick = min(open, close) - low
* totalLength = high - low
2. Shooting Star
- Body Size: ≤ 30% of total candle length
- Upper Wick: > 50% of total candle length
- Lower Wick: < 20% of total candle length
- Uses same measurements as Hammer but inverted
3. Outside/Inside (OI)
Checks three consecutive bars:
- Outside Bar: Bar2 high ≥ Bar3 high AND Bar2 low ≤ Bar3 low
- Inside Bar: Bar1 high ≤ Bar2 high AND Bar1 low ≥ Bar2 low
Pattern confirms when both conditions are met
4. Bullish/Bearish Umbrella
Checks two consecutive bars:
Bullish:
- Current bar's high ≤ previous bar's high
- Current body high ≤ previous bar's high
- Current body low ≥ previous body high
Bearish:
- Current bar's low ≥ previous bar's low
- Current body low ≥ previous bar's low
- Current body high ≤ previous body low
5. Three Bar Triangle (3BT)
Checks three consecutive bars:
- Current bar's high ≤ max(previous two highs)
- Current bar's low ≥ min(previous two lows)
- Indicates price compression
DISPLAY AND ALERTS:
- Patterns are displayed in real-time in the table
- Multiple patterns can be detected simultaneously
- Pattern detection resets each new H1 candle
CONFIGURATION:
- Each row can be independently configured
- Patterns are checked on H1 timeframe close
- Alert frequency: Once per H1 bar close
Note: All measurements use standard OHLC values from only completed H1 candles.
Higher Time Frame Fair Value Gap [ZeroHeroTrading]A fair value gap (FVG) highlights an imbalance area between market participants, and has become popular for technical analysis among price action traders.
A bullish (respectively bearish) fair value gap appears in a triple-candle pattern when there is a large candle whose previous candle’s high (respectively low) and subsequent candle’s low (respectively high) do not fully overlap the large candle. The space between these wicks is known as the fair value gap.
The following script aims at identifying higher timeframe FVG's within a lower timeframe chart. As such, it offers a unique perspective on the formation of FVG's by combining the multiple timeframe data points in the same context.
You can change the indicator settings as you see fit to achieve the best results for your use case.
Features
It draws higher timeframe bullish and bearish FVG's on the chart.
For bullish (respectively bearish) higher timeframe FVG's, it adds the buying (respectively selling) pressure as a percentage ratio of the up (respectively down) volume of the second higher timeframe bar out of the total up (respectively down) volume of the first two higher timeframe bars.
It adds a right extended trendline from the most recent lowest low (respectively highest high) to the top (respectively bottom) of the higher timeframe bullish (respectively bearish) FVG.
It detects and displays higher timeframe FVG's as early as one starts forming.
It detects and displays lower timeframe (i.e. chart's timeframe) FVG's upon confirmation.
It allows for skipping inside first bars when evaluating FVG's.
It allows for dismissing higher timeframe FVG's if there is no update for any period of the chart's timeframe. For instance, this can occur at lower timeframes during low trading activity periods such as extended hours.
Settings
Higher Time Frame FVG dropdown: Selects the higher timeframe to run the FVG detection on. Default is 15 minutes. It must be higher than, and a multiple of, the chart's timeframe.
Higher Time Frame FVG color select: Selects the color of the text to display for higher timeframe FVG's. Default is black.
Show Trend Line checkbox: Turns on/off trendline display. Default is on.
Show Lower Time Frame FVG checkbox: Turns on/off lower timeframe (i.e. chart's timeframe) FVG detection. Default is on.
Show Lower Time Frame FVG color select: Selects the color of the border for lower timeframe (i.e. chart's timeframe) FVG's. Default is white.
Include Inside Bars checkbox: Turns on/off the inclusion of inside first bars when evaluating FVG's. Default is on.
With Consistent Updates checkbox: Turns on/off consistent updates requirement. Default is on.
Candle Bias ForecastCandle Bias Forecast Indicator
Description:
The Candle Bias Forecast Indicator is an original multi‐timeframe analysis tool that generates price forecast levels based on the difference between candle biases on two different timeframes. It uses innovative calculations to provide potential forecast levels that align with current price action.
How It Works:
1. Candle Bias Calculation:
For each candle, the indicator computes a “candle bias” using the formula:
candleBias = (((open + close)/2 - (high + low)/2) + ((close - open)/(high - low)))/2
This measure captures both the positioning of the candle’s body within its range and the normalized move from open to close.
2. Multi-Timeframe Analysis:
The script uses multiple timeframe pairs (e.g., 5-minute vs. 30-minute, 10-minute vs. 60-minute, etc.). For each pair, the bias is computed on the lower timeframe and on the higher timeframe.
3. Normalization with ATR:
To translate the dimensionless bias difference into price terms, the indicator multiplies the difference by the lower timeframe’s Average True Range (ATR). This scales the forecast adjustment to current market volatility.
4. Forecast Computation:
The forecast level for each pair is then calculated as:
forecast = close + (lowerTF_ATR * (lowerTF_bias - higherTF_bias))
This yields forecast levels that are plotted on the chart and connected by lines for a visual guide.
How to Use:
- Visual Confirmation: Add the indicator to your 1 to 15 minute chart to see forecast levels overlaid on the price.
- Supplementary Analysis: Use these forecast levels as an additional tool alongside your other analysis methods. They can help indicate potential support/resistance areas or directional bias.
Important Notes:
- Not a Standalone Signal: This indicator is intended to supplement your analysis. Always combine it with other tools and sound risk management practices.
- For Educational & Research Use: The indicator is provided “as is” without any guarantee of performance. It is designed to illustrate an innovative approach to multi-timeframe analysis.
- Disclaimer: Past performance is not indicative of future results. Use this tool at your own risk.
By combining candle bias with ATR-based normalization and multi-timeframe analysis, this indicator offers a unique perspective on market dynamics that can enrich your trading strategy.
---
*This is an original script designed to add value to the TradingView community. Please test and validate its outputs thoroughly before using it in live trading.*
Multi-Timeframe Open LinesThe Multi-Timeframe Open Lines indicator is designed to help traders visualize key price levels at the open of specific time intervals. It draws horizontal lines at the open of 5-minute, 15-minute, 30-minute, and hourly candles, extending these lines to the start of the next respective interval. Traders can now control which timeframes are displayed and how many past opening lines are shown, ensuring a clean and organized chart.
Key Features:
Customizable Lines:
5-Minute Lines: Highlight the open of every 5-minute candle, ending at the start of the next 5-minute candle.
15-Minute Lines: Highlight the open of every 15-minute candle, ending at the start of the next 15-minute candle.
30-Minute Lines: Highlight the open of every 30-minute candle, ending at the start of the next 30-minute candle.
Hourly Lines: Highlight the open of every hourly candle, ending at the start of the next hourly candle.
Each timeframe's lines can be customized in terms of color, line style, and thickness.
Toggle Options:
Easily turn on or off the display of lines for each timeframe (5m, 15m, 30m, 1h) using checkboxes in the settings.
User-Defined Limits:
Control the number of past opening lines displayed for each timeframe (5m, 15m, 30m, 1h).
Prevents chart clutter by limiting the number of visible lines.
Multi-Timeframe Analysis:
Enables traders to analyze price action across multiple timeframes simultaneously, providing a clearer picture of market structure and key levels.
User-Friendly Inputs:
Easy-to-use settings for customizing line appearance and behavior, ensuring the indicator fits seamlessly into any trading strategy.
How to Use:
Apply the indicator to your chart to visualize the open price levels for 5-minute, 15-minute, 30-minute, and hourly candles.
Use the lines as dynamic support/resistance levels or to identify potential breakout/breakdown points.
Customize the colors, styles, and the number of visible lines to match your chart theme or trading preferences.
Toggle specific timeframes on or off to focus on the most relevant price levels.
Ideal For:
Traders who use multi-timeframe analysis.
Those who rely on key price levels for decision-making.
Anyone looking to enhance their chart with clear, customizable reference lines while avoiding clutter.
Float Turnover Signal
The *Float Turnover Signal* indicator helps traders analyze the relationship between price changes and trading volume relative to the stock's free float. It generates signals based on turnover ratios, providing insights into liquidity-driven price movements.
**How It Works**
- The indicator calculates the **percentage change** in closing price from two days ago to the previous day.
- It retrieves the **free float** (the number of publicly available shares) from TradingView.
- It then calculates the **turnover percentage**, which represents the previous day's trading volume as a percentage of the free float.
- The **turnover ratio** is derived by dividing the price change percentage by the turnover percentage.
- Based on this ratio, the indicator generates **color-coded signals**:
- 🟢 **Green Signal** – Indicates a balanced turnover ratio (0.8 to 1.2), suggesting a stable price-volume relationship.
- 🟡 **Yellow Signal** – Indicates a near-optimal but not perfect ratio (0.6-0.8 or 1.2-1.5), suggesting caution.
**Customization & Features**
✅ **Adjustable Signal Display** – Users can choose how many recent bars will display signals using the `"Number of Bars to Display Signal"` setting.
✅ **Works on Any Timeframe** – The indicator adapts to different chart resolutions.
✅ **Helps Identify Volume-Driven Moves** – Ideal for spotting potential breakouts, liquidity shifts, and confirming price action validity.
gain indicatorhe "Percentage Ruler" indicator is a custom technical analysis tool designed for the TradingView platform. Its primary function is to visually represent percentage-based price levels on a chart, relative to the closing price of the previous candle. This allows traders to quickly gauge potential support and resistance levels or to estimate possible price movements based on historical data.
Key features of the indicator include:
Dynamic Percentage Levels: The indicator automatically calculates and displays horizontal lines corresponding to predefined percentage levels, both positive and negative, ranging from -5% to +5%.
Previous Candle Close: The percentage calculations are anchored to the closing price of the previous candle, providing a consistent reference point for analysis.
Clear Visual Representation: The percentage levels are represented by horizontal lines extending to the right edge of the chart. The lines are color-coded (green for positive percentages, red for negative percentages) for easy interpretation.
Customizable Appearance: The indicator offers customization options, allowing users to adjust the line thickness and the display of percentage labels.
No Labels by Default: The indicator is designed to display only the horizontal lines by default, without any percentage labels, providing a clean and uncluttered chart view.
In summary, the "Percentage Ruler" indicator is a valuable tool for traders seeking a straightforward way to visualize percentage-based price levels relative to the previous candle's close. It aids in identifying potential support and resistance zones and estimating possible price movements based on historical data.
Engulfing Candle PatternIndicator Overview
This indicator identifies Bullish and Bearish Engulfing candlestick patterns on a price chart. These patterns are reversal signals:
Bullish Engulfing: Occurs during a downtrend, where a bullish candle fully engulfs the body of the previous bearish candle.
Bearish Engulfing: Occurs during an uptrend, where a bearish candle fully engulfs the body of the previous bullish candle.
Key Features
1. Pattern Detection:
Detects Bullish Engulfing and Bearish Engulfing patterns based on candle body comparisons.
Uses the current and previous candle's open/close prices to determine engulfing conditions.
2. Visualization:
Plots labels on the chart:
" Bullish Engulfing " below the candle for bullish patterns.
" Bearish Engulfing " above the candle for bearish patterns.
3. Alerts:
Triggers alerts when either pattern is detected, allowing traders to take action.
How It Works
Bullish Engulfing Condition:
Current candle is bullish (close > open).
Previous candle is bearish (close < open).
Current candle's body fully engulfs the previous candle's body.
Bearish Engulfing Condition:
- Current candle is bearish (close < open).
- Previous candle is bullish (close > open).
- Current candle's body fully engulfs the previous candle's body.
Usage
- Apply the script to any chart in TradingView.
- Look for " Bullish Engulfing " or " Bearish Engulfing " labels on the chart.
- Set up alerts to get notified when these patterns form.
This indicator is a simple yet effective tool for identifying potential trend reversals using engulfing candlestick patterns.
Enhanced Interval Candle with Breakout Detection and Detailed InThis indicator visualizes the last candle of a user-defined time interval (e.g., 1 hour, 4 hours, 1 day) on the current chart, providing enhanced details and breakout detection. It fetches the open, high, low, and close prices of the interval candle and draws a stylized representation of it, offset to the right of the current bar. The candle body and wicks are colored according to whether the interval candle closed bullishly (green) or bearishly (red). In addition to the candle itself, the indicator displays horizontal dotted lines representing the high, low, and midpoint of the interval candle, along with labels showing their exact values. These labels are dynamically updated as the interval candle changes. Furthermore, the script detects and visualizes breakouts of the interval candle's high or low. When the current price closes above the interval high, a green dashed line and a "Bullish Breakout" label are displayed. Conversely, when the current price closes below the interval low, a red dashed line and a "Bearish Breakout" label are shown. The breakout lines and labels are also dynamically updated. This indicator helps traders easily track the price action of a higher timeframe candle and spot potential breakouts based on that candle's range. The user can configure the time interval to suit their trading needs.
BuyPrice TrackerDescription:
This custom indicator is designed to help traders and investors track the performance of multiple stocks relative to their specified buy prices. It offers a visual representation of price changes and percentage gains or losses, making it easier to monitor your portfolio at a glance.
Key Features:
1. Multiple Stock Tracking: Monitor up to 15 different stocks simultaneously.
2. Custom Buy Prices: Set individual buy prices for each stock you're tracking.
3. Dynamic Price Line: A yellow dotted line appears on the chart to mark your buy price.
4. Real-time Updates: The indicator updates with each new price bar, providing current information.
5. Percentage Change Display: Clearly shows the percentage change from your buy price to the current price.
6. Color-Coded Labels: Green for positive changes, red for negative, allowing for quick visual assessment.
7. Customizable Label Position: Choose between top-right or top-left corner of the chart for the information label.
8. Adjustable Text Size: Customize the size of the text in the label for better visibility.
9. Buy Price Scale Label: Displays your buy price directly on the price scale for easy reference.
How It Works:
Enter your stock symbols and corresponding buy prices in the indicator settings.
The indicator will display a yellow dotted line at your buy price for the current chart.
A label will appear showing the stock symbol, your buy price, and the current percentage change.
The label updates in real-time as prices change, allowing you to monitor performance instantly.
Benefits:
Effortlessly track multiple positions in your portfolio.
Quickly identify which stocks are performing well and which might need attention.
Make informed decisions about holding, selling, or buying more based on clear visual cues.
Customize the display to suit your trading style and chart setup.
This indicator is perfect for active traders managing multiple positions, long-term investors tracking their portfolio performance, or anyone looking to keep a close eye on specific price levels in the market.
Note: This indicator works best when applied to the specific stock charts you're tracking. Make sure to input the correct stock symbols and buy prices in the indicator settings for accurate results.
Median / Averages from Lower Time-Frame TicksI've added/created this to give me a more accurate idea of candle movements - I use the MEDIAN average of a candle, which gives me a more accurate "description" of where the candle spent most of it's time 'hovering', over that time frame. The beauty of this is how it REDUCES NOISE, espeicially long wicks, or candles that spike at the moment of a close, skewing a 'normalized' candle's result.
Due to how the Median Calculation works, changing the 'candle timeframe' in options will have no effect - that is available as an option for some of the more traditional MA's, which you can toggle between in the settings... it can also display traditional MA's - SMA, HMA, WMA, and the HLC/3 which I was using up until this point.
This is a 'Line Chart' version of this indicator; I intend to update it with a 'normalized', custom drawn candle based on this method.
The MEDIAN of a candle is a value based on the following;
it lines all values up over a time frame, then takes the value closest to the centre of the array as the 'median'. I'll provide a working example.
imagine we have a candle with 5 values;
it opens at 2, spikes up to 1, spikes down to 10, then spends the entire time hovering at 3 and 4 until it's close. Our array looks like this;
1,2,3,4,100
now, the "average" of these candles is (1+2+3+4+100) / 5 = 22
when the "median" of these candles is the centre value of the array, which is 3.
The candle spent 99% of it's time between 1 and 4 - and spiked for one moment to 100... so now the median gives me a better idea of where the price spent most of it's time, in this instance.
This becomes more skewed, and therefore more accurate, the more values in a candle - and the minute chart on the hourly is a good baseline that gives pretty fair values, without being overly taxing on the machine that needs to make those calculations.
Caveat: I Trade on the Hourly/Daily, so the medians are taken from Minute Candles - thus this will effectively be 'no good' for 1 minute time-frames, (it will simply draw at the Close) but will still have some value down to 15 minute, or even 5 minute charts.
Plot Closed Candles OnlyWhat It Does:
This indicator helps you see candlesticks on your chart only after they are fully closed. It colors the candles based on whether they are bullish (green), bearish (red), or neutral (black/Doji). This way, you can focus on confirmed price movements without the distraction of candles that are still forming.
Key Features:
Plots Confirmed Candles: Only shows candles after they are fully formed.
Custom Colors:
Green: Bullish candles (close > open).
Red: Bearish candles (close < open).
Black: Doji candles (close = open).
Easy to Use: Simply add the indicator to your chart.
How to Use:
Add the indicator to your chart.
Turn off the default candles by:
Right-clicking on the chart.
Going to Style > Candles.
Disabling borders, bodies, and wicks for the default candles.
Enjoy a cleaner view of confirmed candles with clear color coding!
Why Use It?:
Helps you focus on confirmed price action.
Makes it easier to spot bullish, bearish, and neutral candles.
Great for traders who want to avoid the noise of incomplete candles.
Buy on VolumeThis script has several weaknesses:
1. **Overly Simplistic Logic** – The buy signal is based on just two conditions (DEMA crossing above a Lorentzian Line and a volume spike), which may not be robust enough for real trading conditions.
2. **Lack of Sell Signals** – The script only focuses on buy signals without any exit strategy, making it incomplete for practical trading.
3. **Volume Confirmation May Be Unreliable** – The threshold for volume confirmation (50% above average) is arbitrary and may produce frequent false positives or fail in low-liquidity conditions.
4. **No Risk Management** – There is no stop-loss, take-profit, or risk-adjustment mechanism, making it unsuitable for serious trading.
5. **Potential for Late Entries** – The reliance on moving averages (DEMA) can introduce lag, causing buy signals to appear late after a price move has already occurred.
6. **Limited Adaptability** – The fixed parameter settings (e.g., DEMA period of 6, Lorentzian length of 21) may not work across different market conditions or assets.
7. **No Consideration for Market Trends** – The script does not account for broader market trends, which could lead to poor entries in bearish conditions.
8. **Visual Clutter** – The plotted signals and indicators might create unnecessary chart noise, making it difficult to analyze price action effectively.
9. **Alert Spam Potential** – Without additional filtering conditions, the script may trigger frequent buy alerts, leading to signal fatigue.
Full Moon and New Moon IndicatorThe Full Moon & New Moon Indicator is a custom Pine Script indicator which marks Full Moon (Pournami) and New Moon (Amavasya) events on the price chart. This indicator helps traders who incorporate lunar cycles into their market analysis, as certain traders believe these cycles influence market sentiment and price action. The current script is added for the year 2024 and 2025 and the dates are considered as per the Telugu calendar.
Features
✅ Identifies and labels Full Moon & New Moon days on the chart for the year 2024 and 2025
How it Works!
On a Full Moon day, it places a yellow label ("Pournami") above the corresponding candle.
On a New Moon day, it places a blue label ("Amavasya") above the corresponding candle.
Example Usage
When a Full Moon label appears, check for potential trend reversals or high volatility.
When a New Moon label appears, watch for market consolidation or a shift in sentiment.
Combine with candlestick patterns, support/resistance, or momentum indicators for a stronger trading setup.
🚀 Add this indicator to your TradingView chart and explore the market’s reaction to lunar cycles! 🌕
Effective FVG Indicator - ImranDescription:
The Effective FVG Indicator is a technical analysis tool designed to identify Fair Value Gaps (FVGs) in financial markets. FVGs occur when there is a significant gap between the closing price of one session and the opening price of the next session, often indicating a potential reversal point. This indicator uses volume and price movement criteria to confirm and mark these gaps effectively.
Key Features:
Fair Value Gap Detection : Identifies both bullish and bearish FVGs based on significant gaps in price.
Volume Confirmation : Confirms FVGs with high volume, ensuring that the gap is not due to a lack of liquidity.
Price Imbalance : Ensures that the gap is accompanied by a large price movement within the session, indicating strong market sentiment.
Buy/Sell Signals : Marks bullish FVGs with a green "BUY" label below the bar and bearish FVGs with a red "SELL" label above the bar.
Background Highlighting : Highlights the background with a semi-transparent green or red color when a valid FVG is detected, making it easy to spot significant gaps.
Candlestick Pattern Detector - Vijay PrasadOverview:
This Pine Script v6 indicator is designed to detect and label key candlestick patterns on TradingView charts. It provides real-time visual markers for major bullish and bearish reversal signals, aiding traders in decision-making.
Usefulness:
✅ Saves time by automating candlestick pattern detection.
✅ Reduces manual chart analysis errors.
✅ Works across all markets & timeframes.
✅ Enhances trading strategies with accurate signals.
Candlestick Patterns Recognises:
Bullish Engulfing – A strong bullish reversal pattern.
Bearish Engulfing – Indicates a potential downtrend.
Hammer – Suggests a market bottom or reversal.
Shooting Star – A bearish reversal signal at the top of an uptrend.
Doji – Signals market indecision and possible trend change.
Key Functions:
Automated Pattern Visible
Identifies candlestick patterns dynamically and plots them on the chart.
Visual Labels for Patterns
Labels to indicate specific candlestick formations.
Labels appear only when a valid pattern is detected, avoiding unnecessary clutter.
Buy/Sell Signal
Plots buy signals at bullish patterns and sell signals at bearish patterns.
Helps traders recognize trend reversals and entry/exit points.
Bullish Engulfing Pattern (Green Label)
What it means: A bullish engulfing pattern typically signals a potential reversal from a downtrend to an uptrend. The current candle fully engulfs the previous candle, signaling strong buying interest.
Identifying Candlestick Patterns on the Chart
How to use it:
Entry: Look for a green label (bullish engulfing) at the bottom of the chart. When it appears, consider entering a long position (buy).
Confirmation: To increase reliability, wait for confirmation by observing if price moves above the high of the bullish engulfing candle.
Exit: Exit when the trend shows signs of reversing or take profit at predefined levels (e.g., resistance or a risk-to-reward ratio).
Bearish Engulfing Pattern (Red Label)
What it means: A bearish engulfing pattern is a signal of a potential reversal from an uptrend to a downtrend. The current candle fully engulfs the previous candle, signaling strong selling pressure.
How to use it:
Entry: Look for a red label (bearish engulfing) at the top of the chart. When it appears, consider entering a short position (sell).
Confirmation: Wait for the price to move below the low of the bearish engulfing candle to confirm the bearish trend.
Exit: Close the trade when the price reaches support levels or the trend shows signs of reversing.
Doji Pattern (Blue Circle)
What it means: A Doji candle signals market indecision. It represents a balance between buyers and sellers, often marking a potential reversal or consolidation point.
How to use it:
Entry: If the Doji appears after a strong trend (bullish or bearish), wait for the next candle to break above or below the Doji's high or low. This can signal a continuation or reversal.
Confirmation: You can look for additional indicators like moving averages, RSI, or MACD for confirmation before taking any action.
Exit: Exit when the price shows clear momentum in your entry direction.
Hammer Pattern (Orange Triangle)
What it means: The hammer pattern is a bullish reversal pattern that appears after a downtrend. It suggests that sellers pushed the price down during the session, but buyers managed to push the price back up.
How to use it:
Entry: When a hammer appears, consider entering a long position (buy). The price should move above the hammer's high for confirmation.
Confirmation: Look for strong volume and a follow-up bullish candle to confirm the reversal.
Exit: Set a target based on the next resistance level, or use a trailing stop to lock in profits.
Using Candlestick Patterns with Other Indicators
To increase your chances of success, combine candlestick patterns with other technical indicators.
Here are some ideas:
RSI (Relative Strength Index): Use RSI to check whether the market is overbought or oversold. A bullish engulfing in an oversold market could indicate a stronger buy signal, and a bearish engulfing in an overbought market could indicate a stronger sell signal.
Moving Averages (e.g., 50 EMA, 200 EMA): Confirm trend direction. If the candlestick pattern aligns with the direction of the moving averages, it can give a stronger signal.
MACD (Moving Average Convergence Divergence): Use MACD to confirm momentum and potential trend changes. If a candlestick pattern aligns with a MACD crossover, it strengthens the signal.
Volume: Look for higher-than-average volume when a pattern appears. This can give you additional confirmation that the market is reacting strongly.
Practice and Refine
It's important to practice using the candlestick patterns in a demo account or backtest them to see how they perform under different market conditions. Over time, you can adjust the settings and patterns to fit your trading style and preferences.
BPR [TakingProphets]The BPR (Balanced Price Range) Indicator by Taking Prophets is built for traders who follow ICT (Inner Circle Trader) concepts and smart money strategies. In ICT methodology, a Balanced Price Range (BPR) occurs when price rapidly moves in one direction, creating an imbalance that often gets revisited before price continues its trend. These areas represent inefficiencies in the market where liquidity was not properly distributed, making them key zones for potential retracements and trade setups.
How the Indicator Works:
🔹 Automatically Detects BPRs – No need to manually mark imbalances; the indicator highlights them for you.
🔹 Helps Identify Smart Money Footprints – Spot areas where price is likely to retrace and rebalance liquidity.
🔹 Customizable Sensitivity – Adjust detection parameters based on your preferred trading style.
🔹 Works Across All Markets – Apply it to Forex, Futures, Crypto, and Stocks on TradingView.
🔹 Clean and Intuitive Interface – Designed to be simple yet powerful for both new and experienced traders.
Midnight Range Standard DeviationsCredit to Lex Fx for the basic framework of this script
This indicator is designed to assist traders in identifying potential trading opportunities based on the Intraday Concurrency Technique (ICT) concepts, specifically the midnight range deviations and their relationship to Fibonacci levels. It builds upon the work of Lex-FX, whom we gratefully acknowledge for the original concept and inspiration for this indicator.
Core Concept: ICT Midnight Range
The core of this indicator revolves around the concept of the midnight range. According to ICT, the high and low formed in a specific time window (typically the first 30 minutes after midnight, New York Time) can serve as a key reference point for intraday price action. The indicator identifies this range and projects potential support and resistance levels based on deviations from this range, combined with Fibonacci ratios.
How ICT Uses Midnight Range Deviations
ICT methodology often involves looking for price to move away from the initial midnight range, then return to it, or deviate beyond it, as key areas for potential entries.
Range Identification: The indicator automatically identifies the high and low of the midnight range (00:00 - 00:30 NY Time).
Deviation Levels: The indicator calculates and displays deviation levels based on multiples of the initial midnight range. These levels are often used to identify potential areas of support and resistance, as well as potential targets for price movement. These levels can be set in the additional fib levels section, which can be configured in increments of .5 deviations all the way up to 12 deviations.
Fibonacci Confluence: ICT often emphasizes the confluence of multiple factors. This indicator adds Fibonacci levels to the midnight range deviations. This allows traders to identify areas where Fibonacci retracements or extensions align with the deviation levels, potentially creating stronger areas of support or resistance.
Looking for Sweeps: ICT often uses these levels to look for times that the high and low are swept as potential areas of liquidity, indicating the start of potential continuations.
Time-Based Analysis: The time at which price interacts with these levels can also be significant in ICT. The indicator provides options to extend the range lines to specific times (e.g., 3 hours, 6 hours, 10 hours, 12 hours, or a custom defined time) after midnight, allowing traders to focus on specific periods of the trading day.
Indicator Settings Explained:
Time Zone (TZ): Defines the time zone used for calculating the midnight range. The default is "America/New_York".
Range High Color, Range Low Color, Range Mid Color: Customize the colors of the high, low, and mid-range lines.
Range Fill Color: Sets the fill color for the area between the range high and low.
Line Style: Choose the style of the range lines (solid, dashed, dotted).
Range Line Thickness: Adjust the thickness of the range lines for better visibility.
Show Fibonacci Levels: Enable or disable the display of Fibonacci deviation levels.
Fib Up Color, Fib Down Color: Customize the colors of the Fibonacci levels above (up) and below (down) the midnight range.
Show Trendline: Enables a trendline that plots the close price, colored according to whether the price is above the high, below the low, or within the midnight range.
Show Range Lines, Show Range Labels: Toggles the visibility of the range lines and their associated labels.
Label Size: Adjust the size of the labels for better readability.
Hide Prices: Option to display only the deviation values on labels, hiding price values.
Place Fibonacci Labels on Left Side: Option to switch label position from right side to left side.
Extend Range To (Hours from Midnight): This section gives you a wide variety of options on how far you want to extend the range to, you can do 3,6,10,12, and 23 hours. Alternatively, you can select the "Use Custom Length" and set a specific time in hours.
Additional Fib Levels: This section allows the trader to set additional deviation points in increments of .5 deviations from .5 all the way up to 12 deviations
TradingView Community Guidelines Compliance:
This indicator description adheres to the TradingView community guidelines by:
Being educational: It explains the ICT methodology and how the indicator can be used in trading.
Being transparent: It clearly describes all the indicator's settings and their purpose.
Providing credit: It acknowledges Lex-FX as the original author of the concept.
Avoiding misleading claims: It does not guarantee profits or imply that the indicator is a "holy grail."
Disclaimer: Usage of this indicator and the information provided is at your own risk. The author is not responsible for any losses incurred as a result of using this indicator.
Important Considerations:
This indicator is intended for educational purposes and to assist in applying the ICT methodology.
It should not be used as a standalone trading system.
Always combine this indicator with other forms of technical analysis and risk management techniques.
Backtest thoroughly on your chosen market and timeframe before using in live trading.
Trading involves risk. Only trade with capital you can afford to lose.
Half Candle RetraceThis custom indicator draws a horizontal line at the 50% retracement level of each candlestick on the chart. It calculates the midpoint between the high and low of each candle, which is often used by traders to identify potential entry, exit and take-profit levels. Once price action returns to an untouched level, the line will be removed, leaving only the levels where price action is still missing.
Key Features:
Timeframe: Works on all timeframes.
Line Color: Customize the line color to suit your charting preferences.
Line Width: Adjust the thickness of the retracement line for better visibility.
Line Style: Choose between solid, dotted, or dashed lines.
Up/Down Candle Selection: Option to only display retracement lines for up (bullish) candles, down (bearish) candles, or both.
Full Customization: Control the transparency (opacity) of the line for enhanced visual clarity.
Simple Setup: No complicated settings – simply choose your preferred color, line style, and visibility options.
This indicator is perfect for traders who prefer to use price action and retracement levels to identify potential trade opportunities.
How It Works:
The indicator automatically calculates the 50% level (midpoint) for each candlestick, drawing a line at this level. It will only draw lines for candles that match your chosen criteria (up or down candles), ensuring the chart remains clean and relevant to your trading strategy. Lines are automatically removed as soon as price crosses them.
Candle Partition Statistics with IQV and Chi2NOTE: THE FORMULA IN THE CHART IS NOT PART OF THE CODE
This Pine Script calculates statistical measures for candle partitions based on whether a candle is bullish or bearish and whether the price is above or below an EMA. It evaluates statistical properties such as the Index of Qualitative Variation (IQV) and the Chi-Square (χ²) statistic to assess variations in price action.
Concept of Index of Qualitative Variation (IQV)
IQV is a statistical measure used to quantify the diversity or dispersion of categorical variables. In this script, it is used to measure how evenly the four categories of candles (green above EMA, red above EMA, green below EMA, red below EMA) are distributed.
Purpose of IQV in the Script:
IQV ranges from 0 to 1, where 0 indicates no variation (one category dominates) and 1 indicates maximum variation (categories are equally distributed).
A high IQV suggests balanced distributions of bullish/bearish candles above/below the EMA, indicating market uncertainty or mixed sentiment.
A low IQV suggests dominance of a particular candle type, indicating a strong trend.
Concept of Chi-Square (χ²) Test
Chi-square (χ²) is a statistical test that measures the difference between expected and observed frequencies of categorical data. It assesses whether short-term price behavior significantly deviates from historical trends.
Purpose of Chi-Square in the Script:
A high χ² value means that short-term candle distributions are significantly different from historical patterns, indicating potential trend shifts.
If χ² exceeds a predefined significance threshold (chi_threshold), an alert (Chi² Alert!) is triggered.
It helps traders identify periods where recent price behavior deviates from historical norms, possibly signaling trend reversals or market regime changes.
Key Takeaways:
IQV helps measure the diversity of price action, detecting whether the market is balanced or trending.
Chi-square (χ²) identifies significant deviations in short-term price behavior compared to long-term trends.
Both metrics together provide insights into whether the market is stable, trending, or shifting.
The Nasan C-score enhances trend strength by incorporating volatility. It is calculated as:
enhanced_t_s =(𝑡𝑠 × avg_movement x 100)/SMA(𝑐lose)
Key Components:
𝑡𝑠 : Measures trend strength based on price movements relative to EMA.
ts=green_EMAup_a+0.5×red_EMAup_a−(0.5×green_EMAdown_a+red_EMAdown_a)
avg_movement: The SMA of absolute close-open differences, capturing volatility.
Normalization: The division by SMA(close) adjusts the score relative to price levels.
Purpose of the Nasan C-score
Enhanced Trend Strength
It amplifies the trend strength value by factoring in volatility (price movement).
If price volatility is high, trend strength variations have a greater impact.
Volatility-Adjusted Momentum
By scaling 𝑡𝑠 with average movement, the score adjusts to changing price dynamics.
Higher price fluctuations lead to a higher score, making trend shifts more prominent.
How It Can Be Used in Trading
Higher values of Nasan C-score indicate strong bullish or bearish trends.
Comparing it with past values helps determine whether momentum is increasing or fading.
Thresholds can be set to identify significant trend shifts based on historical highs and lows.
PumpC CBC EMAs + VWAPPumpC CBC EMAs + VWAP Indicator for Tradingview
Introduction
This is an indicator for the Candle By Candle (CBC) Flip strategy , based on the CBC Flip concept taught by MapleStax and inspired by the original CBC Flip indicator by AsiaRoo . The CBC Flip strategy is a simple yet effective approach to gauge if bulls or bears are in control for any given candle.
The logic behind the CBC Flip is as follows:
Bullish Flip : If the most recent candle’s close is above the previous candle’s high, bulls have taken control.
Bearish Flip : If the most recent candle’s close is below the previous candle’s low, bears are now in control.
No Flip : If neither condition is met, the previously dominant side (bulls or bears) remains in control until one of these conditions is satisfied, flipping the market sentiment—hence the name CBC Flip .
The PumpC CBC EMAs + VWAP Indicator enhances this simple strategy by adding trend confirmation filters using EMAs and VWAP , along with time-restricted signal generation and fully customizable alerts.
What Does This Indicator Do?
The PumpC CBC EMAs + VWAP Indicator helps traders identify CBC Flips to spot potential trend continuations or reversals. It combines candlestick logic , trend filters , and time-based restrictions to provide high-probability trade signals.
CBC Flip Detection
Bullish Flip : Current close is above the previous candle’s high.
Bearish Flip : Current close is below the previous candle’s low.
Strict Flips : Require a liquidity sweep for higher accuracy.
All Flips : Looser conditions that generate more frequent signals.
EMA and VWAP Trend Confirmation (Optional)
This filter ensures that long signals only trigger when the Slow EMA is above the VWAP , confirming an upward trend. For short signals, the Slow EMA must be below the VWAP.
Time-Based Filtering
The indicator allows you to set a specific trading window (e.g., 9:00 AM to 3:00 PM), helping you avoid low-volume or high-risk periods.
Visual Labels and Alerts
Labels : Arrows (▲ for long and ▼ for short) mark CBC Flip points on the chart.
Alerts : Fully customizable notifications for each signal type, based on your chosen filters.
Key Features
CBC Flip Detection : Identify potential reversals and trend continuations.
Strict vs. All Flips : Choose between higher-accuracy strict flips or more frequent all flips.
EMA-to-VWAP Filter : Optional trend confirmation filter to reduce false signals.
Customizable EMAs and VWAP : Configure lengths and colors for visual clarity.
Time-Restricted Signals : Focus on your preferred trading session.
Custom Alerts : Notifications for long and short signals based on filter settings.
Credits and Inspiration
The CBC Flip strategy was created by MapleStax .
This indicator is inspired by the original CBC Flip indicator by AsiaRoo .
Additional enhancements include EMA-to-VWAP filtering , custom alerts , and time-restricted signal generation for a more comprehensive trading experience.
Risks and Disclaimer
This indicator is for educational purposes only and does not constitute financial advice.
Trading involves significant risk, and past performance does not guarantee future results. Always test this indicator in a simulated environment before live trading.
[SHORT ONLY] 10 Bar Low Pullback█ STRATEGY DESCRIPTION
The "10 Bar Low Pullback" strategy is a contrarian short trading system designed to capture pullbacks after a new 10‐bar low is made. it identifies a potential short opportunity when the current bar’s low breaks below the lowest low of the previous 10 bars, provided that the bar exhibits strong internal momentum as measured by its IBS value. An optional trend filter further refines entries by requiring that the close is below a 200-period EMA.
█ WHAT IS INTERNAL BAR STRENGTH (IBS)?
Internal Bar Strength (IBS) measures where the closing price falls within the high-low range of a bar. It is calculated as:
ibs = (close - low) / (high - low)
- Low IBS (≤ 0.2): Indicates the close is near the bar's low, suggesting oversold conditions.
- High IBS (≥ 0.8): Indicates the close is near the bar's high, suggesting overbought conditions.
█ SIGNAL GENERATION
1. SHORT ENTRY
A Short Signal is triggered when:
The current bar’s low is below the lowest low of the past X bars (default: 10).
The bar’s IBS is greater than the specified threshold (default: 0.85).
The signal occurs within the defined trading window (between Start Time and End Time).
If the EMA Filter is enabled, the close must be below the 200-period EMA.
2. EXIT CONDITION
An exit Signal is generated when the current close falls below the previous bar’s low (close < low ), indicating a potential bearish reversal and prompting the strategy to close its short position.
█ ADDITIONAL SETTINGS
Lookback Period: Defines the number of bars (default is 10) over which the lowest low is calculated.
IBS Threshold: Sets the minimum required IBS value (default is 0.85) to qualify as a pullback.
Trading Window: Trades are only executed between the user-defined Start Time and End Time.
EMA Filter (Optional): When enabled, short entries are only considered if the current close is below the 200-period EMA, with the EMA period being adjustable (default is 200).
█ PERFORMANCE OVERVIEW
Designed for shorting opportunities, this strategy aims to capture pullbacks following an aggressive 10-bar low break.
It leverages a combination of a lookback low and IBS measurement to identify overextended bullish moves that may revert.
The optional EMA filter helps confirm a bearish market environment by ensuring the price remains under the trend line.
Suitable for use on various assets, including stocks and ETFs, on daily or similar timeframes.
Backtesting and parameter optimization are recommended to tailor the strategy to specific market conditions.
[SHORT ONLY] ATR Sell the Rip Mean Reversion Strategy█ STRATEGY DESCRIPTION
The "ATR Sell the Rip Mean Reversion Strategy" is a contrarian system that targets overextended price moves on stocks and ETFs. It calculates an ATR‐based trigger level to identify shorting opportunities. When the current close exceeds this smoothed ATR trigger, and if the close is below a 200-period EMA (if enabled), the strategy initiates a short entry, aiming to profit from an anticipated corrective pullback.
█ HOW IS THE ATR SIGNAL BAND CALCULATED?
This strategy computes an ATR-based signal trigger as follows:
Calculate the ATR
The strategy computes the Average True Range (ATR) using a configurable period provided by the user:
atrValue = ta.atr(atrPeriod)
Determine the Threshold
Multiply the ATR by a predefined multiplier and add it to the current close:
atrThreshold = close + atrValue * atrMultInput
Smooth the Threshold
Apply a Simple Moving Average over a specified period to smooth out the threshold, reducing noise:
signalTrigger = ta.sma(atrThreshold, smoothPeriodInput)
█ SIGNAL GENERATION
1. SHORT ENTRY
A Short Signal is triggered when:
The current close is above the smoothed ATR signal trigger.
The trade occurs within the specified trading window (between Start Time and End Time).
If the EMA filter is enabled, the close must also be below the 200-period EMA.
2. EXIT CONDITION
An exit Signal is generated when the current close falls below the previous bar’s low (close < low ), indicating a potential bearish reversal and prompting the strategy to close its short position.
█ ADDITIONAL SETTINGS
ATR Period: The period used to calculate the ATR, allowing for adaptability to different volatility conditions (default is 20).
ATR Multiplier: The multiplier applied to the ATR to determine the raw threshold (default is 1.0).
Smoothing Period: The period over which the raw ATR threshold is smoothed using an SMA (default is 10).
Start Time and End Time: Defines the time window during which trades are allowed.
EMA Filter (Optional): When enabled, short entries are only executed if the current close is below the 200-period EMA, confirming a bearish trend.
█ PERFORMANCE OVERVIEW
This strategy is designed for use on the Daily timeframe, targeting stocks and ETFs by capitalizing on overextended price moves.
It utilizes a dynamic, ATR-based trigger to identify when prices have potentially peaked, setting the stage for a mean reversion short entry.
The optional EMA filter helps align trades with broader market trends, potentially reducing false signals.
Backtesting is recommended to fine-tune the ATR multiplier, smoothing period, and EMA settings to match the volatility and behavior of specific markets.