Candle Rating (1–5)This custom TradingView indicator assigns a rating from 1 to 5 to each candlestick on the chart based on the relative position of the close within its high-low range. It provides an at-a-glance visual assessment of candle strength or weakness, which can be useful for gauging intrabar sentiment.
Plotting the Rating
The rating value is displayed above each candle using a label.
Label colors provide intuitive visual cues:
🟩 1 (Green) – Strong bullish
🟢 2 (Lime) – Mild bullish
⚪ 3 (Gray) – Neutral
🟠 4 (Orange) – Mild bearish
🔴 5 (Red) – Strong bearish
Candlestick analysis
Custom Green Candle Signalbuying candle indicates...................................................................................................
Sideways + Buy + Sell Detection (Customizable)Yes, beyond the **methodology**, several additional professional aspects of your script can be highlighted, especially for documentation, presentations, or integrating into a proprietary toolkit. Here’s a breakdown of additional elements worth noting:
---
### **1. Indicator Design Philosophy**
The script reflects a **multi-factor confirmation model**, combining momentum, trend strength, and directional movement for higher confidence in signal accuracy. This reduces the likelihood of false signals caused by reliance on a single indicator.
---
### **2. Signal Filtering via Confluence**
By requiring alignment across **RSI**, **ADX/DI**, and **MACD**, the system enforces **signal confluence**, a best practice in professional technical analysis. This ensures that entries are only suggested when multiple independent tools agree on market direction, enhancing robustness.
---
### **3. Parameter Flexibility for Optimization**
All core variables—RSI length, ADX period, MACD settings, and thresholds—are exposed via inputs, allowing for:
* **Strategy optimization** through backtesting.
* **Market-specific adaptation**, adjusting sensitivity for equities, forex, commodities, or crypto.
This makes the script versatile across asset classes and trading environments.
---
### **4. Timeframe Decoupling**
By separating the signal generation timeframe from the chart timeframe, the script supports **top-down analysis**. For example:
* Signals can be generated on a 5-minute chart while trading on a 1-minute chart.
* A 1-hour signal can be monitored within a 15-minute execution chart.
This enhances decision-making by contextualizing intraday moves within higher-timeframe trends.
---
### **5. User Experience & Interface Integration**
* **Clear chart visuals**: The color-coded labels (green for buy, red for sell, purple for sideways) provide instant recognition.
* **Non-intrusive design**: Signals are plotted below bars to maintain a clean view of price action.
* **Title and inputs** are well-labeled for ease of use, aligning with best practices in indicator UI/UX design.
---
### **6. Use Cases & Applications**
* **Trend Traders**: Identify momentum-driven opportunities in the direction of strength.
* **Range Traders**: Detect periods of consolidation to apply mean-reversion strategies.
* **Algorithmic Signal Filters**: Serve as a filter layer within automated systems, only allowing trades when all criteria align.
* **Discretionary Traders**: Use as a secondary confirmation tool to validate setups seen through manual chart analysis.
---
### **7. Extensibility & Integration Potential**
This script can serve as a foundational module for:
* **Strategy scripts** (with backtesting logic),
* **Alerts** for real-time notifications (with minor modification),
* Or **integrated dashboards** in custom trading interfaces.
NIFTY Option Chain Table with Custom CE/PE Price FiltersThis Pine Script creates a powerful and visually organized option chain dashboard for NIFTY Index Options, showing 10 Call Options (CE) and 10 Put Options (PE), with real-time prices updated on a 5-minute chart.
You can filter and view only the most relevant option contracts based on your preferred price ranges, helping you make quick decisions for scalping, intraday, or positional trades.
🔍 How It Works:
You manually select up to 10 Call Option symbols and 10 Put Option symbols from NSE (e.g., NIFTY240530C18000, NIFTY240530P18000, etc.).
Keep that time options this are old options in defalt so there will be a error
The script fetches the real-time close price of each option using the request.security() function.
You define the minimum and maximum price range separately for Calls and Puts.
The script filters out any options that fall outside of your desired price range.
Only a limited number of matching options (as set by you) are displayed in the table for both Calls and Puts.
The table is shown at your preferred location on the chart (Bottom Right, Top Left, etc.).
✅ Features:
🔟 Supports exactly 10 CE and 10 PE options for tracking.
📈 Live price updates pulled directly from the chart timeframe (5-min).
🎯 Custom price filters for CE and PE (separate inputs).
📊 Show only the top X number of contracts that meet your filter criteria.
🧱 Vertical layout with clear headers and color-coded sections (green for Calls, red for Puts).
🎛️ Position the table wherever it's most convenient on your chart.
⚡ Helps you quickly spot low premium or range-bound options during the day.
📌 Use Case:
Ideal for:
Option scalpers and day traders who want to focus only on options within a specific price zone.
Traders who want to monitor multiple strikes simultaneously without clutter.
Users building custom NIFTY strategies based on option premiums.
VWAP + Engulfing CandlesHere’s a clear breakdown of what your merged Pine Script does:
---
### 📌 **Indicator Name: VWAP + Engulfing Candles**
* This custom TradingView indicator **plots VWAP (Volume Weighted Average Price)** along with **up to 3 dynamic bands** around it.
* It also **detects Bullish and Bearish Engulfing Candlestick Patterns**, displaying visual markers and triggering alerts.
---
## 🔹 **1. VWAP Section**
### ➤ **Main Features:**
* Calculates VWAP anchored to a **customizable time period**:
* Options: Session, Week, Month, Quarter, Year, Decade, Century, Earnings, Dividends, Splits.
* Optional **hiding of VWAP on Daily/Weekly/Monthly charts** to reduce clutter.
### ➤ **Bands Around VWAP:**
* Up to **3 bands** can be plotted above and below the VWAP.
* Bands can be based on either:
* **Standard Deviation** of the price from VWAP (volatility-based), or
* **Percentage** deviation from VWAP (fixed range).
* You can control:
* Whether each band is shown
* Band width via multiplier (e.g., 1x, 2x, 3x)
### ➤ **Plot Colors:**
* VWAP: Blue
* Bands: Green (1x), Olive (2x), Teal (3x)
* Band fill areas are semi-transparent.
---
## 🔹 **2. Engulfing Candlestick Pattern Detector**
### ➤ **Bullish Engulfing Criteria:**
* Current candle opens **below** or **equal to** the close of the previous candle.
* Current candle opens **below** the previous candle's open.
* Current candle closes **above** the previous candle’s open.
### ➤ **Bearish Engulfing Criteria:**
* Current candle opens **above** or **equal to** the close of the previous candle.
* Current candle opens **above** the previous candle’s open.
* Current candle closes **below** the previous candle’s open.
### ➤ **Visual Signals:**
* 🔼 Green triangle **below bar** for **Bullish Engulfing**
* 🔽 Red triangle **above bar** for **Bearish Engulfing**
### ➤ **Alerts:**
* The script includes two alert conditions:
* One for Bullish Engulfing
* One for Bearish Engulfing
These alerts can be used to automate notifications for potential reversal points.
---
## 🛠️ **Use Cases**
* **Trend following or reversal spotting**: VWAP helps identify the average trading price; engulfing patterns often signal reversals.
* **Intraday and swing trading**: Works best on timeframes like 5m, 15m, 1h for intraday, or 4h, 1D for swing.
* **Mean reversion strategies**: Bands help spot overbought/oversold areas relative to VWAP.
Full Rejection Alerts (Bullish & Bearish)- Bearish Engulfing
- Bearish Pin Bar
- Bullish Engulfing
- Bullish Pin Bar
3 MA/EMA Khít Chính XácThis script is designed to detect highly precise convergence of 3 moving averages: MA(8), MA(21), and EMA(21).
When these three lines meet very closely on the chart, it may indicate a potential breakout or trend change.
Useful for short-term momentum traders who want to identify low-risk entry zones.
Includes:
- Real-time alert condition when MA lines converge
- Optional Bollinger Band smoothing
- Triangle-shaped visual signal for convergence points
Created by KimTrading 🟡 | For 1-min to 1H scalping & trend analysis.
Midpoint Line on Last Two Strong CandlesBreaking a mid point of the recent strong candle by its opposite candle can be considered as a trend reversal.
Consecutive Candles Above/Below EMADescription:
This indicator identifies and highlights periods where the price remains consistently above or below an Exponential Moving Average (EMA) for a user-defined number of consecutive candles. It visually marks these sustained trends with background colors and labels, helping traders spot strong bullish or bearish market conditions. Ideal for trend-following strategies or identifying potential trend exhaustion points, this tool provides clear visual cues for price behavior relative to the EMA.
How It Works:
EMA Calculation: The indicator calculates an EMA based on the user-specified period (default: 100). The EMA is plotted as a blue line on the chart for reference.
Consecutive Candle Tracking: It counts how many consecutive candles close above or below the EMA:
If a candle closes below the EMA, the "below" counter increments; any candle closing above resets it to zero.
If a candle closes above the EMA, the "above" counter increments; any candle closing below resets it to zero.
Highlighting Trends: When the number of consecutive candles above or below the EMA meets or exceeds the user-defined threshold (default: 200 candles):
A translucent red background highlights periods where the price has been below the EMA.
A translucent green background highlights periods where the price has been above the EMA.
Labeling: When the required number of consecutive candles is first reached:
A red downward arrow label with the text "↓ Below" appears for below-EMA streaks.
A green upward arrow label with the text "↑ Above" appears for above-EMA streaks.
Usage:
Trend Confirmation: Use the highlights and labels to confirm strong trends. For example, 200 candles above the EMA may indicate a robust uptrend.
Reversal Signals: Prolonged streaks (e.g., 200+ candles) might suggest overextension, potentially signaling reversals.
Customization: Adjust the EMA period to make it faster or slower, and modify the candle count to make the indicator more or less sensitive to trends.
Settings:
EMA Length: Set the period for the EMA calculation (default: 100).
Candles Count: Define the minimum number of consecutive candles required to trigger highlights and labels (default: 200).
Visuals:
Blue EMA line for tracking the moving average.
Red background for sustained below-EMA periods.
Green background for sustained above-EMA periods.
Labeled arrows to mark when the streak threshold is met.
This indicator is a powerful tool for traders looking to visualize and capitalize on persistent price trends relative to the EMA, with clear, customizable signals for market analysis.
Explain EMA calculation
Other trend indicators
Make description shorter
PSP Candel Analyzer V2.0PSP Candle Analyzer V2.0
Multi-Symbol Candle State & Session Open Table (Replay Mode Compatible)
Indicator Overview:
The PSP Candle Analyzer V2.0 is designed for fast, visual candle direction analysis and structural comparison across multiple markets or indices in various timeframes.
It is ideal for traders who monitor several related instruments (e.g., Nasdaq, S&P 500, Dow Jones) and need quick insight into price action and candle structure divergence.
Key Features
1. Ultra-Compact, Color-Coded Table:
Displays a table in the chart corner showing the state (up, down, neutral) of each selected symbol for multiple timeframes (5m to 6h).
Each row: a timeframe.
Each column: the first letter of each symbol, colored by candle direction (bright blue = up, bright red = down, bright yellow = neutral).
Clean, minimal design for maximum readability—even on small monitors.
2. Automatic & Flexible Symbol Selection:
The indicator always includes the active chart’s symbol as the first column, automatically.
You can add 1 to 4 extra symbols in the settings (up to 5 symbols total for comparison).
3. Structural Divergence Highlighting:
If one symbol’s candle direction differs from others in a given timeframe, that row is highlighted (bright green) for fast detection of cross-market divergences.
4. Session Opening Lines (Dynamic Lines):
Dotted lines are drawn for key session opens: 6:00, 8:30, and 9:30 (New York time).
Each line’s color, length, and visibility are fully customizable.
Labels (“6:00”, “8:30”, “9:30”) appear precisely at the end of each line, matching pro indicators like NYO/TDO.
5. 100% Replay Mode Compatible:
Unlike many table-based indicators, this version is fully compatible with TradingView’s Replay Mode:
Table, colors, and lines are always updated in real time as you step through history or use auto-play.
No lags, glitches, or delayed updates—tested and verified.
6. Fully Customizable & Minimalist:
Adjust the number of symbols, table font size, color themes, session line length, and more—all from the settings panel.
Table stays compact and legible, regardless of setup.
How to Use
Add the indicator to your chart.
The active chart symbol is automatically included in the table.
Use settings to add up to 4 more symbols for cross-market analysis (e.g., CME_MINI:ES1! for S&P500, CBOT_MINI:YM1! for Dow Jones, etc).
Instantly compare candle direction for all symbols and timeframes, with divergence rows highlighted.
Session open lines with precise time labels will be drawn on your chart (fully customizable).
Other Notes
No timezone issues: Session opens (6:00, 8:30, 9:30 NY) are always aligned with official market times.
Table remains ultra-compact and non-intrusive, even on small screens.
Replay Mode problem is fully solved—the table and dynamic lines always update in sync with price and candles in historical mode.
Keywords:
Candle Analyzer, Multi-Symbol Table, Session Open Lines, Replay Compatible, NASDAQ, S&P500, Dow Jones, CME, CBOT, Candle Structure, Market Divergence, Pine Script v6, Real-Time Table, Pro Trading Tools
Feedback, bug reports, or questions? Leave a comment or DM! Happy trading!
动态止损趋势指标Trend indicators edited by Happy in Chiang Mai,When the K-line is above the stop loss line, go long; when the K-line is below the stop loss line, go short. The stop loss line stops loss, which is applicable to the two-minute cycle.
Minervini Trend Template (EMA)📄 Description:
This script is inspired by Mark Minervini’s SEPA (Specific Entry Point Analysis) strategy and adapts his famous Trend Template using Exponential Moving Averages (EMAs). It helps traders visually identify technically strong stocks that are in ideal buy conditions based on Minervini's rules.
📈 Strategy Logic:
This script scans for momentum breakouts by filtering stocks with the following characteristics:
✅ Buy Criteria (All Conditions Must Be Met):
Price above 50-day EMA
Price above 150-day EMA
Price above 200-day EMA
50-day EMA above 150-day EMA
150-day EMA above 200-day EMA
200-day EMA trending upward (greater than it was 20 days ago)
Price within 25% of its 52-week high
Price at least 30% above its 52-week low
If all 8 conditions are satisfied, the script triggers a SEPA Setup Signal. This is visually indicated by:
✅ A green background on the chart
✅ A label saying “SEPA Setup” under the bar
🛒 When to Buy:
Wait for the stock to break out above a recent base or consolidation pattern (like a cup-with-handle or flat base) on strong volume.
The ideal entry is within 5% of the breakout point.
Confirm that the SEPA conditions are met on the breakout day.
📉 When to Sell:
Place a stop-loss 5–8% below your entry price.
Exit if the breakout fails and price falls back below the pivot or the 50-day EMA.
Take partial profits after a 20–25% gain, and move your stop-loss up to breakeven or trail it using moving averages like the 21 or 50 EMA.
Exit fully if price closes below the 50-day or 150-day EMA on volume.
🧠 Why EMAs?
EMAs react faster to recent price action than SMAs, helping you catch earlier signals in fast-moving markets. This makes it especially useful for growth and momentum traders following Minervini’s high-performance approach.
📊 How to Use:
Apply the script to any stock chart (daily timeframe recommended).
Look for a green background + SEPA Setup label.
Combine with price/volume analysis, base patterns, and market context to time your entries.
🚨 Optional Alerts:
You can set an alert on the condition minerviniPass == true to notify you when a SEPA-compliant setup appears.
📚 This tool is meant for educational and research purposes. Always validate with your own due diligence and consult your risk plan before making any trades.
TwoCandle BreakZone by zbc888📌 Overview
The 2candle-break indicator identifies short-term momentum entries using a Two Bar Pullback Break strategy. Designed primarily for Binary Options (5min–1hr charts) and adaptable to Forex scalping, it highlights breakout zones with dynamic support/resistance lines and alerts.
🔍 Core Strategy Logic
✅ Bullish Break (Green Arrow)
Setup:
Requires 2–3 consecutive bearish (red) candles followed by a bullish (green) candle forming a pivot.
The breakout triggers when the bullish candle’s high exceeds the highest high of the preceding bearish candles.
Visuals:
A blue resistance line marks the breakout level.
A green fill highlights the pullback range between support/resistance.
❌ Bearish Break (Red Arrow)
Setup:
Requires 2–3 consecutive bullish (green) candles followed by a bearish (red) candle forming a pivot.
The breakout triggers when the bearish candle’s low breaks the lowest low of the preceding bullish candles.
Visuals:
A red support line marks the breakdown level.
💻 Code Implementation Highlights
Consecutive Candle Counter:
Uses TDUp to track consecutive bullish candles (resets on bearish closes).
Example: TDUp == 2 signals two consecutive bullish candles.
Support/Resistance Lines:
Draws dynamic lines using line.new based on the highest/lowest of the prior two candles.
Lines extend to the right (extend.right) and update as new bars form.
Labels for Consecutive Moves:
Displays labels "2," "3," "4," or "5" above bars to indicate consecutive bullish candles (e.g., "2" for two in a row).
Style Customization:
Users can adjust line styles (solid/dashed/dotted).
Trading Applications
Binary Options
Entry: Trade when price touches the breakout line (blue/red) and the arrow appears.
Confirmation: Wait for a 1–2 pip pullback; if the arrow remains, enter at candle close.
Avoid Weak Signals: Skip if the arrow disappears (lack of momentum).
Forex Scalping
Use default settings for quick trades.
For longer-term trades, adjust MACD/MA filters (not shown in code but recommended).
Additional Features (Descriptive)
Binary Option Statistics:
Tracks success/failure rates, max consecutive wins/losses, and more (not implemented in provided code).
Filters:
Optional MACD, moving averages, or Guppy’s Three Bar Count Back method for refined signals.
References & Resources
Trading Concepts:
"Fundamentals of Price Action Trading" (YouTube).
Daryl Guppy’s Three Bar Count Back Method (YouTube).
📝 Note on Code vs. Description
The provided code focuses on bullish momentum tracking (via TDUp), while the descriptive strategy emphasizes pullbacks after bearish moves. This discrepancy suggests the code may represent a simplified version or component of the full indicator. For complete functionality (statistics, filters), refer to the official resource.
【KitkatTrading】聪明钱交易指标KitkatTrading - Smart Money Trading Indicator
* Built on the ICT Smart Money framework
* Tailored for stocks, crypto, and futures markets.
* Key features:
1 - automatic detection of fake breakouts
2 - automatic detection of change of structure
3 - automatic FVG plotting
Smart Money Trading opportunities made instantly clear!
Author: Kitkat
www.youtube.com
Candle Eraser (New York Time, Dropdown)If you want to focus on first 3 hours of Asia, London> and New York, inspired by Stacey Burke Trading 12 Candle Window Concept
- Set your time to UTC-4 New York
BU BE Combined Indicator with Momentum**Bullish Engulfing and Bearish Engulfing Indicator with Momentum**
🔍 **Description:**
This indicator detects Bullish Engulfing (BE) and Bearish Engulfing (BE) candlestick patterns of type 1 and type 2 with strong momentum confirmation. Only signals with high momentum are displayed.
🚀 **Key Features:**
* Identifies Bullish Engulfing type 1 and type 2, as well as Bearish Engulfing type 1 and type 2 patterns.
* Momentum confirmation: strong bullish candles are highlighted in blue, strong bearish candles in yellow.
* Prevents false signals by ensuring only valid momentum patterns are displayed.
✅ **Benefits:**
* Helps traders identify candlestick patterns with strong momentum.
* Enhances the accuracy of technical analysis.
🚨 **Note:**
This indicator is a technical analysis tool and does not guarantee profit. Use it in combination with other technical analysis methods.
💡 **Usage Tips:**
* Suitable for time frames M15 and above.
* Best used with price action strategies or your preferred entry method.
Enjoy more precise trading with the Bullish Engulfing and Bearish Engulfing Indicator with Momentum! 🚀
BU BE Combined Indicator with Momentum**Bullish Engulfing and Bearish Engulfing Indicator with Momentum**
🔍 **Description:**
This indicator detects Bullish Engulfing (BE) and Bearish Engulfing (BE) candlestick patterns of type 1 and type 2 with strong momentum confirmation. Only signals with high momentum are displayed.
🚀 **Key Features:**
* Identifies Bullish Engulfing type 1 and type 2, as well as Bearish Engulfing type 1 and type 2 patterns.
* Momentum confirmation: strong bullish candles are highlighted in blue, strong bearish candles in yellow.
* Prevents false signals by ensuring only valid momentum patterns are displayed.
✅ **Benefits:**
* Helps traders identify candlestick patterns with strong momentum.
* Enhances the accuracy of technical analysis.
🚨 **Note:**
This indicator is a technical analysis tool and does not guarantee profit. Use it in combination with other technical analysis methods.
💡 **Usage Tips:**
* Suitable for time frames M15 and above.
* Best used with price action strategies or your preferred entry method.
Enjoy more precise trading with the Bullish Engulfing and Bearish Engulfing Indicator with Momentum! 🚀
Trend-Based High Vol Doji (Pullback Reversal)This TradingView script identifies high-probability reversal Doji candles that appear after pullbacks within a larger trend, using Heiken Ashi candles and volume confirmation.
Trend [ALEXtrader]📊 Indicator Description (XAU/USD 1H - TradingView)
This indicator detects accumulation and distribution zones using low volatility periods, followed by breakouts, to generate BUY or SELL signals. It marks entries, take profit (TP), and stop loss (SL) levels directly on the chart, and visually highlights the price consolidation zones with colored rectangles.
✅ Key Features:
Signal Labels:
Green (BUY): Entry after price breaks upward from a consolidation box.
Red (SELL): Entry after price breaks downward from a consolidation box.
Each signal includes:
Entry price
TP (Take Profit) level
SL (Stop Loss) level
Colored Boxes (Rectangles):
Represent consolidation zones or accumulation/distribution phases.
Appear before a breakout signal is generated.
Colors vary slightly (e.g., blue, purple, gray) for visual distinction.
Calculation Logic (implied):
Boxes likely based on price range during low volatility periods.
Breakouts are detected when price closes outside the range of the box.
TP and SL levels are probably determined by a fixed ratio or measured from the box size.
Volume Histogram:
Displayed below the chart for additional context, possibly to confirm breakout strength.