תבניות גרפים
Profile BreakoutsThe MCR Breakout Trading Model is a structured trading framework that combines Wick Theory and Micro Cycle Range (MCR) to provide traders with a precise approach to market timing and price action confirmation.
Core Concepts:
Wick Theory:
Wicks act as liquidity markers, indicating inefficiencies in price delivery.
Wick gaps serve as support or resistance zones, helping traders identify potential price reactions.
Understanding wicks helps traders avoid the noise in the middle of price movements and focus on high-probability entries at market tops and bottoms.
Micro Cycle Range (MCR):
The MCR forms between 9:00-9:23 AM (NY Time) on the 1-minute chart, creating a pre-market range.
The range consists of a high, low, and opening price, offering early structure before the 9:30 AM open.
Breakouts are confirmed only when a candle body closes outside the range (wicks alone are invalid).
Trading Execution:
Breakout Confirmation: Traders wait for a confirmed breakout beyond the MCR range.
Retracement Strategy: Price often retests the breakout zone before the true directional move.
True vs. False Days: A true day maintains the breakout direction, while a false day sees breakouts in both directions.
High Timeframe Confluence: Wicks on the 15-minute timeframe help determine the liquidity draw for directional bias.
Standard Deviations for Risk Management: Traders adjust stop-losses based on 1-2 standard deviations from entry points.
By integrating Wick Theory for price behavior analysis and MCR for structured time-based trading, this model allows traders to predict market movements with greater accuracy. The strategy is particularly useful for intraday traders looking for a repeatable and data-driven trading system.
Scalping Entry/Exit Indicator by DiGetImagine having a tool that not only spots high-probability entry signals but also visually marks them on your chart with color-coded cues and automated alerts. The Scalping Entry/Exit Indicator by DiGet does exactly that—by fusing a range of classic candlestick patterns (such as Bullish Hammers, Engulfing patterns, and Morning/Evening Stars) with dynamic risk management levels, this script empowers you to make swift and informed trading decisions. Whether you're an active trader or an algorithm enthusiast, this indicator offers both precision and clarity in identifying scalp opportunities, making your chart analysis more efficient and visually engaging.
Indicator Breakdown
Input Parameters:
The indicator accepts a customizable risk-reward ratio, an ATR period for volatility measurement, and a lookback period to scan for valid candlestick patterns.
ATR & Candle Calculations:
It computes the Average True Range (ATR) to dynamically set stop-loss and take-profit levels. Additionally, it determines the body and wick sizes of each candlestick to help identify key reversal patterns.
Pattern Detection:
Multiple bullish patterns (Hammer, Engulfing, Morning Star) and bearish patterns (Shooting Star, Engulfing, Evening Star) are detected. There’s also a simplified version of the Head & Shoulders pattern, offering further validation for reversal signals.
Signal Generation & Trade Levels:
The script consolidates the pattern signals into combined “buy” and “sell” triggers. It then calculates the respective stop-loss (SL) and take-profit (TP) levels based on the current price and ATR, providing a robust risk management framework.
Visual Aids & Alerts:
To enhance usability, the indicator changes the chart’s background color to green for buy signals and red for sell signals. It also draws labels, lines (representing SL and TP), and markers directly on the chart, along with alert conditions to notify traders of actionable signals.
This indicator is an excellent addition to your TradingView toolkit—ideal for scalpers and short-term traders seeking clarity, precision, and automated signal generation on their charts.
Enjoy trading with confidence and precision!
Buying vs Selling Volume IndicatorThis indicator based on volume it will use where is the major volume point
Enhanced Demand & Supply Zones// How to Use the Enhanced Demand & Supply Zones Indicator
/*
## Understanding the Indicator
The Enhanced Demand & Supply Zones (EDSZ) Indicator identifies strong demand (support) zones and supply (resistance) zones on the chart. It also incorporates:
- Multi-timeframe trend confirmation to determine the market direction.
- RSI filtering to validate overbought and oversold conditions.
- Strong Buy & Sell Signals based on key confluences.
## When to Buy (Strong Buy Signal)
A strong buy opportunity is signaled when all the following conditions are met:
1. Price is above the last demand zone (support level).
2. RSI is below 35, indicating oversold conditions.
3. Bullish Trend Confirmation - Price is above SMA trends across multiple timeframes (1M, 5M, 15M, 1H, 4H, Daily).
4. Price crosses above the last demand zone (crossover).
### Ideal Buy Entry:
- Enter a long position after the BUY label appears.
- Set a stop-loss slightly below the demand zone.
- Take-profit at the next supply zone or based on risk-reward ratio (1:2 or 1:3).
## When to Sell (Strong Sell Signal)
A strong sell opportunity is signaled when all the following conditions are met:
1. Price is below the last supply zone (resistance level).
2. RSI is above 65, indicating overbought conditions.
3. Bearish Trend Confirmation - Price is below SMA trends across multiple timeframes.
4. Price crosses below the last supply zone (crossunder).
### Ideal Sell Entry:
- Enter a short position after the SELL label appears.
- Set a stop-loss slightly above the supply zone.
- Take-profit at the next demand zone or based on risk-reward ratio (1:2 or 1:3).
## When NOT to Trade
Avoid trading under the following conditions:
1. Choppy or sideways market - If price is bouncing between zones without strong trends.
2. Weak or conflicting trends - If price is hovering near SMAs without a clear direction.
3. RSI is in the middle range (35-65) - No strong overbought or oversold conditions.
4. No clear demand/supply crossovers - If price is stuck in a zone without a breakout.
## Additional Strategies to Improve Trading
1. Volume Confirmation - Check if a breakout above demand or below supply is accompanied by high volume.
2. Candlestick Patterns - Look for reversal patterns (e.g., pin bars, engulfing candles) near zones.
3. Fibonacci Retracement - Combine demand and supply zones with Fibonacci levels for confluence.
4. Market Structure - Confirm trend strength using break of structure (BoS) and change of character (ChoCH).
5. Risk Management - Always set stop-loss and manage risk per trade to avoid large drawdowns.
By following these rules and integrating additional confirmations, traders can maximize their probability of success using the EDSZ Indicator.
*/
Fibonacci Retracement with SignalsThis script automatically detects recent swing highs and lows to plot Fibonacci retracement levels dynamically. The levels adjust in real-time, moving along with price action, ensuring traders have accurate support and resistance zones.
How to Use for Buying & Selling:
Buy Entry: Look for price to bounce from key Fibonacci support levels (0.618, 0.5, or 0.382). A bullish confirmation (e.g., candlestick patterns or trendline support) increases trade confidence.
Sell Entry: If the price retraces to key resistance levels (0.618, 0.5, or 0.382) and shows rejection (e.g., wicks, bearish engulfing), it may indicate a selling opportunity.
Breakout Trading: If the price breaks above the 0.0 Fibonacci level, it may indicate strong bullish momentum. Conversely, breaking below the 1.0 level signals bearish continuation.
Additional Features to Look For:
✔ Dynamic Fibonacci levels update in real-time with price action
✔ Works across all timeframes and assets (stocks, forex, crypto, indices)
✔ Key retracement levels (0.236, 0.382, 0.5, 0.618, 0.786) highlighted
✔ Helps identify high-probability trade setups with confluence zones
This indicator is best used with price action, trendlines, volume, or other confirmation indicators for stronger trade setups. 🚀
Wall Street Ai**Wall Street Ai – Advanced Technical Indicator for Market Analysis**
**Overview**
Wall Street Ai is an advanced, AI-powered technical indicator meticulously engineered to provide traders with in-depth market analysis and insight. By leveraging state-of-the-art artificial intelligence algorithms and comprehensive historical price data, Wall Street Ai is designed to identify significant market turning points and key price levels. Its sophisticated analytical framework enables traders to uncover potential shifts in market momentum, assisting in the formulation of strategic trading decisions while maintaining the highest standards of objectivity and reliability.
**Key Features**
- **Intelligent Pattern Recognition:**
Wall Street Ai employs advanced machine learning techniques to analyze historical price movements and detect recurring patterns. This capability allows it to differentiate between typical market noise and meaningful signals indicative of potential trend reversals.
- **Robust Noise Reduction:**
The indicator incorporates a refined volatility filtering system that minimizes the impact of minor price fluctuations. By isolating significant price movements, it ensures that the analytical output focuses on substantial market shifts rather than ephemeral variations.
- **Customizable Analytical Parameters:**
With a wide range of adjustable settings, Wall Street Ai can be fine-tuned to align with diverse trading strategies and risk appetites. Traders can modify sensitivity, threshold levels, and other critical parameters to optimize the indicator’s performance under various market conditions.
- **Comprehensive Data Analysis:**
By harnessing the power of artificial intelligence, Wall Street Ai performs a deep analysis of historical data, identifying statistically significant highs and lows. This analysis not only reflects past market behavior but also provides valuable insights into potential future turning points, thereby enhancing the predictive aspect of your trading strategy.
- **Adaptive Market Insights:**
The indicator’s dynamic algorithm continuously adjusts to current market conditions, adapting its analysis based on real-time data inputs. This adaptive quality ensures that the indicator remains relevant and effective across different market environments, whether the market is trending strongly, consolidating, or experiencing volatility.
- **Objective and Reliable Analysis:**
Wall Street Ai is built on a foundation of robust statistical methods and rigorous data validation. Its outputs are designed to be objective and free from any exaggerated claims, ensuring that traders receive a clear, unbiased view of market conditions.
**How It Works**
Wall Street Ai integrates advanced AI and deep learning methodologies to analyze a vast array of historical price data. Its core algorithm identifies and evaluates critical market levels by detecting patterns that have historically preceded significant market movements. By filtering out non-essential fluctuations, the indicator emphasizes key price extremes and trend changes that are likely to impact market behavior. The system’s adaptive nature allows it to recalibrate its analytical parameters in response to evolving market dynamics, providing a consistently reliable framework for market analysis.
**Usage Recommendations**
- **Optimal Timeframes:**
For the most effective application, it is recommended to utilize Wall Street Ai on higher timeframe charts, such as hourly (H1) or higher. This approach enhances the clarity of the detected patterns and provides a more comprehensive view of long-term market trends.
- **Market Versatility:**
Wall Street Ai is versatile and can be applied across a broad range of financial markets, including Forex, indices, commodities, cryptocurrencies, and equities. Its adaptable design ensures consistent performance regardless of the asset class being analyzed.
- **Complementary Analytical Tools:**
While Wall Street Ai provides profound insights into market behavior, it is best utilized in combination with other analytical tools and techniques. Integrating its analysis with additional indicators—such as trend lines, support/resistance levels, or momentum oscillators—can further refine your trading strategy and enhance decision-making.
- **Strategy Testing and Optimization:**
Traders are encouraged to test Wall Street Ai extensively in a simulated trading environment before deploying it in live markets. This allows for thorough calibration of its settings according to individual trading styles and risk management strategies, ensuring optimal performance across diverse market conditions.
**Risk Management and Best Practices**
Wall Street Ai is intended to serve as an analytical tool that supports informed trading decisions. However, as with any technical indicator, its outputs should be interpreted as part of a comprehensive trading strategy that includes robust risk management practices. Traders should continuously validate the indicator’s findings with additional analysis and maintain a disciplined approach to position sizing and risk control. Regular review and adjustment of trading strategies in response to market changes are essential to mitigate potential losses.
**Conclusion**
Wall Street Ai offers a cutting-edge, AI-driven approach to technical analysis, empowering traders with detailed market insights and the ability to identify potential turning points with precision. Its intelligent pattern recognition, adaptive analytical capabilities, and extensive noise reduction make it a valuable asset for both experienced traders and those new to market analysis. By integrating Wall Street Ai into your trading toolkit, you can enhance your understanding of market dynamics and develop a more robust, data-driven trading strategy—all while adhering to the highest standards of analytical integrity and performance.
Volume Profile / V.2.5 Volume Profile v.2.5 – Updated Description
The Volume Profile v.2.5 is an advanced volume analysis tool that visualizes the distribution of trading volume at different price levels over a specific period. This upgraded version enhances the identification of high-liquidity zones (POC, HVN, LVN) and improves the detection of key supply and demand imbalances.
EGBO ZONE VERSION 2EGBO ZONE VERSION 2 is an indicator that identifies bullish and bearish engulfing patterns while considering trend direction. It uses EMA 25 as a filter, only showing buy signals when price is above the EMA and sell signals when price is below. The indicator marks engulfing patterns with labels on the chart and tracks their high and low zones for potential support and resistance. It also includes a table displaying engulfing signals and trend direction for M5, M15, and H1 timeframes. This helps traders confirm setups and align trades with the market trend.
Fibonacci RangeFibonacci Range 50 Indicator
The Fibonacci Range 50 indicator is designed to help traders identify potential price reversal zones and breakout levels by utilizing the 50% Fibonacci retracement level as a key reference point. This indicator is particularly useful for traders who rely on technical analysis and price action to make informed trading decisions.
How It Works:
Identifies the Range – The indicator automatically detects a significant price range, typically based on the highest and lowest points of a given session (e.g., Asian session, previous day’s range, or a custom timeframe).
Plots Fibonacci Levels – The key 50% Fibonacci retracement level is calculated within this range, acting as a dynamic midpoint that often serves as a pivot zone for price movements.
Breakout & Reversal Signals –
If the price rejects the 50% level, it may indicate a trend continuation or range-bound movement.
If the price breaks above or below the range with momentum, it may signal a potential breakout trade opportunity.
Key Features:
✅ Automatic Fibonacci Level Calculation – No manual drawing required.
✅ Customizable Time Ranges – Allows traders to adjust the indicator based on their preferred trading session.
✅ Works Across Different Markets – Effective for Forex, Crypto, and Stock trading.
✅ Breakout & Reversal Strategy Integration – Can be used in conjunction with other indicators such as Moving Averages, RSI, and MACD.
Ideal For:
Intraday traders looking for high-probability setups.
Swing traders identifying potential turning points.
Traders using breakout strategies based on price action.
This indicator provides traders with clear and actionable insights to improve their trade entries, stop-loss placements, and profit targets. 🚀
My Custom RSIthis is a improvement to the rsi script in trading view. wanted as many options as possible so did my own thing. let me know if you like it. it works well for me and the way i trade. if you can improve it drop me a line, Im in.
Advanced Trading Signals with PatternsBuy Signal:
Price is above the moving average.
RSI is below 70 (not overbought).
MACD histogram is positive.
Stochastic %K is above %D.
Williams %R is above -80 (not overbought).
Volume is above its SMA.
A double bottom pattern is detected.
Sell Signal:
Price is below the moving average.
RSI is above 30 (not oversold).
MACD histogram is negative.
Stochastic %K is below %D.
Williams %R is below -20 (not oversold).
Volume is above its SMA.
A double top pattern is detected.
Moving Average (Blue Line): A simple moving average plotted on the chart.
Buy Signals (Green "BUY" Labels): Appear below the bars when all buy conditions (including a double bottom pattern) are met.
Sell Signals (Red "SELL" Labels): Appear above the bars when all sell conditions (including a double top pattern) are met.
Pattern Markers: Tiny green triangles below bars indicate double bottoms; tiny red triangles above bars indicate double tops.
Regime Filter VWAP (Columns)1. Script Purpose
Objective: Identify bullish/bearish market regimes based on price position relative to VWAP (Volume Weighted Average Price)
Timeframe Analysis: Compares current price to VWAP calculated on a higher timeframe (daily by default)
Visual Output: Colors chart background green when bullish (price above VWAP), red when bearish
Key Features
Multi-Timeframe Analysis:
Calculates VWAP on higher timeframe than chart
Example: Use daily VWAP on 15-minute chart
Universal Application:
Works for stocks, indices, forex, crypto
Adjustable for any market hours
Trading Psychology Alignment:
Bullish when price > VWAP (institutional buying pressure)
Bearish when price < VWAP (distribution phase)
Zen Urgency v1Zen Urgency v1
Identify High-Urgency Market Moves with Precision
The Zen Urgency v1 indicator highlights urgent bull and bear bars, helping traders recognize fast-moving price action that signals momentum shifts, breakouts, or potential reversals.
Key Features
✅ Customizable Urgency Thresholds – Set the % threshold for urgent bull and bear bars to match your trading strategy.
✅ Body Range Control – Filter urgency signals based on the bar's body-to-range size for improved precision.
✅ Custom Arrow Colors & Sizes – Personalize the indicator’s appearance with flexible color settings and adjustable arrow sizes (Small, Normal, Large).
✅ Clear Visual Signals – Urgent bullish bars are marked with upward arrows; urgent bearish bars are marked with downward arrows.
How to Use
Urgency Thresholds: Lower values highlight more bars; higher values identify only the strongest urgency signals.
Body Range Control: Set a percentage to ensure only bars with substantial body sizes are marked.
Visual Customization: Adjust arrow colors and sizes for optimal chart visibility.
Ideal for traders seeking to spot momentum bursts, scalp entries, or manage breakout trades with enhanced urgency detection.
EMA Crossover Signals with Adjustable Volume5/8/13 EMA cross over signals with adjustable volume for strength of cross
ICT Sessions And Range Breakout [ADB]session range breakout with many other options for ict traders. this indicator can show sessions and killzones and ...
SWC QR Oscillator
SWC QR Oscillator
Overview
The SWC QR Oscillator is a powerful trading indicator designed to identify overbought/oversold conditions, trend strength, and potential reversals. By incorporating four different stochastic oscillators , divergence detection , background color alerts , and ABCD pattern recognition , this tool provides a comprehensive view of market momentum .
Key Features:
✅ Identify potential reversals through stochastic slopes.
✅ Confirm trends using multiple stochastic timeframes .
✅ Detect bullish & bearish divergences between price and momentum.
✅ Recognize ABCD pattern formations for trend continuation.
✅ Generate alerts for critical stochastic conditions.
---
🔹 How to Use
1️⃣ Understanding the Stochastic Oscillators
The indicator plots four stochastic oscillators :
Stochastic 1 (Red) – Short-term, reacts quickly to price.
Stochastic 2 (Aqua) – Medium-short, confirms early signals.
Stochastic 3 (Yellow) – Medium-long, filters noise.
Stochastic 4 (Green) – Long-term, used for trend strength analysis.
---
2️⃣ Identifying Overbought & Oversold Conditions
Above 80 = Overbought (Potential selling opportunity).
Below 20 = Oversold (Potential buying opportunity).
Above 90 / Below 10 = Extreme overbought/oversold zones.
📌 Reversal Signal: When multiple stochastics align in these regions and curve inward , a trend shift may be forming.
---
3️⃣ Background Coloring for Strong Signals
The background color changes based on the number of stochastics moving in the same direction:
🟥 Red Background – X number of stochastics are above 80 & sloping down.
🟩 Green Background – X number of stochastics are below 20 & sloping up.
🎯 Customization Tip: Adjust the "Min # of Stochastics for BG Coloring" setting to control signal sensitivity.
---
4️⃣ Divergence Detection
The indicator automatically identifies bullish & bearish divergences :
🔴 Bearish Divergence – Price makes a higher high, but stochastic makes a lower high (potential reversal down).
🟢 Bullish Divergence – Price makes a lower low, but stochastic makes a higher low (potential reversal up).
✅ Pro Tip: Enable "Match Divergence Lines to Stochastic Color" for better visual clarity.
---
5️⃣ ABCD Pattern Recognition
The script detects ABCD patterns based on Stochastic 4 remaining in extreme zones:
ABCD Long (Green X) – Stochastic 4 stuck above 90 , signaling trend continuation up .
ABCD Short (Red X) – Stochastic 4 stuck below 10 , indicating bearish continuation .
---
### 6️⃣ Super Signals (Strong Buy/Sell Conditions)
🚨 Super Signal Down (⬇️ Red Arrow) – All 4 stochastics above 80 & sloping down → Strong Bearish Reversal .
🚀 Super Signal Up (⬆️ Green Arrow) – All 4 stochastics below 20 & sloping up → Strong Bullish Reversal .
📌 High-Confidence Trade Setups: These signals work best when combined with price action analysis.
---
7️⃣ Alerts for Key Conditions
Set alerts for:
✅ Background color changes (Red/Green).
✅ ABCD pattern detection (Long/Short).
✅ Super Signal Up/Down confirmations .
✅ Divergence alerts for each stochastic .
🔔 Never miss a trade! Enable alerts in TradingView for real-time notifications.
---
📌 Final Tips for Traders
✔ Adjust "Min # of Stochastics for BG Coloring" to control signal sensitivity.
✔ Use ABCD patterns to confirm trend continuation before entering trades.
✔ Combine divergences, background signals, & super signals for stronger confirmations.
✔ Always monitor higher timeframe trends to align with dominant market direction.
💡 This indicator provides valuable confluence signals but works best when combined with price action strategies and risk management techniques .
AI Scalping ORB TEST (Sandip) V2✅ Overview
The AI Scalping ORB (Opening Range Breakout) script is a custom indicator for TradingView designed to detect potential breakout trading opportunities. It focuses on the Opening Range Breakout (ORB) strategy, a popular technique used by traders to capitalize on market volatility after the market opens. The script includes various configurable settings, trading signals, and visual enhancements to aid in trading decisions.
⚙️ Key Features
Opening Range Calculation:
The script defines the opening range using the high and low price within a specified time window.
It calculates:
ORB High: The highest price during the range.
ORB Low: The lowest price during the range.
Midpoint: The midpoint between the high and low.
This range serves as the base for breakout signals.
Trade Signal Generation:
Buy Signal: Triggered when the price breaks above the ORB high.
Sell Signal: Triggered when the price breaks below the ORB low.
The script dynamically generates entry signals and stop-loss levels based on the range breakout.
Multiple take-profit targets (TP1, TP2, TP3) are calculated using risk-reward ratios.
Risk-Reward and Stop-Loss Logic:
The script includes stop-loss (SL) and take-profit (TP) levels.
Risk-reward ratios can be customized by the user.
TP levels are visualized on the chart, helping traders manage their trades effectively.
Multiple Timeframe (MTF) Support:
The indicator can display ORB levels across multiple timeframes.
This allows traders to assess the breakout potential based on higher or lower timeframes.
🎯 Inputs and Configuration Options
Time Settings:
ORB Start Time: Defines the start time of the opening range.
ORB End Time: Defines the end time of the opening range.
Timeframe: Allows switching between different timeframes.
Risk Management Settings:
Risk/Reward Ratio: Configurable ratio for stop-loss and take-profit levels.
Stop Loss Buffer: Additional buffer added to SL levels.
Style and Visual Customization:
Color settings for ORB lines, breakout signals, and TP levels.
Line styles and opacities for better chart visualization.
Custom labels for buy/sell signals and target prices.
📊 Visual Representation
The script provides a clean and informative visual display, including:
ORB range plotted with clear high, low, and midpoint levels.
Dynamic trade signals with buy/sell markers.
Clear TP and SL lines with customizable colors and styles.
Labeling of entry, stop-loss, and multiple take-profit targets.
⚡️ How to Use
Configuration:
Customize the ORB time window, risk/reward ratio, and visual preferences through the input settings.
Identify Breakouts:
Watch for price breaking above or below the ORB range.
Enter trades based on the breakout direction.
Manage Risk:
Use the SL and TP lines to manage risk and set profit targets.
Multi-Timeframe Analysis:
Utilize MTF mode to evaluate ORB performance across different timeframes.
✅ Practical Application
Suitable for scalping strategies, especially in highly volatile markets.
Can be applied to forex, crypto, or stock markets.
Helps traders quickly visualize potential breakout zones and place trades with predefined risk management.
🚀 Enhancement Suggestions
To further improve the script:
Add dynamic alerts when price breaks ORB levels.
Implement trailing stop-loss logic for better trade management.
Include volume confirmation filters to enhance signal reliability.
✅ This script offers a comprehensive solution for ORB-based scalping strategies, providing clear visual cues, risk management settings, and flexible customization for better trading decisions.
多维度高级形态脚本:+K线形态+MACD背离+RSI+前高卖点+EMA买点+MACD死叉标识+反转信号指标描述
你的指标是一个多维度技术分析工具,基于 Pine Script v6 编写,旨在识别交易中的买点、卖点以及反转信号。指标结合了多种技术分析方法,包括形态识别(W底、K线形态)、趋势分析(EMA、MACD)、动量指标(RSI)以及成交量分析。以下是指标的主要组成部分和功能:
1. W底识别(第1节)
功能:识别潜在的W底形态,作为看涨信号。
逻辑:
使用 ta.pivotlow 和 ta.pivothigh 检测价格的低点和高点。
要求两个低点之间的价格差异在容差范围内(wBottomTolerance),且间隔在指定范围内(wBottomMinBars 到 wBottomMaxBars)。
结合 RSI 条件(RSI < 40)和成交量确认(可选),在突破颈线时确认W底。
可视化:在潜在W底和确认W底时绘制标签和线条。
2. K线形态确认(第2节)
功能:识别看涨K线形态,包括反包(Bullish Engulfing)和锤头线(Hammer)。
逻辑:
反包:bullishEngulfing = close < open and close > open and close > open and open < close 。
锤头线:hammer = (high - low) > 0 and (low - math.min(open, close)) / (high - low) > 0.6 and (math.max(open, close) - high) / (high - low) < 0.2。
看涨确认:bullishCandleConfirm = bullishEngulfing or hammer。
3. MACD底背离(第3节)
功能:检测MACD底背离,作为看涨信号。
逻辑:
使用 ta.pivotlow 检测价格和MACD线的低点。
条件:价格创更低低点(currPricePivot < prevPricePivot),但MACD线创更高低点(currMacdPivot > prevMacdPivot)。
结合RSI条件(RSI < 40 或 50,取决于第一次或第二次背离)。
4. 卖点逻辑(第4节)
功能:识别卖点信号,基于RSI超买和MACD死叉。
逻辑:
RSI超买:rsiOverbought = rsiVal > 80,独立标记所有RSI > 80的K线(红色向下三角)。
MACD死叉:macdCrossDown = ta.crossover(signalLine, macdLine),标记所有MACD死叉(红色向下三角)。
卖点信号:sellSignal = (rsiOverbought and macdCrossDown) and not inCooldown,结合RSI超买和MACD死叉,生成更强的卖出信号。
冷却期:避免信号过于频繁(20根K线内不重复触发)。
5. 买点逻辑(第5节)
功能:结合W底和EMA条件生成买点信号。
逻辑:
EMA买点:emaBuySignal = crossAboveEma52 and aboveEma52,即价格上穿EMA52并站稳。
最终买点:finalBuySignal = (doubleBottomDetected and bullishCandleConfirm) or emaBuySignal,结合W底确认和K线形态,或EMA买点。
可视化:标记绿色向上三角。
6. 远离EMA52信号(第6节)
功能:检测价格下穿EMA52后的第2-3根K线,作为潜在卖出或调整信号。
逻辑:
下穿EMA52:crossBelowEma52 = ta.crossunder(close, ema52)。
计数:记录下穿后的K线数量,触发条件为第2-3根K线(crossBelowCount == 2 or crossBelowCount == 3)。
可视化:标记橙色向下三角。
7. 反转信号(第7节)
功能:在下跌行情中识别反转K线(大阳线、锤头、反包),要求价格在EMA52下方。
逻辑:
下跌趋势:inDowntrend = ema50 < ema200。
EMA52下方:close < ema52。
K线形态:bigBullishCandle(大阳线,实体大于平均实体2倍)、hammer(锤头线)、bullishEngulfing(反包)。
反转信号:reversalSignal = inDowntrend and close < ema52 and (bigBullishCandle or hammer or bullishEngulfing)。
可视化:标记红色向上三角。
8. 绘制信号和调试(第8节)
功能:可视化所有信号,并提供调试信息。
信号标记:
买点:绿色向上三角。
卖点:红色向下三角。
远离EMA52:橙色向下三角。
MACD死叉:红色向下三角。
RSI超买:红色向下三角。
反转信号:红色向上三角。
调试标签:显示关键变量状态(如RSI、MACD、K线形态等),便于分析。
操作思路
1. 整体策略
趋势判断:通过EMA50和EMA200的相对位置(ema50 < ema200)判断市场处于下跌趋势还是上涨趋势。下跌趋势中关注反转信号和买点,上涨趋势中关注卖点。
多维度确认:结合形态(W底、K线形态)、趋势(EMA)、动量(RSI、MACD)和成交量,生成高概率的交易信号。
风险管理:通过冷却期(20根K线)和多条件确认(如W底需突破颈线)降低假信号概率。
2. 买入操作
场景1:W底确认 + 看涨K线形态
信号:doubleBottomDetected and bullishCandleConfirm,即W底形态确认(突破颈线)且伴随看涨K线(反包或锤头)。
操作:在绿色向上三角出现时考虑买入,结合成交量放大(volumeCondition)和RSI低位(<40)增加信心。
止损:可设置在W底第二个低点下方。
止盈:可参考颈线到低点的距离作为目标,或结合后续阻力位。
场景2:EMA52上穿并站稳
信号:emaBuySignal = crossAboveEma52 and aboveEma52,即价格上穿EMA52并收盘在EMA52上方。
操作:在绿色向上三角出现时考虑买入,适合趋势反转或延续行情。
止损:可设置在EMA52下方或近期低点。
止盈:可参考前期高点或结合MACD金叉确认趋势延续。
场景3:下跌行情中的反转信号
信号:reversalSignal = inDowntrend and close < ema52 and (bigBullishCandle or hammer or bullishEngulfing),即下跌趋势中,价格在EMA52下方出现大阳线、锤头或反包。
操作:在红色向上三角出现时考虑买入,适合捕捉底部反转。
止损:可设置在反转K线的低点下方。
止盈:可参考EMA52或前期阻力位。
3. 卖出操作
场景1:RSI超买
信号:rsiOverboughtSignal = rsiVal > 80,RSI超过80,标记红色向下三角。
操作:在红色向下三角出现时考虑减仓或卖出,表明市场可能过热。
止损/止盈:结合其他信号(如MACD死叉)确认,若后续价格突破新高可止损。
场景2:MACD死叉
信号:macdCrossDown = ta.crossover(signalLine, macdLine),MACD死叉,标记红色向下三角。
操作:在红色向下三角出现时考虑卖出,表明趋势可能反转向下。
止损/止盈:若价格突破前期高点可止损,止盈可参考EMA52或近期低点。
场景3:RSI超买 + MACD死叉
信号:sellSignal = (rsiOverbought and macdCrossDown) and not inCooldown,RSI超买且MACD死叉,标记红色向下三角。
操作:在红色向下三角出现时优先卖出,信号强度更高。
止损/止盈:同上,结合EMA52或支撑位设置。
场景4:远离EMA52信号
信号:awayFromEma52Signal = crossBelowCount == 2 or crossBelowCount == 3,价格下穿EMA52后的第2-3根K线,标记橙色向下三角。
操作:在橙色向下三角出现时考虑减仓,表明价格可能继续下跌。
止损/止盈:若价格重新站上EMA52可止损,止盈可参考近期低点。
4. 风险控制
冷却期:MACD死叉、RSI超买和卖点信号均设置了20根K线的冷却期,避免频繁交易。
多条件确认:买点和卖点信号结合多种指标(如W底需突破颈线,卖点需RSI和MACD双重确认),降低假信号概率。
止损设置:根据形态低点、EMA52或近期支撑/阻力位设置止损,控制风险。
5. 适用场景
趋势市场:EMA买点和卖点信号适合趋势行情,结合MACD和RSI判断趋势强弱。
震荡市场:W底和反转信号适合震荡行情,捕捉底部反转机会。
时间框架:指标适用于多种时间框架(如1小时、4小时、日线),但需根据周期调整参数(如 lengthPivot、rsiLength)。
使用建议
参数优化:
若反转信号触发不足,可放宽 close < ema52 条件,例如允许价格略高于EMA52:
pinescript
bool reversalSignal = inDowntrend and close < ema52 * 1.02 and (bigBullishCandle or hammer or bullishEngulfing)
若卖点信号过于频繁,可提高RSI超买阈值(如从80到85):
pinescript
rsiOverbought = rsiVal > 85
bool rsiOverboughtSignal = rsiVal > 85
结合其他工具:
可结合支撑/阻力位、布林带或成交量指标,进一步确认信号。
使用MACD和RSI的背离信号(如MACD底背离)增强买点信心。
测试与回测:
在TradingView中回测不同市场和时间框架,验证指标的有效性。
关注信号的胜率和盈亏比,优化止损和止盈策略。
DeepTrend IndicatorA powerful indicator for identifying momentum and trend reversals.
The DeepTrend Indicator (DTI) is an advanced technical indicator that combines EMA, SMA, and RSI, while also integrating volume data to enhance trend detection.
Regime Filter VWAP (Bottom Panel)1. Script Purpose
Objective: Identify bullish/bearish market regimes based on price position relative to VWAP (Volume Weighted Average Price)
Timeframe Analysis: Compares current price to VWAP calculated on a higher timeframe (daily by default)
Visual Output: Colors chart background green when bullish (price above VWAP), red when bearish
Key Features
Multi-Timeframe Analysis:
Calculates VWAP on higher timeframe than chart
Example: Use daily VWAP on 15-minute chart
Universal Application:
Works for stocks, indices, forex, crypto
Adjustable for any market hours
Trading Psychology Alignment:
Bullish when price > VWAP (institutional buying pressure)
Bearish when price < VWAP (distribution phase)
6 minutes ago
Release Notes
Function Definition:
This line defines a custom function named f_sec that takes three parameters: _market (the market or symbol), _res (the timeframe resolution), and _exp (an expression, such as an indicator calculation).
Purpose of the Function:
The function wraps around TradingView’s built-in request.security call, which is used to fetch data from another symbol or timeframe. The custom function is designed to handle potential repainting issues by adjusting which bar's value is returned based on whether the bar is realtime or historical.
Conditional Indexing:
The expression _exp selects a different value from the provided expression _exp:
When barstate.isrealtime is true: It accesses the value from one bar back ( ), helping to avoid using an incomplete realtime value.
When false: It accesses the current bar’s value ( ), which is safe in a historical context.
After the request.security call, the function further indexes the returned array with :
In realtime: It then selects the most updated value.
In historical mode: It adjusts accordingly to provide a stable value.
MACD Divergence IndicatorMACD Divergence Indicator
Displays deviations in the indicator according to the graph.
DZ Simple MA Crossover StrategyDZ Simple MA Crossover Strategy
By Da_mENIZ – Last Updated: 20.Mar.2025
Overview
The DZ Simple MA Crossover Strategy is a clean, easy-to-understand trend-following system based on moving average crossovers. It uses two simple moving averages—a short-term and a long-term—to generate clear long and short signals. The strategy automatically reverses positions when the moving averages cross, ensuring you switch trades on the close of the signal bar.
How It Works
Moving Averages:
The strategy calculates two SMAs using user-defined lengths. When the short SMA crosses above the long SMA, it triggers a long signal. When it crosses below, it triggers a short signal.
Trade Management:
On a long signal, any short position is closed immediately before entering a long trade, and vice versa. Custom labels placed one bar ahead display the entry price for clarity.
Visual Clarity:
The built-in gray markers show the trade details (entry/close, quantity, and price), while additional custom labels highlight entry prices above or below the bars.
Customize and Experiment
Simply add the script to your chart, adjust the moving average lengths or price source to suit your market or style, and see how the signals perform in real time. This strategy is ideal for those looking to understand the basics of moving average crossovers and trade reversals.
Happy Trading!