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! 📈
Educational
[TehThomas] - ICT Liquidity sweepsThe ICT Liquidity Sweeps Indicator is designed to track liquidity zones in the market areas where stop-losses and pending orders are typically clustered. This indicator marks buyside liquidity (resistance) and sellside liquidity (support), helping traders identify areas where price is likely to manipulate liquidity before making a significant move.
This tool is based on Inner Circle Trader (ICT) Smart Money Concepts, which emphasize how institutional traders, or “Smart Money,” manipulate liquidity to fuel price movements. By identifying these zones, traders can anticipate liquidity sweeps and position themselves accordingly.
⚙️ How It Works
1️⃣ Detects Key Liquidity Zones
The script automatically identifies significant swing highs and swing lows in price action using a pivot-based method.
A swing high (buyside liquidity) is a peak where price struggles to break higher, forming a resistance level.
A swing low (sellside liquidity) is a valley where price struggles to go lower, creating a support level.
These liquidity points are prime targets for liquidity sweeps before a true trend direction is confirmed.
2️⃣ Draws Liquidity Lines
Once a swing high or low is identified, a horizontal line is drawn at that level.
The lines extend to the right, serving as future liquidity targets until they are broken.
The indicator allows customization in terms of color, line width, and maximum number of liquidity lines displayed at once.
3️⃣ Handles Liquidity Sweeps
When price breaks a liquidity level, the indicator reacts based on the chosen action setting:
Dotted/Dashed: The line remains visible but changes style to indicate a sweep.
Delete: The line is completely removed once price has interacted with it.
This feature ensures that traders can easily spot where liquidity has been taken and determine whether a reversal or continuation is likely.
4️⃣ Prevents Chart Clutter
To maintain a clean chart, the script limits the number of liquidity lines displayed at any given time.
When new liquidity zones are formed, the oldest lines are automatically removed, keeping the focus on the most relevant liquidity zones.
🎯 How to Use the ICT Liquidity Sweeps Indicator
🔍 Identifying Liquidity Grabs
This indicator helps you identify areas where Smart Money is targeting liquidity before making a move.
Buyside Liquidity (BSL) Sweeps:
Occur when price spikes above a resistance level before reversing downward.
Indicate that Smart Money has hunted stop-losses and buy stops before driving price lower.
Sellside Liquidity (SSL) Sweeps:
Occur when price drops below a support level before reversing upward.
Indicate that Smart Money has collected liquidity from stop-losses and sell stops before pushing price higher.
📈 Combining with Market Structure Shifts (MSS)
One of the best ways to use this indicator is in conjunction with our Market Structure Shifts Indicator.
Liquidity sweeps + MSS Confirmation give strong high-probability trade setups:
Wait for a liquidity sweep (price takes out a liquidity level).
Look for an MSS in the opposite direction (e.g., price sweeps a high, then breaks a recent low).
Enter the trade in the new direction with stop-loss above/below the liquidity sweep.
📊 Entry & Exit Strategies
Long Trade Example:
Price sweeps a key sellside liquidity level (SSL) → creates a false breakdown.
MSS confirms a reversal (price breaks structure upwards).
Enter long position after confirmation.
Stop-loss below the liquidity grab to minimize risk.
Short Trade Example:
Price sweeps a key buyside liquidity level (BSL) → takes liquidity above resistance.
MSS confirms a bearish move (price breaks a key support level).
Enter short position after confirmation.
Stop-loss above the liquidity grab.
🚀 Why This Indicator is a Game-Changer
✅ Helps Identify Smart Money Manipulation – Understand where institutions are likely to grab liquidity before the real move happens.
✅ Enhances Market Structure Analysis – When paired with MSS, liquidity sweeps become powerful signals for trend reversals.
✅ Filters Out False Breakouts – Many traders get caught in liquidity grabs. This indicator helps avoid bad entries.
✅ Keeps Your Chart Clean – The auto-limiting feature ensures that only the most relevant liquidity levels remain visible.
✅ Works on Any Timeframe – Whether you’re a scalper, day trader, or swing trader, liquidity concepts apply universally.
📌 Final Thoughts
The ICT Liquidity Sweeps Indicator is a must-have tool for traders who follow Smart Money Concepts. By tracking liquidity levels and highlighting sweeps, it allows traders to enter trades with precision while avoiding false breakouts.
When combined with Market Structure Shifts (MSS), this strategy becomes even more powerful, offering traders an edge in spotting reversals and timing entries effectively.
__________________________________________
Thanks for your support!
If you found this idea helpful or learned something new, drop a like 👍 and leave a comment—I’d love to hear your thoughts! 🚀
Make sure to follow me for more price action insights, free indicators, and trading strategies. Let’s grow and trade smarter together! 📈✨
LineReg Candles with Hma filterOverview
Purpose:
The indicator creates “LinReg Candles” by recalculating OHLC values using linear regression (to smooth out noise) and overlays additional features such as a customizable signal line and an HMA (Hull Moving Average) filter for trend detection. It also plots buy/sell signals and supports alerts.
Customization:
Users can adjust settings for signal smoothing (choosing SMA, EMA, or WMA), HMA periods (preset for Scalping/Intraday or custom values), linear regression length, colors, display options, and alert messages. Inputs are organized into groups for clarity.
Input Definitions
Signal Settings:
signal_length and smoothingType define the period and method used to smooth the close price, creating a signal line.
HMA Filter Settings:
A dropdown (t_type) lets you choose between Scalping, Intraday, or Custom. Based on this, three HMA periods (hma1, hma2, hma3) are set either to fixed values or user-defined custom inputs.
LinReg Settings:
Users can toggle linear regression for OHLC values (lin_reg) and set its period (linreg_length) to reduce price noise.
Color and Display Settings:
These control the colors for buy/sell candles, default bullish/bearish candles, markers, and background highlighting. Display toggles decide whether to show the background, signal line, HMA filter, and the recalculated candles.
Alert and Plot Customization:
Alerts can be enabled with custom messages. Additionally, line width and transparency for the plotted signal and HMA lines are adjustable.
Function Definitions
calcOHLC Function:
Computes OHLC values using linear regression if enabled. Otherwise, it returns the raw price values. This helps in reducing noise.
calcSignalLine Function:
Applies the chosen moving average (SMA, EMA, or WMA) to smooth the recalculated close values and generate a signal line.
getBaseCandleColor Function:
Determines the candle’s base color. It assigns buy/sell colors if specific crossover conditions are met; if not, it defaults to bullish (green) or bearish (red) based on the open/close relationship.
HMA Filter Calculations
HMA Computation:
The script calculates three HMAs (ma1, ma2, ma3) for different periods.
Trend Determination:
It sets a bullish condition (bcn) when ma3 is lower than both ma1 and ma2 with ma1 above ma2. Conversely, a bearish condition (scn) is set when ma3 is higher and the order of the HMAs indicates a downtrend.
Color Coding:
The HMA filter line color changes dynamically (green for bullish, red for bearish) based on these conditions.
Main Calculations
LinReg Candles:
Using the calcOHLC function, the script calculates the new open, high, low, and close values that reduce price noise.
Signal Line:
The signal line is computed on the basis of the smoothed close values using the selected moving average.
Buy/Sell Conditions:
Initial conditions are determined by checking if the recalculated close price crosses over (buy) or under (sell) the signal line.
The base candle color is then adjusted: if the HMA filter confirms the trend (bullish for buy or bearish for sell), the respective buy/sell colors are enforced.
A change in candle color compared to the previous bar triggers a buy or sell signal.
Plotting and Alerts
Visual Elements:
Background: Highlights the chart with a custom color when buy or sell conditions are met.
HMA Filter Line: Plotted (if enabled) with the dynamic color determined earlier.
Candles: The recalculated LinReg candles are drawn with colors based on the combined conditions.
Signal Line: Plotted over the candles with adjustable transparency and width.
Markers: Buy and sell markers are added to visually indicate signal points on the chart.
Alerts:
Alert conditions are set to trigger with predefined messages when a buy or sell signal is generated.
Modularity & Flexibility:
The code is structured with modular functions and clear grouping of inputs, making it highly customizable and user-friendly for open-source TradingView users.
Important how to track the real price on chart:
Locate the Chart Type Menu:
At the top of your TradingView chart, you’ll see a button showing the current chart type (likely a candlestick icon).
Select “Line” from the Dropdown:
Click that button and choose “Line” in the dropdown menu. This changes the main chart to a line chart of the real price.
Screenshots:
Breakout Trend Follower freeFree for all users/for Trading bots/ ALWAYS DYOR before use
Strategy: Enter long when recent swing high breaks out, using recent swing low as stop level. Move stops up as higher lows print to act
as trailing stops. Ride trend as long as it is there and the higher lows aren't breached.
Conditions/Variables
1. Manually configure which dates to back test
2. Can add a filter to only take setups that are above (or below for shorts) user-defined moving average(s) (helps avoid trading counter trend)
3. Can ignore signals that are too extended and not consolidating enough based on ADR and/or RSI.
4. Color background of trades - helps to easily see at a glance if the strategy should be long or not.
// @HannSo1o TG
// @singoslab CIS Comunity in TG
Sessions ForexThis script is made to help myself getting easy access to the key levels that i use
Its based on Lux algos session breaks. But with my own tweaks :)
Volatility Drift [7 Dreams India Official]buy vs sell
buyer vs seller strength
strictly for educational purpose and back testing
Price Action Volume ReversalThis TradingView strategy identifies potential trend reversals using a combination of price action, volume analysis, and reversal patterns. It detects high-probability trade setups by confirming bullish and bearish signals with increased volume.
Key Features:
Volume Confirmation: Uses a dynamic volume threshold (SMA-based) to filter strong price moves.
Engulfing Patterns: Recognizes bullish and bearish engulfing formations that indicate trend shifts.
Pin Bar Detection: Identifies reversal candlesticks (pin bars) to enhance entry precision.
Trade Entries:
Long Entry: When a bullish engulfing or pin bar forms with high volume.
Short Entry: When a bearish engulfing or pin bar forms with high volume.
Visual Signals: Buy and sell signals are plotted directly on the chart for easy identification.
This strategy is designed for traders looking to capitalize on strong momentum shifts and reversal points with volume-backed confirmations.
WEALTH BOOSTER PRO V3This is a Trend following Indicator. The Green Candles indicate Bullish Move & Red Candles Indicate Bearish Move
Bybit Cross Margin Liquidation LevelsJust shows the liquidation levels.
Has NOT been fully tested so use with caution!
Combined Premium Tracker (3 Strikes)The Combined Premium Tracker (3 Strikes) is a TradingView Pine Script indicator that monitors the total premium (Call + Put) of three different ATM option strikes. It applies a 75-period EMA to detect trends and generates buy/sell signals when the combined premium crosses the EMA. The script also provides alerts for potential breakouts and breakdowns, helping traders identify momentum shifts in option pricing.
Astro R4.0Regarding the code that has a significant impact on Pine Community and many feel helped by it, this is the code that I ported from VBA to PineScript which comes from simontelescopium owner of astroexcel dot wordpress dot com and "astrofnc" by Keith Burnett, previously I used it personally but I forgot to give a citation to those who are entitled to them both so that when I shared it for community use and it has been shared by brother @BarefootJoey with the additions made by him personally, there was no citation for them.
Apologies for my negligence because I am only human.
Hopefully with this script it can help the community to see the potential for implementation in the trading world as a significant variable.
Finally, I publish this script as a reference to find out astronomical charts presented in table form to make it easier to visualize and debug as long as the input.timestamp() allow it.
Future updates for optimization using library of brother @BarefootJoey
Thank you.
9:20 AM High-Low & VWAPHigh low of 2nd candle; break the high trade, break the low trade and also check vwap accordingly, you may reconfirm your trade with some other leading indicator like psar etc
Stock Highs TrackerThis indicator tracks key stock price levels including the all-time high (ATH), 52-week high, and current price.
It calculates the percentage difference of the current price from both the ATH and 52-week high.
The data is displayed in a table at the top-right corner of the chart, allowing traders to quickly assess the stock’s performance relative to its historical highs.
This is useful for identifying stocks trading near their highs or experiencing significant pullbacks.
SMC ALGO NSS//@version=5
indicator(title="RSI Divergence Indicator with 200-Day MA", format=format.price, timeframe="", timeframe_gaps=true)
len = input.int(title="RSI Period", minval=1, defval=14)
src = input(title="RSI Source", defval=close)
lbR = input(title="Pivot Lookback Right", defval=5, display = display.data_window)
lbL = input(title="Pivot Lookback Left", defval=5, display = display.data_window)
rangeUpper = input(title="Max of Lookback Range", defval=60, display = display.data_window)
rangeLower = input(title="Min of Lookback Range", defval=5, display = display.data_window)
plotBull = input(title="Plot Bullish", defval=true, display = display.data_window)
plotHiddenBull = input(title="Plot Hidden Bullish", defval=false, display = display.data_window)
plotBear = input(title="Plot Bearish", defval=true, display = display.data_window)
plotHiddenBear = input(title="Plot Hidden Bearish", defval=false, display = display.data_window)
bearColor = color.red
bullColor = color.green
hiddenBullColor = color.new(color.green, 80)
hiddenBearColor = color.new(color.red, 80)
textColor = color.white
noneColor = color.new(color.white, 100)
osc = ta.rsi(src, len)
// 200-Day Moving Average
maLength = 200
sma200 = ta.sma(close, maLength)
// Plotting the RSI
plot(osc, title="RSI", linewidth=2, color=#2962FF)
hline(50, title="Middle Line", color=#787B86, linestyle=hline.style_dotted)
obLevel = hline(70, title="Overbought", color=#787B86, linestyle=hline.style_dotted)
osLevel = hline(30, title="Oversold", color=#787B86, linestyle=hline.style_dotted)
fill(obLevel, osLevel, title="Background", color=color.rgb(33, 150, 243, 90))
// Plotting the 200-Day Moving Average on price chart
plot(sma200, title="200-Day Moving Average", color=color.orange, linewidth=2, style=plot.style_line)
// Functions for detecting pivots and divergences
plFound = na(ta.pivotlow(osc, lbL, lbR)) ? false : true
phFound = na(ta.pivothigh(osc, lbL, lbR)) ? false : true
_inRange(cond) =>
bars = ta.barssince(cond == true)
rangeLower <= bars and bars <= rangeUpper
// Regular Bullish Divergence
oscHL = osc > ta.valuewhen(plFound, osc , 1) and _inRange(plFound )
priceLL = low < ta.valuewhen(plFound, low , 1)
bullCondAlert = priceLL and oscHL and plFound
bullCond = plotBull and bullCondAlert
plot(
plFound ? osc : na,
offset=-lbR,
title="Regular Bullish",
linewidth=2,
color=(bullCond ? bullColor : noneColor),
display = display.pane
)
plotshape(
bullCond ? osc : na,
offset=-lbR,
title="Regular Bullish Label",
text=" Bull ",
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
)
// Hidden Bullish Divergence
oscLL = osc < ta.valuewhen(plFound, osc , 1) and _inRange(plFound )
priceHL = low > ta.valuewhen(plFound, low , 1)
hiddenBullCondAlert = priceHL and oscLL and plFound
hiddenBullCond = plotHiddenBull and hiddenBullCondAlert
plot(
plFound ? osc : na,
offset=-lbR,
title="Hidden Bullish",
linewidth=2,
color=(hiddenBullCond ? hiddenBullColor : noneColor),
display = display.pane
)
plotshape(
hiddenBullCond ? osc : na,
offset=-lbR,
title="Hidden Bullish Label",
text=" H Bull ",
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
)
// Regular Bearish Divergence
oscLH = osc < ta.valuewhen(phFound, osc , 1) and _inRange(phFound )
priceHH = high > ta.valuewhen(phFound, high , 1)
bearCondAlert = priceHH and oscLH and phFound
bearCond = plotBear and bearCondAlert
plot(
phFound ? osc : na,
offset=-lbR,
title="Regular Bearish",
linewidth=2,
color=(bearCond ? bearColor : noneColor),
display = display.pane
)
plotshape(
bearCond ? osc : na,
offset=-lbR,
title="Regular Bearish Label",
text=" Bear ",
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)
// Hidden Bearish Divergence
oscHH = osc > ta.valuewhen(phFound, osc , 1) and _inRange(phFound )
priceLH = high < ta.valuewhen(phFound, high , 1)
hiddenBearCondAlert = priceLH and oscHH and phFound
hiddenBearCond = plotHiddenBear and hiddenBearCondAlert
plot(
phFound ? osc : na,
offset=-lbR,
title="Hidden Bearish",
linewidth=2,
color=(hiddenBearCond ? hiddenBearColor : noneColor),
display = display.pane
)
plotshape(
hiddenBearCond ? osc : na,
offset=-lbR,
title="Hidden Bearish Label",
text=" H Bear ",
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)
// Alert conditions
alertcondition(bullCondAlert, title='Regular Bullish Divergence', message="Found a new Regular Bullish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar")
alertcondition(hiddenBullCondAlert, title='Hidden Bullish Divergence', message='Found a new Hidden Bullish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar')
alertcondition(bearCondAlert, title='Regular Bearish Divergence', message='Found a new Regular Bearish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar')
alertcondition(hiddenBearCondAlert, title='Hidden Bearish Divergence', message='Found a new Hidden Bearish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar')
Sup-Res e Gap de SMA
Suporte e resistência dinâmicos com base em um período
Diferença entre a SMA de 200 e o topo do preço mostrando distorções de preço
Combined Sequences (Tribonacci, Tetranacci, Lucas)🎯 Combined Sequences (Tribonacci, Tetranacci, Lucas) Indicator 🎯
Unlock the power of advanced mathematical sequences in your trading strategy with the **Combined Sequences Indicator**! This tool integrates **Tribonacci**, **Tetranacci**, and **Lucas** levels to help you identify key support and resistance zones with precision. Whether you're a day trader, swing trader, or long-term investor, this indicator provides a unique perspective on price action by combining multiple sequence-based levels.
---
### **Key Features:**
1. **Multiple Sequence Levels**:
- **Tribonacci Levels**: Based on the Tribonacci sequence, these levels are ideal for identifying dynamic support and resistance.
- **Tetranacci Levels**: A more advanced sequence that adds depth to your analysis.
- **Lucas Levels**: Derived from the Lucas sequence, these levels offer additional insights into market structure.
2. **Customizable Levels**:
- Choose the number of levels to display (up to 20).
- Toggle between **positive** and **negative** levels for each sequence.
3. **Flexible Price Source**:
- Select your preferred price type: **Open**, **High**, **Low**, **Close**, **HL2**, **HLC3**, or **HLCC4**.
4. **Customizable Line Styles**:
- Choose from **Solid**, **Dashed**, or **Dotted** lines.
- Adjust line width and extension type (**Left**, **Right**, or **Both**).
5. **Dynamic Labels**:
- Add labels to levels for better readability.
- Customize label position (**Left**, **Center**, or **Right**) and text size (**Normal**, **Small**, or **Tiny**).
6. **Timeframe Flexibility**:
- Works on any timeframe, from **1-minute** charts to **monthly** charts.
---
### **How It Works:**
- The indicator calculates **Tribonacci**, **Tetranacci**, and **Lucas** levels based on the selected price source and timeframe.
- These levels are plotted on the chart, providing clear visual cues for potential support and resistance zones.
- You can toggle each sequence on or off, allowing you to focus on the levels that matter most to your strategy.
---
### **Why Use This Indicator?**
- **Enhanced Market Analysis**: Combine multiple mathematical sequences to gain a deeper understanding of price action.
- **Customizable**: Tailor the indicator to your trading style with flexible settings.
- **User-Friendly**: Easy-to-use interface with clear visual outputs.
- **Versatile**: Suitable for all trading styles and instruments (stocks, forex, crypto, commodities, etc.).
---
### **How to Use:**
1. Add the indicator to your chart.
2. Configure the settings in the **Inputs** tab:
- Choose which sequences to display (Tribonacci, Tetranacci, Lucas).
- Adjust the number of levels, line styles, and label settings.
3. Use the levels to identify potential entry, exit, and stop-loss points.
---
### **Perfect For:**
- Traders looking for advanced support and resistance levels.
- Those who want to incorporate mathematical sequences into their analysis.
- Anyone seeking a customizable and versatile trading tool.
---
**🚀 Take Your Trading to the Next Level with Combined Sequences! 🚀**
---
### **Disclaimer**:
This indicator is a tool to assist in your trading decisions. It does not guarantee profits or predict market movements. Always use proper risk management and combine this tool with other analysis techniques.
---
**📈 Ready to Elevate Your Trading? Add the Combined Sequences Indicator to Your Chart Today! 📉**
Market Sector LabelsA script to add labels to your chart.. for the different sectors to see where money is flowing.. Was reading that all red sectors on Monday implies more market downside and its not just a "sector rotation".
RK_RSI Divergence IndicatorRK_RSI Divergence Indicator
this indicator give trend predicted based on rsi divergence.