Volume Spike BoxThis indicator highlights the highest volume candlestick in a specified number of bars. It extends for the same length in the future as the specified number of bars for identifying potential support and resistance
Candlestick analysis
ATR Contract RecommendationATR Contract Recommendation Indicator
Version: 1
New Features and Enhancements:
ATR Calculation and Smoothing Options:
Calculate ATR using a configurable length.
Choose from multiple smoothing methods (RMA, SMA, EMA, WMA).
Account Size Customization:
Select your account size from three options: 50K, 100K, or 150K.
The contract recommendation logic adjusts dynamically based on the chosen account size.
Instrument-Specific, Customizable Recommendations:
Separate sets of customizable ATR thresholds and recommendation texts for each instrument (NQ, ES, YM) and each account size (C = Contract).
For example, for NQ:
150K Account:
ATR < 5 → "5+C"
5–10 → "5C"
10–15 → "3C"
15–30 → "2C"
30+ → "1C"
100K Account:
ATR < 5 → "4C"
5–10 → "2C"
10–15 → "1C"
15–20 → "1C"
20+ → "5C MNQ"
50K Account:
ATR < 5 → "2C"
5–20 → "1C"
20+ → "5C MNQ"
Similar customizable threshold groups have been added for ES and YM, with instrument-specific suffixes (e.g. "MES" or "MYM") appended when needed.
Customizable Display Box (Table):
The indicator displays a recommendation box on the chart showing the current ATR value and the recommended contract size.
Users can customize the table's position (top left, top right, bottom left, or bottom right).
New Feature: Adjustable table size (number of columns and rows) via new input settings.
Customize the text color and background color of the recommendation box.
Improvements:
Enhanced instrument detection and dynamic recommendation output for a more accurate contract sizing suggestion.
User Interface Enhancements:
Streamlined input groups for thresholds and recommendation texts, allowing for full customization based on account size and instrument.
Sideways Scalper Peak and BottomUnderstanding the Indicator
This indicator is designed to identify potential peaks (tops) and bottoms (bottoms) within a market, which can be particularly useful in a sideways or range-bound market where price oscillates between support and resistance levels without a clear trend. Here's how it works:
RSI (Relative Strength Index): Measures the speed and change of price movements to identify overbought (above 70) and oversold (below 30) conditions. In a sideways market, RSI can help signal when the price might be due for a reversal within its range.
Moving Averages (MAs): The Fast MA and Slow MA provide a sense of the short-term and longer-term average price movements. In a sideways market, these can help confirm if the price is at the upper or lower extremes of its range.
Volume Spike: Looks for significant increases in trading volume, which might indicate a stronger move or a potential reversal point when combined with other conditions.
Divergence: RSI divergence occurs when the price makes a new high or low, but the RSI does not, suggesting momentum is weakening, which can be a precursor to a reversal.
How to Use in a Sideways Market
Identify the Range: First, visually identify the upper resistance and lower support levels of the sideways market on your chart. This indicator can help you spot these levels more precisely by signaling potential peaks and bottoms.
Peak Signal :
When to Look: When the price approaches the upper part of the range.
Conditions: The indicator will give a 'Peak' signal when:
RSI is over 70, indicating overbought conditions.
There's bearish divergence (price makes a higher high, but RSI doesn't).
Volume spikes, suggesting strong selling interest.
Price is above both Fast MA and Slow MA, indicating it's at a potentially high point in the range.
Action: This signal suggests that the price might be at or near the top of its range and could reverse downwards. A trader might consider selling or shorting here, expecting the price to move towards the lower part of the range.
Bottom Signal:
When to Look: When the price approaches the lower part of the range.
Conditions: The indicator will give a 'Bottom' signal when:
RSI is below 30, indicating oversold conditions.
There's bullish divergence (price makes a lower low, but RSI doesn't).
Volume spikes, suggesting strong buying interest.
Price is below both Fast MA and Slow MA, indicating it's at a potentially low point in the range.
Action: This signal suggests that the price might be at or near the bottom of its range and could reverse upwards. A trader might consider buying here, expecting the price to move towards the upper part of the range.
Confirmation: In a sideways market, false signals can occur due to the lack of a strong trend. Always look for confirmation:
Volume Confirmation: A significant volume spike can add confidence to the signal.
Price Action: Look for price action like candlestick patterns (e.g., doji, engulfing patterns) that confirm the reversal.
Time Frame: Consider using this indicator on multiple time frames. A signal on a shorter time frame (like 15m or 1h) might be confirmed by similar conditions on a longer time frame (4h or daily).
Risk Management: Since this is designed for scalping in a sideways market:
Set Tight Stop-Losses: Due to the quick nature of reversals in range-bound markets, place stop-losses close to your entry to minimize loss.
Take Profit Levels: Set profit targets near the opposite end of the range or use a trailing stop to capture as much of the move as possible before it reverses again.
Practice: Before trading with real money, practice with this indicator on historical data or in a paper trading environment to understand how it behaves in different sideways market scenarios.
Key Points for New Traders
Patience: Wait for all conditions to align before taking a trade. Sideways markets require patience as the price might hover around these levels for a while.
Not All Signals Are Equal: Sometimes, even with all conditions met, the market might not reverse immediately. Look for additional context or confirmation.
Continuous Learning: Understand that this indicator, like any tool, isn't foolproof. Learn from each trade, whether it's a win or a loss, and adjust your strategy accordingly.
By following these guidelines
[TehThomas] - HTF Power of 3The "HTF Power of 3" script is a custom indicator for TradingView that helps traders visualize higher time frame (HTF) price action within lower time frame charts. It overlays HTF candlestick representations on the chart, providing a clear view of market structure and trends. The script also includes countdown timers for HTF candle closes, helping traders anticipate key moments in price movement.
How the Script Works
Timeframe Selection:
The user selects a higher timeframe (HTF) from 1-hour, 4-hour, or daily options.
The script then calculates and overlays HTF candles on a lower timeframe chart.
Customizable Candle Display:
The script draws custom HTF candles using input colors and styles.
It includes options for body color, wick color, border color, and size.
Projection Features:
Displays open, high, low, and close (OHLC) levels of the HTF candles.
Projection lines help traders identify key levels and potential price reactions.
Countdown Timer:
Displays a real-time countdown until the current HTF candle closes.
Helps traders prepare for breakout opportunities and volatility shifts.
Automatic Timeframe Calculation:
The script dynamically adjusts HTF calculations based on the selected timeframe.
Ensures accurate and responsive updates to market movements.
Why This Script is Useful
Better Market Structure Analysis: Traders can clearly see HTF candles within their lower timeframe chart, allowing for a more structured trading approach.
Confluence Trading: Identifying key HTF levels on lower timeframes helps with decision-making for entries and exits.
Precise Timing with Countdown: Knowing when an HTF candle will close gives traders an edge in anticipating breakouts, reversals, or liquidity grabs.
Enhanced Visualization: Instead of manually switching between timeframes, traders can observe HTF structures seamlessly within their current chart.
How to Use the Script
Apply the Indicator:
Add the script to a TradingView chart from the Pine Script editor.
Select the desired higher timeframe (1H, 4H, or 1D).
Customize Appearance:
Adjust colors, line styles, and size preferences under the settings panel.
Utilize Projections and Timers:
Monitor the projected high, low, and open levels for key decision points.
Use the countdown timer to anticipate the HTF candle close.
Trade with the Power of 3 Strategy:
Identify key liquidity areas and time-based setups using the HTF data.
PO3 10 AM Strategy
The Power of 3 (PO3) Strategy revolves around three key phases: Accumulation, Manipulation, and Expansion. The 10 AM strategy specifically looks at how price behaves around the first hour of the New York trading session.
Accumulation: The market establishes a range between 9:30 AM and 10:00 AM EST.
Manipulation: A liquidity grab occurs, typically causing a false breakout to one side of the range.
Expansion: Price moves in the intended direction, leading to a significant trend for the session.
How to Use the Script for PO3 10 AM Strategy:
Use the HTF candles to spot areas of liquidity from previous sessions.
Wait for price to manipulate one side of the 9:30-10:00 AM range.
Enter a trade in the direction of expansion after confirmation of the move.
Utilize the countdown timer to anticipate HTF candle closures and confluence with PO3 setups.
By combining HTF structure with the PO3 concept, traders can enhance their entries, reduce false breakouts, and capitalize on institutional price movements.
This script serves as a powerful tool for traders seeking to align their strategies with higher timeframe movements while maintaining precise execution on lower timeframes.
Waldo's RSI Color Trend Candles
TradingView Description for Waldo's RSI Color Trend Candles
Title: Waldo's RSI Color Trend Candles
Short Title: Waldo RSI CTC
Overview:
Waldo's RSI Color Trend Candles is a visually intuitive indicator designed to enhance your trading experience by color-coding candlesticks based on the integration of Relative Strength Index (RSI) momentum and moving average trend analysis. This innovative tool overlays directly on your price chart, providing a clear, color-based representation of market sentiment and trend direction.
What is it?
This indicator combines the power of RSI with the simplicity of moving averages to offer traders a unique way to visualize market conditions:
RSI Integration: The RSI is computed with customizable parameters, allowing traders to adjust how momentum is interpreted. The RSI values influence the primary color of the candles, indicating overbought or oversold market states.
Moving Averages: Utilizing two Simple Moving Averages (SMAs) with user-defined lengths, the indicator helps in identifying trend directions through their crossovers. The fast MA and slow MA can be toggled on/off for visual clarity.
Color Trend Candles: The 'Color Trend Candles' feature uses a dynamic color scheme to reflect different market conditions:
Purple for overbought conditions when RSI exceeds the set threshold (default 70).
Blue for oversold conditions when RSI falls below the set threshold (default 44).
Green indicates a bullish trend, confirmed by both price action and RSI being bullish (fast MA crossing above slow MA, with price above the slow MA).
Red signals a bearish trend, when both price and RSI are bearish (fast MA crossing below slow MA, with price below the slow MA).
Gray for neutral or mixed market sentiment, where signals are less clear or contradictory.
How to Use It:
Waldo's RSI Color Trend Candles is tailored for traders who appreciate visual cues in their trading strategy:
Trend and Momentum Insight: The color of each candle gives an immediate visual representation of both the trend (via MA crossovers) and momentum (via RSI). Green and red candles align with bullish or bearish trends, respectively, providing a quick reference for market direction.
Identifying Extreme Conditions: Purple and blue candles highlight potential reversal zones or areas where the market might be overstretched, offering opportunities for contrarian trades or to anticipate market corrections.
Customization: Users can adjust the RSI length, overbought/oversold levels, and the lengths of the moving averages to align with their trading style or the specific characteristics of the asset they're trading.
This customization ensures the indicator can be tailored to various market conditions.
Simplified Decision Making: Designed for traders who prefer a visual approach, this indicator simplifies the decision-making process by encoding complex market data into an easy-to-understand color system.
However, for a robust trading strategy, it's recommended to use it alongside other analytical tools.
Control Over Display: The option to show or hide moving averages and to enable or disable the color-coding of candles provides users with control over how information is presented, allowing for a cleaner chart or more detailed analysis as preferred.
Conclusion:
Waldo's RSI Color Trend Candles offers a fresh, visually appealing method to interpret market trends and momentum through the color of candlesticks. It's ideal for traders looking for a straightforward way to gauge market sentiment at a glance. While this indicator can significantly enhance your trading setup, remember to incorporate it within a broader strategy, using additional confirmation from other indicators or analysis methods to manage risk and validate trading decisions. Dive into the colorful world of trading with Waldo's RSI Color Trend Candles and let the market's mood guide your trades with clarity and ease.
Daily Bias IndicatorBasic ICT Daily Bias Indicator
When yesterday's price breaks above and closes above the high of the day before yesterday, it indicates a bullish bias.
When yesterday's price tests the low of the day before yesterday but does not break below it, it indicates a bullish bias.
When yesterday's price breaks below and closes below the low of the day before yesterday, it indicates a bearish bias.
When yesterday's price tests the high of the day before yesterday but does not break above it, it indicates a bearish bias.
AMD Session Structure Levels# Market Structure & Manipulation Probability Indicator
## Overview
This advanced indicator is designed for traders who want a systematic approach to analyzing market structure, identifying manipulation, and assessing probability-based trade setups. It incorporates four core components:
### 1. Session Price Action Analysis
- Tracks **OHLC (Open, High, Low, Close)** within defined sessions.
- Implements a **dual tracking system**:
- **Official session levels** (fixed from the session open to close).
- **Real-time max/min tracking** to differentiate between temporary spikes and real price acceptance.
### 2. Market Manipulation Detection
- Identifies **manipulative price action** using the relationship between the open and close:
- If **price closes below open** → assumes **upward manipulation**, followed by **downward distribution**.
- If **price closes above open** → assumes **downward manipulation**, followed by **upward distribution**.
- Normalized using **ATR**, ensuring adaptability across different volatility conditions.
### 3. Probability Engine
- Tracks **historical wick ratios** to assess trend vs. reversal conditions.
- Calculates **conditional probabilities** for price moves.
- Uses a **special threshold system (0.45 and 0.03)** for reversal signals.
- Provides **real-time probability updates** to enhance trade decision-making.
### 4. Market Condition Classification
- Classifies market conditions using a **wick-to-body ratio**:
```pine
wick_to_body_ratio = open > close ? upper_wick / (high - low) : lower_wick / (high - low)
```
- **Low ratio (<0.25)** → Likely a **trend day**.
- **High ratio (>0.25)** → Likely a **range day**.
---
## Why This Indicator Stands Out
### ✅ Smarter Level Detection
- Uses **ATR-based dynamic levels** instead of static support/resistance.
- Differentiates **manipulation from distribution** for better decision-making.
- Updates probabilities **in real-time**.
### ✅ Memory-Efficient Design
- Implements **circular buffers** to maintain efficiency:
```pine
var float manipUp = array.new_float(lookbackPeriod, 0.0)
var float manipDown = array.new_float(lookbackPeriod, 0.0)
```
- Ensures **constant memory usage**, even over extended trading sessions.
### ✅ Advanced Probability Calculation
- Utilizes **conditional probabilities** instead of simple averages.
- Incorporates **market context** through wick analysis.
- Provides **actionable signals** via a probability table.
---
## Trading Strategy Guide
### **Best Entry Setups**
✅ Wait for **price to approach manipulation levels**.
✅ Confirm using the **probability table**.
✅ Check the **wick ratio for context**.
✅ Enter when **conditional probability aligns**.
### **Smart Exit Management**
✅ Use **distribution levels** as **profit targets**.
✅ Scale out **when probabilities shift**.
✅ Monitor **wick percentiles** for confirmation.
### **Risk Management**
✅ Size positions based on **probability readings**.
✅ Place stops at **manipulation levels**.
✅ Adjust position size based on **trend vs. range classification**.
---
## Configuration Tips
### **Session Settings**
```pine
sessionTime = input.session("0830-1500", "Session Hours")
weekDays = input.string("23456", "Active Days")
```
- Match these to your **primary trading session**.
- Adjust for different **market opens** if needed.
### **Analysis Parameters**
```pine
lookbackPeriod = input.int(50, "Lookback Period")
low_threshold = input.float(0.25, "Trend/Range Threshold")
```
- **50 periods** is a good starting point but can be optimized per instrument.
- The **0.25 threshold** is ideal for most markets but may need adjustments.
---
## Market Structure Breakdown
### **Trend/Continuation Days**
- **Characteristics:**
✅ Small **opposing wicks** (minimal counter-pressure).
✅ Clean, **directional price movement**.
- **Bullish Trend Day Example:**
✅ Small **lower wicks** (minimal downward pressure).
✅ Strong **closes near the highs** → **Buyers in control**.
- **Bearish Trend Day Example:**
✅ Small **upper wicks** (minimal upward pressure).
✅ Strong **closes near the lows** → **Sellers in control**.
### **Reversal Days**
- **Characteristics:**
✅ **Large opposing wicks** → Failed momentum in the initial direction.
- **Bullish Reversal Example:**
✅ **Large upper wick early**.
✅ **Strong close from the lows** → **Sellers failed to maintain control**.
- **Bearish Reversal Example:**
✅ **Large lower wick early**.
✅ **Weak close from the highs** → **Buyers failed to maintain control**.
---
## Summary
This indicator systematically quantifies market structure by measuring **manipulation, distribution, and probability-driven trade setups**. Unlike traditional indicators, it adapts dynamically using **ATR, historical probabilities, and real-time tracking** to offer a structured, data-driven approach to trading.
🚀 **Use this tool to enhance your decision-making and gain an objective edge in the market!**
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.
USDT.D + USDT.C ALL TIMEFRAMESThis indicator combines the dominance of USDT (USDT.D) and USDC (USDC.D) to track total stablecoin market share across all timeframes. It displays the combined dominance as candlesticks, providing a clearer view of market liquidity shifts and investor sentiment.
📌 How to Use:
Green candles indicate rising stablecoin dominance (potential risk-off sentiment).
Red candles indicate declining stablecoin dominance (potential risk-on sentiment).
Works on all timeframes, from intraday scalping to macro trend analysis.
This tool is essential for traders looking to analyze stablecoin liquidity flow, identify market turning points, and refine trading strategies based on stablecoin dominance behavior. 🚀
Naive Bayes Candlestick Pattern Classifier v1.1 BETAAn intermezzo on why i made this script publication..
A : Candlestick Pattern took hours to backtest, why not using Machine Learning techniques?
B : Machine Learning, no that's gonna be really heavy bro!
A : Not really, because we use Naive Bayes.
B : The simplest, yet powerful machine learning algorithm to separate (a.k.a classify) multivariate data.
----------------------------------------------------------------------------------------------------------------------
Hello, everyone!
After deep research in extracting meaningful information from the market, I ended up building this powerful machine learning indicator based on the evolution of Bayesian Statistics. This indicator not only leverages the simplicity of Naive Bayes but also extends its application to candlestick pattern analysis, making it an invaluable tool for traders who are looking to enhance their technical analysis without spending countless hours manually backtesting each pattern on each market!.
What most interesting part is actually after learning all of likely useless methods like fibonacci, supply and demand, volume profile, etc. We always ended up back to basic like support and resistance and candlestick patterns, but with a slight twist on strategy algorithm design and statistical approach. Thus, the only reason why i made this, because i exactly know that you guys will ended up in this position as time goes by.
The essence of this indicator lies in its ability to automate the recognition and statistical evaluation of various candlestick patterns. Traditionally, traders have relied on visual inspection and manual backtesting to determine the effectiveness of patterns like Bullish Engulfing, Bearish Engulfing, Harami variations, Hammer formations, and even more complex multi-candle patterns such as Three White Soldiers, Three Black Crows, Dark Cloud Cover, and Piercing Pattern. However, these conventional methods are both time-consuming and prone to subjective bias.
To address these challenges, I employed Naive Bayes—a probabilistic classifier that, despite its simplicity, offers robust performance in various domains. Naive Bayes assumes that each feature is independent of the others given the class label, which, although a strong assumption, works remarkably well in practice, especially when the dataset is large like market data and the feature space is high-dimensional. In our case, each candlestick pattern acts as a feature that can be statistically evaluated based on its historical performance. The indicator calculates a probability that a given pattern will lead to a price reversal, by comparing the pattern’s close price to the highest or lowest price achieved in a lookahead window.
One of the standout features of this script is its flexibility. Each candlestick pattern is not only coded into the system but also comes with individual toggles to enable or disable them based on your trading strategy. This means you can choose to focus on single-candle patterns like Bullish Engulfing or more complex multi-candle formations such as Three White Soldiers, without modifying the core code. The built-in customization options allow you to adjust colors and labels for each pattern, giving you the freedom to tailor the visual output to your preference. This level of customization ensures that the indicator integrates seamlessly into your existing TradingView setup.
Moreover, the indicator isn’t just about pattern recognition—it also incorporates outcome-based learning. Every time a pattern is detected, it looks ahead a predefined number of bars to evaluate if the expected reversal actually materialized. This outcome is then stored in arrays, and over time, the script dynamically calculates the probability of success for each pattern. These probabilities are presented in a real-time updating table on your chart, which shows not only the percentage probability but also the count of historical occurrences. With this information at your fingertips, you can quickly gauge the reliability of each pattern in your chosen market and timeframe.
Another significant advantage of this approach is its speed and efficiency. While more complex machine learning models like neural networks might require heavy computational resources and longer training times, the Naive Bayes classifier in this script is lightweight, instantaneous and can be updated on the fly with each new bar. This real-time capability is essential for modern traders who need to make quick decisions in fast-paced markets.
Furthermore, by automating the process of backtesting, the indicator frees up your time to focus on other aspects of trading strategy development. Instead of manually analyzing hundreds or even thousands of candles, you can rely on the statistical power of Naive Bayes to provide you with insights on which patterns are most likely to result in profitable moves. This not only enhances your efficiency but also helps to eliminate the cognitive biases that often plague manual analysis.
In summary, this indicator represents a fusion of traditional candlestick analysis with modern machine learning techniques. It harnesses the simplicity and effectiveness of Naive Bayes to deliver a dynamic, real-time evaluation of various candlestick patterns. Whether you are a seasoned trader looking to refine your technical analysis or a beginner eager to understand market dynamics, this tool offers a powerful, customizable, and efficient solution. Welcome to a new era where advanced statistical methods meet practical trading insights—happy trading and may your patterns always be in your favor!
Note : On this current released beta version, you must manually adjust reversal percentage move based on each market. Further updates may include automated best range detection and probability.
[EmreKb] Pinbar AnalysisDescription
The Pinbar Analyzer tool will count how many ltf candles are inside the wick and the total volume inside the wick.
How it works?
Calculate candle count of inside wick and volumes. Than display like below image
T/iW: Total Candle / Total inside Wick
ROiW: Rate of inside wick candle count
TV/WV: Total volume / Wick volume
[TehThomas] - CandleStick PatternsScript Overview
This script is designed to identify and highlight various candlestick patterns on a trading chart. It detects bullish, bearish, indecisive, and continuation patterns and visually represents them with color-coded bars. Additionally, it displays a table summarizing the detected patterns.
Key Features
Candlestick Pattern Detection
Identifies multiple candlestick patterns, including:
Bullish Patterns: Bullish Engulfing, Hammer, Inverse Hammer, Morning Star, Piercing Line.
Bearish Patterns: Bearish Engulfing, Hanging Man, Shooting Star, Evening Star, Dark Cloud Cover.
Indecisive Patterns: Doji, Dragonfly Doji, Gravestone Doji.
Each pattern is assigned a distinct color for easy visualization.
Customizable Visibility & Colors
Users can enable or disable the detection of specific patterns.
Custom colors can be assigned to each pattern for better chart clarity.
Trend Identification
Uses the Simple Moving Average (SMA) to determine whether the market is in an uptrend or downtrend.
Helps in filtering patterns based on the prevailing trend.
Pattern Highlighting
Changes the color of the candlesticks whenever a pattern is detected.
Uses barcolor() to color the candles accordingly.
Pattern Dashboard (Table Display)
A static table in the top-right corner of the chart summarizes the detected patterns.
Ensures the table is only created once per chart load to avoid performance issues.
Function Breakdown
1. Input Parameters
Uses input.bool() to allow traders to toggle specific patterns on or off.
Uses input.color() to let users customize the colors for different patterns.
2. Candlestick Measurements
bodySize(index): Measures the absolute size of the candle body.
upperWick(index): Measures the upper wick size.
lowerWick(index): Measures the lower wick size.
3. Trend Determination
isUptrend(length): Checks if the price is above its SMA (indicating an uptrend).
isDowntrend(length): Checks if the price is below its SMA (indicating a downtrend).
4. Candlestick Pattern Identification
Engulfing Patterns
Bullish Engulfing: A large green candle fully engulfs the previous red candle, occurring in a downtrend.
Bearish Engulfing: A large red candle fully engulfs the previous green candle, occurring in an uptrend.
Hammer & Related Patterns
Hammer: A candle with a small body and a long lower wick, appearing after a downtrend.
Inverse Hammer: A candle with a small body and a long upper wick, appearing after a downtrend.
Hanging Man: A Hammer-like pattern that appears in an uptrend.
Shooting Star: An Inverse Hammer-like pattern that appears in an uptrend.
Doji Patterns
Doji: A candle with a small body (open and close prices nearly equal).
Dragonfly Doji: A Doji with a long lower wick.
Gravestone Doji: A Doji with a long upper wick.
Star Patterns
Morning Star: A bullish reversal pattern consisting of three candles.
Evening Star: A bearish reversal pattern consisting of three candles.
Continuation Patterns
Piercing Line: A two-candle bullish continuation pattern.
Dark Cloud Cover: A two-candle bearish continuation pattern.
5. Candlestick Coloring
Uses barcolor() to color the candles based on the detected pattern.
The color is determined using a conditional statement, ensuring only one pattern applies per candle.
6. Pattern Dashboard
Uses tables (table.new()) to display a static dashboard with all enabled patterns.
Calls updateTableCell() to add rows for each active pattern.
How This Script is Useful for Trading
1. Identifying Trade Opportunities
Helps traders spot potential reversal points (e.g., Bullish Engulfing, Hammer, Morning Star).
Highlights trend continuation signals (e.g., Piercing Line, Dark Cloud Cover).
2. Confirming Trend Strength
Engulfing patterns in the direction of the trend confirm trend strength.
Doji and indecisive patterns warn traders of potential reversals or trend slowdowns.
3. Enhancing Trade Entries & Exits
Enter long positions after spotting bullish patterns like Morning Star, Hammer.
Exit long positions when bearish patterns like Evening Star, Shooting Star appear.
Enter short positions upon seeing bearish engulfing, Hanging Man, or Dark Cloud Cover.
4. Improving Risk Management
Traders can set stop-loss orders based on the pattern structure.
Example: Placing stop-loss below the low of a Hammer confirms bullish strength.
5. Works with Other Indicators
Can be combined with RSI, MACD, Bollinger Bands for more reliable signals.
Limitations
False Signals: Candlestick patterns alone are not 100% reliable; traders should confirm signals with volume and trend analysis.
No Automatic Alerts: This script does not send trading alerts; manual observation is required.
No Multi-Timeframe Analysis: It only considers the timeframe it is applied to.
Final Thoughts
This script is a powerful visual tool for traders who rely on candlestick patterns. It helps identify potential reversals, continuations, and indecision zones in the market. While it’s highly useful for discretionary trading, it’s best used alongside other technical indicators to confirm trade setups.
BullDozz MA-CandlesticksBullDozz MA-Candlesticks 🏗️📊
The BullDozz MA-Candlesticks indicator transforms traditional candlesticks by replacing their Open, High, Low, and Close values with various types of Moving Averages (MAs). This helps traders visualize market trends with smoother price action, reducing noise and enhancing decision-making.
🔹 Features:
✅ Choose from multiple MA types: SMA, EMA, WMA, DEMA, TEMA, LSMA
✅ Customizable MA period for flexibility
✅ Candlestick colors based on trend: Green for bullish, Red for bearish
✅ Works on any market and timeframe
This indicator is perfect for traders who want a clearer perspective on price movement using moving average-based candlesticks. 🚀 Try it now and refine your market analysis! 📈🔥
[EmreKb] MTF FTRDescription
Multi time frame version of "Failed to Return by EmreKb" indicator.
What is FTR?
There is no definitive, fixed perspective on FTR. Some sources may choose the FTR zone differently. I will use the single bearish candle in an uptrend (or the single bullish candle in a downtrend) as the FTR in this indicator.
Settings
Update Last: Number of how many boxes will be updated in the new candle
Timeframes: Presets for timeframe option
Use Custom: For use custom timeframes
Custom Timeframes: Text area for write custom timeframes without space and separate with comma.
Stacked CandlesThis indicator highlights "stacked" bullish and bearish candles, providing a visual representation of market momentum. A candle is considered stacked if:
Bullish Stacked Candles: The current candle opens above the midpoint of the previous candle's body and closes higher than it opens. These candles are colored green to indicate strong upward momentum.
Bearish Stacked Candles: The current candle opens below the midpoint of the previous candle's body and closes lower than it opens. These candles are colored red to signify strong downward pressure.
The wick and border colors of stacked candles are adjusted to black to enhance visual clarity, helping you easily identify stacking patterns. Non-stacked candles retain their default appearance.
9-30wma//@version=5
indicator("Custom Indicator", overlay=true)
// 9 Günlük EMA ve 30 Günlük WMA
ema9 = ta.ema(close, 9)
wma30 = ta.wma(close, 30)
// Kapanışların 9 EMA ve 30 WMA seviyelerinin üzerinde olup olmadığını kontrol et
isCloseAboveEma9 = close > ema9
isCloseAboveWma30 = close > wma30
// Mavi sinyal: 9 EMA'nın altında, fakat 30 WMA'nın üstünde kapanış yapan ilk mum
blueSignalCondition = ta.crossover(close, ema9) and close < ema9 and close > wma30
// Yeşil sinyal: Mavi sinyali veren mumun üst seviyesinin üstünde kapanış yapan ilk mum
greenSignalCondition = close > ta.highest(blueSignalCondition ? high : na, 1) and blueSignalCondition
// Mavi ve yeşil sinyal çizimleri
plotshape(series=blueSignalCondition, color=color.blue, style=shape.labelup, location=location.belowbar, size=size.small, title="Blue Signal")
plotshape(series=greenSignalCondition, color=color.green, style=shape.labelup, location=location.belowbar, size=size.small, title="Green Signal")
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.
Candy Bars v1.0
Candy Bars v1.0 – Swing Reversal Indicator
Candy Bars v1.0 is a proprietary swing reversal indicator designed to highlight potential turning points in the market with precision. Utilizing a combination of price action dynamics and directional movement analysis, this tool identifies key bar structures and momentum shifts to help traders visualize potential trend reversals.
Key Features:
Swing Reversal Detection: Highlights areas where momentum may be shifting, indicating possible trade opportunities.
Custom Bar Coloring: Paints specific bars based on internally calculated conditions to make key signals visually intuitive.
Inside & Outside Bar Analysis: Differentiates inside bars, which suggest potential continuation or breakout setups, and outside bars, which may indicate strong reversals.
Dynamic Labeling: Displays contextual market information, such as relative bar ranges and swing count data.
Divergence-Based Filtering: Detects instances where underlying momentum and price action may be misaligned, signaling potential reversals.
No Repainting: Signals remain fixed once a bar closes, ensuring reliability in real-time trading scenarios.
Candy Bars v1.0 is an advanced trading tool designed for traders looking to enhance their ability to spot high-probability reversal points with clarity and confidence.
Extended RunShows number of bar closing above SMA5 in serie if serie is more than a set value
(default = 6)
[TehThomas] - Displacement CandlesOverview:
This PineScript is designed to detect and visualize significant price movements, called displacements, on a trading chart. It's particularly useful for traders who want to identify potential trend changes or strong market sentiment quickly.
How the Script Works
User Input:
The script allows users to set a custom threshold for displacement detection and choose colors for bullish and bearish movements.
Displacement Detection Function:
isDisplacement(series, threshold) =>
percentage_change = math.abs(series - series ) / series * 100
percentage_change > threshold
This function calculates the percentage change between the current and previous price.
If the change exceeds the set threshold, it's considered a displacement.
Bullish and Bearish Detection:
bullish_displacement = isDisplacement(close, threshold) and close > close
bearish_displacement = isDisplacement(close, threshold) and close < close
Identifies whether the displacement is bullish (price increase) or bearish (price decrease).
Candle Coloring:
barcolor(bullish_displacement ? bullish_color : bearish_displacement ? bearish_color : na)
Changes the color of candles based on the detected displacement type.
Usefulness and Applications:
Trend Identification: Helps in quickly spotting potential trend changes or continuations.
Volatility Analysis: Provides a visual representation of market volatility.
Entry and Exit Signals: Can be used to identify potential entry or exit points for trades.
Market Sentiment: Offers insights into the strength of bullish or bearish sentiment.
Customizable Sensitivity: The adjustable threshold allows traders to fine-tune the indicator based on the asset's typical volatility.
Visual Clarity: By changing candle colors, it provides a clear, at-a-glance view of significant price movements.
Complementary Tool: Can be used alongside other technical indicators for confirmation of signals.
Multiple Timeframe Analysis: Applicable across different timeframes to suit various trading styles (day trading, swing trading, etc.).
Educational Purpose: Helps new traders understand and visualize significant price movements in the market.
Backtesting: Can be incorporated into strategy backtests to assess its effectiveness in different market conditions.
This script is particularly handy for traders who want to cut through market noise and focus on significant price movements. It's versatile enough to be used across different trading strategies and can be a valuable addition to a trader's technical analysis toolkit.
It's a very easy script and not alot to mention. If you see any improvements please let me know.
Highest Price MarkerHighest Price Marker – Smart Label & Line Indicator
This Pine Script v5 indicator highlights the highest price reached within the last 100 bars on your chart. It visually enhances key price levels by:
✅ Placing a label at the highest price, positioned 3 candles to the left for clarity.
✅ Drawing a line connecting the label to the actual high for better visibility.
✅ Auto-updating dynamically whenever a new highest price is detected.
This is useful for traders who want to quickly identify resistance levels or analyze historical price peaks without cluttering the chart.
🔹 How to Use:
Add the indicator to your chart.
Look for the red label marking the highest price within the last 100 bars.
The horizontal line helps track the exact price level.
💡 Customization Ideas:
Adjust the lookback period (length = 100) to detect longer or shorter trends.
Modify colors or label positioning to suit your preferences.
🚀 Perfect for:
🔸 Price Action Traders
🔸 Swing & Breakout Traders
🔸 Support & Resistance Analysis
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! 🚀