AI Trend Momentum SniperThe AI Trend Momentum Sniper is a powerful technical analysis tool designed for day trading. This strategy combines multiple momentum and trend indicators to identify high-probability entry and exit points. The indicator utilizes a combination of Supertrend, MACD, RSI, ATR (Average True Range), and On-Balance Volume (OBV) to generate real-time signals for buy and sell opportunities.
Key Features:
Supertrend for detecting market direction (bullish or bearish).
MACD for momentum confirmation, highlighting changes in market momentum.
RSI to filter out overbought/oversold conditions and ensure high-quality trades.
ATR as a volatility filter to adjust for changing market conditions.
OBV (On-Balance Volume) to confirm volume strength and trend validity.
Dynamic Stop-Loss & Take-Profit based on ATR to manage risk and lock profits.
This indicator is tailored for intraday traders looking for quick market moves, especially in volatile and high liquidity assets like Bitcoin (BTC) and Ethereum (ETH). It helps traders capture short-term trends with efficient risk management tools.
How to Apply:
Set Your Chart: Apply the AI Trend Momentum Sniper to a 5-minute (M5) or 15-minute (M15) chart for optimal performance.
Buy Signal: When the indicator generates a green arrow below the bar, it indicates a buy signal based on positive trend and momentum alignment.
Sell Signal: A red arrow above the bar signals a sell condition when the trend and momentum shift bearish.
Stop-Loss and Take-Profit: The indicator automatically calculates dynamic stop-loss and take-profit levels based on the ATR value for each trade, ensuring proper risk management.
Alerts: Set up custom alerts for buy or sell signals, and get notified instantly when opportunities arise.
Best Markets for Use:
BTC/USDT, ETH/USDT – High liquidity and volatility.
Major altcoins with sufficient volume.
Avoid using it on low-liquidity assets where price action may become erratic.
Timeframes:
This indicator is best suited for lower timeframes (5-minute to 15-minute charts) to capture quick price movements in trending markets.
รูปแบบชาร์ต
Monday Double Highlight EnhancedThis indicator highlights Monday's price action in two ways:
Bar Highlighting: Colors the price bar green for a bullish Monday and red for a bearish Monday.
Background Highlighting: Colors the chart background with a transparent green or red, enhancing the visibility of Monday's trading activity.
It provides a quick way to visually identify and analyze Monday price movements on any chart.
Sentiment OscillatorIn the complex world of trading, understanding market sentiment can be like reading the emotional pulse of financial markets. Our Sentiment Oscillator is designed to be your personal market mood translator, helping you navigate through the noise of price movements and market fluctuations.
Imagine having a sophisticated tool that goes beyond traditional price charts, diving deep into the underlying dynamics of market behavior. This indicator doesn't just show you numbers – it tells you a story about market sentiment, combining multiple financial signals to give you a comprehensive view of potential market directions.
The Sentiment Oscillator acts like a sophisticated emotional barometer for stocks, cryptocurrencies, or any tradable asset. It analyzes price changes, market volatility, trading volume, and long-term trends to generate a unique sentiment score. This score ranges from highly bullish to deeply bearish, providing traders with an intuitive visual representation of market mood.
Green zones indicate positive market sentiment, suggesting potential buying opportunities. Red zones signal caution, hinting at possible downward trends. The oscillator's gray neutral zone helps you identify periods of market uncertainty, allowing for more calculated trading decisions.
What sets this indicator apart is its ability to blend multiple market factors into a single, easy-to-understand indicator. It's not just about current price – it's about understanding the deeper currents moving beneath the surface of market prices.
Traders can use this oscillator to:
- Identify potential trend reversals
- Understand market sentiment beyond price movement
- Spot periods of market strength or weakness
- Complement other technical analysis tools
Whether you're a day trader, swing trader, or long-term investor, the Sentiment Oscillator provides an additional layer of insight to support your trading strategy. Remember, no indicator is a crystal ball, but this tool can help you make more informed decisions in the dynamic world of trading.
Imbalance Boxes & Range Tracking (Only 2 Rectangles, Pivot=1)D3m4h last fvg detector which detects the last fair value gap in the current range, and will check to see if it gets disrespected or not.
SessionRangeLevels_v0.1SessionRangeLevels_v0.1
Overview:
SessionRangeLevels_v0.1 is a customizable Pine Script (v6) indicator designed to plot key price levels based on a user-defined trading session. It identifies the high and low of the session and calculates intermediate levels (75%, 50% "EQ", and 25%) within that range. These levels are projected forward as horizontal lines with accompanying labels, providing traders with dynamic support and resistance zones. The indicator supports extensive customization for session timing, time zones, line styles, colors, and more.
Key Features:
Session-Based Range Detection: Tracks the high and low prices during a specified session (e.g., 0600-0900) and updates them dynamically as the session progresses.
Customizable Levels: Displays High, 75%, EQ (50%), 25%, and Low levels, each with independent toggle options, styles (Solid, Dashed, Dotted), colors, and widths.
Session Anchor: Optional vertical line marking the session start, with customizable style, color, and width.
Projection Offset: Extends level lines forward by a user-defined number of bars (default: 24) for future price reference.
Labels: Toggleable labels for each level (e.g., "High," "75%," "EQ") with adjustable size (Tiny, Small, Normal, Large).
Time Zone Support: Aligns session timing to a selected time zone (e.g., America/New_York, UTC, Asia/Tokyo, etc.).
Alert Conditions: Triggers alerts when the price crosses any of the plotted levels (High, 75%, EQ, 25%, Low).
Inputs:
Session Time (HHMM-HHMM): Define the session range (e.g., "0600-0900" for 6:00 AM to 9:00 AM).
Time Zone: Choose from options like UTC, America/New_York, Europe/London, etc.
Anchor Settings: Toggle the session start line, adjust its style (default: Dotted), color (default: Black), and width (default: 1).
Level Settings:
High (Solid, Black, Width 2)
75% (Dotted, Blue, Width 1)
EQ/50% (Dotted, Orange, Width 1)
25% (Dotted, Blue, Width 1)
Low (Solid, Black, Width 2)
Each level includes options to show/hide, set style, color, width, and label visibility.
Projection Offset: Number of bars to extend lines (default: 24).
Label Size: Set label size (default: Small).
How It Works:
The indicator detects the start and end of the user-defined session based on the specified time and time zone.
During the session, it tracks the highest high and lowest low, updating the levels in real-time.
At the session start, it plots the High, Low, and intermediate levels (75%, 50%, 25%), projecting them forward.
Lines and labels dynamically adjust as new highs or lows occur within the session.
Alerts notify users when the price crosses any active level.
Usage:
Ideal for traders who focus on session-based strategies (e.g., London or New York open). Use it to identify key price zones, monitor breakouts, or set targets. Customize the appearance to suit your chart preferences and enable alerts for real-time trading signals.
Notes:
Ensure your chart’s timeframe aligns with your session duration for optimal results (e.g., 1-minute or 5-minute charts for short sessions).
The indicator overlays directly on the price chart for easy integration with other tools.
US30 1-min Strategy with TP/SL, Grades, Alerts🟢 Grade A (Strongest)
• Candle is very large (body is 2x the 20-bar average)
• Volume rising
• RSI strongly confirms direction (RSI > 55 or < 45)
🟠 Grade B (Moderate)
• Candle is large
• Volume rising
• RSI confirms trend (but not as strong as A)
🟡 Grade C (Weak)
• Candle is large
• Volume rising or RSI confirms (not both)
You can select which grades to trade (A, B, C) from the strategy settings.
💰 Risk Management
• Take Profit: Default = 0.5%
• Stop Loss: Default = 0.3%
TP and SL are applied as percentage of entry price. You can adjust both in the strategy settings.
Trade Alerts & Visuals
• Labels appear on the chart when a trade is triggered (green for longs, red for shorts, with grade label)
• Alerts are sent using the alert() function, which you can link to popups, emails, or mobile notifications via TradingView
🧭 Strategy Use Case
This strategy is ideal for:
• Scalping US30 during high-volume sessions
• Traders who prefer rules-based setups with clear grading and confirmation
• Running backtests in TradingView with risk controls and performance analysis
VCP Pattern with Pocket Pivots by Mark MinerviniBelow is a Pine Script designed to identify and plot Mark Minervini's Volatility Contraction Pattern (VCP) along with Pocket Pivots on TradingView. The VCP is characterized by a series of price contractions (tightening price ranges) with decreasing volume, often followed by a breakout. Pocket Pivots, a concept from Chris Kacher and Gil Morales, identify early buying opportunities within a consolidation or uptrend based on volume surges. This script combines both concepts to help traders spot potential setups.
TheStrat: Failed 2'sThis indicator identifies and highlights Failed 2-Up (2U) and Failed 2-Down (2D) patterns in The Strat trading framework. These patterns signal a potential reversal when a 2-Up (higher high) or 2-Down (lower low) candle fails to follow through and reverses, offering high-probability trade setups.
hammer1822Indicator that helps identify hammer patterns, both bullish and bearish, taking into account previous highs and lows.
DOPT---
## 🔍 **DOPT - Daily Open & Price Time Markers**
This script is designed to support directional bias development and price behavior analysis around key time-based reference points on the **1H and 4H timeframes**.
### ✨ **What It Does**
- **1800 Open Marker** (6 PM NY time): Plots the **daily open** from 1800 in **black dotted lines**.
- **0000 Open Marker** (Midnight NY time): Plots the **midnight open** in **blue dotted lines**.
- **Day Letters**: Each 1800 open is labeled with the corresponding **day of the week** (e.g., M, T, W...), helping visually segment your chart.
- **Hour Labels**: Select specific candles (e.g., 0000 = '0', 0800 = '8') to be labeled above the bar. These are fully customizable.
- **Candle Midpoints**: Option to mark the **50% level** of a specific candle (good for CE or CRT references).
- **CRT High/Low Tracking**: Ability to plot **extended high and low lines** from a selected candle back (e.g., for CRT modeling).
- **4H Timeframe Candle Numbering**: Helpful when analyzing sequences on the 4-hour timeframe. Candles are numbered `1`, `5`, and `9` for reference.
---
### 🧠 **How I Use It**
- I mostly use this on the **1-hour timeframe** to decide **directional bias** for the day:
- If price **closes above 1800 open**, I consider that a **green daily close** — potential bullish sentiment.
- If price **closes below**, I treat it as a **red daily close** — potential bearish behavior.
- Price often uses these opens as **support/resistance**, so I watch for reactions there.
- On the **4H**, the candle numbers help track structure and flow.
- Combine with CRT tools to mark **key candle highs/lows** and their **equilibrium (50%)** — great for refining entries or understanding how price is respecting a particular candle.
---
### ⚠️ **Note on Daylight Savings**
This is a **daylight saving time-dependent script**. When DST kicks in or out, you’ll need to **adjust the time inputs** accordingly to keep the opens accurate (e.g., 1800 might shift to 1700 depending on the season).
---
### 🔁 **Backtesting & Reference**
- The **1800 and 0000 opens** are plotted for **as far back** as your chart loads, making it great for backtesting historical reactions.
- The CRT marking tools only go back **50 candles max**, so use that for recent structure only.
---
ALTIN - XAUTRYG % Fiyat Farkı AlarmıThis indicator calculates the percentage difference between GOLD and XAUTRYG prices, displays it visually as a label and generates an alarm when it goes below the threshold value you set.
🔍 Features:
✅ Calculates the **percentage price difference** between GOLD and XAUTRYG
✅ User-defined 3 level colour threshold: e.g. 1-2-3% → green-yellow-orange-red
✅ Increase/decrease indication with **🔼 / 🔽 direction arrow** according to the changing difference
✅ Comment based on its position in the last 20 bars:
- (**HIGHEST** of the last 20 bars)
- (**LOWEST** of the last 20 bars)
✅ Only visible on **GOLD** or **XAUTRYG** chart
✅ Alarm condition: Triggered when the difference falls below the set percentage threshold value
💡 What does it do?
This tool is ideal for investors who want to analyse the price difference between gram gold mint and spot gold, observe **arbitrage opportunities** and receive **alerts** at certain levels.
📈 Quickly recognise when the price gap widens or narrows.
🔔 Don't miss opportunities by setting an alarm if you wish!
💬 I welcome your improvement suggestions and feedback.
Enhanced Trading Strategy with RSI, MACD, TP/SL📌 Enhanced Trading Strategy with RSI, MACD, TP/SL
This Pine Script strategy identifies high-probability trading signals using multiple confluences, including Engulfing & Pin Bar candle patterns, trend filtering with EMA, momentum confirmation with RSI & MACD, and an ATR-based risk management system.
🔹 Key Features:
1. **EMA Trend Filter (50-period EMA)**
- Helps determine market direction.
- Buy signals are valid only above EMA 50.
- Sell signals are valid only below EMA 50.
2. **Candle Pattern Detection**
- **Bullish Engulfing** & **Bearish Engulfing** confirm strong reversals.
- **Bullish Pin Bar** & **Bearish Pin Bar** indicate rejection zones.
3. **Momentum Confirmation (RSI & MACD)**
- RSI prevents overbought/oversold trades.
- MACD ensures trend momentum aligns with the trade.
4. **Risk Management (ATR-based TP & SL)**
- Take Profit and Stop Loss levels dynamically adjust based on ATR.
- Helps optimize risk-to-reward ratios.
5. **Trade Execution & Alerts**
- The script generates buy/sell orders when all conditions align.
- Alerts notify traders when a signal is triggered.
📊 Best Timeframe & Win Rate for BTC
✅ **4H (Best for Swing Trading)**
✅ **1H (Balanced for Day Trading)**
✅ **15M (Scalping Possible but More Noise)**
**Estimated Win Rate:**
- Backtesting on BTC/USD (4H timeframe) suggests a **win rate of 60-75%**, depending on market conditions.
- The strategy performs **best in trending markets** and may require additional filtering during sideways movements.
🚀 **Optimize further?** Consider adding Bollinger Bands, Volume, or Trend Strength filters.
TREND and ZL FLOWHow It Helps Traders
Trend Identification with T3 Moving Average
The script calculates a T3 moving average using a smoother version of traditional moving averages, reducing lag and providing a clearer view of trend direction.
A histogram is plotted, where green bars indicate an uptrend and red bars signal a downtrend. This helps traders visually confirm the market trend and avoid false signals.
Zero Lag Moving Average (ZLMA) for Faster Reversals
The ZLMA is designed to react more quickly to price changes while minimizing lag. It helps traders spot trend reversals sooner than traditional moving averages.
The line color changes green for bullish momentum and red for bearish momentum, making it easier to spot shifts in direction.
Overall, this indicator is useful for trend-following traders who want to capture momentum shifts efficiently. It can be particularly helpful for day traders and swing traders looking for early trend confirmation and automated trade signals.
TREND and ZL - TFTTREND and ZL - TFT
How It Helps Traders
Trend Identification with T3 Moving Average
The script calculates a T3 moving average using an 8-period length and a volume factor of 0.7. The T3 MA is a smoother version of traditional moving averages, reducing lag and providing a clearer view of trend direction.
A histogram is plotted, where green bars indicate an uptrend and red bars signal a downtrend. This helps traders visually confirm the market trend and avoid false signals.
Zero Lag Moving Average (ZLMA) for Faster Reversals
The ZLMA is designed to react more quickly to price changes while minimizing lag. It helps traders spot trend reversals sooner than traditional moving averages.
The line color changes green for bullish momentum and red for bearish momentum, making it easier to spot shifts in direction.
Overall, this indicator is useful for trend-following traders who want to capture momentum shifts efficiently. It can be particularly helpful for day traders and swing traders looking for early trend confirmation and automated trade signals.
Master Global Liquidity Shifted 75 DaysThe Global Liquidity Index is a Pine Script (version 5) technical indicator designed to measure and visualize global financial liquidity by aggregating data from various central bank balance sheets and money supply metrics. The indicator is plotted as an overlay on the price chart using the left scale, with the entire line shifted left by 75 days.
Key features:
Data Sources: Incorporates balance sheet data from major central banks including the Federal Reserve (FED), European Central Bank (ECB), People's Bank of China (PBC), Bank of Japan (BOJ), and other central banks, along with optional M2 money supply data from various countries.
Components: Includes options to toggle specific liquidity factors such as FED balance sheet, Treasury General Account (TGA), Reverse Repurchase Agreements (RRP), and regional M2 money supplies, all converted to USD.
75-Day Shift: The indicator's output is shifted left by 75 days on the chart, aligning historical liquidity data with earlier price action, with this shift period adjustable via the "Shift Days Left" input.
Calculations:
Computes a total liquidity value by summing enabled central bank and M2 data (adjusted for RRP and TGA as drains)
Scales the total by dividing by 1 trillion (10^12)
Applies a Simple Moving Average (SMA) and Rate of Change (ROC) with user-defined periods
Final output is either the SMA of ROC or SMA alone, depending on ROC length
Visualization: Plots the shifted result as a yellow line with a linewidth of 2.
3min Breakout StrategyBreakout Strategy - Publication Notes
Overview
A Pine Script v5 strategy using multi-timeframe analysis to trade breakouts. Identifies peaks and dips on the 3-minute chart and enters trades on the 1-minute chart with momentum confirmation.
Key Features
Multi-Timeframe: Combines 3-minute trend analysis with 1-minute entries.
EMA-Based: Uses a 60-period EMA (3-min) for trend and key levels.
Peak/Dip Logic: Detects swing highs (peaks) and lows (dips).
Momentum: Confirms entries with RSI and EMA signals.
Stop Loss: Exits at the dip level.
How It Works
3-Minute: Tracks peaks above the EMA and dips below it (3+ bearish candles).
1-Minute: Enters long on a breakout above the peak with rising EMA and RSI; exits below the dip.
Range Box ExtendedThe "Range Box Extended" indicator by Mikel Vaquero helps traders visualize specific session ranges directly on their charts. It draws a clearly defined box highlighting the session's highest and lowest points within a selected timeframe (e.g., 17:00 to 02:59). Additionally, the indicator plots extended lines above and below the initial box, effectively creating potential support and resistance levels based on the box's height.
Key Features:
Customizable Session: Traders can define any trading session.
Lines and Background: Users can choose to display lines, backgrounds, or middle lines, customizing visual clarity.
Extended Lines: Automatically extends horizontal lines to project significant support and resistance levels.
Style Customization: Color, width, and transparency can be adjusted to enhance visual effectiveness.
This tool is particularly useful for breakout strategies or to identify trading ranges clearly.
AI Buy/Sell Indicator1st try buy sell 1 indicator, i.e. ai based yet to try and update as required later on., although i don't know its superb success or failiure one. let see and check this out
SMA 22 with Color ChangeThis TradingView indicator plots a 22-period Simple Moving Average (SMA) with dynamic color changes based on its slope direction:
Green when the SMA is rising.
Red when the SMA is falling.
💡 Key Features:
Customizable SMA length (default: 22).
Visual color feedback to easily identify uptrends and downtrends.
Ideal for spotting momentum shifts and trend direction at a glance.
👉 This script enhances the default SMA indicator by adding color-coded slope visualization, making it easier to interpret price trends.
Buy and Sell Signals (London & New York Opens)this is the indicator only helpful in 5 min time frame when previous day candle is in sell direction only take sell signal as entry uncheck buy option in settings and when previous day candle is in buy direction only take buy signal then uncheck sell option risk is swing high reward is 2 times to risk
Smart Money Pivot Strategy [Jason Kasei]This strategy is designed to identify key pivot points (Pivot High and Pivot Low) in the market and leverage the "Smart Money" concept to capture price breakout opportunities. It supports both long and short trades, offering customizable stop-loss (SL) and take-profit (TP) settings, while visually plotting pivot points and breakout signals on the chart.
Core Features
Pivot Point Detection:
Utilizes ta.pivothigh and ta.pivotlow functions to detect the highest (Pivot High) and lowest (Pivot Low) points within a specified period (default: 20 bars).
Allows users to choose between using the high/low prices (Wicks) or closing prices for calculations, with Wicks as the default.
Generates buy (BUY) or sell (SELL) signals when the price breaks through these pivot points.
Trading Signals:
Long Signal: Triggered when the price breaks above a previous Pivot High, indicating a potential uptrend.
Short Signal: Triggered when the price breaks below a previous Pivot Low, indicating a potential downtrend.
Risk Management:
Long Settings:
Stop Loss (SL): Percentage-based (default 1%), calculated as a downward move from the entry price.
Take Profit (TP): Percentage-based (default 1.5%), calculated as an upward move from the entry price.
Short Settings:
Stop Loss (SL): Percentage-based (default 1%), calculated as an upward move from the entry price.
Take Profit (TP): Percentage-based (default 1.5%), calculated as a downward move from the entry price.
Users can customize SL and TP percentages via input parameters.
Capital Management:
Uses 100% of account equity by default for trades (default_qty_value=100).
Initial capital is set to 10,000 (initial_capital=10000).
Processes orders at bar close (process_orders_on_close=true).
Use Cases
Trend Trading: Ideal for capturing trend continuations following pivot point breakouts.
Flexibility: Allows enabling/disabling long or short strategies independently to suit different market conditions.
Visual Aid: Lines and labels on the chart help traders intuitively understand signal generation.
Input Parameters
Period (Length): Number of bars for pivot detection, default is 20.
Enable Long Strategy: Toggle for long trades, enabled by default.
Enable Short Strategy: Toggle for short trades, enabled by default.
Stop Loss and Take Profit Percentages: Independently adjustable for long and short trades, defaulting to 1% (SL) and 1.5% (TP).
Color Settings: Customizable colors for long and short signals.
How It Works
Detects Pivot High (PH) and Pivot Low (PL) over the specified period and records their price and time.
Triggers a long entry when the price breaks above a Pivot High and a short entry when it falls below a Pivot Low.
Sets exit conditions automatically based on predefined SL and TP percentages after entry.
Plots breakout points and levels on the chart for analysis.
Considerations
The strategy relies on accurate pivot point detection; adjust the period parameter based on market volatility.
In highly volatile markets, consider widening the stop loss to avoid frequent triggering.
Combine with other indicators or analysis methods to validate signals and avoid blind trading.
This strategy combines technical analysis and risk management in a straightforward, visual manner, making it suitable for users seeking automated trading based on pivot point breakouts.
Advanced Multi-Indicator Strategy"Advanced Multi-Indicator Strategy" is a sophisticated trading strategy designed to analyze multiple market indicators and provide buy and sell signals based on a combination of technical factors. The strategy uses various indicators, including moving averages, momentum oscillators, trend-following indicators, and price patterns to create a robust entry and exit framework for trading.
Key Components:
Price Action and Trend Indicators:
The strategy considers the price action by ensuring that the closing price is greater than the opening price (bullish indication) and the closing price is above 1.
It also incorporates a set of Exponential Moving Averages (EMAs) of various periods (EMA3, EMA5, EMA8, EMA13, EMA21, EMA55, EMA100) to confirm the trend direction. A buy signal is generated only when all EMAs are aligned in a bullish sequence, i.e., the shorter-period EMAs are above the longer-period EMAs.
Momentum Indicators:
MACD: The strategy uses the MACD to confirm momentum. A buy signal is generated when the MACD value is positive and the MACD signal line is below the MACD line, indicating bullish momentum.
RSI (Relative Strength Index): The strategy checks that the RSI is below 70, ensuring that the market is not overbought, and room remains for upward movement.
Rate of Change (ROC): This is used to identify the speed of price movement. A ROC value less than 100 is required to avoid excessive price volatility.
Commodity Channel Index (CCI): A positive CCI indicates the market is in an uptrend.
Money Flow Index (MFI): The strategy ensures that the MFI is below 80, indicating that there is no excessive buying pressure.
Volume and Market Strength:
The On-Balance Volume (OBV) indicator is used to ensure that the volume is confirming the price movement. A positive OBV is required for a buy signal.
Additionally, the strategy checks that the volume multiplied by the closing price is greater than 10 million, ensuring there is substantial market activity backing the move.
Pattern Recognition:
Stochastic RSI: The Stochastic RSI values (%K and %D) are monitored to ensure the market is not in an overbought or oversold condition.
Parabolic SAR: The strategy ensures that the SAR (Stop-and-Reverse) is below the current price, confirming an uptrend.
Hanging Man Candlestick: The strategy checks for a Hanging Man candlestick pattern as a potential sell signal if detected during a price move.
ADX (Average Directional Index):
The ADX and its components (+DI and -DI) are used to confirm the strength of the trend. The strategy ensures that +DI is above the ADX and -DI, indicating a strong upward trend.
Buy Condition:
A buy signal is generated when:
The closing price is greater than the opening price.
The EMAs are in a bullish sequence (shorter EMAs above longer EMAs).
The MACD is above 0, and the MACD line crosses above the signal line.
The RSI is below 70 (avoiding overbought conditions).
Aroon values suggest a strong uptrend.
The Bollinger Bands upper band is above the close price.
On-Balance Volume (OBV) confirms buying volume.
The ADX confirms the trend strength.
Additional filters such as ROC, CCI, MFI, and Stochastic RSI ensure market conditions are favorable for a buy.
Sell Condition:
The strategy considers a sell signal when:
The EMA5 crosses below EMA8 (a trend reversal).
There have been three consecutive bearish candles (close < open).
A Hanging Man candlestick pattern is detected.
ADX or +DI / -DI values indicate weakening trend strength.
Indicator Plots:
EMAs (3, 5, 8, 13, 21, 55, 100) are plotted on the main chart to visualize trend direction.
Bollinger Bands upper band is plotted to confirm overbought conditions.
ADX, +DI, and -DI are plotted in a separate subchart to monitor trend strength.
Stochastic RSI values (%K and %D) are plotted in a separate subchart to analyze momentum.
This strategy combines multiple indicators to generate reliable buy and sell signals, making it suitable for traders who prefer a multi-faceted approach to market analysis, ensuring better decision-making and potentially higher profitability in trending markets.
Reversal & Breakout Strategy with ORB### Reversal & Breakout Strategy with ORB
This strategy combines three distinct trading approaches—reversals, trend breakouts, and opening range breakouts (ORB)—into a single, cohesive system. The goal is to capture high-probability setups across different market conditions, leveraging a mashup of technical indicators for confirmation and risk management. Below, I’ll explain why this combination works, how the components interact, and how to use it effectively.
#### Why the Mashup?
- **Reversals**: Identifies overextended moves using RSI (overbought/oversold) and SMA50 crosses, filtered by VWAP and SMA200 trend direction. This targets mean-reversion opportunities in trending markets.
- **Breakouts**: Uses EMA9/EMA20 crossovers with VWAP and SMA200 confirmation to catch momentum-driven trend continuations.
- **Opening Range Breakout (ORB)**: Detects early momentum by breaking the high/low of a user-defined opening range (default: 15 bars) with volume confirmation. This adds a time-based edge, ideal for intraday trading.
The synergy comes from blending these methods: reversals catch pullbacks, breakouts ride trends, and ORB exploits early volatility—all filtered by trend (SMA200) and anchored by VWAP for context.
#### How It Works
1. **Indicators**:
- **EMA9/EMA20**: Fast-moving averages for breakout signals.
- **SMA50**: Medium-term trend filter for reversals.
- **SMA200**: Long-term trend direction to align trades.
- **RSI (14)**: Measures overbought (>70) or oversold (<30) conditions.
- **VWAP**: Acts as a dynamic support/resistance level.
- **ATR (14)**: Sets stop-loss distance (default: 1.5x ATR).
- **Volume**: Confirms ORB breakouts (1.5x average volume of opening range).
2. **Entry Conditions**:
- **Long**: Triggers on reversal (SMA50 cross + RSI < 30 + below VWAP + uptrend), breakout (EMA9 > EMA20 + above VWAP + uptrend), or ORB (break above opening range high + volume).
- **Short**: Triggers on reversal (SMA50 cross + RSI > 70 + above VWAP + downtrend), breakout (EMA9 < EMA20 + below VWAP + downtrend), or ORB (break below opening range low + volume).
3. **Risk Management**:
- Risks 5% of equity per trade (based on the initial capital set in the strategy tester).
- Stop-loss: Based on lowest low/highest high over 7 bars ± 1.5x ATR.
- Targets: Two exits at 1:1 and 1:2 risk:reward (50% of position at each).
- Break-even: Stop moves to entry price after the first target is hit.
4. **Backtesting Settings**:
- Commission: Hardcoded at 0.1% per trade (realistic for most brokers).
- Slippage: Hardcoded at 2 ticks (realistic for most markets).
- Tested on datasets yielding 100+ trades (e.g., 2-min or 5-min charts over months).
#### How to Use It
- **Timeframe**: Works best on intraday (2-min, 5-min) or daily charts. Adjust `Opening Range Bars` (e.g., 15 bars = 30 min on 2-min chart) for your timeframe.
- **Settings**:
- Set your initial equity in the TradingView strategy tester’s "Properties" tab under "Initial Capital" (e.g., $10,000). The script automatically risks 5% of this equity per trade.
- Adjust `Stop Loss ATR Multiplier` or `Risk:Reward Targets` based on your risk tolerance.
- Note that commission (0.1%) and slippage (2 ticks) are fixed in the script for backtesting consistency.
- **Execution**: Enter on signal, monitor plotted stop (red) and targets (green/blue). The strategy supports pyramiding (up to 2 positions) for scaling into trends.
#### Backtesting Notes
Results are realistic with commission (0.1%) and slippage (2 ticks) included. For a sufficient sample, test on volatile instruments (e.g., stocks, forex) over 3-6 months on lower timeframes. The default 1.5x ATR stop may seem wide, but it’s justified to avoid premature exits in volatile markets—feel free to tweak it with justification. The script assumes an initial capital of $10,000 in the strategy tester for the 5% risk calculation (e.g., $500 risk per trade); adjust this in the "Properties" tab as needed.
This mashup isn’t just a random mix; it’s a deliberate fusion of complementary strategies, offering traders flexibility across market phases. Questions? Let me know!
PriorHourRangeLevels_v0.1PriorHourRangeLevels_v0.1
Created by dc_77 | © 2025 | Mozilla Public License 2.0
Overview
"PriorHourRangeLevels_v0.1" is a versatile Pine Script™ indicator designed to help traders visualize and analyze price levels based on the prior hour’s range. It overlays key levels—High, Low, 75%, 50% (EQ), and 25%—from the previous hour onto the current price chart, alongside the current hour’s opening price. With customizable display options and time zone support, it’s ideal for intraday traders looking to identify support, resistance, and breakout zones.
How It Works
Hourly Reset: The indicator detects the start of each hour based on your chosen time zone (e.g., "America/New_York" by default).
Prior Hour Range: It calculates the High and Low of the previous hour, then derives three additional levels:
75%: 75% of the range above the Low.
EQ (50%): The midpoint of the range.
25%: 25% of the range above the Low.
Current Hour Open: Displays the opening price of the current hour.
Projection: Lines extend forward (default: 24 bars) to project these levels into the future, aiding in real-time analysis.
Alerts: Triggers alerts when the price crosses any of the prior hour’s levels (High, 75%, EQ, 25%, Low).
Key Features
Time Zone Flexibility: Choose from options like UTC, New York, Tokyo, or London to align with your trading session.
Visual Customization:
Toggle visibility for each level (High, Low, 75%, EQ, 25%, Open, and Anchor).
Adjust line styles (Solid, Dashed, Dotted), colors, and widths.
Show or hide labels with adjustable sizes (Tiny, Small, Normal, Large).
Anchor Line: A vertical line marks the start of the prior hour, with optional labeling.
Alert Conditions: Set up notifications for price crossings to catch key moments without watching the chart.
Usage Tips
Use the High and Low as potential breakout levels, while 75%, EQ, and 25% act as intermediate support/resistance zones.
Trend Confirmation: Watch how price interacts with the EQ (50%) level to gauge momentum.
Session Planning: Adjust the time zone to match your market (e.g., "Europe/London" for FTSE trading).
Projection Offset: Extend or shorten the lines (via "Projection Offset") based on your chart timeframe.
Inputs
Time Zone: Select your preferred market time zone.
Anchor Settings: Show/hide the prior hour start line, style, color, width, and label.
Level Settings: Customize visibility, style, color, width, and labels for Open, High, 75%, EQ, 25%, and Low.
Display: Set projection length and label size.