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.
Candlestick analysis
Nadaraya-Watson Envelope [LuxAlgo]Chỉ báo kỹ thuật (Technical Indicator) là một công cụ quan trọng được sử dụng trong phân tích kỹ thuật để dự báo xu hướng giá cả trong tương lai của các tài sản tài chính như cổ phiếu, tiền tệ, hàng hóa, hay chỉ số. Chỉ báo này được tính toán từ các dữ liệu lịch sử về giá và khối lượng giao dịch, giúp các nhà giao dịch đưa ra các quyết định mua hoặc bán dựa trên các tín hiệu mà chỉ báo cung cấp.
Close Below Previous Week Low on 4Halerts you when a stock closes below the previous week's low on the 4 hour timeframe.
siubo_EMA Strategy Trending//@version=5
indicator("EMA Strategy with Full Background Coverage", overlay=true)
// 定義EMA週期
ema10 = ta.ema(close, 10)
ema20 = ta.ema(close, 20)
ema30 = ta.ema(close, 30)
ema200 = ta.ema(close, 200)
// 定義多頭與空頭狀態
longCondition = ema10 > ema30 // 10日EMA在30日EMA之上(多頭)
shortCondition = ema10 < ema30 // 10日EMA在30日EMA之下(空頭)
// 更新背景顏色
bgcolor(longCondition ? color.new(color.green, 90) : shortCondition ? color.new(color.red, 90) : na)
// 繪製EMA線
plot(ema10, color=color.blue, title="EMA 10")
plot(ema20, color=color.orange, title="EMA 20")
plot(ema30, color=color.purple, title="EMA 30")
plot(ema200, color=color.gray, title="EMA 200")
Candlestick and Line Chart Patterns AnalyseDas Skript generiert Kaufen und Verkaufen Signale anhand der Analyse auf die gängistetn Kerzenmuster und der gängisten Chartlinienmuster
My script// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © junxi6147
//@version=6
indicator("My script")
plot(close)
Candle Sequence IdentifierThis indicator allows you to identify 2cs, 3cs, 4cs. 2 candle sequence requires a rejection, so as 3 candle and 4 candle. The MA are 27, 100, 200. Helpful if you trend with the trend of the EMAS
Bull Run Indicator with EMA CrossoverFeatures:
High Volume: Volume is significantly higher than the 20-bar average, using a customizable multiplier (volumeThreshold).
Breaking Resistance: A buy signal is triggered when the price closes above the highest high over a specified lookback period (srLookback).
Breaking Support: A sell signal is triggered when the price closes below the lowest low over the same lookback period.
Signals:
Buy Signal: High volume and breaking resistance.
Sell Signal: High volume and breaking support.
Visualization:
Buy and Sell signals are shown as labels on the chart.
Support and Resistance levels are displayed as dashed lines for context.
You can adjust the lookback period (srLookback) and volume sensitivity (volumeThreshold) as needed. Let me know if you need further enhancements!
EMA 20, 50, 100, 200EMA averages for any stock 20,50, 100 and 200. you can edit and change the averages you need for the analysis. Death cross and golden cross pattern can be checked with this indicator
DF - Multiple SMAs**DF - Multiple SMAs**
The "DF - Multiple SMAs" indicator overlays six simple moving averages on the chart with distinct colors and line weights. It calculates SMAs for periods of 5, 10, 20, 60, 120, and 200 bars, and allows you to customize each length via user inputs. This tool helps traders quickly visualize multiple trend lines, compare moving averages, and identify key support and resistance levels directly on the price chart.
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.
Koop en Verkoop Signalen//@version=5
indicator("Koop en Verkoop Signalen", overlay=true)
// Instellingen voor RSI
rsi_length = input(14, title="RSI Periode")
rsi_overbought = input(70, title="Overbought Niveau")
rsi_oversold = input(30, title="Oversold Niveau")
// Instellingen voor moving averages
ma_short_length = input(9, title="Korte Moving Average")
ma_long_length = input(21, title="Lange Moving Average")
// Berekeningen
rsi = ta.rsi(close, rsi_length)
ma_short = ta.sma(close, ma_short_length)
ma_long = ta.sma(close, ma_long_length)
// Koop- en verkoopsignalen
koop_signaal = ta.crossover(rsi, rsi_oversold) and ta.crossover(ma_short, ma_long)
verkoop_signaal = ta.crossunder(rsi, rsi_overbought) and ta.crossunder(ma_short, ma_long)
// Plot koop- en verkoopsignalen
plotshape(series=koop_signaal, title="Koop Signaal", location=location.belowbar, color=color.green, style=shape.labelup, text="Koop")
plotshape(series=verkoop_signaal, title="Verkoop Signaal", location=location.abovebar, color=color.red, style=shape.labeldown, text="Verkoop")
// Moving Averages tonen
plot(ma_short, title="Korte MA", color=color.blue)
plot(ma_long, title="Lange MA", color=color.orange)
// RSI niveaus tonen
hline(rsi_overbought, "Overbought", color=color.red)
hline(rsi_oversold, "Oversold", color=color.green)
Average Candle Size (5min, 14 days)This indicator needs to set the Renko chart size. Keep Half of it at 5 minutes chart.
Arif MumcuMum Kalıplarını Tanımlar:
Yükseliş Yutan Mum (Bullish Engulfing): Önceki mum düşüş, sonraki mum yükseliş ve sonraki mum öncekini tamamen "yutar".
Düşüş Yutan Mum (Bearish Engulfing): Önceki mum yükseliş, sonraki mum düşüş ve sonraki mum öncekini tamamen "yutar".
Çekiç (Hammer): Küçük gövde, uzun alt gölge, düşük seviyede oluşur (yükseliş sinyali).
Ters Çekiç (Inverted Hammer): Küçük gövde, uzun üst gölge, düşük seviyede oluşur (yükseliş sinyali).
Al-Sat Sinyalleri Üretir:
Al Sinyali: Yükseliş yutan mum veya çekiç oluştuğunda.
Sat Sinyali: Düşüş yutan mum oluştuğunda.
Grafik Üzerinde Gösterir:
Kapanış fiyatını çizerek, al-sat sinyallerini yeşil (al) ve kırmızı (sat) işaretlerle gösterir.
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')
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..
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
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