Wyckoff S-bar and RS-bar DetectorThis script is used for detecting Significant candle/bar according to Wyckoff definition.
Highly appriciate your feedback if any issue during your usage.
Pattern grafici
Hedging Exit Strategy - XAUUSD//@version=5
indicator("Hedging Exit Strategy - XAUUSD", overlay=true)
// === Supertrend Settings ===
atrPeriod = input.int(10, title="ATR Period")
factor = input.float(3.0, title="Supertrend Factor")
= ta.supertrend(factor, atrPeriod)
// === External ML Signal (manual input for simulation/testing) ===
mlSignal = input.string("Neutral", title="ML Signal (Buy / Sell / Neutral)", options= )
// === Entry Buy Info ===
entryBuyPrice = input.float(3005.0, title="Entry Buy Price")
currentProfit = close - entryBuyPrice
isBuyProfitable = currentProfit > 0
// === Conditions ===
isSupertrendSell = direction < 0
isMLSell = mlSignal == "Sell"
exitBuyCondition = isBuyProfitable and isMLSell and isSupertrendSell
// === Plotting Supertrend ===
plot(supertrend, "Supertrend", color=direction > 0 ? color.green : color.red, linewidth=2)
// === Plot Exit Buy Signal ===
bgcolor(exitBuyCondition ? color.red : na, transp=85)
plotshape(exitBuyCondition, title="Exit Buy", location=location.abovebar, color=color.red, style=shape.flag, text="EXIT")
// === Create label only when exitBuyCondition is true ===
if exitBuyCondition
label.new(bar_index, high, "EXIT BUY", style=label.style_label_down, color=color.red, size=size.small, textcolor=color.white)
FVG + PrevDayLow [Dovy]This custom TradingView indicator identifies Fair Value Gaps (FVGs)—both bullish and bearish—and checks if they form below the previous day's low. It also attempts to detect a potential "FVG open" pattern, suggesting that price might fill or react to these gaps.
Dual EMA (9 & 21) w/ Entry SignalsDual EMA Crossover with RSI Filter
This Pine Script indicator combines two popular technical analysis tools - Exponential Moving Averages (EMAs) and Relative Strength Index (RSI) - to identify potential trading opportunities.
Key Features
Plots two EMAs (default: 9 & 21 periods) directly on your chart
Generates entry signals based on EMA crossovers with additional confirmation filters
Uses RSI as a trend filter to reduce false signals
Visual arrows indicate potential entry points for both long and short positions
All parameters are fully customizable
How It Works
The indicator identifies trading opportunities through a multi-factor approach:
EMA Crossover: Fast EMA (9) crosses above/below Slow EMA (21)
Price Confirmation: Close price confirms the direction by being above/below the Slow EMA
RSI Filter: RSI value confirms the trend direction by being above/below the RSI filter level
Visual Feedback
Green up arrows indicate long entry signals (bullish)
Red down arrows indicate short entry signals (bearish)
Fast EMA displayed as a green line
Slow EMA displayed as a red line
Settings
Fast EMA Length: Period for the faster-moving EMA (default: 9)
Slow EMA Length: Period for the slower-moving EMA (default: 21)
Source: Price data to use for calculations (default: close)
RSI Length: Period for RSI calculation (default: 14)
RSI Filter Level: Threshold for RSI trend filter (default: 50.0)
Ideal for swing traders and position traders looking for high-probability entry points with trend confirmation.
Ross Cameron-Inspired Day Trading StrategyExplanation for Community Members:
Title: Ross Cameron-Inspired Day Trading Strategy
Description:
This script is designed to help you identify potential buy and sell opportunities during the trading day. It combines several popular trading strategies to provide clear signals.
Key Features:
Gap and Go: Identifies stocks that have gapped up or down at the open.
Momentum Trading: Uses RSI and EMA to identify momentum-based entry points.
Mean Reversion: Uses RSI and SMA to identify potential reversals.
How to Use:
Apply to Chart: Add this script to your TradingView chart.
Set Timeframe: Works best on 5-minute and 10-minute timeframes.
Watch for Signals: Look for green "BUY" labels for entry points and red "SELL" labels for exit points.
Parameters:
Gap Percentage: Adjust to identify larger or smaller gaps.
RSI Settings: Customize the RSI length and overbought/oversold levels.
EMA and SMA Lengths: Adjust the lengths of the moving averages.
Confirmation Period: Set how many bars to wait for confirmation.
Visual Elements:
BUY Signals: Green labels below the price bars.
SELL Signals: Red labels above the price bars.
Indicators: Displays EMA (blue) and SMA (orange) for additional context.
This script is a powerful tool for day trading on NSE and BSE indices, combining multiple strategies to provide robust trading signals. Adjust the parameters to suit your trading style and always combine with your own analysis for best results.
NY First Candle Break and RetestStrategy Overview
Session and Time Parameters:
The strategy focuses on the New York trading session, starting at 9:30 AM and lasting for a predefined session length, typically 3 to 4 hours. This timing captures the most active market hours, providing ample trading opportunities.
Strategy Parameters:
Utilizes the Average True Range (ATR) to set dynamic stop-loss levels, ensuring risk is managed according to market volatility.
Employs a reward-to-risk ratio to determine take profit levels, aiming for a balanced approach between potential gains and losses.
Strategy Settings:
Incorporates simple moving averages (EMA) and the Volume Weighted Average Price (VWAP) to identify trend direction and price levels.
Volume confirmation is used to validate breakouts, ensuring trades are based on significant market activity.
Trade Management:
Features a trailing stop mechanism to lock in profits as the trade moves in favor, with multiple take profit levels to secure gains incrementally.
The strategy is designed to handle both long and short positions, adapting to market conditions.
Alert Settings:
Provides alerts for key events such as session start, breakout, retest, and entry signals, helping traders stay informed and act promptly.
Visual cues on the chart highlight entry and exit points, making it easier for beginners to follow the strategy.
This strategy is particularly suited for the current volatile market environment, where simplicity and clear guidelines can help beginner traders navigate the complexities of trading. It emphasizes risk management and uses straightforward indicators to make informed trading decisions.
I put together this Trading View scalping strategy for futures markets with some help from Claude AI. Shoutout to everyone who gave me advice along the way—I really appreciate it! I’m sure there’s room for improvement, so feel free to share your thoughts… just go easy on me. :)
BFG.dzDescription:
This script is a trading strategy built on multiple technical indicators:
1. Exponential Moving Averages (EMA): It uses two EMAs, a fast EMA (9-period) and a slow EMA (21-period), to identify trends and generate buy or sell signals based on their crossovers.
2. Relative Strength Index (RSI): The RSI is used to assess whether the market is overbought (RSI > 70) or oversold (RSI < 30), providing additional confirmation for entry and exit signals.
3. MACD (Moving Average Convergence Divergence): The MACD line crossing over the signal line indicates a potential buy, while crossing under signals a potential sell.
4. Volume: A high volume condition is added, where a volume higher than 150% of the average volume over the last 20 bars is considered a confirmation of the signal.
TestMA Candle ColorTestMA Candle Color. To find MA breakouts.Once a green candle above MA - buy signal. Sell signal when the day green candle breaks down.
Hammer and Trendline Strategy AlertsPurpose: Capture high-probability reversals or breakouts by combining multi-timeframe trendlines, candlestick patterns, risk control, and SMA confirmation.
TradingView Pine Script indicator for the Hammer and Trendline Strategy:
Auto-detection of hammers and inverted hammers
Volume spike filtering
9-SMA and 50-SMA trend confirmation
Visual chart background highlights
Alert conditions for long and short setups
Ichimoku Cloud Breakout AlertsIchimoku Cloud Breakouts, Bullish and Bearish. Set alerts and use in confluence with Ichimoku
Trading Value (in Million) by AsharifanA clean and practical tool for swing traders to evaluate stock liquidity using Price × Volume (P×V), displayed in millions of currency units.
✅ What It Shows:
Today’s P×V as a green bar
20-day and 50-day average P×V as trendlines
A red dashed line at 20M for a minimum liquidity threshold
🔍 Built for:
Filtering out illiquid stocks
Spotting volume-dry, high-quality setups (especially at the end of reaccumulation bases)
Weekend watchlist building with stable volume insights
⏱ Works on daily or weekly charts
🌎 Applicable to any stock market (not region-specific)
Simple. Smart. Focused on what really matters for real-world trading.
Live Break of Candle DetectorBreak of Candle Indicator can alert you when a live break of candle occurs. Can tailor it to any timeframe.
Bullish/Bearish Reversal Bars Indicator [ik]To address the issue where the labels (BULL and BEAR) were not appearing, the following corrections and improvements have been made to the Pine Script code:
Corrected the Money Flow Index (MFI) Calculation: The original MFI calculation was incorrect. It has been replaced with the standard MFI formula using the typical price and Wilder's moving average (RMA).
Fixed AO Conditions: The conditions involving the Awesome Oscillator (AO) were reversed. Bullish reversal now requires AO to be rising (diff > 0), and bearish reversal requires AO to be falling (diff < 0).
Adjusted Label Management: Ensured labels are only removed when invalidation conditions are met, preventing premature deletion.
Gap Days Identifier📌 Gap Days Identifier – Pine Script
This script identifies Gap Up and Gap Down days based on user-defined percentage thresholds. It is designed for daily charts and helps traders spot significant opening gaps relative to the previous day’s close.
🔍 Key Features:
Customizable Thresholds: Input your desired % gap for both Gap Up and Gap Down detection.
Visual Markers: Displays label arrows with actual % gap on the chart (green for Gap Up, red for Gap Down).
Live Statistics Table: Shows total count of Gap Up and Gap Down days based on your filters.
Clean Overlay: Designed to be non-intrusive and easy to interpret for any instrument.
✅ Use Case:
Perfect for traders who track gap-based breakout strategies, news/event impact, or want to filter days with strong overnight sentiment shifts.
EMA Crossover (New Trailing Stop)This strategy utilizes a combination of Exponential Moving Averages (EMA) to generate entry and exit signals for both long and short positions. The core of the strategy is based on the 13-period EMA (short EMA) crossing the 33-period EMA (long EMA) for entering long trades, while a 13-period EMA crossing the 25-period EMA (mid EMA) generates short trade signals. The strategy aims to capitalize on trend reversals and momentum shifts in the market.
A key enhancement in this strategy is the inclusion of slippage, set at 5 ticks, to simulate more realistic trading conditions. Slippage accounts for the difference between the expected price of a trade and the actual price, providing a more accurate representation of real-world trading scenarios.
Stack Overflow
To address the issue of overlapping exit orders, the strategy incorporates a flag (isExiting) to track whether an exit has been processed. This ensures that only one exit order is generated per bar, preventing multiple exits from overlapping and resulting in clearer trade execution.
The strategy is designed to execute trades swiftly, emphasizing real-time entry when conditions align. For long entries, the strategy initiates a buy when the 13 EMA is greater than the 33 EMA, indicating a bullish trend. For short entries, the 13 EMA crossing below the 33 EMA signals a bearish trend, prompting a short position. Importantly, the code includes built-in exit conditions for both long and short positions. Long positions are exited when the 13 EMA falls below the 33 EMA, while short positions are closed when the 13 EMA crosses above the 25 EMA.
A notable feature of the strategy is the use of trailing stops for both long and short positions. This dynamic exit method adjusts the stop level as the market moves favorably, locking in profits while reducing the risk of losses. The trailing stop for long positions is based on the high price of the current bar, while the trailing stop for short positions is set using the low price, providing flexibility in managing risk. This mechanism helps capture profits from favorable market movements while ensuring positions are exited if the market moves against them.
In summary, this strategy combines EMA crossovers with realistic trading conditions, including slippage and non-overlapping exits, to effectively identify and act upon market trends. This strategy works best on the 4H/Daily timeframe and is optimized for major cryptocurrency pairs. The 4H/Daily chart allows for the EMAs to provide more reliable signals, as the strategy is designed to capture broader trends rather than short-term market fluctuations. Using it on major crypto pairs increases its effectiveness as these assets tend to have strong and sustained trends, providing better opportunities for the strategy to perform well.
MMXM ICT [TradingFinder] Market Maker Model PO3 CHoCH/CSID + FVGMMXM ICT Market Maker Model PO3 CHoCH/CSID + FVG
This comprehensive indicator is designed for traders leveraging ICT (Inner Circle Trader) concepts, particularly the Market Maker Model, to identify high-probability trade setups based on institutional price delivery behavior. It combines multiple structural elements, fair value inefficiencies, and entry signals to assist with PO3 (Power of 3), CHoCH, and Market Structure analysis.
🔹 Key Features:
CHoCH / BOS Detection:
Automatically identifies Change of Character (CHoCH) and Break of Structure (BOS) using swing highs and lows. Useful for recognizing early trend reversals or continuations.
Fair Value Gaps (FVG):
Highlights imbalances between buyers and sellers by detecting unfilled price gaps, signaling potential areas of price drawdown or support/resistance.
Market Structure (HH/LL):
Plots Higher Highs and Lower Lows to visually assist with trend analysis and structural shifts.
Buy & Sell Signals:
Entry signals are generated when CHoCH aligns with the prevailing trend direction, helping to confirm high-probability trade entries.
⚙️ Customizable Inputs:
FVG Lookback and Size Thresholds
CHoCH Swing Sensitivity
Market Structure Swing Detection
Toggle Display Options for All Visual Elements
🎯 Use Case:
Ideal for day traders and swing traders seeking to trade with the "smart money." When FVG zones align with CHoCH and confirmed trend direction, this tool helps uncover potential sniper entries and exits.
BUY AND SELL SIGNALSThis script gives Buy and Sell signals that are 98% accurate. Load the script and see for yourself.
3%TRADERS POWER TRENDLINEThe 3%TRADERS POWER TRENDLINE indicator is designed to help traders identify significant trendlines based on pivot points in price data. This indicator draws trendlines by connecting pivot highs and pivot lows, which can help traders visualize trends and potential reversal points in the market.
### Key Features:
- **Lookback Length Pivots:** Customize the lookback period for identifying pivot points.
- **Wicks or Real Bodies:** Choose whether to draw trendlines from wicks or real bodies of the candles.
- **Display Options:** Option to display only falling 'high' and rising 'low' trendlines.
- **Monochrome Lines:** Option to draw trendlines in monochrome or direction-colored lines.
- **Limit Line Extensions:** Set limits for the extensions of the trendlines.
- **Alerts:** Option to enable alerts for trendline breaks.
- **Limit Number of Trendlines:** Limit the number of trendlines displayed on the chart.
- **Log Chart:** Special settings for log scale charts.
## How to Use
1. **Add the Indicator:**
- Open your TradingView chart.
- Click on the "Indicators" button at the top.
- Search for "3%TRADERS TRENDLINE" and add it to your chart.
2. **Configure Input Settings:**
- **Lookback Length Pivots:** Adjust the lookback period to control how far back the indicator looks for pivot points.
- **Wicks or Real Bodies:** Check this option to draw trendlines from the wicks of candles, or uncheck to draw from the real bodies.
- **Display Options:** Choose whether to display only falling 'high' and rising 'low' trendlines.
- **Monochrome Lines:** Check this option to draw all trendlines in a single color, or uncheck to use different colors for rising and falling trendlines.
- **Limit Line Extensions:** Set a limit for how far the trendlines can extend. A value of 0 means infinite extension.
- **Alerts:** Enable this option to receive alerts when trendlines are broken.
- **Limit Number of Trendlines:** Check this option to limit the number of trendlines shown on the chart.
- **Number of Trendlines:** Set the maximum number of trendlines to display if the above option is checked.
- **Log Chart:** Check this option if you are using a logarithmic scale chart.
3. **Interpret the Trendlines:**
- The indicator will draw trendlines connecting pivot highs and pivot lows based on your configuration.
- Rising trendlines are typically drawn in green (or a single color if monochrome is enabled).
- Falling trendlines are typically drawn in red (or a single color if monochrome is enabled).
4. **Monitor for Alerts:**
- If alerts are enabled, the indicator will notify you of trendline breaks, which can signal potential trend reversals or breakout opportunities.
## Example Usage:
- Use the indicator to identify key support and resistance levels based on trendlines.
- Combine with other technical analysis tools to confirm trend reversals or continuation patterns.
- Adjust the lookback length and other settings to fit your trading strategy and the specific asset you are analyzing.
The 3%TRADERS TRENDLINE indicator is a powerful tool for visualizing trends and making informed trading decisions based on key price levels.
ICT & SMC Multi-Timeframe by [KhedrFX]Transform your trading experience with the ICT & SMC Multi-Timeframe by indicator. This innovative tool is designed for traders who want to harness the power of multi-timeframe analysis, enabling them to make informed trading decisions based on key market insights. By integrating concepts from the Inner Circle Trader (ICT) and Smart Money Concepts (SMC), this indicator provides a comprehensive view of market dynamics, helping you identify potential trading opportunities with precision.
Key Features
- Multi-Timeframe Analysis: Effortlessly switch between various timeframes (5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hours, daily, and weekly) to capture the full spectrum of market movements.
- High and Low Levels: Automatically calculates and displays the highest and lowest price levels over the last 20 bars, highlighting critical support and resistance zones.
- Market Structure Visualization: Identifies the last swing high and swing low, allowing you to recognize current market trends and potential reversal points.
- Order Block Detection: Detects significant order blocks, pinpointing areas of strong buying or selling pressure that can indicate potential market reversals.
- Custom Alerts: Set alerts for when the price crosses above or below identified order block levels, enabling you to act swiftly on trading opportunities.
How to Use the Indicator
1. Add the Indicator to Your Chart
- Open TradingView.
- Click on the "Indicators" button at the top of the screen.
- Search for "ICT & SMC Multi-Timeframe by " in the search bar.
- Click on the indicator to add it to your chart.
2. Select Your Timeframe
- Use the dropdown menu to choose your preferred timeframe (5, 15, 30, 60, 240, D, W) for analysis.
3. Interpret the Signals
- High Level (Green Line): Represents the highest price level over the last 20 bars, acting as a potential resistance level.
- Low Level (Red Line): Represents the lowest price level over the last 20 bars, acting as a potential support level.
- Last Swing High (Blue Cross): Indicates the most recent significant high, useful for identifying potential reversal points.
- Last Swing Low (Orange Cross): Indicates the most recent significant low, providing insight into market structure.
- Order Block High (Purple Line): Marks the upper boundary of a detected order block, suggesting potential selling pressure.
- Order Block Low (Yellow Line): Marks the lower boundary of a detected order block, indicating potential buying pressure.
4. Set Alerts
- Utilize the alert conditions to receive notifications when the price crosses above or below the order block levels, allowing you to stay informed about potential trading opportunities.
5. Implement Risk Management
- Always use proper risk management techniques. Consider setting stop-loss orders based on the identified swing highs and lows or the order block levels to protect your capital.
Conclusion
The ICT & SMC Multi-Timeframe by indicator is an essential tool for traders looking to enhance their market analysis and decision-making process. By leveraging multi-timeframe insights, market structure visualization, and order block detection, you can navigate the complexities of the market with confidence. Start using this powerful indicator today and take your trading to the next level.
⚠️ Trade Responsibly
This tool helps you analyze the market, but it’s not a guarantee of profits. Always do your own research, manage risk, and trade with caution.
Candle Size Alerts (Manual size)This TradingView Pine Script (v6) is an indicator that triggers alerts based on the size of the previous candle. Here's a breakdown of how it works:
1. Indicator Definition
//version=6
indicator('Candle Size Alerts (Manual size)', overlay = true)
The script is written in Pine Script v6.
indicator('Candle Size Alerts (Manual size)', overlay = true):
Defines the indicator name as "Candle Size Alerts (Manual size)".
overlay = true means it runs directly on the price chart (not as a separate panel).
2. Calculate the Previous Candle's Body Size
candleSize = math.abs(close - open )
close and open refer to the previous candle’s closing and opening prices.
math.abs(...) ensures that the size is always a positive value, regardless of whether it's a green or red candle.
3. Define a User-Adjustable Candle Size Threshold
candleThreshold = input(500, title = 'Fixed Candle Size Threshold')
input(500, title = 'Fixed Candle Size Threshold'):
Allows users to set a custom threshold (default is 500 points).
If the previous candle's body size exceeds or equals this threshold, an alert is triggered.
4. Check if the Candle Size Meets the Condition
sizeCondition = candleSize >= candleThreshold
This evaluates whether the previous candle's size is greater than or equal to the threshold.
If true, an alert will be generated.
5. Determine Candle Color
isRedCandle = close < open
isGreenCandle = close > open
isRedCandle: The candle is red if the closing price is lower than the opening price.
isGreenCandle: The candle is green if the closing price is higher than the opening price.
6. Generate Alerts Based on Candle Color
if sizeCondition
if isRedCandle
alert('SHORT SIGNAL: Previous candle is RED, body size = ' + str.tostring(candleSize) + ' points (Threshold: ' + str.tostring(candleThreshold) + ')', alert.freq_once_per_bar)
else if isGreenCandle
alert('LONG SIGNAL: Previous candle is GREEN, body size = ' + str.tostring(candleSize) + ' points (Threshold: ' + str.tostring(candleThreshold) + ')', alert.freq_once_per_bar)
If the candle size meets the threshold (sizeCondition == true):
If red, a SHORT SIGNAL alert is triggered.
If green, a LONG SIGNAL alert is triggered.
alert.freq_once_per_bar ensures that alerts are sent only once per candle (avoiding repeated notifications).
How It Works in TradingView:
The script does not plot anything on the chart.
It monitors the previous candle’s body size.
If the size exceeds the threshold, an alert is generated.
Alerts can be used to notify the trader when big candles appear.
How to set Alerts in Trading View
1. Select Indicator – Ensure the indicator is added and properly configured.
2. Set Time Frame – Make sure it's appropriate for your trading strategy.
3. Open Alerts Panel – Click the "Alerts" tab or use the shortcut (Alt + A on Windows).
4. Create a New Alert – Click "+" or "Create Alert."
5. Select Condition – Pick the relevant indicator condition (e.g., "Candle Size Alerts(Manual size)").
6. Choose Alert Function – Default is "Any Alert() Function Call".
7. Set Expiration & Name – Define how long the alert remains active.
8. Configure Notifications – Choose between pop-up, email, webhook, or app notifications.
9. Create Alert – Click "Create" to finalize.
How to set the size manually:
Add the "Candle Size Alerts (Manual size)" Indicator to your chart.
Open Indicator Settings – Click on the indicator and go to the "Inputs" tab.
Set Fixed Size Threshold – Adjust the "Fixed Size Candle Threshold" to your desired value.
Click OK – This applies the changes.
Reset Alerts – Delete and recreate alerts to reflect the new threshold.
Happy Trading !!!!
KOLA CHIRANJEEVI