Дивергенции RSI//@version=6
indicator("Дивергенции RSI", shorttitle="RSI Divergence", overlay=true)
// Параметры
rsiLength = input(14, title="Длина RSI")
rsiSource = close
// Расчет RSI
rsi = ta.rsi(rsiSource, rsiLength)
// Определение пиков и впадин
peakPrice = ta.highest(close, 5)
troughPrice = ta.lowest(close, 5)
peakRsi = ta.highest(rsi, 5)
troughRsi = ta.lowest(rsi, 5)
// Логика для определения дивергенций
bullishDiv = (troughPrice < troughPrice) and (troughRsi > troughRsi)
bearishDiv = (peakPrice > peakPrice) and (peakRsi < peakRsi)
// Отображение сигналов на графике
if bullishDiv
label.new(bar_index, low, "Бычья дивергенция", color=color.green, style=label.style_label_up, textcolor=color.white)
if bearishDiv
label.new(bar_index, high, "Медвежья дивергенция", color=color.red, style=label.style_label_down, textcolor=color.white)
// График RSI
hline(70, "Перепроданность", color=color.red)
hline(30, "Перепроданность", color=color.green)
plot(rsi, color=color.blue, title="RSI")
Candlestick analysis
Support and Resistance with Buy/Sell Signals**Support and Resistance with Buy/Sell Signals**
Support and resistance are key concepts in technical analysis used to identify price levels at which an asset tends to reverse or pause in its trend. These levels are pivotal for traders to anticipate potential entry (buy) or exit (sell) opportunities.
### **Support**
Support is a price level where a downward trend tends to pause or reverse due to an increase in buying interest. It acts as a "floor" for the price. Traders consider this level as an area to look for **buy signals**.
#### **Buy Signals near Support**:
1. **Bounce Confirmation**: When the price touches the support level and rebounds upward, confirming the strength of the support.
2. **Bullish Candlestick Patterns**: Patterns like hammers or engulfing candles forming at support levels suggest buying opportunities.
3. **Volume Increase**: A spike in trading volume at the support level often reinforces the likelihood of a reversal.
---
### **Resistance**
Resistance is a price level where an upward trend tends to pause or reverse due to an increase in selling pressure. It acts as a "ceiling" for the price. Traders consider this level as an area to look for **sell signals**.
#### **Sell Signals near Resistance**:
1. **Price Rejection**: When the price reaches the resistance level and fails to break above it, moving downward instead.
2. **Bearish Candlestick Patterns**: Patterns like shooting stars or bearish engulfing candles at resistance levels signal selling opportunities.
3. **Divergences**: If the price forms higher highs near resistance while an indicator (e.g., RSI) shows lower highs, it suggests weakening momentum.
---
### **Dynamic Indicators for Support and Resistance**
1. **Moving Averages**: Commonly used as dynamic support/resistance, especially the 50, 100, and 200-period moving averages.
2. **Fibonacci Retracements**: Highlight potential support and resistance levels based on mathematical ratios.
3. **Pivot Points**: Daily, weekly, or monthly pivot levels offer reliable zones for support and resistance.
---
### **Combining Buy/Sell Signals with Indicators**
To enhance accuracy, traders combine support and resistance levels with additional indicators such as:
- **RSI (Relative Strength Index)**: To confirm overbought (sell) or oversold (buy) conditions.
- **MACD (Moving Average Convergence Divergence)**: For momentum and trend reversals at key levels.
- **Volume Analysis**: To validate the strength of price movements near support or resistance.
By using support and resistance levels with these signals, traders can develop a structured approach to identifying high-probability trade setups.
Fear and Greed Trading Strategy By EquityPath (Dev Hunainmq)Description:
🚀 **Fear and Greed Trading Strategy for TradingView** 🚀
Take your trading to the next level with this innovative and automated **Fear and Greed Index-based strategy**. 🎯 This strategy leverages the powerful **emotional drivers of the market**—fear and greed—to help you make smarter, data-driven trading decisions. Designed for traders of all experience levels, this tool provides seamless buy and sell signals to capitalize on market sentiment.
🔴 **Fear Zone:** Automatically triggers a sell when the market sentiment shifts toward extreme fear, signaling potential downturns.
🟢 **Greed Zone:** Automatically triggers a buy when the market sentiment trends toward extreme greed, signaling potential growth opportunities.
---
### **Features:**
✅ **Dynamic Buy and Sell Signals:** Executes trades automatically based on sentiment thresholds.
✅ **Position Management:** Trades a fixed quantity (e.g., 100 shares) for simplicity and risk control.
✅ **Threshold Customization:** Adjust fear and greed levels (default: 25 for fear, 75 for greed) to suit your trading style.
✅ **Visual Cues:** Clear labels and visual plots of the Fear and Greed Index on the chart for easy interpretation.
✅ **Fully Automated Execution:** Hands-free trading when connected to a supported broker in TradingView.
---
### **Who Is This Strategy For?**
📈 Crypto Traders
📈 Stock Traders
📈 Forex Traders
📈 Anyone looking to incorporate **market psychology** into their trading!
With sleek design and powerful automation, this strategy ensures you stay ahead of the market by aligning your trades with the ebb and flow of investor sentiment. Whether you're a beginner or an experienced trader, this strategy simplifies the process and enhances your edge. 💡
---
### Hashtags:
#TradingStrategy #FearAndGreedIndex #MarketSentiment #TradingAutomation #AlgorithmicTrading #CryptoTrading #StockMarket #ForexTrading #TechnicalAnalysis #SmartTrading #TradingTools #EmotionalTrading #GreedZone #FearZone #TradingSuccess #PineScript
VWAP Breakout and Pullback StrategyThis Pine Script implements the following setups:
Breakout Trades:
A long breakout trade occurs when:
The price is above VWAP.
RSI > 50.
Volume is higher than the average volume (indicating a volume spike).
A short breakout trade occurs when:
The price is below VWAP.
RSI < 50.
Volume is higher than the average volume.
Pullback Entries:
A long pullback trade occurs when:
The price crosses above VWAP.
RSI > 50.
Volume is lower than the average volume (indicating a pullback with low momentum).
A short pullback trade occurs when:
The price crosses below VWAP.
RSI < 50.
Volume is lower than the average volume.
Features:
Signals: Buy and sell signals are plotted on the chart with breakout or pullback labels.
Alerts: Alerts are configured for each type of signal, enabling automation or notifications.
You can copy and paste this code into TradingView's Pine Script editor to test and use it for real-time
Anjink V3 Purpose:
Identify Market Swings:
Detects significant highs and lows in the price movement using parameters like Depth, Deviation, and Backstep.
Plots trendlines connecting these swing points.
Labels these swing points with S (Sell) for swing highs and B (Buy) for swing lows, indicating potential trading opportunities.
Trend Analysis:
Plots three key moving averages (MA 20, MA 50, MA 200) for trend-following strategies.
Helps traders understand the short-term, mid-term, and long-term trends.
Volatility and Risk Metrics:
Uses ATR (Average True Range) to measure market volatility.
Displays the ATR percentage (volatility as a percentage of the price) and a calculated stop-loss percentage (1.5x ATR) for risk management.
Trend Visualization:
Dynamically updates swing levels and trendlines as the market evolves.
Highlights the trend direction with a background color:
Red: Downtrend (Bearish).
Green: Uptrend (Bullish).
PCHLM with TimeframeThis indicator plots the previous candle's high, low, and midpoint on the chart with customizable line thickness and distinct colors for better visualization. It allows traders to choose the timeframe from which these levels are derived, providing flexibility to adapt to different trading strategies.
Features:
Timeframe Selection: Users can select any desired timeframe (e.g., daily, weekly) to define the previous candle's high, low, and midpoint.
Color-Coded Lines:
The high level is marked with a red line.
The low level is marked with a green line.
The midpoint is marked with a grey line.
Adjustable Line Thickness: Traders can set the thickness of the lines between 1 and 5, allowing for better visual customization according to their preferences.
Dynamic Updates: The lines update automatically with each new candle, ensuring the levels are always current based on the selected timeframe.
Double EMA Crossover with Volume Filter//@version=5
indicator("Double EMA Crossover with Volume Filter", overlay=true)
// Inputs for EMA lengths
fast_ema_length = input.int(3, title="Fast EMA Length", minval=1)
slow_ema_length = input.int(30, title="Slow EMA Length", minval=1)
// Input for Volume settings
volume_length = input.int(20, title="Volume Moving Average Length", minval=1)
// Calculate EMAs
fast_ema = ta.ema(close, fast_ema_length)
slow_ema = ta.ema(close, slow_ema_length)
// Calculate Volume Average
avg_volume = ta.sma(volume, volume_length)
// Volume condition: Current volume is higher than average volume
is_high_volume = volume > avg_volume
// EMA Crossover conditions
bullish_crossover = ta.crossover(fast_ema, slow_ema) // Fast EMA crosses above Slow EMA
bearish_crossover = ta.crossunder(fast_ema, slow_ema) // Fast EMA crosses below Slow EMA
// Combine crossover and volume condition
bullish_signal = bullish_crossover and is_high_volume
bearish_signal = bearish_crossover and is_high_volume
// Plot EMAs
plot(fast_ema, color=color.blue, linewidth=2, title="Fast EMA (3)")
plot(slow_ema, color=color.orange, linewidth=2, title="Slow EMA (30)")
// Plot signals
plotshape(bullish_signal, style=shape.labelup, color=color.green, size=size.small, location=location.belowbar, text="Buy")
plotshape(bearish_signal, style=shape.labeldown, color=color.red, size=size.small, location=location.abovebar, text="Sell")
// Highlight high-volume bars
bgcolor(is_high_volume ? color.new(color.green, 90) : na, title="High Volume Highlight")
Candlesticks ExplainedCandlestick Patterns Identified:
Doji: A candlestick with a small body, indicating market indecision.
Evening Star: A three-bar pattern signaling a bearish reversal, typically used as a sell signal.
Morning Star: A three-bar pattern signaling a bullish reversal, typically used as a buy signal.
Shooting Star: A single-bar pattern signaling a potential top reversal, typically used as a sell signal.
Hammer (H): A candlestick with a small body and long lower shadow, typically indicating a reversal after a downtrend (buy signal).
Inverted Hammer (IH): Similar to a hammer, but with a long upper shadow, signaling a potential reversal after a downtrend (buy signal).
Bearish Harami: A two-bar pattern signaling a bearish reversal (sell signal).
Bullish Harami: A two-bar pattern signaling a bullish reversal (buy signal).
Bearish Engulfing: A two-bar pattern signaling a bearish reversal (sell signal).
Bullish Engulfing: A two-bar pattern signaling a bullish reversal (buy signal).
Piercing Line: A two-bar pattern signaling a bullish reversal (buy signal).
Bullish Belt: A bullish candle opens at or below the low of the previous candle (buy signal).
Bullish Kicker: A bullish candle opens above the previous candle's close (buy signal).
Bearish Kicker: A bearish candle opens below the previous candle's close (sell signal).
Hanging Man: A candlestick signaling a potential reversal after an uptrend (sell signal).
Dark Cloud Cover: A two-bar pattern signaling a bearish reversal (sell signal).
DF - Pivot S/R Lines**DF - Pivot S/R Lines**
**Description:**
The "DF - Pivot S/R Lines" indicator dynamically identifies key support and resistance levels using advanced pivot detection algorithms. It calculates pivot points over a configurable timeframe (e.g., 60-minute, daily) and uses factors such as price proximity, touch counts, and expiration periods to determine significant levels.
**Key Features:**
- **Customizable Timeframe:** Select the timeframe for pivot calculations to suit your trading strategy.
- **Configurable Parameters:** Adjust sensitivity with inputs for left/right bars, minimum touches, line proximity percentage, and expiration days.
- **Dynamic Level Drawing:** Automatically draws support/resistance lines on the chart when conditions are met.
- **Alert Notifications:** Generates alerts when the price nears a key pivot level, helping you catch potential reversal or breakout opportunities.
- **Pivot Expiration:** Pivots older than a specified number of days are removed, keeping the chart relevant and uncluttered.
**Usage:**
Once added to your TradingView chart, the indicator will plot dynamic support and resistance lines based on historical price action. Users can adjust input parameters to fine-tune the sensitivity and timeframe of the pivot detection. Alerts notify traders when the price approaches these key levels, facilitating timely decision-making.
This tool is ideal for traders looking to identify and react to critical support and resistance zones using a robust pivot analysis.
Inside Bar/Outside Bar/Mother Bar Box By SmartTrader888This Indicator shows:
1. Inside Bar
2. Outside Bar
3. Mother Bar box (Box the mother bar and all subsequent inside bars)
This indicator handles correctly the edge conditions such as:
1. bar close = bar open
2. current bar low equals to mother bar low or current bar high equals mother bar high
Malttrix Scalperizer The Malttrix Scalperizer is a comprehensive TradingView indicator designed for advanced price action analysis and scalping strategies. It includes:
Fractal Detection: Identify key swing highs/lows with Bullish and Bearish market structures, BOS (Break of Structure), and CHoCH (Change of Character).
Support/Resistance Lines: Automatically detect and update key levels.
Candlestick Patterns: Highlight Engulfing patterns, Morning/Evening Stars, and other reversal signals.
Session Boxes: Visualize high/low ranges for specific historical trading sessions.
RSI Signals: Optional buy and sell signals based on RSI levels.
Fair Value Gaps (FVG): Mark unfilled FVGs with alerts for threshold and IOFED conditions.
EMA Overlays: Display EMA20, EMA50, and EMA200 for trend analysis.
Perfect for scalpers and intraday traders, this tool offers highly customizable settings to adapt to various trading styles and markets.
3Candles By SharadLong and Short:
If Candle turns White; Long, Keep SL as Low of -2 Candle
If Candle turns Blue; Short, Keep SL as High of -2 Candle
*Manage Risk to be in profit in long run*
Sood 2025// © AdibXmos
//@version=5
indicator('Sood Indicator V2 ', overlay=true, max_labels_count=500)
show_tp_sl = input.bool(true, 'Display TP & SL', group='Techical', tooltip='Display the exact TP & SL price levels for BUY & SELL signals.')
rrr = input.string('1:2', 'Risk to Reward Ratio', group='Techical', options= , tooltip='Set a risk to reward ratio (RRR).')
tp_sl_multi = input.float(1, 'TP & SL Multiplier', 1, group='Techical', tooltip='Multiplies both TP and SL by a chosen index. Higher - higher risk.')
tp_sl_prec = input.int(2, 'TP & SL Precision', 0, group='Techical')
candle_stability_index_param = 0.5
rsi_index_param = 70
candle_delta_length_param = 4
disable_repeating_signals_param = input.bool(true, 'Disable Repeating Signals', group='Techical', tooltip='Removes repeating signals. Useful for removing clusters of signals and general clarity.')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 0, 0)
TRANSPARENT = color.rgb(0, 0, 0, 100)
label_size = input.string('huge', 'Label Size', options= , group='Cosmetic')
label_style = input.string('text bubble', 'Label Style', , group='Cosmetic')
buy_label_color = input(GREEN, 'BUY Label Color', inline='Highlight', group='Cosmetic')
sell_label_color = input(RED, 'SELL Label Color', inline='Highlight', group='Cosmetic')
label_text_color = input(color.white, 'Label Text Color', inline='Highlight', group='Cosmetic')
stable_candle = math.abs(close - open) / ta.tr > candle_stability_index_param
rsi = ta.rsi(close, 14)
atr = ta.atr(14)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
var last_signal = ''
var tp = 0.
var sl = 0.
bull_state = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
bull = bull_state and (disable_repeating_signals_param ? (last_signal != 'buy' ? true : na) : true)
bearish_engulfing = close > open and close < open and close < open
rsi_above = rsi > 100 - rsi_index_param
increase_over = close > close
bear_state = bearish_engulfing and stable_candle and rsi_above and increase_over and barstate.isconfirmed
bear = bear_state and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
round_up(number, decimals) =>
factor = math.pow(10, decimals)
math.ceil(number * factor) / factor
if bull
last_signal := 'buy'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close + tp_dist, tp_sl_prec)
sl := round_up(close - dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bar_index, low, 'BUY', color=buy_label_color, style=label.style_label_up, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_triangleup, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bar_index, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + ' SL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_down, textcolor=label_text_color)
if bear
last_signal := 'sell'
dist = atr * tp_sl_multi
tp_dist = rrr == '2:3' ? dist / 2 * 3 : rrr == '1:2' ? dist * 2 : rrr == '1:4' ? dist * 4 : dist
tp := round_up(close - tp_dist, tp_sl_prec)
sl := round_up(close + dist, tp_sl_prec)
if label_style == 'text bubble'
label.new(bear ? bar_index : na, high, 'SELL', color=sell_label_color, style=label.style_label_down, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_triangledown, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_arrowdown, textcolor=TRANSPARENT, size=label_size)
label.new(show_tp_sl ? bar_index : na, low, 'TP: ' + str.tostring(tp) + ' SL: ' + str.tostring(sl), yloc=yloc.price, color=color.gray, style=label.style_label_up, textcolor=label_text_color)
alertcondition(bull or bear, 'BUY & SELL Signals', 'New signal!')
alertcondition(bull, 'BUY Signals (Only)', 'New signal: BUY')
alertcondition(bear, 'SELL Signals (Only)', 'New signal: SELL')
Chained Inside BarsThis script identifies consecutive inside bars by referencing only the most recent non-inside bar, so it avoids excessive lookback. An “inside” bar means its high is lower than the reference bar’s high, and its low is higher than the reference bar’s low. If the current bar is inside, it’s colored white; once price breaks outside, the script updates that new bar as the next reference.
Key Points
• Bars are compared against the last non-inside bar, chaining consecutive inside bars off that same reference bar.
• Inside bars are highlighted in white (non-inside bars retain default chart colors).
• Includes an alert condition for when a new inside bar forms.
• Prevents large dynamic indexing, making it more stable and efficient.
Use this indicator to quickly spot consecutive inside-bar formations without needing to track every single bar-to-bar relationship.
Jago Scalping di TF 1Mstrategi ini menggunakan BB 100 dan RSI 3, Order Buy di Eksekusi jika Harga Close di lower BB dan RSI 3 di level 10 ke bawah dan Order sell di Eksekusi jika harga Close di Upper BB dan RSI 3 di level 90 ke atas, Time Frame pada M1 dengan Pair Gold akurasi 70% lebih
Fear and Greed Trading Strategy by EquithPath (Dev Hunainmq)Description:
🚀 **Fear and Greed Trading Strategy for TradingView** 🚀
Take your trading to the next level with this innovative and automated **Fear and Greed Index-based strategy**. 🎯 This strategy leverages the powerful **emotional drivers of the market**—fear and greed—to help you make smarter, data-driven trading decisions. Designed for traders of all experience levels, this tool provides seamless buy and sell signals to capitalize on market sentiment.
🔴 **Fear Zone:** Automatically triggers a sell when the market sentiment shifts toward extreme fear, signaling potential downturns.
🟢 **Greed Zone:** Automatically triggers a buy when the market sentiment trends toward extreme greed, signaling potential growth opportunities.
---
### **Features:**
✅ **Dynamic Buy and Sell Signals:** Executes trades automatically based on sentiment thresholds.
✅ **Position Management:** Trades a fixed quantity (e.g., 100 shares) for simplicity and risk control.
✅ **Threshold Customization:** Adjust fear and greed levels (default: 25 for fear, 75 for greed) to suit your trading style.
✅ **Visual Cues:** Clear labels and visual plots of the Fear and Greed Index on the chart for easy interpretation.
✅ **Fully Automated Execution:** Hands-free trading when connected to a supported broker in TradingView.
---
### **Who Is This Strategy For?**
📈 Crypto Traders
📈 Stock Traders
📈 Forex Traders
📈 Anyone looking to incorporate **market psychology** into their trading!
With sleek design and powerful automation, this strategy ensures you stay ahead of the market by aligning your trades with the ebb and flow of investor sentiment. Whether you're a beginner or an experienced trader, this strategy simplifies the process and enhances your edge. 💡
---
### Hashtags:
#TradingStrategy #FearAndGreedIndex #MarketSentiment #TradingAutomation #AlgorithmicTrading #CryptoTrading #StockMarket #ForexTrading #TechnicalAnalysis #SmartTrading #TradingTools #EmotionalTrading #GreedZone #FearZone #TradingSuccess #PineScript
ADR [JIMMY TRADES]Average Daily Range Indicator: This Pine Script indicator calculates and displays the Average Daily Range (ADR) for a specified lookback period. It uses daily high and low prices to compute the ADR, which is then shown in a table on the chart. Designed specifically for futures assets such as NQ, ES, CL and GC
NK-Heikin-ashi entry with defined Target and SL//Buy - Green heikin-ashi (with no lower shadow) is formed above vwap and Target at 50 pts and sqr off at cost.Exit at 15:01 if not //closed by then.
//Sell - Red heikin-ashi (with no upper shadow) is formed below vwap and Target at 50 pts and sqr off at cost.Exit at 15:01 if not //closed by then.
// need to update the code for trailing SL and fine tuning of Target for ATR Or ATR/2 or 40 pts for Nifty, etc..
Improved Combined Trading StrategiesThis script is a comprehensive Pine Script strategy designed for TradingView that combines multiple trading strategies and indicators into one
Price Action Indicator with ATRPrice Action Indicator with ATR. This using engulfing candles as a signal to get in the market