Venkat Sir RSI 38Here's a Pine Script (TradingView) code that does the following:
Uses the RSI indicator (Relative Strength Index).
Watches for RSI crossing below level 38 and then crossing above 38.
When RSI crosses above 38 (after having gone below), it plots a green triangle-up symbol above the candle that triggered the cross.
Candlestick analysis
ICT Smart Money Trading Suite [SwissAlgo]ICT/Smart Money Trading Suite - Technical Analysis Indicator
----------------------------------------------------------
OVERVIEW
The ICT/Smart Money Trading Suite is a technical analysis indicator that implements concepts from Inner Circle Trader (ICT) methodology and Smart Money Concepts (SMC).
ICT methodology was developed by Michael J. Huddleston (ICT) and focuses on understanding Institutional market behavior.
Smart Money Concepts builds upon these ideas to analyze how large Financial Institutions and/or Market Makers seem to operate in the markets.
This indicator combines multiple analytical tools into a single package for market structure analysis, imbalance detection, and the observation of institutional order flow.
----------------------------------------------------------
CORE COMPONENTS
Market Structure Analysis:
- External Structure : Major swing highs and lows that define broader price movement (these are the most significant structural points that institutions reference for their positioning and typically require substantial volume and momentum to break)
- Internal Structure : Shorter-term pivots showing micro-trend developments within the External Structure (these internal pivot highs and lows often represent areas where retail traders may be positioned on the wrong side of the market as they frequently form just before major structural breaks or trend continuations, creating liquidity that institutions can utilize)
- Structural Breakout Detection : Identification of structure breaks and potential trend changes ( 'Change of Character' which occurs when the External Structure shifts from bullish to bearish bias or vice-versa indicating a potential major trend reversal, and 'Break of Structure' which happens when price decisively takes out previous significant highs in a bearish trend or previous significant lows in a bullish trend confirming trend continuation or acceleration)
- EMA Cloud : Dynamic support and resistance zones with trend context (additional reference point)
Imbalance Zone Detection:
Fair Value Gaps (FVGs):
Price inefficiencies that occur between candles when sudden price moves create gaps in price delivery
Typically formed when the low of a bullish candle is higher than the high of the candle two periods prior, or when the high of a bearish candle is lower than the low of the candle two periods prior
These gaps represent areas where price moved too quickly without adequate two-way auction process
Institutions may return to fill these inefficiencies at a later time for proper price discovery
The theory suggests that all price ranges should eventually be traded through to complete the auction process
Gaps are automatically removed from the chart when price fully retraces back through the inefficient area
Order Blocks (OBs):
Specific candles that occur immediately before significant market moves and represent institutional decision points
Identified as the last opposing candle before a strong directional move (final bearish candle before major bullish move or final bullish candle before major bearish move)
These candles contain the orders and liquidity that institutions used as a foundation for their market manipulation
Represent areas where large institutional players positioned themselves to move the market significantly
Price may return to these levels to collect additional liquidity or test institutional resolve
The candle's full range (high to low) is considered the active zone where institutional interest may remain
Vector Candle Recovery:
Zones created by high-activity candles that demonstrate unusually large range and volume characteristics
These candles are interpreted as manipulative price pushes designed to hunt liquidity and trigger stop losses
Often used by institutions to induce retail traders into poor positions before reversing direction
Recovery zones represent the full range of these vector candles where price may retrace
The concept assumes that extreme moves often get partially retraced as the market corrects from artificial price displacement
Zones are invalidated when a significant portion of the vector candle range is retraced (typically 50% or more)
Support & Resistance:
Key price zones based on historical price reactions and pivot clustering analysis
Calculated through algorithmic identification of areas where price has repeatedly found buyers (support) or sellers (resistance)
Strength is determined by the number of times price has reacted from these levels and the volume of activity at these zones
Represent psychological and algorithmic reference points where institutional systems are likely to place orders
Create areas of increased probability for price reactions due to concentration of pending orders and decision-making activity
Zones are color-coded based on current price position: green for support (price above), red for resistance (price below), yellow for neutral (price within)
Liquidity Analysis:
- Liquidity Pools : Areas above or below key levels where stop orders may cluster
- Kill Zones : Time-based periods associated with increased market activity
- Daily/Weekly/Monthly Price Levels : Key institutional reference points (price highs/lows)
Vector Candles/Price Manipulation:
Advanced algorithm identifying statistically significant candles using volume delta analysis, range statistics, and persistence scoring.
----------------------------------------------------------
VISUAL INTERPRETATION - DETAILED GUIDE
MARKET STRUCTURE
External Structure (Thick Lines):
- Green thick lines: Major support levels (external lows) that define bullish structure
- Red thick lines: Major resistance levels (external highs) that define bearish structure
- These lines represent significant swing points that institutions may reference
- Lines extend from the swing point and update as the structure evolves
Internal Structure (Thin Lines):
- Green thin lines: Minor support levels showing internal market structure
- Red thin lines: Minor resistance levels showing internal market structure
- More frequent updates than external structure, showing micro-trend changes
Structure Markers:
- Small triangles with "H": External pivot highs (major resistance points)
- Small triangles with "L": External pivot lows (major support points)
- Small dots: Internal pivot points (minor structure without text)
- Markers appear with a 20-bar delay to confirm pivot validity
HIGHS/LOWS LEVELS
Daily Levels (Green Dashed Lines):
- Horizontal dashed lines marking the previous day's high and low
- Updates at the start of each new trading day
- Gradient effect shows historical importance (newer = more opaque)
- Acts as institutional reference points for intraday trading
Weekly Levels (White Dashed Lines):
- Horizontal dashed lines marking the previous week's high and low
- Updates at the start of each new trading week
- Typically more significant than daily levels for swing trading
- Often respected by institutional algorithms
Monthly Levels (Orange Dashed Lines):
- Horizontal dashed lines marking the previous month's high and low
- Updates at the start of each new trading month
- Highest significance levels for long-term institutional positioning
- Major psychological and algorithmic reference points
VECTOR CANDLES
Candle Body Coloring System:
- Lime Green Bodies: Ultra-bullish vector candles (Z-score ≥ 3.0)
- Blue Bodies: Abnormal bullish vector candles (Z-score 2.0-2.99)
- Bright Red Bodies: Ultra-bearish vector candles (Z-score ≥ 3.0)
- Purple Bodies: Abnormal bearish vector candles (Z-score 2.0-2.99)
- Faded Green/Red: Normal market activity candles
Vector Identification Criteria:
- Statistical significance based on range and volume delta
- Persistence scoring (how much directional pressure remained)
- ATR-based absolute detection (candles >2x ATR automatically qualify)
- These candles often precede significant market moves or reversals
EMA CLOUD
Purple Cloud Visualization:
- Central line: 50-period EMA (blue line)
- Upper boundary: EMA + dynamic standard deviation band
- Lower boundary: EMA - dynamic standard deviation band
- Cloud fill: Purple semi-transparent area between boundaries
Interpretation:
- Price above cloud: Bullish bias context
- Price below cloud: Bearish bias context
- Price within cloud: Neutral/transitional zone
- Cloud thickness adapts to market volatility automatically
KILL ZONES
Background Highlighting:
- Yellow background tint during active kill zone periods
- London Session: 08:00-11:00 (UTC+1 time)
- NY Open: 13:00-16:00 (UTC+1 time)
- NY Close: 19:00-21:00 (UTC+1 time)
- Times automatically adjust to the chart timezone
Purpose:
- Highlights periods of typically increased institutional activity
- Times when liquidity hunting and manipulation often occur
- Periods when significant directional moves frequently begin
IMBALANCE ZONES - DETAILED BREAKDOWN
Fair Value Gaps (FVGs):
- Green boxes: Bullish FVGs (gap between bear candle high and bull candle low)
- Red boxes: Bearish FVGs (gap between bull candle high and bear candle low)
- Gray dotted lines: Midpoint of each gap (50% retracement level)
- Text label: "Fair Value Gap" in top-right corner
- Auto-removal: Boxes disappear when the price fills the gap
Order Blocks (OBs):
- Green boxes: Bullish order blocks (demand zones from the last bear candle before bullish vector)
- Red boxes: Bearish order blocks (supply zones from the last bull candle before the bearish vector)
- Gray dotted lines: Midpoint of each order block
- Text label: "OB" in top-right corner
- Invalidation: Boxes removed when price breaks below (bull OB) or above (bear OB)
Vector Candles Recovery Zones:
- Green boxes: Recovery zones after bullish vector candles
- Red boxes: Recovery zones after bearish vector candles
- Gray dotted lines: Midpoint of the vector candle range
- Text label: "Vector Recovery" on the right side
- These mark the full range of significant vector candles where retracements may occur
Support & Resistance Zones:
- Green boxes: Support zones (price currently above the zone)
- Red boxes: Resistance zones (price currently below the zone)
- Yellow boxes: Neutral zones (price within the zone)
- Text labels: "Support", "Resistance", or "Support/Resistance"
- Based on historical pivot clustering and strength analysis
Liquidity Pools:
- Green boxes: Bullish liquidity pools (below recent lows where buy stops cluster)
- Red boxes: Bearish liquidity pools (above recent highs where sell stops cluster)
- Gray dotted lines: Key liquidity level within the pool
- Text label: "Liquidity Pool" on the right side
- Zones where institutional players may hunt stop losses before reversing
----------------------------------------------------------
CALCULATION METHODOLOGY
Vector Candle Algorithm:
- Statistical Analysis using 48-bar lookback period
- Z-score thresholds: 2.0 (abnormal), 3.0 (ultra)
- ATR-based significance filtering
- Volume Delta Integration with lower timeframe analysis
- Persistence scoring based on directional pressure sustainability
- Combined scoring system (delta + range)
- Absolute Vector Detection for candles exceeding 2x ATR
Market Structure Parameters:
- Swing Size: 20-period pivot detection
- Breakout Threshold: 3 consecutive breaks for structure confirmation
- EMA Length: 50-period with dynamic cloud sizing
Fair Value Gap Detection:
- Auto Threshold: Dynamic gap sizing based on asset volatility
- Manual Threshold: User-defined minimum gap percentage
- Mitigation Logic: Automatic removal when price fills gaps
----------------------------------------------------------
TARGET USERS
This indicator is designed for traders who:
- Study Inner Circle Trader concepts
- Apply Smart Money Concepts in their analysis
- Focus on market structure and institutional behavior
- Seek confluence-based trading approaches
- Use higher timeframe bias for decision making
Experience Level: Intermediate to Advanced
Requires understanding of market structure concepts and institutional trading theory.
Recommended Timeframes:
- Analysis: 4H, Daily for market structure context
- Execution: 1H, 15min for entry timing
- Lower timeframes: With higher timeframe alignment
----------------------------------------------------------
CUSTOMIZATION OPTIONS
Display Controls:
- Master toggle for all imbalance zones
- Individual controls for each concept type
- Market structure line visibility
- Kill zone highlighting
- EMA cloud display
Visual Settings:
- Automatic light/dark mode color adaptation
- Adjustable zone transparency levels
- Extension distance controls
- Descriptive text labels
Technical Parameters:
- Vector candle sensitivity thresholds
- Historical analysis lookback periods
- Maximum zone display limits
- Zone invalidation conditions
----------------------------------------------------------
EDUCATIONAL BACKGROUND
Inner Circle Trader (ICT): A trading methodology developed by Michael J. Huddleston that focuses on understanding how institutional traders and market makers operate. The approach emphasizes market structure, liquidity concepts, and timing based on institutional behavior patterns.
Smart Money Concepts (SMC): An evolution of ICT principles that analyzes how large financial institutions move markets. These concepts include order blocks, fair value gaps, liquidity hunting, and market structure shifts.
Both methodologies are based on the premise that understanding institutional trading behavior can provide insights into market direction and timing.
----------------------------------------------------------
IMPORTANT DISCLAIMERS
This indicator is provided for educational and analytical purposes only. It is not financial advice and does not guarantee trading results.
Trading involves substantial risk of loss. Past performance does not indicate future results. Users should thoroughly understand the underlying concepts before applying them to live trading.
The effectiveness of these analytical methods may vary across different market conditions, timeframes, and instruments. Proper risk management and additional analysis are essential.
This indicator is a tool for market analysis, not a complete trading system. Success requires understanding of market principles, risk management, and continuous learning.
Always test analytical approaches thoroughly using historical data and demo accounts before implementing with real capital.
Dragon Shadow K HighlightDragon Shadow Strategy
Highlight Candles with Volume Spike
Highlight any candle whose volume exceeds the 20-period moving average of volume.
Highlight Doji Candles
Highlight candles that are Doji (where the open and close are very close, indicating market indecision).
Display Higher Timeframe Candles
On lower timeframes, display virtual candles composed of higher timeframe data:
On 15-minute chart:
Display 4 x 1H candles
Display 3 x 4H candles
Display 2 x 1D candles
On 1-hour chart:
Display 3 x 4H candles
Display 2 x 1D candles
On 4-hour chart:
Display 2 x 1D candles
Price Action All In OnePrice Action All In One. Scalping and Day Trading with this PA indicator. Enjoy
AVWAP 4HThe AVWAP 4H indicator is a multi-session Anchored Volume-Weighted Average Price (AVWAP) tool designed for intraday precision and institutional-grade insight. It plots session-specific AVWAP lines based on a series of key UTC-based time anchors, allowing traders to monitor value zones and dynamic support/resistance across global trading hours.
This script calculates and displays AVWAP lines anchored from five distinct UTC times:
8:00 PM (ETH Open)
10:00 PM
2:00 AM
6:00 AM
10:00 AM
Each line is calculated using ohlc4 as the price source and resets at its respective session start time. Traders can enable or disable any AVWAP anchor individually, as well as customize line color and width for better visual distinction.
The indicator is ideal for identifying volume-weighted equilibrium levels across overlapping global market sessions, particularly useful for short-term mean-reversion, breakout, and institutional order flow strategies.
Volume Surge Detector[SpeculationLab]Volume Surge Detector
This tool is especially useful for spotting early signs of breakouts, news-driven spikes, or institutional activity that are often preceded by abnormal surges in volume.
For better chart readability, the volume bar colors are based on TradingView’s original Volume indicator, while all other code is fully original by Speculation Lab.
You can customize both the SMA line and the volume bar colors to fit your style.
The logic compares the current volume against its SMA (default length: 14, fully adjustable).
The script comes with two surge levels:
Surge Level 1 (default = 5) → When volume is more than 5× the SMA, the bar turns aqua.
Surge Level 2 (default = 10) → When volume is more than 10× the SMA, the bar turns yellow.
It also includes built-in alerts, so you’ll be notified instantly whenever a surge is detected.
This makes it easier to spot potential breakout moves or large market participation in real time.
Disclaimer: This script is for educational purposes only. It does not provide financial advice.
这是一个用于探测 成交量爆发 的指标。
为了图表美观,成交量柱的颜色借鉴了 TradingView 原始 Volume 指标,其余代码均为 Speculation Lab 原创。
用户可以自由调整成交量柱和其对应的 SMA 均线的颜色。
指标通过对比成交量和其 SMA(默认长度为14,可自定义长度和颜色)的比例来检测放量。
默认设置了两个放量级别:
Surge Level 1(默认=5):当成交量超过均量的 5 倍时,量柱变为水蓝色。
Surge Level 2(默认=10):当成交量超过均量的 10 倍时,量柱变为黄色。
脚本还设置了 内置警报功能,方便交易者在出现放量时实时收到通知。
Intraday Strategy: 9EMA-21EMA + VWAP + RSIIntraday 15 m Time fram strategy, helpful in identifying the stocks as well as indices in Indian Market for Long and Short Trades.
StarStrat Ceres Strategy [0.3.1]2025ETH 30M Composite Golden Indicator Trend Strategy
This strategy is designed for Ethereum 30-minute timeframe, utilizing composite golden indicators combined with trend indicators for trade signal identification.
Trading Logic:
- Entry: Triggered when composite golden indicator and trend indicator confirm same direction
- Exit: Partial profit-taking mechanism with customizable parameters for each position
- Risk Management: Built-in risk coefficient, recommended setting at 1%
All key parameters are adjustable to adapt to different trading styles.
Risk Disclaimer: For educational and research purposes only. Not investment advice. Cryptocurrency trading involves high risk, please trade cautiously.
PHL Sweep Signals(1 Hour)PHL Sweep Signals (Full History)
This indicator is designed to identify high-probability reversal setups by detecting liquidity sweeps of the previous standard hour's high and low (PHL). It provides clear, actionable signals complete with visual aids and a data table to keep you in tune with the higher-timeframe context.
Key Features
Previous Hour Levels: Automatically draws the high and low of the previous standard hour as key reference lines for the current trading hour. The line colors rotate to provide a clear visual separation.
Bearish Sweep Signal: Identifies a specific bearish pattern: a green (bullish) candle that wicks above the previous hour's high but fails to hold, with its body remaining entirely below the line.
Bullish Sweep Signal: Identifies the opposite bullish pattern: a red (bearish) candle that wicks below the previous hour's low but is absorbed, with its body remaining entirely above the line.
Clear Visual Signals: When a signal is confirmed, the indicator provides a multi-faceted alert:
Plots a "Buy" or "Sell" arrow on the chart.
Draws a colored box around the signal candle for easy identification.
Displays a label with the potential Stop Loss size (calculated from the size of the signal candle).
Informative Display Table: Includes a convenient table in the corner showing the Open and Close data for the last 3 hours, helping you stay aware of the broader market context without leaving your chart.
Built-in Alerts: Triggers an alert for every confirmed Buy and Sell signal so you never miss a potential setup.
How to Use
This indicator helps you spot potential exhaustion and reversals at key hourly levels.
A "Sell" signal suggests a failed breakout to the upside, indicating potential weakness and a possible entry for shorts.
A "Buy" signal suggests a failed breakdown to the downside, indicating potential strength and a possible entry for longs.
As with any tool, these signals are most powerful when used as part of a comprehensive trading strategy and combined with your own analysis for confirmation.
Optimal Settings:
Timeframe: 5-Minute
Time Zone: UTC-4 (New York Time)
-ratheeshinv
Buy The Dip - ENGThis script implements a grid trading strategy for long positions in the USDT market. The core idea is to place a series of buy limit orders at progressively lower prices below an initial entry point, aiming to lower the average entry price as the price drops. It then aims to exit the entire position when the price rises a certain percentage above the average entry price.
Here's a detailed breakdown:
1. Strategy Setup (`strategy` function):
`'거미줄 자동매매 250227'`: The name of the strategy.
`overlay = true`: Draws plots and labels directly on the main price chart.
`pyramiding = 15`: Allows up to 15 entries in the same direction (long). This is essential for grid trading, as it needs to open multiple buy orders.
`initial_capital = 600`: Sets the starting capital for backtesting to 600 USDT.
`currency = currency.USDT`: Specifies the account currency as USDT.
`margin_long/short = 0`: Doesn't define specific margin requirements (might imply spot trading logic or rely on exchange defaults if used live).
`calc_on_order_fills = false`: Strategy calculations happen on each bar's close, not just when orders fill.
2. Inputs (`input`):
Core Settings:
`lev`: Leverage (default 10x). Used to calculate position sizes.
`Investment Percentage %`: Percentage of total capital to allocate to the initial grid (default 80%).
`final entry Percentage %`: Percentage of the *remaining* capital (100 - `Investment Percentage %`) to use for the "semifinal" entry (default 50%). The rest goes to the "final" entry.
`Price Adjustment Length`: Lookback period (default 4 bars) to determine the initial `maxPrice`.
`price range`: The total percentage range downwards from `maxPrice` where the grid orders will be placed (default -10%, meaning 10% down).
`tp`: Take profit percentage above the average entry price (default 0.45%).
`semifinal entry price percent`: Percentage drop from `maxPrice` to trigger the "semifinal" larger entry (default -12%).
`final entry price percent`: Percentage drop from `maxPrice` to trigger the "final" larger entry (default -15%).
Rounding & Display:
`roundprice`, `round`: Decimal places for rounding price and quantity calculations.
`texts`, `label_style`: User interface preferences for text size and label appearance on the chart.
Time Filter:
`startTime`, `endTime`: Defines the date range for the backtest.
3. Calculations & Grid Setup:
`maxPrice`: The highest price point for the grid setup. Calculated as the lowest low of the previous `len` bars only if no trades are open. If trades are open, it uses the entry price of the very first order placed in the current sequence (`strategy.opentrades.entry_price(0)`).
`minPrice`: The lowest price point for the grid, calculated based on `maxPrice` and `range1`.
`totalCapital`: The amount of capital (considering leverage and `per1`) allocated for the main grid orders.
`coinRatios`: An array ` `. This defines the *relative* size ratio for each of the 11 grid orders. Later orders (at lower prices) will be progressively larger.
`totalRatio`: The sum of all ratios (66).
`positionSizes`: An array calculated based on `totalCapital` and `coinRatios`. It determines the actual quantity (size) for each of the 11 grid orders.
4. Order Placement Logic (`strategy.entry`):
Initial Grid Orders:
Runs only if within the specified time range and no position is currently open (`strategy.opentrades == 0`).
A loop places 11 limit buy orders (`Buy 1` to `Buy 11`).
Prices are calculated linearly between `maxPrice` and `minPrice`.
Order sizes are taken from the `positionSizes` array.
Semifinal & Final Entries:
Two additional, larger limit buy orders are placed simultaneously with the grid orders:
`semifinal entry`: At `maxPrice * (1 - semifinal / 100)`. Size is based on `per2`% of the capital *not* used by the main grid (`1 - per1`).
`final entry`: At `maxPrice * (1 - final / 100)`. Size is based on the remaining capital (`1 - per2`% of the unused portion).
5. Visualization (`line.new`, `label.new`, `plot`, `plotshape`, `plotchar`):
Grid Lines & Labels:
When a position is open (`strategy.opentrades > 0`), horizontal lines and labels are drawn for each of the 11 grid order prices and the "final" entry price.
Lines extend from the bar where the *first* entry occurred.
Labels show the price and planned size for each level.
Dynamic Coloring: If the price drops below a grid level, the corresponding line turns green, and the label color changes, visually indicating that the level has been reached or filled.
Plotted Lines:
`maxPrice` (initial high point for the grid).
`strategy.position_avg_price` (current average entry price of the open position, shown in red).
Target Profit Price (`strategy.position_avg_price * (1 + tp / 100)`, shown in green).
Markers:
A flag marks the `startTime`.
A rocket icon (`🚀`) appears below the bar where the `final entry` triggers.
A stop icon (`🛑`) appears below the bar where the `semifinal entry` triggers.
6. Exit Logic (`strategy.exit`, `strategy.entry` with `qty=0`):
Main Take Profit (`Full Exit`):
Uses `strategy.entry('Full Exit', strategy.short, qty = 0, limit = target2)`. This places a limit order to close the entire position (`qty=0`) at the calculated take profit level (`target2 = avgPrice * (1 + tp / 100)`). Note: Using `strategy.entry` with `strategy.short` and `qty=0` is a way to close a long position, though `strategy.exit` is often clearer. This exit seems intended to apply whenever any part of the grid position is open.
First Order Trailing Stop (`1st order Full Exit`):
Conditional: Only active if `trail` input is true AND the *last* order filled was "Buy 1" (meaning only the very first grid level was entered).
Uses `strategy.exit` with `trail_points` and `trail_offset` based on ATR values to implement a trailing stop loss/profit mechanism for this specific scenario.
This trailing stop order is cancelled (`strategy.cancel`) if any subsequent grid orders ("Buy 2", etc.) are filled.
Final/Semifinal Take Profit (`final Full Exit`):
Conditional: Only active if more than 11 entries have occurred (meaning either the "semifinal" or "final" entry must have triggered).
Uses `strategy.exit` to place a limit order to close the entire position at the take profit level (`target3 = avgPrice * (1 + tp / 100)`).
7. Information Display (Tables & UI Label):
`statsTable` (Top Right):
A comprehensive table displaying grouped information:
Market Info (Entry Point, Current Price)
Position Info (Avg Price, Target Price, Unrealized PNL $, Unrealized PNL %, Position Size, Position Value)
Strategy Performance (Realized PNL $, Realized PNL %, Initial/Total Balance, MDD, APY, Daily Profit %)
Trade Statistics (Trade Count, Wins/Losses, Win Rate, Cumulative Profit)
`buyAvgTable` (Bottom Left):
* Shows the *theoretical* entry price and average position price if trades were filled sequentially up to each `buy` level (buy1 to buy10). It uses hardcoded percentage drops (`buyper`, `avgper`) based on the initial `maxPrice` and `coinRatios`, not the dynamically changing actual average price.
`uiLabel` (Floating Label on Last Bar):
Updates only on the most recent bar (`barstate.islast`).
Provides real-time context when a position is open: Size, Avg Price, Current Price, Open PNL ($ and %), estimated % drop needed for the *next* theoretical buy (based on `ui_gridStep` input), % rise needed to hit TP, and estimated USDT profit at TP.
Shows "No Position" and basic balance/trade info otherwise.
In Summary:
This is a sophisticated long-only grid trading strategy. It aims to:
1. Define an entry range based on recent lows (`maxPrice`).
2. Place 11 scaled-in limit buy orders within a percentage range below `maxPrice`.
3. Place two additional, larger buy orders at deeper percentage drops (`semifinal`, `final`).
4. Calculate the average entry price as orders fill.
5. Exit the entire position for a small take profit (`tp`) above the average entry price.
6. Offer a conditional ATR trailing stop if only the first order fills.
7. Provide extensive visual feedback through lines, labels, icons, and detailed information tables/UI elements.
Keep in mind that grid strategies can perform well in ranging or slowly trending markets but can incur significant drawdowns if the price trends strongly against the position without sufficient retracements to hit the take profit. The leverage (`lev`) input significantly amplifies both potential profits and losses.
Nifty 500 Scanner
Nifty 500 Scanner
Your Ultimate TradingView Tool for Swing and Intraday Trading
🔥 Introduction
✅ If you want to find out which stock out of 500 stocks of Nifty500 is:
showing reversal pattern candles after a long down or up trend
also bouncing from support/resistance
and that stock gives you live alerts when this condition occurs
Then, look no further. Nifty500 Scanner is just for you.
📊 What is the Nifty 500 Scanner?
The Nifty 500 Scanner is a powerful TradingView indicator for Indian stocks designed to help you identify bullish and bearish reversal signals across all timeframes. Whether you are an intraday trader or a swing trader, this tool gives you an edge by scanning predefined groups of Nifty 500 stocks and visually showing you high-probability setups.
🔥 Key Features
Scans all Nifty 500 stocks in batches of 25 (20 groups in total). Takes less than 10 minutes to select bearish or bullish reversal stocks out of 500 stocks.
Detects over 50 advanced candlestick patterns, divergences, and trend changes in one go in all the selected stocks and displays result right on your chart in the form of a table.
Auto-populated real-time table display with signal count and color-coded results.
TradingView alerts for instant notification of reversal setups.
Shows key support and resistance levels for each stock.
Fully compatible with all timeframes – from 1 minutes to monthly chart.
✅ Why Traders Would Love It?
Eliminates manual chart scanning – saves hours every week.
Improves trade accuracy by filtering out weak setups.
Instantly tells you which stocks to trade tomorrow (if using after market hours)
Built for Indian market conditions and TradingView users.
⚙️ How It Works?
Select a stock group from the dropdown menu (Available in indicator settings).
Suppose you select Group1 and press OK, voila.. the scanner automatically runs through 25 predefined Nifty 500 stocks and updates the table in quick time.
The table shows which stocks are giving bullish or bearish signals and also tells you how many such signals are there. The more signals, the more conviction for upcoming reversal.
Open chart of any stock mentioned in the table to have a detailed look.
The chart will show you a consolidation zone, support/resistance lines automatically.
Set up alerts for your favorite stocks and let TradingView notify you when new signals emerge for that particular stock.
📌 Important Notes
Stock groups are hard-coded into the script and cannot be modified by the user.
Custom versions for other countries or indices (e.g., S&P 500, FTSE) can be created upon request.
🔍 Optimized For
Swing traders and intraday traders seeking high-probability setups.
Technical analysts using TradingView to analyze Indian stock charts.
Traders looking for an advanced reversal signal scanner.
🚀 Ready to Trade Smarter?
Start using the Nifty 500 Scanner on TradingView and never miss a reversal signal again.
Get Access Now.
US Index First Candle Breakout with FVGStrategy Description: US Index First Candle Breakout with FVG
Works on NG1! and YM1! for maximised profit.
Overview:
The "US Index First Candle Breakout with FVG" strategy is designed to capitalize on the volatility present during the first minutes of the U.S. stock market opening. By focusing on the initial 5-minute candle, this strategy identifies key price levels that can serve as breakout points for potential trading opportunities.
Key Features:
1. Breakout Strategy:
The strategy tracks the high and low of the first 5-minute candle after the market opens at 9:30 AM (New York time). These levels are critical indicators for potential price movements.
A long position is triggered when the price breaks above the high of the first candle, while a short position is initiated when the price drops below the low.
2. Manual Trade Direction Filter: (developing)
Users can select their preferred trading direction through a customizable input:
Buy only: Execute long trades only.
Sell only: Execute short trades only.
Both: Allow trades in both directions.
This feature enables traders to align the strategy with their market outlook and risk tolerance.
3. Fair Value Gap (FVG) Analysis:
The strategy incorporates an FVG filter to enhance trade precision. It assesses market gaps to identify whether a breakout is supported by underlying market dynamics.
The algorithm checks for conditions that indicate a valid breakout based on previous price action, ensuring that trades are made on strong signals.
4. Risk Management:
A customizable risk per trade setting allows users to define their risk tolerance in ticks.
The strategy includes a reward-to-risk ratio input, enabling traders to set their take-profit levels based on their risk preferences.
Stop-loss levels are automatically calculated based on the breakout direction, helping to safeguard against unexpected price movements.
5. Automatic Trade Execution:
Trades are executed automatically based on the defined conditions, reducing the need for manual intervention and allowing traders to capitalize on market movements in real-time.
Session End Closure:
The strategy automatically closes all open positions at 4:00 PM (New York time), ensuring that trades do not carry overnight risk.
How to Use the Strategy:
Simply add the script to your TradingView chart, set your desired parameters, and select your preferred trade direction.
Monitor for breakout signals during the first trading session, and let the automated system handle trade entries and exits based on your specifications.
Conclusion:
The "US Index First Candle Breakout with FVG" strategy is ideal for traders seeking to leverage early market volatility with a structured approach. By combining breakout techniques with FVG analysis and customizable trade direction, this strategy offers a robust framework for navigating the complexities of the U.S. stock market's opening dynamics.
Tom's LevelsThis Is a indicator that shows TomTrades Candle Behaviour levels based of 30m, hourly and 4h opens and closes.
Tín hiệu EMA + tô nền khi đủ điều kiện3. Order entry conditions
- Confirmation on H1:
+ EMA21 > EMA34 > EMA55
+ EMA21 increases consecutively by `emaRiseBars` candles
+ Spread EMA21–EMA55 ∈
+ ATR_H1 / Price_H1 > minATRRatio_H1
- Confirmation on M15:
+ EMA21 > EMA34 > EMA55
+ Spread EMA21–EMA55 ∈
+ ATR_M15 / Price_M15 > minATRRatio_M15
- After confirming that the conditions on H1 and M15 are met, start waiting for 1 candle.
+ If it is a Buy order: the price cuts up to EMA21 of candle number 1, then place the order.
+ If it is a Sell order: the price cuts down to the EMA21 of candle number 1, then place the order.
HTF Candles [theUltimator5]Overlay higher timeframe candles on any lower timeframe chart with real-time updates.
This indicator displays the full structure of each higher timeframe (HTF) candle—including open-close bodies and full wicks—directly on your current chart. Great for multi-timeframe traders who want to align short-term entries with broader market context.
🔹 Features:
View higher timeframe candles (e.g., 1H, 4H, Daily) on intraday charts
Dynamic candle bodies that update in real-time
Accurate wick representation with auto-redrawing
Customizable bullish/bearish colors and transparency
Efficient object management for minimal clutter
🛠️ How to Use:
Add this indicator to a lower timeframe chart (e.g., 1m, 5m, or 15m).
Select a higher timeframe (must be greater than your chart timeframe).
Customize your candle colors and transparency for better visibility.
Watch as each higher timeframe candle evolves live with every bar.
📌 Example: Use a 5-minute chart with a 1-hour HTF overlay to track hourly market structure without switching timeframes.
Failed 21er BounceFailed 21er Bounce Setup by Claudius Vertesi made by cymarlon.
In the current version it does not recognice "Advancing Wicks" and "Retracing Wicks", if there is interest it will come soon...
You can setup the threshold of the minimum wicks length and piano close tolerance.
Aether SignalAether Signal is a professional TradingView indicator engineered for advanced traders who demand precise analysis, smart money concepts, and robust risk management. It systematically incorporates institutional trading techniques, automated level detection, and multi-level profit-taking for exceptional trade execution.
Support & Resistance: Aether Signal automatically identifies key support and resistance levels using mathematically rigorous algorithms, ensuring that traders see the most significant price barriers for their entries and exits.
Smart Money Concepts: The indicator is grounded in institutional trading logic, analyzing market structure to pinpoint where large market participants are engaging. It leverages volume and price interaction at critical zones, similar to harmonic liquidity nodes in professional strategies.
Precise Entry Points: Entry signals are generated when strict confluence conditions are met, ensuring signals align with underlying market structure, high-volume footprints, and optimal momentum. Stops are logically placed just beyond the validated support or resistance—on the opposite side of the key zone.
Triple Take Profits: Aether Signal equips traders to maximize returns with three intelligently placed take profit levels (TP1, TP2, TP3), allowing for strategic scaling out and adaptive trade management.
Supply & Demand Zones: The indicator scans for market imbalances by identifying high-probability supply and demand areas driven by institutional activity and volume anomalies, guiding traders toward potent reversal or continuation setups.
Advanced Risk Management: Robust risk controls are integrated, including logical stop loss suggestions and trade selection filters, to minimize overtrading and enhance consistency.
Win Rate: The system claims a win rate of up to 96% under optimal settings and strict adherence to its entry criteria, setting a high benchmark for performance (note: actual results may vary depending on market conditions and trader discipline).
Aether Signal is tailored for traders seeking the edge of institutional-grade analytics—offering comprehensive structure analysis, actionable alerts, and performance-focused features that merge automation with trader control.
6FG Plan Checklist & Alerts - Final Version🧠 SCRIPT OVERVIEW: "6FG A+ SETUP - Simplified"
This script is designed to identify high-probability A+ trade setups in alignment with your personal 6FG trading plan, based on:
H1 Break of Structure (required)
4H trend confirmation
15M candle confirmation
Session filter
A+ Label & Visual Table Checklist
✅ KEY COMPONENTS
1. Toggle Inputs
These allow you to customize your view and filters without changing the code:
showSession: Only allow alerts inside Asian or NY sessions
show4hTrend: Include or ignore 4H directional bias
show15mConfirm: Include or ignore confirmation from 15M candles
showTable: Display checklist table on chart
showLabel: Display the “✅ A+” label on qualifying bars
2. Session Filter
Defines valid timeframes for trading (Asian or New York)
Helps avoid setups during low-liquidity hours
Controlled by showSession
3. 4H Trend (Confirmation Only)
Uses a 20-period SMA on 4H to detect general bias:
Bullish = Price above SMA
Bearish = Price below SMA
This trend is not mandatory for an alert if toggle is off
4. H1 Break of Structure (REQUIRED)
Looks at the highest high and lowest low of the last 10 candles on the 1H timeframe
Detects either:
Bullish BOS = Current close > highest high
Bearish BOS = Current close < lowest low
This is the core trigger for the A+ setup
If BOS doesn't happen, no entry is valid
5. 15M Confirmation Candles
(Optional - controlled by show15mConfirm)
Checks for one of three confirmation patterns:
Bullish Engulfing
Bearish Engulfing
Pin Bar
This adds confidence but can be toggled off
6. Entry Conditions (A+ Setup)
All the following must be true for entryOK = true:
✅ H1 BOS (required)
✅ Session is valid (if toggle is on)
✅ 15M confirmation pattern (if toggle is on)
✅ 4H trend (if toggle is on)
7. Visual Output
If entryOK = true:
✅ A green "A+" label appears below price
✅ A checklist table on the top-right shows:
Session status ✔️❌
4H bullish/bearish ✔️❌
H1 BOS ✔️❌
15M confirmation ✔️❌
Final Direction: Bullish / Bearish / —
A+ Setup: ✔️❌
8. Alerts
You will receive a TradingView alert when an A+ Setup is detected:
Blue Dot Pullback with Bollinger BonusKey FeaturesCore Blue Dot Condition:ATH Pulse: Checks if the highest high in the lookback period (default: 60 bars) is within 1% of the all-time high (over 5000 bars), using recentHigh >= allTimeHigh * 0.99.
Pullback: Price must be below the recent high (close < recentHigh ) but above a 10-period SMA (close > sma10) to ensure a bullish context.
Stochastic Crossover: Stochastic %K must cross above 20 (ta.crossover(k, stochOverSold)).
When these conditions are met, a blue dot is plotted below the bar.
Purple Dot Condition (Bollinger Band Bonus):Includes all blue dot conditions plus the price being within 2% of the lower Bollinger Band (close <= lowerBB * bbProximity).
When met, a purple dot is plotted instead of a blue dot to highlight the stronger signal.
Plotting Logic:Blue dots are plotted only when blueDotCondition is true and purpleDotCondition is false to avoid overlap.
Purple dots are plotted when purpleDotCondition is true (includes Bollinger Band proximity).
Alerts:Added separate alertcondition calls for blue and purple dots, allowing you to set up notifications in TradingView for each signal type.
Visualization:Stochastic %K and %D are plotted in a separate pane for reference, along with the oversold line (20).
You can disable the Stochastic plot by setting display=display.none in the plot functions.
Why This Should WorkCore Setup Alignment: The blue dot condition focuses on the core requirements (ATH, pullback, Stochastic crossover), which should produce signals similar to or more frequently than the ChatGPT script, as it omits the Bollinger Band requirement unless the purple dot condition is met.
Bollinger Band Bonus: The purple dot incorporates the Bollinger Band proximity check (bbNear), matching the ChatGPT script’s additional filter, ensuring purple dots appear when the price is near the lower Bollinger Band.
Flexible ATH Detection: Using recentHigh >= allTimeHigh * 0.99 makes the ATH condition less strict, increasing the likelihood of signals compared to my original script.
How to UseAdd to TradingView:Open the Pine Editor in TradingView.
Copy and paste the script.
Click "Add to Chart" to apply it.
Interpret Dots:Blue Dot: Indicates a stock near an ATH, in a pullback (above 10-period SMA), with a Stochastic crossover above 20. This is the core Dr. Wish setup.
Purple Dot: Same as blue dot but with the price also within 2% of the lower Bollinger Band, suggesting a stronger pullback signal.
Test and Compare:Apply the script to the same stock and timeframe where the ChatGPT script showed blue dots (e.g., NVDA or TSLA on a daily chart).
Check if blue dots appear at similar points and if purple dots appear when the price is near the lower Bollinger Band.
Adjust lookbackATH (e.g., 60 to 100) or bbProximity (e.g., 1.02 to 1.05) if signals are too rare or frequent.
Set Alerts:Use TradingView’s alert feature to create notifications for “Blue Dot Alert” or “Purple Dot Alert” when signals occur.
TroubleshootingIf you’re still not seeing blue or purple dots:Check the Chart: Ensure the stock has recently hit an ATH and pulled back. Test on volatile stocks like NVDA, TSLA, or AAPL on daily or weekly timeframes.
Timeframe Sensitivity: The script may produce fewer signals on lower timeframes (e.g., 1-hour) due to fewer ATH occurrences. Try a daily or weekly chart.
Parameter Tuning: Increase bbProximity (e.g., to 1.05) to allow purple dots for prices slightly further from the lower Bollinger Band, or increase lookbackATH to capture more ATHs.
Compare with ChatGPT Script: Run both scripts on the same chart to identify where signals differ. Share the ticker, timeframe, or a screenshot if you need help debugging specific cases.
Additional NotesThe 10-period SMA in the pullback condition (isPullback) is a simple bullish context filter. You can replace it with another condition (e.g., 20-period SMA or trend filter) if preferred.
The Bollinger Band parameters (bbLength=20, bbMult=2.0) are standard but can be adjusted to match your trading style.
The script uses a 5000-bar lookback for allTimeHigh to approximate a true ATH. If your chart has limited historical data, reduce this value (e.g., to 1000).
50-Candle Look-Back MarkerIt simply redraws one vertical dotted line that always sits exactly 50 bars behind the current bar, so you can check at a glance that any trend-line you draw has at least 50 candles of data to the right of it.
FVG + IFVG Gap (ULTRA) by Aditya NejeThis Indicator shows Fair Value Gap and Inverse Fair Value gaps
BT Bar - 1.0 BTBar Description
BTBar is a visual script designed to identify and highlight candles with abnormally high volume, making it easier for traders to spot pressure imbalances and key price areas during live market action.
🔍 The script compares the current candle’s volume to the previous one, and highlights candles that exceed specific percentage thresholds (customizable by the user) using distinct colors.
Rather than relying on generic trend or scalping strategies, BTBar is based on relative volume intensity detection — a concept rooted in order flow analysis — to help traders identify:
Candles with unusual volume spikes (possible absorption or exhaustion),
Medium/high volume continuation signals,
Areas where price might reverse or accelerate.
🛠️ It also offers the option to automatically draw horizontal lines from the open of the highest-volume candles, helping traders track potential institutional decision levels throughout the day.
⚙️ How to use:
Apply BTBar to a clean chart.
Customize the volume threshold levels (e.g., 300%, 400%, etc.).
Watch for highlighted candles — these indicate moments when volume significantly broke previous levels, marking potential points of interest or behavior shifts.
Use the optional horizontal lines as visual support/resistance levels derived from volume extremes.
🧠 Underlying concept:
BTBar uses a percentage-based volume comparison approach, inspired by techniques in footprint charts and volume spike detection.
This allows traders to visually spot key market reactions without relying on numeric overload or complex setups.