RSI + Auto Support + SMC + MA 20/50 vipHow it works:
Pivot Detection: It detects a pivot high and pivot low using the highest() and lowest() functions within a defined range.
Plot Shapes: The script marks these key levels on the chart with red labels for resistance and green labels for support.
Dynamic Lines: It draws dynamic lines that extend to the right whenever a new support or resistance level is detected.
How to use:
Add this script to your TradingView chart.
The support (green) and resistance (red) zones will appear as labels and lines.
You can adjust the length parameter to modify the sensitivity of the pivot detection.
Would you like to explore more advanced features for this SMC indicator, like order blocks or break of structure?
Wskaźniki rozpiętości rynku
MACD TAG + MedianMACD TAG and Median with ATR Bands : A Comprehensive Trading Tool
This indicator combines two powerful trading tools: the MACD TAG and the Median with ATR Bands. This synergistic approach provides traders with a multi-faceted view of price action, trend, and volatility, leading to more informed trading decisions.
MACD TAG
The MACD TAG focuses on identifying buy and sell signals based on the MACD (Moving Average Convergence Divergence) oscillator. It highlights crossover events between the smoothed MACD line and the signal line, with a configurable threshold to filter out minor fluctuations. A cooldown period prevents rapid-fire signals, ensuring more reliable entries.
Median with ATR Bands
The Median with ATR Bands provides a clear visual representation of the median price and its volatility. It calculates the median price over a specified period, then draws upper and lower bands based on the Average True Range (ATR) and a customizable multiplier. This helps identify potential support and resistance levels. The Median EMA (Exponential Moving Average) indicates the trend of the median price, offering additional insights into the overall market direction.
Combining the Power of Two
By overlaying these two indicators, traders gain a comprehensive perspective:
Trend Confirmation: MACD TAG buy signals within the upper ATR band can indicate strong upward trends, while sell signals within the lower band suggest downward momentum.
Momentum Strength: A MACD TAG signal coinciding with the median price above its EMA strengthens the signal, indicating powerful upward momentum.
Risk Management: The ATR bands can serve as potential stop-loss levels, helping limit potential losses on trades.
Customization and Optimization
This indicator is highly customizable, allowing traders to tailor it to their specific needs. You can adjust the EMA lengths, ATR multiplier, cooldown period, and other parameters to achieve optimal performance.
Deepsek IndicatorThis TradingView Pine Script indicator combines EMA crossovers (for trend direction) and RSI (for momentum) to generate Buy/Sell signals. It includes customizable Take Profit (TP) and Stop Loss (SL) levels, plotted directly on the chart.
Key Features
Signal Types:
EMA Crossover: Triggers Buy when a fast EMA crosses above a slow EMA; Sell on the reverse.
RSI Divergence: Buy when RSI exits oversold (30); Sell when RSI exits overbought (70).
Risk Management:
Set TP/SL as fixed percentages (e.g., 2% TP) or fixed price points.
Visual horizontal lines mark entry price, TP (teal dashed), and SL (red dashed).
Visual Clarity:
Labels (BUY/SELL) with arrows at signal points.
Plots EMAs (fast/slow) and RSI for trend/momentum confirmation.
Flexibility:
Adjust parameters (EMA lengths, RSI settings, TP/SL rules) via input settings.
Alerts for real-time signal notifications.
Purpose:
Designed to simplify entries/exits with clear rules, enforce disciplined risk management, and adapt to multiple markets (stocks, forex, crypto).
DH.Y. Candle Levels with Current and Previous LabelsThe calculation done here is fully automatic and dynamic, contrary to other similar scripts, this one uses a mathematical calculation that extracts the 1, 2 or 3 leftmost digits and calculate the previous and next level by incrementing/decrementing these digits. This means it works for any symbol under any price range.
[COG]MTF RZP Heatmap MTF RZP Heatmap (Range Zone Pulse)
What It Does
This indicator creates three visual heatmaps that show how current price movement compares to the average range of different timeframes. It helps traders:
Identify when price moves are overextended
Compare momentum across different timeframes
Spot potential reversal points
Understand the relative strength of price movements
How It Works
Range Calculation:
For each selected timeframe, it calculates an average range based on the specified number of periods
The range is measured from high to low for each period
A moving average of these ranges creates a dynamic "normal" range for that timeframe
Position Calculation:
Measures how far price has moved from the period's opening price
Compares this movement to the average range
Converts the movement into a percentage (-100% to +100%)
Visual Display:
Shows three vertical heatmaps, one for each timeframe
Colors graduate from bearish (typically red) to bullish (typically green)
A dot indicator shows the current position within each range
Percentage labels show exact movement relative to average range
Trading Applications
Trend Trading:
Multiple timeframes aligned in the same color suggest strong trend
Use larger timeframes (Daily/Weekly) for trend direction
Use smaller timeframes (4H/1H) for entry timing
Mean Reversion:
Extreme readings (near +100% or -100%) suggest overextended moves
Look for divergences between timeframes
Use when shorter timeframes show extremes but larger timeframes don't
Volatility Trading:
Compare current moves to average ranges
Identify when markets are more volatile than usual
Adjust position sizes based on range expansion/contraction
Multi-Timeframe Analysis:
Compare price action across different time horizons
Identify conflicting signals between timeframes
Use for timeframe alignment in trading decisions
Best Practices for Usage
Timeframe Selection:
Set the first timeframe to your trading timeframe
Set the second timeframe to your trend timeframe
Set the third timeframe to your entry timeframe
Range Period Settings:
Default is 5 periods
Increase for more stable readings
Decrease for more responsive readings
Color Interpretation:
Darker colors indicate stronger moves
Look for alignment across timeframes
Watch for extremes in any timeframe
Trading Setups:
Wait for alignment in multiple timeframes
Use extreme readings for counter-trend trades
Combine with other indicators for confirmation
RSI + MACD Combined by Majidbest of all i have combined the most traded indicators in one for you to ease the trading
RSI + Auto Support + SMC + MA 20/50+volumCombining Smart Money Concepts (SMC), volume analysis, moving averages, automatic support/resistance detection, and RSI high signals can create a powerful TradingView script for technical analysis and decision-making. Here's an outline of how you can integrate these elements into a Pine Script strategy or indicator:
Smart Money Concepts (SMC):
Identify market structure: Higher highs (HH), higher lows (HL), lower highs (LH), and lower lows (LL).
Highlight key order blocks and liquidity zones.
Volume Analysis:
Use volume as a confirmation tool for breakouts or reversals.
Display relative volume levels to spot unusual activity.
Moving Averages:
Include popular moving averages (e.g., SMA, EMA) for trend detection.
Use crossovers for entry/exit signals.
Auto Support/Resistance:
Automatically plot support and resistance zones based on pivot highs/lows.
Highlight areas of confluence with SMC or volume zones.
RSI High Signals:
Identify overbought/oversold levels on the RSI.
Mark divergence areas for potential reversals.
Here’s a simplified Pine Script to start with:
This script integrates SMC (HH/LL), volume, moving averages, RSI, and auto support/resistance into a single indicator. You can modify it to suit your trading style by adjusting lengths or adding alerts for specific conditions. Let me know if you’d like to refine or expand any part!
8888325335/@version=5
indicator("Bit Bite ht",shorttitle = "Bit Bite hindi technical", overlay = true)
src = input(hl2, title="Source",group = "Trend Continuation Signals with TP & SL")
Multiplier = input.float(2,title="Sensitivity (0.5 - 5)", step=0.1, defval=2, minval=0.5, maxval=5,group = "Trend Continuation Signals with TP & SL")
atrPeriods = input.int(14,title="ATR Length", defval=10,group = "Trend Continuation Signals with TP & SL")
atrCalcMethod= input.string("Method 1",title = "ATR Calculation Methods",options = ,group = "Trend Continuation Signals with TP & SL")
cloud_val = input.int(10,title = "Cloud Moving Average Length", defval = 10, minval = 5, maxval = 500,group = "Trend Continuation Signals with TP & SL")
stopLossVal = input.float(2.0, title="Stop Loss Percent (0 for Disabling)", minval=0,group = "Trend Continuation Signals with TP & SL")
showBuySellSignals = input.bool(true,title="Show Buy/Sell Signals", defval=true,group = "Trend Continuation Signals with TP & SL")
showMovingAverageCloud = input.bool(true, title="Show Cloud MA",group = "Trend Continuation Signals with TP & SL")
percent(nom, div) =>
100 * nom / div
src1 = ta.hma(open, 5)
src2 = ta.hma(close, 12)
momm1 = ta.change(src1)
momm2 = ta.change(src2)
f1(m, n) => m >= n ? m : 0.0
f2(m, n) => m >= n ? 0.0 : -m
m1 = f1(momm1, momm2)
m2 = f2(momm1, momm2)
sm1 = math.sum(m1, 1)
sm2 = math.sum(m2, 1)
cmoCalc = percent(sm1-sm2, sm1+sm2)
hh = ta.highest(2)
h1 = ta.dev(hh, 2) ? na : hh
hpivot = fixnan(h1)
ll = ta.lowest(2)
l1 = ta.dev(ll, 2) ? na : ll
lpivot = fixnan(l1)
rsiCalc = ta.rsi(close,9)
lowPivot = lpivot
highPivot = hpivot
sup = rsiCalc < 25 and cmoCalc > 50 and lowPivot
res = rsiCalc > 75 and cmoCalc < -50 and highPivot
atr2 = ta.sma(ta.tr, atrPeriods)
atr= atrCalcMethod == "Method 1" ? ta.atr(atrPeriods) : atr2
up=src-(Multiplier*atr)
up1 = nz(up ,up)
up := close > up1 ? math.max(up,up1) : up
dn=src+(Multiplier*atr)
dn1 = nz(dn , dn)
dn := close < dn1 ? math.min(dn, dn1) : dn
trend = 1
trend := nz(trend , trend)
trend := trend == -1 and close > dn1 ? 1 : trend == 1 and close < up1 ? -1 : trend
buySignal = trend == 1 and trend == -1
sellSignal = trend == -1 and trend == 1
pos = 0.0
pos:= buySignal? 1 : sellSignal ? -1 : pos
longCond = buySignal and pos != 1
shortCond = sellSignal and pos !=-1
entryOfLongPosition = ta.valuewhen(longCond , close, 0)
entryOfShortPosition = ta.valuewhen(shortCond, close, 0)
sl = stopLossVal > 0 ? stopLossVal / 262 : 99999
stopLossForLong = entryOfLongPosition * (1 - sl)
stopLossForShort = entryOfShortPosition * (1 + sl)
takeProfitForLong1R = entryOfLongPosition * (1 + sl)
takeProfitForShort1R = entryOfShortPosition * (1 - sl)
takeProfitForLong2R = entryOfLongPosition * (1 + sl*2)
takeProfitForShort2R = entryOfShortPosition * (1 - sl*2)
takeProfitForLong3R = entryOfLongPosition * (1 + sl*3)
takeProfitForShort3R = entryOfShortPosition * (1 - sl*3)
long_sl = low < stopLossForLong and pos ==1
short_sl = high> stopLossForShort and pos ==-1
takeProfitForLongFinal = high>takeProfitForLong3R and pos ==1
takeProfitForShortFinal = low 0?entryOfLongPosition :entryOfShortPosition , pos>0?lindex:sindex, pos>0?entryOfLongPosition :entryOfShortPosition , color=entryColor )
line.delete(lineEntry )
stopLine = line.new(bar_index, pos>0?stopLossForLong :stopLossForShort , pos>0?lindex:sindex, pos>0?stopLossForLong :stopLossForShort , color=color.red )
tpLine1 = line.new(bar_index, pos>0?takeProfitForLong1R:takeProfitForShort1R, pos>0?lindex:sindex, pos>0?takeProfitForLong1R:takeProfitForShort1R, color=color.green)
tpLine2 = line.new(bar_index, pos>0?takeProfitForLong2R:takeProfitForShort2R, pos>0?lindex:sindex, pos>0?takeProfitForLong2R:takeProfitForShort2R, color=color.green)
tpLine3 = line.new(bar_index, pos>0?takeProfitForLong3R:takeProfitForShort3R, pos>0?lindex:sindex, pos>0?takeProfitForLong3R:takeProfitForShort3R, color=color.green)
line.delete(stopLine )
line.delete(tpLine1 )
line.delete(tpLine2 )
line.delete(tpLine3 )
labelEntry = label.new(bar_index, pos>0?entryOfLongPosition :entryOfShortPosition , color=entryColor , textcolor=#000000, style=label.style_label_left, text="Entry Price: " + str.tostring(pos>0?entryOfLongPosition :entryOfShortPosition ))
label.delete(labelEntry )
labelStop = label.new(bar_index, pos>0?stopLossForLong :stopLossForShort , color=color.red , textcolor=#000000, style=label.style_label_left, text="Stop Loss Price: " + str.tostring(math.round((pos>0?stopLossForLong :stopLossForShort) *100)/100))
labelTp1 = label.new(bar_index, pos>0?takeProfitForLong1R:takeProfitForShort1R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(1-1) Take Profit: " +str.tostring(math.round((pos>0?takeProfitForLong1R:takeProfitForShort1R) * 100)/100))
labelTp2 = label.new(bar_index, pos>0?takeProfitForLong2R:takeProfitForShort2R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(2-1) Take Profit: " + str.tostring(math.round((pos>0?takeProfitForLong2R:takeProfitForShort2R) * 100)/100))
labelTp3 = label.new(bar_index, pos>0?takeProfitForLong3R:takeProfitForShort3R, color=color.green, textcolor=#000000, style=label.style_label_left, text="(3-1) Take Profit: " + str.tostring(math.round((pos>0?takeProfitForLong3R:takeProfitForShort3R) * 100)/100))
label.delete(labelStop )
label.delete(labelTp1 )
label.delete(labelTp2 )
label.delete(labelTp3 )
changeCond = trend != trend
smaSrcHigh = ta.ema(high,cloud_val)
smaSrcLow = ta.ema(low, cloud_val)
= ta.macd(close, 12, 26, 9)
plot_high = plot(showMovingAverageCloud? smaSrcHigh : na, color = na, transp = 1, editable = false)
plot_low = plot(showMovingAverageCloud? smaSrcLow : na, color = na, transp = 1, editable = false)
plotshape(longCond ? up : na, title="UpTrend Begins", location=location.belowbar, style=shape.circle, size=size.tiny, color=color.new(color.teal,transp = 50) )
plotshape(longCond and showBuySellSignals ? up : na, title="Buy kar lo", text="Buy kar lo", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.new(color.teal,transp = 50), textcolor=color.white )
plotshape(shortCond ? dn : na, title="DownTrend Begins", location=location.abovebar, style=shape.circle, size=size.tiny, color=color.new(color.red,transp = 50) )
plotshape(shortCond and showBuySellSignals ? dn : na, title="Sell kar do", text="Sell kar do", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.new(color.red,transp = 50), textcolor=color.white)
fill(plot_high, plot_low, color = (macdLine > 0) and (macdLine > macdLine ) ? color.new(color.aqua,transp = 85) : na, title = "Positive Cloud Uptrend")
fill(plot_high, plot_low, color = macdLine > 0 and macdLine < macdLine ? color.new(color.aqua,transp = 85) : na, title = "Positive Cloud Downtrend")
fill(plot_high, plot_low, color = macdLine < 0 and macdLine < macdLine ? color.new(color.red,transp = 85) : na, title = "Negative Cloud Uptrend")
fill(plot_high, plot_low, color = macdLine < 0 and macdLine > macdLine ? color.new(color.red,transp = 85) : na, title = "Negative Cloud Downtrend")
mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
alertcondition(changeCond, title="Trend Direction Change ", message="Trend direction has changed ! ")
alertLongText = str.tostring(syminfo.ticker) + " BUY ALERT! " +
"Entry Price: " + str.tostring(entryOfLongPosition) +
", Take Profit 1: " + str.tostring(takeProfitForLong1R) +
", Take Profit 2: " + str.tostring(takeProfitForLong2R) +
", Take Profit 3: " + str.tostring(takeProfitForLong3R) +
", Stop Loss Price: " + str.tostring(stopLossForLong)
alertShortText = str.tostring(syminfo.ticker) + " SELL ALERT!" +
", Entry Price: " + str.tostring(entryOfShortPosition) +
", Take Profit 1: " + str.tostring(takeProfitForShort1R) +
", Take Profit 2: " + str.tostring(takeProfitForShort2R) +
", Take Profit 3: " + str.tostring(takeProfitForShort3R) +
", Stop Loss Price: " + str.tostring(stopLossForShort)
longJson = '{"content": "' + alertLongText + '"}'
shortJson = '{"content": "' + alertShortText + '"}'
if longCond
alert(longJson, alert.freq_once_per_bar_close)
if shortCond
alert(shortJson, alert.freq_once_per_bar_close)
Strong Buy/Sell with Demand/Supply and Volume HighlightStrong Buy/Sell with Demand/Supply and Volume Highlight
This indicator combines key technical elements to provide traders with robust buy and sell signals while highlighting significant market zones and volume trends. It's designed for traders seeking clarity and precision in their decision-making process.
Features:
Dynamic Buy/Sell Signals:
Utilizes the crossover of a fast EMA (default: 9) and a slow EMA (default: 21) to generate reliable buy and sell signals.
Buy signals are marked with green upward labels, while sell signals are marked with red downward labels.
Demand and Supply Zone Detection:
Automatically plots demand (support) and supply (resistance) zones based on recent price movements when buy or sell signals are triggered.
Zones are visually marked with lines for quick identification of key price levels.
Volume Analysis:
Highlights candles with high volume relative to the average 20-period volume (adjustable via the volume multiplier input).
High-volume bullish candles are marked green, and bearish candles are marked red, allowing traders to spot significant market activity instantly.
Inputs:
EMA Periods: Customizable fast and slow EMA settings to adjust signal sensitivity.
Demand/Supply Zones: Option to toggle the visibility of demand and supply levels.
Volume Multiplier: Control the threshold for detecting high-volume candles.
How to Use:
Buy Opportunities: Look for buy signals when the fast EMA crosses above the slow EMA, supported by demand zones and high volume.
Sell Opportunities: Observe sell signals when the fast EMA crosses below the slow EMA, reinforced by supply zones and bearish high-volume candles.
Combine this indicator with your trading strategy to enhance decision-making and improve trade timing.
This indicator is suitable for multiple timeframes and markets, making it a versatile tool for scalpers, day traders, and swing traders.
Scalping 2025 reforsEste indicador está diseñado para operaciones de scalping en gráficos de corto plazo, como el de 5 minutos. Combina tres herramientas clave para identificar oportunidades de compra y venta con alta probabilidad de éxito:
Cruces de EMAs (Medias Móviles Exponenciales):
Utiliza dos EMAs: una corta (9 períodos) y una larga (21 períodos).
Señal de compra: Cuando la EMA corta cruza por encima de la EMA larga.
Señal de venta: Cuando la EMA corta cruza por debajo de la EMA larga.
RSI (Índice de Fuerza Relativa):
Filtra las señales de compra y venta basándose en condiciones de sobrecompra y sobreventa.
Señal de compra: Cuando el RSI está por debajo de 30 (sobreventa).
Señal de venta: Cuando el RSI está por encima de 70 (sobrecompra).
Patrones de Velas Japonesas:
Incluye la detección de patrones de velas como Engulfing Alcista, Engulfing Bajista y Doji.
Estos patrones ayudan a confirmar la fuerza de la señal de compra o venta.
Características Principales:
Señales Visuales:
Triángulos verdes debajo de las velas para señales de compra.
Triángulos rojos encima de las velas para señales de venta.
EMAs en el Gráfico:
La EMA corta se muestra en azul.
La EMA larga se muestra en rojo.
RSI en un Panel Inferior:
Se grafica el RSI con niveles de sobrecompra (70) y sobreventa (30).
Patrones de Velas Resaltados:
Engulfing Alcista: Resaltado en verde azulado.
Engulfing Bajista: Resaltado en naranja.
Doji: Resaltado en gris.
Cómo Usar el Indicador:
Configuración:
Aplica el indicador en un gráfico de 5 minutos.
Ajusta los parámetros de las EMAs, RSI y patrones de velas según tus preferencias.
Señales de Compra:
Busca triángulos verdes debajo de las velas.
Confirma con:
Cruce alcista de las EMAs.
RSI en zona de sobreventa.
Patrón de vela alcista (Engulfing Alcista o Doji).
Señales de Venta:
Busca triángulos rojos encima de las velas.
Confirma con:
Cruce bajista de las EMAs.
RSI en zona de sobrecompra.
Patrón de vela bajista (Engulfing Bajista o Doji).
Gestión del Riesgo:
Usa stop-loss y take-profit para proteger tus operaciones.
Asegúrate de que las señales estén alineadas con la tendencia general del mercado.
Beneficios:
Precisión Mejorada: La combinación de EMAs, RSI y patrones de velas reduce las señales falsas.
Facilidad de Uso: Las señales visuales hacen que sea fácil identificar oportunidades rápidamente.
Adaptabilidad: Puedes ajustar los parámetros para adaptarlo a diferentes activos y estilos de trading.
Limitaciones:
Retraso en las Señales: Como todos los indicadores basados en medias móviles, las señales pueden llegar con cierto retraso.
Requiere Confirmación: Aunque el indicador filtra muchas señales falsas, es recomendable confirmar con análisis adicional (como niveles de soporte/resistencia o noticias del mercado).
Este indicador es ideal para traders que buscan operar en corto plazo y necesitan una herramienta visual y efectiva para identificar oportunidades de compra y venta. ¡Pruébalo y ajústalo según tus necesidades! 🚀
YCLK Al-Sat İndikatörüRSI Period (RSI Periyodu): Adjustable RSI period (default is 14).
Overbought Level (RSI Aşırı Alım): Sets the RSI threshold for overbought conditions (default is 70).
Oversold Level (RSI Aşırı Satım): Sets the RSI threshold for oversold conditions (default is 30).
Take Profit Ratio (Kâr Alma Oranı): Percentage ratio for take-profit levels (default is 1.05 or 5% profit).
Stop Loss Ratio (Zarar Durdurma Oranı): Percentage ratio for stop-loss levels (default is 0.95 or 5% loss).
RSI Calculation: The script calculates the Relative Strength Index (RSI) using the defined period.
Buy Signal: Generated when RSI crosses above the oversold level.
Sell Signal: Generated when RSI crosses below the overbought level.
Buy/Sell Signal Visualization:
Buy Signal: Green upward arrow labeled as "BUY".
Sell Signal: Red downward arrow labeled as "SELL".
Dynamic Take Profit and Stop Loss Levels:
Entry Price: Tracks the price at which a Buy signal occurs.
Take Profit (TP): Automatically calculated as Entry Price * Take Profit Ratio.
Stop Loss (SL): Automatically calculated as Entry Price * Stop Loss Ratio.
These levels are plotted on the chart with:
Blue circles for TP levels.
Red circles for SL levels.
Fibonacci Targets: The script also calculates Fibonacci levels based on the entry price:
Fibonacci 1.236 Level: Shown in purple.
Fibonacci 1.618 Level: Shown in orange.
Additional Visual Details:
Displays the current RSI value at each bar as a yellow label above the chart.
How to Use:
Apply the indicator to your TradingView chart.
Adjust the input parameters (RSI period, overbought/oversold levels, profit/loss ratios) based on your strategy.
Use the Buy and Sell signals to identify potential trade entries.
Use the TP and SL levels to manage risk and lock in profits.
Refer to the Fibonacci levels for extended profit targets.
VWAP Trading Signalsシグナルの動作イメージ
チャートに表示される内容:
VWAPライン(オレンジ)。
買いエントリー(緑ラベル)と売りエントリー(赤ラベル)。
利確または損切時のラベル。
シグナル例:
価格がVWAPを下回ると、BUYシグナル。
価格がVWAPを上回ると、SELLシグナル。
利確または損切条件を満たすと対応するシグナルを表示。
TRP İndikatörü - Ömer Faruk ŞenBu kod, TRP indikatörüne göre düşüş ve yükseliş sinyalleri üretir.
- Düşüş sinyali: 8. ve 9. mumlar kırmızı ve 7. mumun altında kapanır.
- Yükseliş sinyali: M9 mumu yeşil ve 13 mum sonra yükseliş beklenir.
Sinyaller, grafik üzerinde işaretlenir.
Asian Session Breakout//@version=6
indicator("Asian Session Breakout", overlay=true)
// Input per personalizzare l'orario della sessione asiatica
startTime = input.time(timestamp("0000-01-01 23:00 +0000"), title="Inizio sessione asiatica (UTC)")
endTime = input.time(timestamp("0000-01-01 08:00 +0000"), title="Fine sessione asiatica (UTC)")
// Variabili per calcolare massimo e minimo della sessione asiatica
var float asianHigh = na
var float asianLow = na
// Resetta massimo e minimo all'inizio della sessione
if (time >= startTime and time < endTime)
asianHigh := na
asianLow := na
// Aggiorna massimo e minimo durante la sessione asiatica
if (time >= startTime and time < endTime)
if na(asianHigh)
asianHigh := high
else
asianHigh := math.max(high, asianHigh)
if na(asianLow)
asianLow := low
else
asianLow := math.min(low, asianLow)
// Traccia i livelli di massimo e minimo
lineHigh = line.new(bar_index , asianHigh , bar_index, asianHigh, color=color.green, width=1, extend=extend.right)
lineLow = line.new(bar_index , asianLow , bar_index, asianLow, color=color.red, width=1, extend=extend.right)
// Breakout logica
longCondition = ta.crossover(close, asianHigh)
shortCondition = ta.crossunder(close, asianLow)
// Genera segnali
if (longCondition)
label.new(bar_index, high, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
alert("Breakout rialzista: Entrata Long", alert.freq_once_per_bar)
if (shortCondition)
label.new(bar_index, low, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
alert("Breakout ribassista: Entrata Short", alert.freq_once_per_bar)
// Mostra i livelli di massimo e minimo
bgcolor(time >= startTime and time < endTime ? color.new(color.blue, 90) : na, title="Sessione Asiatica")
Combined Open, Last Candle Close, Midpointgives previos and cuurent trading session open close levels clearly
Trend Retest Strategy1. The Two Lines: Support & Resistance Levels
Red Line (recentHigh):
Plots the highest price level over the last 7 days (42 bars on the 4-hour timeframe). This acts as a dynamic resistance level.
Example: If price approaches this line and reverses, it signals a potential resistance retest.
Green Line (recentLow):
Plots the lowest price level over the last 7 days (42 bars on 4H). This acts as a dynamic support level.
Example: If price bounces off this line, it signals a support retest.
These lines update automatically as new price data forms.
Why 42 bars?
4-hour chart = 6 bars per day (24 hours / 4 = 6).
6 bars/day × 7 days = 42 bars.
2. Entry Signals (Arrows)
The arrows appear when all your strategy’s conditions align:
For Long Entries (▲ Green Triangle Below Bar):
Daily Trend: Daily RSI ≥ 50 (bullish).
MA Crossover: 20-period SMA crosses above 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≥ 50 and rising (bullish momentum).
Retest: Price is within 0.5% of either the recentHigh (resistance) or recentLow (support).
Volume: Current volume > 20-period average volume.
Candle Confirmation: A bullish candle closes above the open.
For Short Entries (▼ Red Triangle Above Bar):
Daily Trend: Daily RSI < 50 (bearish).
MA Crossover: 20-period SMA crosses below 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≤ 50 and falling (bearish momentum).
Retest: Price is near recentHigh or recentLow (same 0.5% threshold).
Volume: Volume exceeds its 20-period average.
Candle Confirmation: A bearish candle closes below the open.
3. How It All Fits Together
Step 1: The indicator checks the daily RSI to confirm the broader trend.
Step 2: On the 4H chart, it tracks the moving averages (MA20 and MA50) and RSI for momentum.
Step 3: When price retests the dynamic support/resistance lines (red/green), it waits for volume and candle confirmation to validate the retest.
Step 4: If all rules align, an arrow appears (long or short).
Example Scenario (Long Entry):
Daily Chart: RSI = 60 (bullish).
4H Chart:
MA20 crosses above MA50.
RSI = 55 and rising.
Price dips to the green support line (within 0.5%).
Volume spikes above average.
A bullish candle closes higher.
Result: A green ▲ appears below the bar.
Cyril//@version=6
indicator("Signaux BB (Réintégration) avec RSI", overlay=true)
// Paramètres des Bandes de Bollinger
bb_length = 20 // Période des Bandes de Bollinger
bb_dev = 1.6 // Déviation standard
// Calcul des Bandes de Bollinger
basis = ta.sma(close, bb_length) // Moyenne mobile simple
dev = bb_dev * ta.stdev(close, bb_length) // Déviation standard
upper_bb = basis + dev // Bande supérieure
lower_bb = basis - dev // Bande inférieure
// Tracer les Bandes de Bollinger
plot(upper_bb, color=color.orange, linewidth=1, title="Bande Supérieure")
plot(basis, color=color.blue, linewidth=1, title="Moyenne Mobile")
plot(lower_bb, color=color.orange, linewidth=1, title="Bande Inférieure")
// Paramètres du RSI
rsi_length = 14 // Période du RSI
rsi_overbought = 60 // Niveau RSI pour les ventes
rsi_oversold = 35 // Niveau RSI pour les achats
// Calcul du RSI
rsi = ta.rsi(close, rsi_length)
// Conditions pour les signaux d'achat et de vente
buy_signal = (open < lower_bb and close < lower_bb and close > lower_bb and rsi < rsi_oversold)
sell_signal = (open > upper_bb and close > upper_bb and close < upper_bb and rsi > rsi_overbought)
// Afficher les signaux UNIQUEMENT si la condition RSI est respectée
plotshape(buy_signal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Achat")
plotshape(sell_signal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Vente")
Daily Buy/Sell Volumeindicator that The Daily Buy/Sell Volume Indicator is a custom-built tool that helps traders track and visualize the buying and selling volumes throughout a trading day. This indicator separates the total volume into two categories:
1. Buy Volume: Calculated when the closing price is higher than the opening price for a given candle. This represents the volume of bullish (buy) activity for the day.
2. Sell Volume: Calculated when the closing price is lower than the opening price for a given candle. This represents the volume of bearish (sell) activity for the day.
Key Features:
• Buy/Sell Volume Calculation: The indicator tracks the buying and selling volumes based on the relationship between the open and close prices of each candle.
• Daily Reset: The indicator resets at the start of each trading day, providing fresh calculations for the daily buy and sell volumes.
• Visual Representation: The buy volume is shown with a green line, while the sell volume is displayed with a red line, making it easy to identify bullish and bearish activity over the course of the day.
Scorpion [SCPteam]this is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for testthis is for test
IndicadorGH EVC v1 [Bielhpp]//@version=6
//Desenvolvido por Bielhpp Indicador Ponto de Entrada em tendencia
indicator(title='IndicadorGH EVC v1 ', overlay=true)
Bars = input.int(defval=8, title="Bars", minval=1, maxval=21, step=1)
MaxPercStop = input.int(defval=20, title="Max Percentual Stop", minval=1)
highValue = ta.highest(high, Bars + 1)
lowValue = ta.lowest(low, Bars + 1)
ColorUP = input.color(#66D8D8, "Buy")
ColorDown = input.color(#F2CC0D, "Sell")
ema9 = ta.ema(close, 9)
sma10 = ta.sma(close, 10)
ema27 = ta.ema(close, 27)
ema57 = ta.ema(close, 57)
ema200 = ta.ema(close, 200)
ema400 = ta.ema(close, 400)
plot(ema9, color=#fffeb4, title="9", linewidth=1)
plot(ema27, color=#1927bf, title="27", linewidth=2)
plot(ema200, color=#2CFFFE, title="200", linewidth=3)
plot(ema400, color=#FC28FC, title="400", linewidth=3)
crossUP = ta.crossover(ema27, ema57)
crossDOWN = ta.crossunder(ema27, ema57)
plotshape(series=crossUP ? ema27 : na, location=location.belowbar, color=#43f16c, style=shape.triangleup, text="BUY")
plotshape(series=crossDOWN ? ema27 : na, location=location.abovebar, color=color.rgb(241, 50, 50), style=shape.triangledown, text="SELL")
plot(ema27, color=color.blue)
plot(ema57, color=color.orange)
crossUPMAX = ta.crossover(ema9, ema400)
crossDOWNMAX = ta.crossunder(ema9, ema400)
plotshape(series=crossUPMAX ? ema9 : na, location=location.belowbar, color=#43f16c, style=shape.triangleup, text="MAX_BUY")
plotshape(series=crossDOWNMAX ? ema9 : na, location=location.abovebar, color=color.rgb(241, 50, 50), style=shape.triangledown, text="MAX_SELL")
// Configurar alertas para os cruzamentos
if (crossUPMAX)
alert("Alerta: Condição MAX_BUY foi ativada! Verifique o gráfico.", alert.freq_once_per_bar)
if (crossDOWNMAX)
alert("Alerta: Condição MAX_SELL foi ativada! Verifique o gráfico.", alert.freq_once_per_bar)
bUP = false
bDown = false
bDestaque = false
fTexto(vMsg, vTrigger, vStop, percStop) =>
syminfo.tickerid + ' ' + timeframe.period + vMsg + str.tostring(vTrigger) + ' Stop: ' + str.tostring(vStop + syminfo.mintick) + ' (' + str.tostring(percStop, format.percent) + ')'
if (sma10 >= sma10 ) and (open < sma10 ) and ((close > sma10) and (ema27 > ema57))
vStop = high - lowValue
pStop = vStop / high * 100
bUP := true
if pStop <= MaxPercStop
alert(fTexto((bDestaque ? ': *** DESTAQUE COMPRA *** ' : ': Compra: '), high, lowValue, pStop), alert.freq_once_per_bar_close)
if (sma10 <= sma10 ) and (open > sma10 ) and ((close < sma10) and (ema27 < ema57))
vStop = highValue - low
pStop = vStop / low * 100
bDown := true
if pStop <= MaxPercStop
alert(fTexto((bDestaque ? ': *** DESTAQUE VENDA *** ' : ': Venda: '), low, highValue, pStop), alert.freq_once_per_bar_close)
barcolor(bUP ? ColorUP : bDown ? ColorDown : na)