MACD deluxe signals - CZ INDICATORSMACD signals right on the chart! Using this tool has become even easier!
Сигналы MACD прямо на графике! Пользоваться этим инструментом стало еще проще!
Macd-v
MACD Crossover Strategy MACD Crossover Strategy:
This strategy is based on the Moving Average Convergence Divergence (MACD) indicator, a popular tool used in technical analysis to identify potential trend changes and momentum in price movements. The strategy focuses on MACD crossovers within a specific "important zone" to generate trading signals.
Key Components:
1. MACD Calculation: The strategy uses customizable parameters for fast length (default 12), slow length (default 26), and signal length (default 9) to calculate the MACD line and signal line.
2. Important Zone: Defined by upper and lower thresholds (default 0.5 and -0.5), this zone helps filter out potentially less significant crossovers.
3. Entry Conditions:
- Long (Buy) Entry: When the MACD line crosses above the signal line within the important zone.
- Short (Sell) Entry: When the MACD line crosses below the signal line within the important zone.
4. Exit Conditions: The strategy closes positions on opposite crossover signals. Long positions are closed on bearish crossovers, and short positions on bullish crossovers.
5. Visualization:
- MACD line (blue) and signal line (orange) are plotted.
- The zero line, upper threshold, and lower threshold are displayed for reference.
- Buy signals are represented by green triangles at the bottom of the chart.
- Sell signals are shown as red triangles at the top of the chart.
This strategy aims to capture trend changes while filtering out potentially false signals that occur when the MACD is at extreme values. By focusing on crossovers within the important zone, the strategy attempts to identify more reliable trading opportunities.
Traders can adjust the MACD parameters and the important zone thresholds to fine-tune the strategy for different assets or timeframes. As with any trading strategy, it's crucial to thoroughly backtest and consider risk management before using it in live trading.
AuraAlphaTrade onchart MACD IndicatorMACD right on your chart, keeps the idea that trend rules all and clearly shows when the macd is showing a buy signal on or off.
Ultimate Swing Trade Finder### Indicator Name: Ultimate Swing Trade Finder
### Description:
The **Ultimate Swing Trade Finder** is a powerful technical analysis tool designed to identify high-probability swing trading opportunities by combining six of the most popular trading indicators: Simple Moving Average (SMA), Exponential Moving Average (EMA), Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), Bollinger Bands, and Stochastic Oscillator. This indicator overlays on your chart and provides clear buy and sell signals based on confluence between these indicators, helping traders spot potential trend reversals or continuations for swing trades.
### How It Works:
The indicator analyzes price action and momentum using multiple technical indicators, requiring at least three confirming conditions for a signal to appear. This multi-indicator approach aims to filter out noise and improve trade reliability. Here's a breakdown of its components and logic:
#### Indicators Used:
1. **50-period SMA (Red Line)**: Determines the longer-term trend direction.
2. **20-period EMA (Blue Line)**: Tracks shorter-term price momentum.
3. **RSI (14-period)**: Measures overbought (>70) and oversold (<30) conditions.
4. **MACD (12,26,9)**: Identifies trend changes through line crossovers.
5. **Bollinger Bands (20, 2.0)**: Highlights volatility and price extremes (upper, middle, and lower bands in gray).
6. **Stochastic Oscillator (14,3)**: Detects momentum shifts with %K and %D lines.
#### Signal Conditions:
- **Buy Signal (Green Triangle Up)**:
- Trend is up (EMA > SMA)
- At least 3 of these conditions must be true:
- RSI is oversold (<30)
- MACD line crosses above signal line
- Price is below the lower Bollinger Band
- Stochastic %K is <20 and crosses above %D
- Price is above the EMA
- **Sell Signal (Red Triangle Down)**:
- Trend is down (EMA < SMA)
- At least 3 of these conditions must be true:
- RSI is overbought (>70)
- MACD line crosses below signal line
- Price is above the upper Bollinger Band
- Stochastic %K is >80 and crosses below %D
- Price is below the EMA
#### Signal Strength:
- A label appears on the chart when a signal occurs, showing "Buy: X" and "Sell: X" (where X is 0-5), representing how many of the five conditions are met. Higher numbers indicate stronger signals.
#### Alerts:
- The indicator includes built-in alert conditions:
- "Swing Buy Alert": Triggers on buy signals
- "Swing Sell Alert": Triggers on sell signals
- Set up alerts in TradingView to get notified when signals appear.
### How to Use:
1. **Add to Chart**: Copy the script into TradingView’s Pine Editor and add it to your chart.
2. **Interpret Signals**:
- Green triangles below bars indicate potential buy opportunities.
- Red triangles above bars indicate potential sell opportunities.
- Check the signal strength label (3-5 suggests higher confidence).
3. **Customize Settings**: Adjust input parameters (e.g., SMA length, RSI levels) to match your trading style or timeframe.
4. **Confirm with Context**: Use alongside support/resistance levels, volume analysis, or other tools for better decision-making.
### Settings:
- **SMA Length**: Default 50
- **EMA Length**: Default 20
- **RSI Length**: Default 14 (Overbought 70, Oversold 30)
- **MACD**: Default 12,26,9
- **Bollinger Bands**: Default 20, 2.0 multiplier
- **Stochastic**: Default 14-period with 3-period smoothing
### Best Practices:
- **Timeframes**: Works on any timeframe, but 1H, 4H, or Daily charts are recommended for swing trading.
- **Risk Management**: Always use stop-losses and proper position sizing.
- **Backtesting**: Test the indicator on historical data before live trading.
### Notes:
- This indicator is not a guaranteed predictor of price movement; it’s a tool to highlight potential setups.
- Past performance doesn’t guarantee future results.
- Consider market conditions and fundamental analysis alongside technical signals.
---
XTC_RSIThe XTC_RSI is a powerful momentum-based indicator that combines elements of the Relative Strength Index (RSI) and Stochastic RSI to help traders identify overbought and oversold conditions, trend strength, and potential reversal points. This indicator is designed to provide enhanced flexibility through customizable settings, allowing traders to tailor it to their specific strategies.
Indicator Components and Functionality
The XTC_RSI includes the following key elements:
RSI (Relative Strength Index):
The RSI measures the speed and change of price movements, fluctuating between 0 and 100.
When the RSI crosses above key levels (e.g., 70 or 80), the asset may be considered overbought. Conversely, when the RSI dips below levels like 30 or 20, the asset may be considered oversold.
The plotted RSI line is displayed in green for clear visibility.
Stochastic RSI (Stoch RSI):
The Stochastic RSI further refines RSI signals by comparing the RSI’s position relative to its own range over a specified period.
The K line (plotted in light blue) represents the primary Stochastic RSI value.
The D line (plotted in dark blue) is a moving average of the K line, often acting as a smoother signal line to confirm trends or reversals.
Threshold Bands:
The indicator includes four key horizontal bands to help identify critical RSI and Stoch RSI zones:
Top Band (Default: 80): Marks the extreme overbought zone.
Low Band (Default: 20): Marks the extreme oversold zone.
Top Band 2 (Default: 70): Identifies moderate overbought conditions.
Low Band 2 (Default: 30): Identifies moderate oversold conditions.
The dashed lines highlight extreme levels, while the solid lines mark moderate overbought/oversold zones, allowing traders to identify varying levels of momentum shifts.
User Settings and Customization
The XTC_RSI offers several customizable settings, allowing traders to adapt the indicator to their preferred strategies:
RSI Length:
Default Value: 14
This setting controls the lookback period for RSI calculations.
Shorter values (e.g., 7-10) make the RSI more sensitive to price movements, ideal for scalping or fast-moving markets.
Longer values (e.g., 20-25) produce smoother RSI values, reducing noise and improving trend identification for swing or position trading.
Stochastic RSI Length:
Default Value: 14
This setting determines how many RSI values are considered in the Stochastic RSI calculation.
Shorter values will generate faster, more frequent signals, while longer values provide smoother, more reliable signals.
K Smoothing:
Default Value: 3
Controls the smoothing of the K line, which reduces noise and makes trends easier to spot.
Increasing this value produces a smoother curve, reducing false signals in volatile markets.
D Smoothing:
Default Value: 3
This setting smooths the D line, which is commonly used to confirm Stochastic RSI signals.
Higher values reduce noise, improving signal clarity during choppy conditions.
Threshold Bands (Top/Low Bands & Top/Low Band 2):
The four adjustable bands allow traders to define their preferred overbought and oversold zones.
Increasing the Top Band and Low Band values can help filter out weaker signals, while lowering these thresholds may increase sensitivity for faster trade entries.
How Traders Can Use the XTC_RSI Indicator
The XTC_RSI can be utilized in several effective ways:
Trend Confirmation:
Use the RSI in combination with the K and D lines to confirm prevailing trends. For example, during an uptrend, waiting for the RSI to stay above 50 with a bullish crossover on the Stochastic RSI can improve entry timing.
Reversal Signals:
Extreme RSI values above 80 (overbought) or below 20 (oversold) may signal potential reversal points.
Crossovers between the K and D lines in these extreme zones can act as additional confirmation for entry or exit points.
Divergence Trading:
Traders can identify bullish or bearish divergences between price action and RSI/Stochastic RSI, often signaling potential trend reversals.
Breakout Strategy:
The RSI crossing above 70 or below 30 alongside momentum in the Stochastic RSI may indicate a strong breakout opportunity.
Optimization Tips for Different Strategies
Scalping/Day Trading: Use shorter RSI and Stochastic RSI lengths (e.g., 7-10) for faster signals in volatile markets.
Swing Trading: Use default or slightly higher RSI lengths (e.g., 14-20) with increased smoothing on the K and D lines for clearer trend signals.
Divergence Trading: Lower the Top Band to 65-70 and increase the Low Band to 35-40 for earlier divergence detection.
Conclusion
The XTC_RSI is a versatile indicator that blends RSI and Stochastic RSI signals, offering clear visual cues and customizable settings for enhanced flexibility. By adjusting the RSI length, smoothing values, and threshold bands, traders can optimize this indicator to fit their preferred trading style — whether it’s for fast-paced day trading or longer-term trend analysis.
Gold Scalping Strategy (5min EMA, RSI, MACD, VPVR)//@version=5
indicator("Gold Scalping Strategy (5min EMA, RSI, MACD, VPVR)", overlay=true)
// 🔹 1. EMA 50 & EMA 200 sur un timeframe supérieur (15 min)
ema50 = ta.ema(request.security(syminfo.tickerid, "15", close), 50)
ema200 = ta.ema(request.security(syminfo.tickerid, "15", close), 200)
// Détection des croisements (Golden Cross & Death Cross)
goldenCross = ta.crossover(ema50, ema200)
deathCross = ta.crossunder(ema50, ema200)
plot(ema50, title="EMA 50 (15m)", color=color.blue, linewidth=2)
plot(ema200, title="EMA 200 (15m)", color=color.red, linewidth=2)
// 🔹 2. RSI (Relative Strength Index) sur 5 min
rsi = ta.rsi(close, 14)
rsiOverbought = 70
rsiOversold = 30
hline(rsiOverbought, "Surachat (70)", color=color.red)
hline(rsiOversold, "Survente (30)", color=color.green)
// Détection des signaux RSI
rsiBuySignal = ta.crossover(rsi, rsiOversold)
rsiSellSignal = ta.crossunder(rsi, rsiOverbought)
// 🔹 3. MACD (12,26,9) sur 5 min
= ta.macd(close, 12, 26, 9)
macdBuy = ta.crossover(macdLine, signalLine)
macdSell = ta.crossunder(macdLine, signalLine)
plot(macdLine, title="MACD Line", color=color.blue)
plot(signalLine, title="Signal Line", color=color.red)
// 🔹 4. Volume Profile basé sur 1H pour détecter les zones clés
vp = request.security(syminfo.tickerid, "60", ta.highest(close, 50))
plot(vp, title="Zone de volume", color=color.gray, style=plot.style_circles)
// ✅ Alertes automatiques adaptées au 5 min
alertcondition(goldenCross, title="Golden Cross (Achat)", message="EMA 50 a croisé EMA 200 à la hausse!")
alertcondition(deathCross, title="Death Cross (Vente)", message="EMA 50 a croisé EMA 200 à la baisse!")
alertcondition(rsiBuySignal, title="RSI Achat", message="RSI est en zone de survente (<30)!")
alertcondition(rsiSellSignal, title="RSI Vente", message="RSI est en zone de surachat (>70)!")
alertcondition(macdBuy, title="MACD Achat", message="MACD croise au-dessus du signal!")
alertcondition(macdSell, title="MACD Vente", message="MACD croise en dessous du signal!")
// Affichage des signaux sur le graphique
bgcolor(goldenCross ? color.green : na, transp=80)
bgcolor(deathCross ? color.red : na, transp=80)
EMA MACD Long Scalper5 EMA & 20 EMA Cross-Up with MACD Histogram – Bullish Scalping Strategy
This scalping strategy leverages the 5 EMA (Exponential Moving Average) crossing above the 20 EMA as the primary signal for a bullish trade. The MACD histogram serves as a confirmation indicator to increase the probability of success by ensuring momentum aligns with the trade direction.
________________________________________
Timeframe & Market Selection
• Best suited for lower timeframes (3-minute, 5-minute, or 15-minute charts) to capture quick intraday moves.
• Works well in highly liquid assets such as large-cap stocks, or crypto with high volatility (e.g., BTC/USDT, NASDAQ 100, SPY).
• Ideal during high-volume trading hours.
________________________________________
Indicators Setup
1. 5 EMA (Fast Moving Average) – Short-term trend filter.
2. 20 EMA (Slow Moving Average) – Medium-term trend filter.
3. MACD (12, 26, 9) Histogram Only – Measures momentum strength.________________________________________
Entry Criteria (Bullish Confluence for a Long Trade)
1. 5 EMA Crosses Above the 20 EMA
o The fast EMA moving above the slow EMA signals a potential short-term uptrend.
o The EMAs should not be flat; rather, they should be sloping upwards to indicate a trend forming.
2. MACD Histogram Goes from Negative to Positive
o This confirms increasing bullish momentum.
o Ideally, the first positive histogram bar appears after a series of negative bars.
o The MACD line should also be crossing above the signal line or showing signs of strength.
3. Price Pullback into EMAs and Bounces Off Support
o Avoid chasing the initial breakout; instead, wait for a minor pullback where price holds above the EMAs.
o A bullish candle (e.g., hammer, engulfing, or strong close) confirms continuation.
4. Increased Volume on the Breakout Candle
o A spike in volume supports a strong move.
o If volume is low, the move might lack follow-through.
________________________________________
Entry Execution
• Entry Trigger: Once price pulls back and holds above the 5 EMA after the cross-up, enter on the next bullish candle close.
• Order Type: Market order for instant execution or a limit order near the EMAs.
• Confirmation: Ensure the MACD histogram remains positive before entering.
________________________________________
Stop Loss & Risk Management
• Stop-Loss Placement:
o Conservative: Below the most recent swing low.
o Aggressive: Below the 20 EMA if structure is strong.
• Risk-Reward Ratio (RRR):
o Aim for at least 1.5:1 or 2:1 RRR to ensure profitability over multiple trades.
________________________________________
Exit Strategy (Take Profit & Trade Management)
1. First Take Profit (Partial Exit):
o At 1:1 RRR, close 50% of the position to secure profit and move stop-loss to breakeven.
2. Final Take Profit:
o When price shows exhaustion, such as multiple small candles or bearish divergence on MACD.
o Strong resistance levels or psychological price points.
3. Trailing Stop Option:
o Move the stop loss below the 5 EMA as long as price trends upwards.
o If price closes below 5 EMA, consider closing the trade.
________________________________________
Example Trade Execution
• Timeframe: 3-minute chart
• Stock: SPY
• Price Action: Price consolidates, then 5 EMA crosses above 20 EMA.
• MACD Confirmation: Histogram flips positive after being negative.
• Volume Spike: Breakout candle closes above EMAs with increasing volume.
• Entry: Market order at $455.00
• Stop Loss: Below 20 EMA at $454.50 (-$0.50 risk)
• Take Profit 1: $455.75 (1:1 RRR, close 50%)
• Take Profit 2: $456.50 (Final exit)
________________________________________
Additional Considerations
✅ Best Market Conditions: Trending markets or breakouts after consolidation.
❌ Avoid Choppy Markets: If price repeatedly crosses EMAs without direction, stay out.
🔁 Backtesting & Optimization: Test on historical data to refine entry/exit rules.
________________________________________
Conclusion
This strategy combines moving average crossovers with MACD momentum to identify high-probability scalping opportunities. By waiting for a pullback and confirming with volume, traders can improve their win rate and risk management.
IMACD [LazyBear] with Custom TimeframeFirst thanks to the original author for this indicator/strategy/script!
-----------------------------------------------------------------------------------
This is my updated version of the LazyBear IMACD aka Impulse MACD indicator!
I added the option to force it to other timeframes (TF) than the one displayed on Your chart.
Further more I added the ability specifically to get an alarm when trend is strong (aka color 0 and color 2 in its settings).
TRENDOGRAPH-GenAIIntroduction
Unlock the power of early trend detection with TRENDOGRAPH! This flexible and customizable indicator, developed with unique logic and AI support, leverages advanced prediction methods to provide early buy/sell signals, setting it apart from traditional indicators.
Key Features
MACD Histogram: Measures momentum changes.
MACD Reversal: Detects potential trend reversals.
RSI: Identifies overbought or oversold conditions.
Ichimoku: Analyzes support and resistance levels.
Stochastic: Highlights potential price reversals.
Supertrend: Confirms trend direction.
Customization
Adjust the weights of each indicator to find the most accurate combination for your trading strategy. Experiment with different parameters to optimize performance for various assets.
Warnings!
Each chart has unique characteristics.
Use different parameters for crypto and stocks for maximum accuracy.
Validate parameter weights and threshold levels with historical data for each asset.
This tool is designed to help you create your own unique indicator, not as a standalone solution.
Disclaimer: Use at your own risk. This indicator is for testing and comparison purposes only.
MACD with Holt–Winters Smoothing [AIBitcoinTrend]👽 MACD with Holt–Winters Smoothing (AIBitcoinTrend)
The MACD with Holt–Winters Smoothing is an momentum indicator that enhances traditional MACD analysis by incorporating Holt–Winters exponential smoothing. This adaptation reduces lag while maintaining trend sensitivity, making it more effective for detecting trend reversals and sustained momentum shifts. Additionally, the indicator includes real-time divergence detection and an ATR-based trailing stop system, helping traders manage risk dynamically.
👽 What Makes the MACD with Holt–Winters Smoothing Unique?
Unlike the standard MACD, which relies on simple exponential moving averages, this version applies Holt–Winters smoothing to better capture trends while filtering out market noise. Combined with real-time divergence detection and a trailing stop system, this indicator allows traders to:
✅ Identify trend strength with a dynamically smoothed MACD signal.
✅ Detect bullish and bearish divergences in real time.
✅Implement Crossover/Crossunder signals tied to ATR-based trailing stops for risk management
👽 The Math Behind the Indicator
👾 Holt–Winters Smoothing for MACD
Traditional MACD calculations use exponential moving averages (EMA) to identify momentum. This indicator improves upon it by applying Holt’s linear trend equations, which enhance signal accuracy by reducing lag and smoothing out fluctuations.
Key Features:
Alpha (α) - Controls the weight of the new data in smoothing.
Beta (β) - Determines how fast the trend component adapts to new changes.
The Holt–Winters Signal Line provides a refined MACD crossover system for better trade execution.
👾 Real-Time Divergence Detection
The indicator identifies bullish and bearish divergences between MACD and price action.
Bullish Divergence: Occurs when price makes a lower low, but MACD makes a higher low – signaling potential upward momentum.
Bearish Divergence: Occurs when price makes a higher high, but MACD makes a lower high – signaling potential downward momentum.
👾 Dynamic ATR-Based Trailing Stop
The indicator includes a trailing stop system based on ATR (Average True Range). This allows traders to manage positions dynamically based on volatility.
Bullish Trailing Stop: Triggers when MACD crosses above the Holt–Winters signal, with a stop placed at low - (ATR × Multiplier).
Bearish Trailing Stop: Triggers when MACD crosses below the Holt–Winters signal, with a stop placed at high + (ATR × Multiplier).
Trailing Stop Adjustments: Expands or contracts dynamically with market conditions, reducing premature exits while securing profits.
👽 How Traders Can Use This Indicator
👾 Divergence Trading
Traders can use real-time divergence detection to anticipate trend reversals before they occur.
Bullish Divergence Setup:
Look for MACD making a higher low, while price makes a lower low.
Enter long when MACD confirms upward momentum.
Bearish Divergence Setup:
Look for MACD making a lower high, while price makes a higher high.
Enter short when MACD confirms downward momentum.
👾 Trailing Stop & Signal-Based Trading
Bullish Setup:
✅ MACD crosses above the Holt–Winters signal.
✅ A bullish trailing stop is placed using low - ATR × Multiplier.
✅ Exit if the price crosses below the stop.
Bearish Setup:
✅ MACD crosses below the Holt–Winters signal.
✅ A bearish trailing stop is placed using high + ATR × Multiplier.
✅ Exit if the price crosses above the stop.
This systematic trade management approach helps traders lock in profits while reducing drawdowns.
👽 Why It’s Useful for Traders
Lag Reduction: Holt–Winters smoothing ensures faster and more reliable trend detection.
Real-Time Divergence Alerts: Identify potential reversals before they happen.
Adaptive Risk Management: ATR-based trailing stops adjust to volatility dynamically.
Works Across Markets & Timeframes: Effective for stocks, forex, crypto, and futures trading.
👽 Indicator Settings
MACD Fast & Slow Lengths: Adjust the MACD short- and long-term EMA periods.
Holt–Winters Alpha & Beta: Fine-tune the smoothing sensitivity.
Enable Divergence Detection: Toggle real-time divergence analysis.
Lookback Period for Divergences: Configure how far back pivot points are detected.
ATR Multiplier for Trailing Stops: Adjust stop-loss sensitivity to market volatility.
Trend Filtering: Enable signal filtering based on trend direction.
Disclaimer: This indicator is designed for educational purposes and does not constitute financial advice. Please consult a qualified financial advisor before making investment decisions.
Higher/Lower, Equals, Lines of Interest, Divergences by BULL┃NETThe B | N HELD (Level of interest HH HL – EQH EQL – DIVERGENCE by Bull | NET )
indicator provides traders with important price levels on a chart. Those are the average price (poor or weak equilibrium), traditional pivot levels, moving averages as well as support and resistance levels. This powerful indicator shows you the current Market Struktur and EQH/EQL (Equal highs/Equal lows). This shares style and customization features with every other B|N indicator and has some nice additional features.
█ ⚠️ DISCLAIMER – READ BEFORE YOU USE ⚠️
█ FEATURES
— SUPPORT AND RESISTANCE LINES
The settings in this section control how support and resistance lines appear on the chart.
● Resistance
By default horizontal resistance lines are enabled but you can disable them for whatever reason you might have.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line, label and the text color as well as the size of the text.
● Support
By default horizontal support lines are enabled but you can disable them for whatever reason you might have.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line, the label and text color and the size of the text.
● Show price in label
● Show title in label
By default a label contains the price and a shortcut (SUP for support and RES for resistance). For a less noisy chart you can remove both parts individually from the label.
● Bar shift
The label for a line is placed left from the current bar to avoid overlapping with information on the right side from B | N HELD and other B | N indicators. In addition you can shift the label up to 5 bars to left. The default is 2.
— LABEL COSMETICS
The settings in this section control how lines and labels in the Pivotlevels and Moving Average sections get positioned on the chart and which information the labels show.
● Bar Offset
The bar offset controls the horizontal distance to the last bar on the chart where lines end. The default it is “15” bars to the right to avoid overlapping of labels from my other indicators. You can increase and decrease this value to your liking.
● Bar Anchor
The bar anchor controls where lines start. Default is “lastbar”.
Lastbar sets the start of lines to the last bar of the chart. This provides a very clean chart without lines crossing bars to the left.
With Origin as bar anchor all lines start at the bar of origin which is when the line gets calculated. I.e. daily pivot levels lines will start at the beginning of the day while hourly levels will start at the beginning of a new hour.
● Label Distance Divisor
This setting is used to calculate the minimum vertical distance of labels in means of price points. The internal formular takes the day close price and divides it by the number entered in this field. If i.e. the daily closing price was 5000 the minimum vertical distance would become 1 price point if you enter 5000 for this setting. If the price difference of two events would then be less than 1 the labels would be positioned higher and lower to prevent overlapping. Change the divisor to your likings or as needed to set the trigger for repositioning labels.
● Distance Modifier
This setting is used to control the vertical shift of the label. The default of Zero disables the setting and activates an internal function which makes a decision based on the used timeframe on the chart (0.1 less than m30, 0.5 from m30 to h4, 0.75 above h4 and 1 for daily). The logic takes the minimum vertical distance and multiplies it by the distance modifier.
In the example above for the label distance divisor a label would shift by 0.5 price points on a 30 minute chart if two lines trigger the minimum vertical distance. On the upper line the label moves up and on the lower line it moves down. If three lines are too close to each other the label in the middle does not get moved. If more lines break the minimum distance some labels will overlap until the price is advancing.
Labels with equal price will get lined up (stacked) horizontally.
While this cosmetical corrections have limits overlapping can be reduced to a minimum.
● Show Price
Choose to display the price in front of a label. The price will be displayed by default.
● Enable Tooltip
If you decide to hide the price on the label it can be useful to get this information in a tooltip while hovering with the mouse over the label. On the contrary it might become annoying with labels popping up if you have a nervous mouse finger. The feature is disabled by default.
● Equalize Label Size
The size of labels is one of the most discussed issues. Some say it is too small other say it is too big. Label size matters on different devices. “Normal” labels can be too large on a smartphone and to small on a 4k display. And the size is crucial for the automatic horizontal stacking of labels. You simply can’t line up a small, normal and large label in Pine Script (the programming language at TradingView). The stacking is done by prepending labels with spaces to shift them to the right.
This setting overloads all individual size settings for labels and activates the automatic horizontal stacking of labels with equal price. It is a convenient way to change the size of all labels with one click in case you have different layouts for different devices.
If you disable this feature you can set the label size individually but you lose the horizontal stacking. This can be useful for traders who display only a few price events or for educational purpose where you want to point out a special event.
— AVERAGE PRICE
Because we do not have access to the order book we don’t know about the true equilibrium, which is the price where supply and demand is equal. Therefore the indicator displays the average price of the current and past day. Some people call this the poor or weak equilibrium. By default this feature is enabled.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line, the label and text color as well as the size of the text.
— PIVOTLEVELS
● Timeframe
By default the setting follows my (BullNet) logic. In timeframes below 30 minute the indicator will display the hourly pivot levels. In timeframes between 30 minutes and one day you will see the daily pivot levels. Above daily timeframe you get the pivot levels of the chosen timeframe. If you don’t like it you can change this setting to always show the pivot level of the timeframe.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line, the label and text color as well as the size of the text.
— MOVING AVERAGE
● Timeframe
By default the setting follows my (BullNet) logic. In timeframes below 30 minute the indicator will display the hourly moving averages. In timeframes between 30 minutes and one day you will see the daily moving averages. Above daily timeframe you get the moving averages of the chosen timeframe. If you don’t like it you can change this setting to always show the moving averages of the timeframe.
You can display up to four moving averages in parallel on the chart. By default all four are enabled to display the EMA 20, 50 ,100 and 200 as plain price level to the right of the last bar. Feel free to customize all settings to your liking or needs.
Each of the four moving averages has the same options, which are:
● Plot
If enabled the moving average will be drawn as a stepped curve on the chart. Although this is what most people expect from displaying a moving average it is disabled by default to keep the chart clean and follow the look and feel of all my other indicators. In my opinion a moving average is just another level of interest and as long as two moving averages are not in danger to cross each other (death cross, white cross) there is no need to fill the chart with additional noise. Once two important moving averages narrow to each other you can change this settings to plot the curves to be able to estimate the point they might cross.
● Plain
This setting is enabled by default and draws the moving average like a pivot level with a line at the current moving average price and a label showing the details you have chosen in the label cosmetics section. The chart keeps clean and you can perfectly determine the support and resistance level of the moving average.
● MA Type
You can choose between EMA and SMA. By default EMA is enabled.
● Length
In this field you enter the length of the moving average, which is the amount of bars used to calculate it.
● Line
● Style
● Label
● Text
● Size
With this five settings you control the color and style of the line or curve, the label and text color as well as the size of the text.
— DISPLAY OPTIONS
● 2 Decimals
To streamline the appearance of prices they are set to display two decimals only. Numbers get rounded! However, trading currency pairs or crypto assets might need to display the full amount of decimals. In this case simply disable the setting “2 Decimals”.
█ DIVERGENCE
- The system checks for divergences on each candle between the current price and the values of the last 10 pivot points for the selected indicators.
- Divergences are searched for across the chosen indicators, such as RSI, MACD, MACD Histogram, Stochastic, CCI, Momentum, MFI, OBV, VWMACD, CMF, and any external indicators.
- It looks for divergences within the last 100 bars based on the 10 pivot points for each indicator.
- **Types of Divergences:**
- Regular Positive Divergence
- Regular Negative Divergence
- Hidden Positive Divergence
- Hidden Negative Divergence
- For **Positive Divergence**, the system first checks if the current closing price is higher than the previous closing price and if the indicator value is higher than the previous one. If both conditions are true, it starts searching for a divergence.
- For **Negative Divergence**, it first checks if the current closing price is lower than the previous closing price and if the indicator value is also lower than the previous value. If these conditions hold, it starts looking for a divergence.
█ Settings:
- Pivot Period: You can set the pivot period to any value you prefer. You can also view the pivot points by enabling the "Show Pivot Points" option.
- Source for Pivot Points: Choose whether you want to use the Close ore High, or Low as the source for the pivot points.
- Divergence Type: Select the type of divergence to display, including "Regular," "Hidden," or "Regular/Hidden."
- Show Indicator Names: You can choose to display the full indicator names, only their first letter, or not show them at all.
- Show Divergence Number: This option allows you to display the number of indicators showing divergence.
- Show Only Last Divergence: If enabled, this option will only show the most recent positive and negative divergences.
- External Indicator Integration: You can include external indicators for divergence detection. To do this, enable the "Check External Indicator" option and select the external indicator from the list. The external indicator will be displayed as "Extrn." The relevant external indicator must be added before enabling this option.
Customization Options:
- Adjust the colors, line width, and line style for different types of divergences.
Alerts:
The following alerts are available:
- Positive Regular Divergence Detected
- Negative Regular Divergence Detected
- Positive Hidden Divergence Detected
- Negative Hidden Divergence Detected
█ HH HL LL LH
This indicator is a powerful tool, and I’m excited to explain how it works. It identifies Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL), which represent trend structure points on the chart.
Higher Highs, Higher Lows, Lower Highs, and Lower Lows:
For those who find it difficult to identify these points, this indicator can be extremely helpful. By showing HH and HL in sequence, it helps identify an uptrend. When the trend weakens, the indicator will highlight a LH, signaling that the trend might be losing strength. For a downtrend, the indicator shows LH and LL in sequence, and when the trend weakens, it will show HL, indicating a potential reversal.
This indicator is also great for drawing trend lines. For example, it can help you draw a trend line in an uptrend by connecting the LL of the first candle to the HL of the second candle. Similarly, for a downtrend, the trend line can be drawn by connecting the HH to the LH.
These HH, HL, LH, and LL points can also be used to place stop losses, which will be explained later in the stop loss section.
Label Color Changes Based on RSI:
An important feature is that the **HH** and **LL** labels change color based on the RSI indicator. When the RSI is overbought, the **HH** label will change to a specific color (e.g., red), signaling a potential reversal or weakness in the uptrend. Similarly, when the RSI is oversold, the **LL** label will change to another color (e.g., green), indicating a potential reversal in the downtrend. This adds an additional layer of insight, helping to identify potential exhaustion points in the market.
DT, DB, and EQH/EQL:
Additionally, the **DT** (Double Top), **DB** (Double Bottom), and **EQH/EQL** (Equal High/Equal Low) patterns are displayed by the indicator to help identify significant reversal patterns, making it even more effective for trend analysis and decision-making.
You can change the Color, the Line Width and the Line Style under the
“EQH/EQL OPTIONS”.
Under the section “PATTERN OPTIONS” you can enable the function to visualize the EQH/EQL
-------------------------------------------------------
Disclaimer BullNet : The information provided in this document is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Any use of the content is at your own risk. No liability is assumed for any losses or damages resulting from reliance on this information. Trading financial instruments involves significant risks, including the potential loss of all invested capital. There is no guarantee of profits or specific outcomes. Please conduct your own research and consult a professional financial advisor if needed.
Disclaimer TradingView: According to the www.tradingview.com
Copyright: 2025-BULLNET - All rights reserved.
Roadmap:
Version 1.0 04.03.2025
ترکیب اندیکاتورها برای سیگنالهای پیشرفته//@version=5
indicator("ترکیب اندیکاتورها برای سیگنالهای پیشرفته", overlay=true)
// تنظیمات پارامترهای اندیکاتورها
fast_length = input.int(9, title="طول دوره MA سریع")
slow_length = input.int(21, title="طول دوره MA کند")
rsi_length = input.int(14, title="طول دوره RSI")
macd_fast_length = input.int(12, title="طول دوره MACD سریع")
macd_slow_length = input.int(26, title="طول دوره MACD کند")
macd_signal_length = input.int(9, title="طول دوره سیگنال MACD")
// محاسبه میانگینهای متحرک
fast_ma = ta.sma(close, fast_length)
slow_ma = ta.sma(close, slow_length)
// محاسبه RSI
rsi = ta.rsi(close, rsi_length)
// محاسبه MACD
= ta.macd(close, macd_fast_length, macd_slow_length, macd_signal_length)
// شرایط برای سیگنالها
buy_condition = (ta.crossover(fast_ma, slow_ma)) and (rsi < 30) and (macd_line > signal_line)
sell_condition = (ta.crossunder(fast_ma, slow_ma)) and (rsi > 70) and (macd_line < signal_line)
// نمایش سیگنالها روی نمودار
plotshape(series=buy_condition, title="سیگنال خرید", location=location.belowbar, color=color.green, style=shape.labelup, text="خرید")
plotshape(series=sell_condition, title="سیگنال فروش", location=location.abovebar, color=color.red, style=shape.labeldown, text="فروش")
// هشدارها برای سیگنالها
alertcondition(buy_condition, title="سیگنال خرید", message="سیگنال خرید ایجاد شد!")
alertcondition(sell_condition, title="سیگنال فروش", message="سیگنال فروش ایجاد شد!")
EMA 200 Price Deviation AlertsThis script is written in Pine Script v5 and is designed to monitor the difference between the current price and its 200-period Exponential Moving Average (EMA). Here’s a quick summary:
200 EMA Calculation: It calculates the 200-period EMA of the closing prices.
Threshold Input: Users can set a threshold (default is 65) that determines when an alert should be triggered.
Price Difference Calculation: The script computes the absolute difference between the current price and the 200 EMA.
Alert Condition: If the price deviates from the 200 EMA by more than the specified threshold, an alert condition is activated.
Visual Aids: The 200 EMA is plotted on the chart for reference, and directional arrows are drawn:
A sell arrow appears above the bar when the price is above the EMA.
A buy arrow appears below the bar when the price is below the EMA.
This setup helps traders visually and programmatically identify significant price movements relative to a key moving average.
Enhanced BarUpDn StrategyEnhanced BarUpDn Strategy
The Enhanced BarUpDn Strategy is a refined price action-based trading approach that identifies market trends and reversals using bar formations. It focuses on detecting bullish and bearish momentum by analyzing consecutive price bars and key support/resistance levels.
Key Features:
✅ Trend Confirmation – Uses a combination of bar patterns and indicators (e.g., moving averages, RSI) to confirm momentum shifts.
✅ Entry Signals – A buy signal is triggered when an "Up Bar" (higher high, higher low) follows a bullish setup; a sell signal when a "Down Bar" (lower high, lower low) confirms bearish momentum.
✅ Enhanced Filters – Incorporates volume analysis and additional conditions to reduce false signals.
✅ Stop-Loss & Risk Management – Uses recent swing highs/lows for stop placement and dynamic trailing stops for maximizing gains.
MACD Divergence all in oneMACD Divergence all in one
It can also be named as MACD dual divergence detector pro !
A sophisticated yet user-friendly tool designed to identify both bullish and bearish divergences using the MACD (Moving Average Convergence Divergence) indicator. This advanced script helps traders spot potential trend reversals by detecting hidden momentum shifts in the market, offering a comprehensive solution for divergence trading.
🎯 Key Features:
• Automatic detection of bullish and bearish divergences
• Clear visual signals with color-coded lines (Green for bullish, Red for bearish)
• Smart filtering system to eliminate false signals
• Customizable parameters to match your trading style
• Clean, uncluttered chart presentation
• Optimized performance for real-time analysis
• Easy-to-read labels showing divergence types
• Built-in signal spacing to avoid clustering
📊 How it works:
The indicator uses an advanced algorithm to analyze the relationship between price action and MACD momentum to identify:
Bullish Divergences:
- Price makes higher lows while MACD shows lower lows
- Signals potential trend reversal from bearish to bullish
- Marked with green lines and upward labels
Bearish Divergences:
- Price makes lower highs while MACD shows higher highs
- Signals potential trend reversal from bullish to bearish
- Marked with red lines and downward labels
⚙️ Customizable Settings:
1. MACD Parameters:
- Fast Length (default: 12)
- Slow Length (default: 26)
- Signal Length (default: 9)
2. Divergence Detection:
- Left/Right Pivot Bars
- Divergence Lookback Period
- Minimum/Maximum Divergence Length
- Divergence Strength Filter
3. Visual Settings:
- Clear color coding for easy identification
- Adjustable line thickness
- Customizable label size
💡 Best Practices:
- Most effective on higher timeframes (1H, 4H, Daily)
- Combine with support/resistance levels
- Use with trend lines and price action
- Consider volume confirmation
- Best results during trending markets
- Use appropriate stop-loss levels
🎓 Trading Tips:
1. Look for bullish divergences near support levels
2. Watch for bearish divergences near resistance zones
3. Confirm signals with other technical indicators
4. Consider market context and overall trend
5. Use proper position sizing and risk management
⚠️ Important Notes:
- Past performance doesn't guarantee future results
- Always use proper risk management
- Test settings on historical data first
- Different timeframes may require parameter adjustments
- Not all divergences lead to reversals
Created by: Anmol-max-star
Last Updated: 2025-02-25 16:15:08 UTC
📌 Regular updates and improvements planned!
Disclaimer:
This indicator is for informational purposes only. Always conduct your own analysis and use proper risk management techniques. Trading involves risk of loss, and past performance does not guarantee future results.
🤝 Support:
Feel free to leave comments for:
- Suggestions
- Improvements
- Feature requests
- Bug reports
- General feedback
Your feedback helps make this tool better for everyone!
Happy Trading and May the Trends Be With You! 📈
Bar Color - Moving Average Convergence Divergence [nsen]The Pine Script you've provided creates a custom indicator that utilizes the MACD (Moving Average Convergence Divergence) and displays various outputs, such as bar color changes based on MACD signals, and a table of data from multiple timeframes. Here's a breakdown of how the script works:
1. Basic Settings (Input)
• The script defines several user-configurable parameters, such as the MACD values, bar colors, the length of the EMA (Exponential Moving Average) periods, and signal smoothing.
• Users can also choose timeframes to analyze the MACD values, like 5 minutes, 15 minutes, 1 hour, 4 hours, and 1 day.
2. MACD Calculation
• It uses the EMA of the close price to calculate the MACD value, with fast_length and slow_length representing the fast and slow periods. The signal_length is used to calculate the Signal Line.
• The MACD value is the difference between the fast and slow EMA, and the Signal Line is the EMA of the MACD.
• The Histogram is the difference between the MACD and the Signal Line.
3. Plotting the Histogram
• The Histogram values are plotted with colors that change based on the value. If the Histogram is positive (rising), it is colored differently than if it's negative (falling). The colors are determined by the user inputs, for example, green for bullish (positive) signals and red for bearish (negative) signals.
4. Bar Coloring
• The bar color changes based on the MACD's bullish or bearish signal. If the MACD is bullish (MACD > Signal), the bar color will change to the color defined for bullish signals, and if it's bearish (MACD < Signal), the bar color will change to the color defined for bearish signals.
5. Multi-Timeframe Data Table
• The script includes a table displaying the MACD trend for different timeframes (e.g., 5m, 15m, 1h, 4h, 1d).
• Each timeframe will show a colored indicator: green (🟩) for bullish and red (🟥) for bearish, with the background color changing based on the trend.
6. Alerts
• The script has alert conditions to notify the user when the MACD shows a bullish or bearish entry:
• Bullish Entry: When the MACD turns bullish (crosses above the Signal Line).
• Bearish Entry: When the MACD turns bearish (crosses below the Signal Line).
• Alerts are triggered with custom messages such as "🟩 MACD Bullish Entry" and "🟥 MACD Bearish Entry."
Key Features:
• Customizable Inputs: Users can adjust the MACD settings, histogram colors, and timeframe options.
• Visual Feedback: The color changes of the histogram and bars provide instant visual cues for bullish or bearish trends.
• Multi-Timeframe Analysis: The table shows the MACD trend across multiple timeframes, helping traders monitor trends in different timeframes.
• Alert Conditions: Alerts notify users when key MACD crossovers occur.
Ultimate Trading BotHow the "Ultimate Trading Bot" Works:
This Pine Script trading bot executes buy and sell trades based on a combination of technical indicators:
Indicators Used:
RSI (Relative Strength Index)
Measures momentum and determines overbought (70) and oversold (30) levels.
A crossover above 30 suggests a potential buy, and a cross below 70 suggests a potential sell.
Moving Average (MA)
A simple moving average (SMA) of 50 periods to track the trend.
Prices above the MA indicate an uptrend, while prices below indicate a downtrend.
Stochastic Oscillator (%K and %D)
Identifies overbought and oversold conditions using a smoothed stochastic formula.
A crossover of %K above %D signals a buy, and a crossover below %D signals a sell.
MACD (Moving Average Convergence Divergence)
Uses a 12-period fast EMA and a 26-period slow EMA, with a 9-period signal line.
A crossover of MACD above the signal line suggests a bullish move, and a cross below suggests bearish movement.
Trade Execution:
Buy (Long Entry) Conditions:
RSI crosses above 30 (indicating recovery from an oversold state).
The closing price is above the 50-period moving average (showing an uptrend).
The MACD line crosses above the signal line (indicating upward momentum).
The Stochastic %K crosses above %D (indicating bullish momentum).
→ If all conditions are met, the bot enters a long (buy) position.
Sell (Exit Trade) Conditions:
RSI crosses below 70 (indicating overbought conditions).
The closing price is below the 50-period moving average (downtrend).
The MACD line crosses below the signal line (bearish signal).
The Stochastic %K crosses below %D (bearish momentum).
→ If all conditions are met, the bot closes the long position.
Visuals:
The bot plots the moving average, RSI, MACD, and Stochastic indicators for reference.
It also displays buy/sell signals with arrows:
Green arrow (Buy Signal) → When all buy conditions are met.
Red arrow (Sell Signal) → When all sell conditions are met.
How to Use It in TradingView:
Sniper TradingSniper Trader Indicator Overview
Sniper Trader is a comprehensive trading indicator designed to assist traders by providing valuable insights and alerting them to key market conditions. The indicator combines several technical analysis tools and provides customizable inputs for different strategies and needs.
Here’s a detailed breakdown of all the components and their functions in the Sniper Trader indicator:
1. MACD (Moving Average Convergence Divergence)
The MACD is a trend-following momentum indicator that helps determine the strength and direction of the current trend. It consists of two lines:
MACD Line (Blue): Calculated by subtracting the long-term EMA (Exponential Moving Average) from the short-term EMA.
Signal Line (Red): The EMA of the MACD line, typically set to 9 periods.
What does it do?
Buy Signal: When the MACD line crosses above the signal line, it generates a buy signal.
Sell Signal: When the MACD line crosses below the signal line, it generates a sell signal.
Zero Line Crossings: Alerts are triggered when the MACD line crosses above or below the zero line.
2. RSI (Relative Strength Index)
The RSI is a momentum oscillator used to identify overbought or oversold conditions in the market.
Overbought Level (Red): The level above which the market might be considered overbought, typically set to 70.
Oversold Level (Green): The level below which the market might be considered oversold, typically set to 30.
What does it do?
Overbought Signal: When the RSI crosses above the overbought level, it’s considered a signal that the asset may be overbought.
Oversold Signal: When the RSI crosses below the oversold level, it’s considered a signal that the asset may be oversold.
3. ATR (Average True Range)
The ATR is a volatility indicator that measures the degree of price movement over a specific period (14 bars in this case). It provides insights into how volatile the market is.
What does it do?
The ATR value is plotted on the chart and provides a reference for potential market volatility. It's used to detect flat zones, where the price may not be moving significantly, potentially indicating a lack of trends.
4. Support and Resistance Zones
The Support and Resistance Zones are drawn by identifying key swing highs and lows over a user-defined look-back period.
Support Zone (Green): Identifies areas where the price has previously bounced upwards.
Resistance Zone (Red): Identifies areas where the price has previously been rejected or reversed.
What does it do?
The indicator uses swing highs and lows to define support and resistance zones and highlights these areas on the chart. This helps traders identify potential price reversal points.
5. Alarm Time
The Alarm Time feature allows you to set a custom time for the indicator to trigger an alarm. The time is based on Eastern Time and can be adjusted directly in the inputs tab.
What does it do?
It triggers an alert at a user-defined time (for example, 4 PM Eastern Time), helping traders close positions or take specific actions at a set time.
6. Market Condition Display
The Market Condition Display shows whether the market is in a Bullish, Bearish, or Flat state based on the MACD line’s position relative to the signal line.
Bullish (Green): The market is in an uptrend.
Bearish (Red): The market is in a downtrend.
Flat (Yellow): The market is in a range or consolidation phase.
7. Table for Key Information
The indicator includes a customizable table that displays the current market condition (Bull, Bear, Flat). The table is placed at a user-defined location (top-left, top-right, bottom-left, bottom-right), and the appearance of the table can be adjusted for text size and color.
8. Background Highlighting
Bullish Reversal: When the MACD line crosses above the signal line, the background is shaded green to highlight the potential for a trend reversal to the upside.
Bearish Reversal: When the MACD line crosses below the signal line, the background is shaded red to highlight the potential for a trend reversal to the downside.
Flat Zone: A flat zone is identified when volatility is low (ATR is below the average), and the background is shaded orange to signal periods of low market movement.
Key Features:
Customizable Time Inputs: Adjust the alarm time based on your local time zone.
User-Friendly Table: Easily view market conditions and adjust display settings.
Comprehensive Alerts: Receive alerts for MACD crossovers, RSI overbought/oversold conditions, flat zones, and the custom alarm time.
Support and Resistance Zones: Drawn automatically based on historical price action.
Trend and Momentum Indicators: Utilize the MACD and RSI for identifying trends and market conditions.
How to Use Sniper Trader:
Set Your Custom Time: Adjust the alarm time to match your trading schedule.
Monitor Market Conditions: Check the table for real-time market condition updates.
Use MACD and RSI Signals: Watch for MACD crossovers and RSI overbought/oversold signals.
Watch for Key Zones: Pay attention to the support and resistance zones and background highlights to identify market turning points.
Set Alerts: Use the built-in alerts to notify you of buy/sell signals or when it’s time to take action at your custom alarm time.
MACD+RSI Indicator Moving Average Convergence/Divergence or MACD is a momentum indicator that shows the relationship between two Exponential Moving Averages (EMAs) of a stock price. Convergence happens when two moving averages move toward one another, while divergence occurs when the moving averages move away from each other. This indicator also helps traders to know whether the stock is being extensively bought or sold. Its ability to identify and assess short-term price movements makes this indicator quite useful.
The Moving Average Convergence/Divergence indicator was invented by Gerald Appel in 1979.
Moving Average Convergence/Divergence is calculated using a 12-day EMA and 26-day EMA. It is important to note that both the EMAs are based on closing prices. The convergence and divergence (CD) values have to be calculated first. The CD value is calculated by subtracting the 26-day EMA from the 12-day EMA.
---------------------------------------------------------------------------------------------------------------------
The relative strength index (RSI) is a momentum indicator used in technical analysis. RSI measures the speed and magnitude of a security's recent price changes to detect overbought or oversold conditions in the price of that security.
The RSI is displayed as an oscillator (a line graph) on a scale of zero to 100. The indicator was developed by J. Welles Wilder Jr. and introduced in his seminal 1978 book, New Concepts in Technical Trading Systems.
In addition to identifying overbought and oversold securities, the RSI can also indicate securities that may be primed for a trend reversal or a corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought condition. A reading of 30 or below indicates an oversold condition.
---------------------------------------------------------------------------------------------------------------------
By combining them, you can create a MACD/RSI strategy. You can go ahead and search for MACD/RSI strategy on any social platform. It is so powerful that it is the most used indicator in TradingView. It is best for trending market. Our indicator literally let you customize MACD/RSI settings. Explore our indicator by applying to your chart and start trading now!
MACD Volume Strategy for XAUUSD (15m) [PineIndicators]The MACD Volume Strategy is a momentum-based trading system designed for XAUUSD on the 15-minute timeframe. It integrates two key market indicators: the Moving Average Convergence Divergence (MACD) and a volume-based oscillator to identify strong trend shifts and confirm trade opportunities. This strategy uses dynamic position sizing, incorporates leverage customization, and applies structured entry and exit conditions to improve risk management.
⚙️ Core Strategy Components
1️⃣ Volume-Based Momentum Calculation
The strategy includes a custom volume oscillator to filter trade signals based on market activity. The oscillator is derived from the difference between short-term and long-term volume trends using Exponential Moving Averages (EMAs)
Short EMA (default = 5) represents recent volume activity.
Long EMA (default = 8) captures broader volume trends.
Positive values indicate rising volume, supporting momentum-based trades.
Negative values suggest weak market activity, reducing signal reliability.
By requiring positive oscillator values, the strategy ensures momentum confirmation before entering trades.
2️⃣ MACD Trend Confirmation
The strategy uses the MACD indicator as a trend filter. The MACD is calculated as:
Fast EMA (16-period) detects short-term price trends.
Slow EMA (26-period) smooths out price fluctuations to define the overall trend.
Signal Line (9-period EMA) helps identify crossovers, signaling potential trend shifts.
Histogram (MACD – Signal) visualizes trend strength.
The system generates trade signals based on MACD crossovers around the zero line, confirming bullish or bearish trend shifts.
📌 Trade Logic & Conditions
🔹 Long Entry Conditions
A buy signal is triggered when all the following conditions are met:
✅ MACD crosses above 0, signaling bullish momentum.
✅ Volume oscillator is positive, confirming increased trading activity.
✅ Current volume is at least 50% of the previous candle’s volume, ensuring market participation.
🔻 Short Entry Conditions
A sell signal is generated when:
✅ MACD crosses below 0, indicating bearish momentum.
✅ Volume oscillator is positive, ensuring market activity is sufficient.
✅ Current volume is less than 50% of the previous candle’s volume, showing decreasing participation.
This multi-factor approach filters out weak or false signals, ensuring that trades align with both momentum and volume dynamics.
📏 Position Sizing & Leverage
Dynamic Position Calculation:
Qty = strategy.equity × leverage / close price
Leverage: Customizable (default = 1x), allowing traders to adjust risk exposure.
Adaptive Sizing: The strategy scales position sizes based on account equity and market price.
Slippage & Commission: Built-in slippage (2 points) and commission (0.01%) settings provide realistic backtesting results.
This ensures efficient capital allocation, preventing overexposure in volatile conditions.
🎯 Trade Management & Exits
Take Profit & Stop Loss Mechanism
Each position includes predefined profit and loss targets:
Take Profit: +10% of risk amount.
Stop Loss: Fixed at 10,100 points.
The risk-reward ratio remains balanced, aiming for controlled drawdowns while maximizing trade potential.
Visual Trade Tracking
To improve trade analysis, the strategy includes:
📌 Trade Markers:
"Buy" label when a long position opens.
"Close" label when a position exits.
📌 Trade History Boxes:
Green for profitable trades.
Red for losing trades.
📌 Horizontal Trade Lines:
Shows entry and exit prices.
Helps identify trend movements over multiple trades.
This structured visualization allows traders to analyze past performance directly on the chart.
⚡ How to Use This Strategy
1️⃣ Apply the script to a XAUUSD (Gold) 15m chart in TradingView.
2️⃣ Adjust leverage settings as needed.
3️⃣ Enable backtesting to assess past performance.
4️⃣ Monitor volume and MACD conditions to understand trade triggers.
5️⃣ Use the visual trade markers to review historical performance.
The MACD Volume Strategy is designed for short-term trading, aiming to capture momentum-driven opportunities while filtering out weak signals using volume confirmation.
TTC EMA Scalping Machine with RSI Filter and MACDTTC EMA Scalping Machine with RSI Filter and MACD
TTC EMA Scalping Machine with RSI Filter and MACD is a multi-layered technical analysis tool designed for traders looking to scalp the markets with a combination of trend-following and momentum-based indicators. This strategy leverages Exponential Moving Averages (EMAs) , Relative Strength Index (RSI) , MACD , and Volume Analysis to help traders identify high-probability entry points for short and long trades. The indicator can be used in multiple market conditions and is suited for both beginners and experienced traders looking for clear entry signals.
---
Key Features :
1. EMA-Based Trend Filtering :
- The indicator uses four Exponential Moving Averages (EMAs) with different periods:
- EMA 10 (Short-Term) : The fastest-moving average for detecting quick price movements.
- EMA 20 (Medium-Term) : A central trendline for market momentum.
- EMA 30 (Long-Term) : To observe broader market trends.
- EMA 50 (Longest-Term) : To identify the overall market direction.
- These EMAs are plotted on the chart and used to create EMA bands , visually displaying potential support and resistance levels. Price action inside these bands helps identify scalping opportunities.
2. RSI Filter :
- RSI (Relative Strength Index) is used to gauge overbought and oversold conditions in the market:
- Overbought condition (RSI > 70) : The market may be overextended, signaling the possibility of a short.
- Oversold condition (RSI < 30) : The market may be undervalued, signaling the possibility of a long.
- The RSI filter ensures that trades are not taken when the market is overextended, offering a more conservative approach to trade entries.
3. MACD Momentum Analysis :
- The MACD (Moving Average Convergence Divergence) indicator is included to confirm the trend and momentum direction:
- Long Condition : The MACD line crosses above the signal line, confirming a bullish momentum.
- Short Condition : The MACD line crosses below the signal line, confirming a bearish momentum.
- This serves as an additional filter to verify if the market momentum aligns with the long or short entry criteria.
4. Long Entry (Buy Signal) :
- A long entry signal is triggered when the following conditions are met:
- The price is above EMA 20 (indicating an overall bullish market).
- The price is within the green EMA band (EMA 10 and EMA 20), suggesting short-term support.
- The RSI is below 70 (indicating the market is not overbought).
- The MACD line is above the signal line , showing bullish momentum.
- These conditions combined suggest an ideal environment for entering a long position.
5. Short Entry (Sell Signal) :
- A short entry signal is triggered when the following conditions are met:
- The price is below EMA 20 (indicating an overall bearish market).
- The price is within the green EMA band (EMA 20 and EMA 30), suggesting short-term resistance.
- The RSI is above 30 (indicating the market is not oversold).
- The MACD line is below the signal line , showing bearish momentum.
- These conditions combined suggest an ideal environment for entering a short position.
6. Signal Alerts :
- Long Alerts : Users can set alerts to notify them when a long condition is met. These alerts are triggered when all the criteria for a long entry are satisfied.
- Short Alerts : Similarly, users can set alerts for short signals, notifying them when all the conditions for a short entry are satisfied.
7. EMA Bands :
- The EMA bands are visually represented with colored fills between the EMAs, providing a visual aid to recognize potential trading zones. These zones can serve as a reference for traders to make quick decisions regarding entries and exits.
8. Volume Filter :
- The indicator also includes a volume filter , which compares the current volume to its 20-period simple moving average. Higher volumes provide confirmation of price movement, which can indicate stronger potential for the trade.
---
How It Works :
- Long Trades : The indicator suggests a long position when the price is above the EMA 20, within the green EMA band, the RSI is not overbought, and MACD confirms bullish momentum (MACD line above the signal line).
- Short Trades : The indicator suggests a short position when the price is below the EMA 20, within the green EMA band, the RSI is not oversold, and MACD confirms bearish momentum (MACD line below the signal line).
- Volume Confirmation : The indicator uses a volume-based filter to ensure the trade is backed by sufficient market participation.
---
Usage :
- Best for Scalping : This strategy is designed for short-term trades ( scalping ) and can be applied to any time frame, though it works best on intraday charts, such as 5-minute or 15-minute charts.
- Ideal for Trend-Following : With the use of EMAs and MACD, the strategy is best suited for markets that exhibit clear trends. It helps to avoid whipsaw trades and focuses on capturing medium-term trends.
- Risk Management : By using RSI, MACD, and volume analysis together, this strategy reduces the likelihood of entering a trade in an overextended market, which helps with risk management.
---
Alerts and Signals :
- Long Signals : When all conditions are met for a long trade, a green label appears below the price bar, indicating a potential buy opportunity. An alert is also generated, notifying the user.
- Short Signals : When all conditions are met for a short trade, a red label appears above the price bar, indicating a potential sell opportunity. An alert is also generated, notifying the user.
---
This combination of EMA , RSI , MACD , and volume-based filters creates a balanced approach to scalping, ensuring that traders receive clear, actionable entry signals with trend confirmation, while avoiding overbought and oversold conditions that may lead to false signals. The indicator is designed to help traders confidently identify high-probability trades while maintaining simplicity and clarity in its setup.
MACD+ Divergences [CryptoSmart] By IgnotusIndicator Description: MACD+ Divergence
---
Overview
The MACD+ Divergence is an enhanced version of the classic MACD (Moving Average Convergence Divergence) indicator, meticulously crafted by CryptoSmart. This proprietary tool integrates advanced divergence detection, Top Dog Trading MOM (Momentum) and DAD (Direction as Decision) variations, and unique background shading to provide traders with a comprehensive view of market momentum, trend direction, and potential reversals.
This indicator is not just a standard MACD; it incorporates a unique configuration aligned with a proprietary trading strategy developed by CryptoSmart. Its settings and code are restricted to preserve the integrity and effectiveness of the strategy. Traders can leverage this powerful tool to identify high-probability trade setups without constantly monitoring the charts.
---
Key Features
- Proprietary MACD Calculation:
- MACD line calculated using user-defined fast, slow, and signal lengths.
- Supports both Exponential Moving Averages (EMA) and Simple Moving Averages (SMA).
- Includes optimized settings for Top Dog Trading MOM and DAD variations for structured momentum and directional analysis.
- Dynamic Coloring:
- MACD histogram changes color dynamically based on its direction and position relative to the zero line:
- Green/Lime: Increasing momentum above the zero line.
- Red/Maroon: Decreasing momentum below the zero line.
- MACD line and signal line adapt their colors to reflect directional trends.
- Background Shading:
- Background color highlights key conditions:
- Lime: Bullish momentum or upward DAD direction.
- Red: Bearish momentum or downward DAD direction.
- Provides an intuitive visual cue for market sentiment.
- Advanced Divergence Detection:
- Identifies regular and hidden divergences in:
- MACD Histogram.
- MACD Line.
- MOM (Momentum).
- DAD (Direction as Decision).
- Regular divergences indicate potential trend reversals, while hidden divergences suggest trend continuation.
- Divergences are plotted as lines and labeled with clear markers (`R` for regular and `H` for hidden).
- Customizable Inputs:
- Enable or disable specific features, such as:
- Displaying regular or hidden divergences.
- Showing divergence labels.
- Using Top Dog Trading MOM and DAD variations.
- Adjustable offset for divergence markers ensures realistic entry points.
- Comprehensive Alert System:
- Alerts notify traders of key events, including:
- MACD line crossing the signal line.
- Divergence formations (regular and hidden).
- Changes in DAD direction (upward or downward).
- Alerts ensure traders don’t miss critical trading opportunities.
- Unique Configuration:
- Built with a proprietary configuration integrating a proven trading strategy.
- Parameters and logic are fine-tuned to deliver precise signals.
- Restricted code ensures alignment with the proprietary strategy.
- Aesthetic Enhancements:
- Clean and professional design with customizable colors and line styles.
- Optional histogram outlines for better visibility.
---
How It Works
1. MACD Calculation:
- MACD line = Difference between fast and slow moving averages.
- Signal line = Smoothed version of the MACD line.
- Histogram = Difference between the MACD line and signal line.
2. Divergence Logic:
- Fractals identify local highs and lows in the MACD histogram, MACD line, MOM, and DAD.
- Regular divergences occur when price makes a higher high/lower low, but the MACD indicator does not confirm the move.
- Hidden divergences occur when price makes a lower high/higher low, but the MACD indicator confirms the trend continuation.
3. Background Shading:
- Background color changes based on the direction of the MACD histogram or DAD line, providing a quick visual reference for market bias.
4. Alerts:
- Alerts trigger when specific conditions are met, such as divergences forming or the MACD line crossing the signal line.
---
Inputs
- Standard MACD Settings:
- Fast Length: Default = 12
- Slow Length: Default = 26
- Signal Smoothing: Default = 9
- Top Dog Trading Settings:
- Fast Length: Default = 5
- Slow Length: Default = 20
- Signal Smoothing: Default = 30
- Visualization Options:
- Enable/Disable Top Dog Trading MOM and DAD.
- Show regular or hidden divergences.
- Display divergence labels.
- Background shading for momentum/direction.
- Offset Adjustment:
- Adjust divergence markers to align with realistic entry points.
---
Usage
- Trend Reversals:
- Use regular divergences to identify potential trend reversals.
- Trend Continuation:
- Use hidden divergences to confirm ongoing trends.
- Entry/Exit Points:
- Combine divergence signals with MACD crossovers for precise entry and exit points.
- Market Sentiment:
- Monitor background shading to gauge overall market bias.
---
Tips for Traders
Combine with Other Indicators:
- Use this indicator alongside support/resistance levels, candlestick patterns, or volume analysis for confirmation.
Adjust Parameters:
- Experiment with different fast, slow, and signal lengths to suit your trading style and timeframe.
Focus on Divergences:
- Pay close attention to divergence signals, as they often precede significant price movements.
Use Alerts:
- Enable alerts to stay informed about key events without constantly monitoring the chart.
---
Why Choose MACD+ Divergence ?
This indicator stands out due to its unique integration of a proprietary trading strategy, ensuring reliable and actionable signals. The inclusion of Top Dog Trading MOM and DAD variations adds precision, while the advanced divergence detection and alert system make it an indispensable tool for traders seeking an edge in the markets.
---
Restrictions
To maintain the integrity and effectiveness of the MACD+ Divergence , its configuration and code are restricted. This ensures alignment with the proprietary strategy developed by CryptoSmart, delivering consistent and accurate results.
---
Conclusion
The **MACD+ Divergence ** is a cutting-edge tool that combines traditional MACD analysis with advanced divergence detection and proprietary enhancements. Its unique configuration and restricted code ensure it remains a powerful and reliable resource for traders. Whether you’re looking for trend reversals, continuations, or overall market sentiment, this indicator provides the insights needed to make informed trading decisions.
---
Disclaimer
This indicator is for educational and informational purposes only. Trading involves risk, and past performance is not indicative of future results. Always conduct your own research and consult with a financial advisor before making trading decisions.
Moneyball EMA-MACD indicator [VinnieTheFish]Summary of the Moneyball EMA-MACD Indicator Script
Author: VinnieTheFish
Purpose:
This indicator helps traders identify trend direction, momentum shifts, and potential trade signals based on EMA and MACD crossovers.
This Pine Script is a custom indicator that combines Exponential Moving Averages (EMAs) and MACD (Moving Average Convergence Divergence) to analyze price trends and momentum. The script uses a custom 9/50 MACD with a 16 smoothing period. The script is written in a way that you can create your own custom MACD settings and create alerts based on those parameters. The chart bars are color coded based on the relative position of the MACD and Signal line primarily for bullish long trade setups.
Bar color coding helps the trader spot potential reversals based on where the price currently resides in relation to the custom 9/50 EMA based MACD and the 16 period smoothing period for the signal line. Indicator also has custom alerts to notify the trader when a potential trade setup exists that correspond with the bar color change.
Question: So why is this called the Moneywell EMA-MACD Indicator?
Answer: In the movie Moneyball the Oakland A's broke down how to win a championship based on data. To make the playoffs you needed so many wins, then broken down by runs and then broken down to base hits. A base hit was good as a walk. With trading often times we look too often for home runs and ignore the importance of getting on base with small wins. This indicator was designed on shorter timeframes to identify those base hits, but can also be adapted to higher timeframes for swing trading.
Key Features:
User Inputs:
Configurable fast and slow lengths for MACD calculation.
Choice between SMA and EMA for oscillator and signal line smoothing.
Customizable signal smoothing length.
EMA Calculation:
Computes 3 EMA, 9 EMA, 20 EMA, and 50 EMA to track short-term and long-term trends.
MACD Calculation:
Computes MACD using either SMA or EMA based on user selection.
Generates the MACD signal line for comparison.
Crossover Conditions:
Detects MACD and Signal line crossovers above and below the zero line.
Identifies price momentum shifts.
Bar Coloring Logic:
Green: MACD is above 0 and above the signal line.
White: MACD is below the signal line.
Orange: MACD is below 0 but above the signal line.
Fuchsia: Bullish EMA 3/9 cross but price is still below the 20/50 EMA.
Alerts for Key Trading Signals:
MACD crossing above/below the zero line.
Signal line crossing above/below the zero line.
MACD reaching new highs/lows.
Alerts for colored bar conditions.