Smart Moving Concepts [GILDEX]This all-in-one indicator displays real-time market structure (internal & swing BOS / CHoCH), order blocks, premium & discount zones, equal highs & lows, and much more...allowing traders to automatically mark up their charts with widely used price action methodologies. Following the release of our Fair Value Gap script, we received numerous requests from our community to release more features in the same category.
"Smart Money Concepts" (SMC) is a fairly new yet widely used term amongst price action traders looking to more accurately navigate liquidity & find more optimal points of interest in the market. Trying to determine where institutional market participants have orders placed (buy or sell side liquidity) can be a very reasonable approach to finding more practical entries & exits based on price action.
The indicator includes alerts for the presence of swing structures and many other relevant conditions.
Features
This indicator includes many features relevant to SMC, these are highlighted below:
Full internal & swing market structure labeling in real-time
Break of Structure (BOS)
Change of Character (CHoCH)
Order Blocks (bullish & bearish)
Equal Highs & Lows
Fair Value Gap Detection
Previous Highs & Lows
Premium & Discount Zones as a range
Options to style the indicator to more easily display these concepts
Settings
Mode: Allows the user to select Historical (default) or Present, which displays only recent data on the chart.
Style: Allows the user to select different styling for the entire indicator between Colored (default) and Monochrome.
Color Candles: Plots candles based on the internal & swing structures from within the indicator on the chart.
Internal Structure: Displays the internal structure labels & dashed lines to represent them. (BOS & CHoCH).
Confluence Filter: Filter non-significant internal structure breakouts.
Swing Structure: Displays the swing structure labels & solid lines on the chart (larger BOS & CHoCH labels).
Swing Points: Displays swing points labels on chart such as HH, HL, LH, LL.
Internal Order Blocks: Enables Internal Order Blocks & allows the user to select how many most recent Internal Order Blocks appear on the chart.
Swing Order Blocks: Enables Swing Order Blocks & allows the user to select how many most recent Swing Order Blocks appear on the chart.
Equal Highs & Lows: Displays EQH/EQL labels on chart for detecting equal highs & lows.
Bars Confirmation: Allows the user to select how many bars are needed to confirm an EQH/EQL symbol on chart.
Fair Value Gaps: Displays boxes to highlight imbalance areas on the chart.
Auto Threshold: Filter out non-significant fair value gaps.
Timeframe: Allows the user to select the timeframe for the Fair Value Gap detection.
Extend FVG: Allows the user to choose how many bars to extend the Fair Value Gap boxes on the chart.
Highs & Lows MTF: Allows the user to display previous highs & lows from daily, weekly, & monthly timeframes as significant levels.
Premium/Discount Zones: Allows the user to display Premium, Discount, and Equilibrium zones on the chart
Genişlik Göstergeleri
*【一分鐘找最佳進場】1-Mins Entry Point-1/5/15在 1 分鐘時間框架內尋找進場點,當 Stochastic 指標於 1 分鐘、5 分鐘、15 分鐘週期中,同時位於低檔(低於 15)或同時位於高檔(高於 85)時。
==================================
Stoch 1 / 5 / 15 Both Low(15) or Both High(85) , looking for entry point in 1 Min TimeFrame
liquidity reversalThis script detects liquidity sweeps and confirms reversals based on price action. It looks for:
- A sweep of a recent high or low
- A reversal candle closing back inside range
- (Optional) Confirmation via market structure break (MSB)
When confirmed, it plots:
- BUY signals after low sweep + bullish break
- SELL signals after high sweep + bearish break
Works on any timeframe. Designed for MNQ scalping during NY open.
Sector Rotation & Money Flow Dashboard📊 Overview
The Sector Rotation & Money Flow Dashboard is a comprehensive market analysis tool that tracks 39 major sector ETFs in real-time, providing institutional-grade insights into sector rotation, momentum shifts, and money flow patterns. This indicator helps traders identify which sectors are attracting capital, which are losing favor, and where the next opportunities might emerge.
Perfect for swing traders, position traders, and investors who want to stay ahead of sector rotation and ride the strongest trends while avoiding weak sectors.
🎯 What This Indicator Does
Tracks 39 Major Sectors: From technology to utilities, cryptocurrencies to commodities
Calculates Multiple Timeframes: 1-week, 1-month, 3-month, and 6-month performance
Advanced Momentum Metrics: Proprietary momentum score and acceleration calculations
Relative Strength Analysis: Compare sector performance against any benchmark index
Money Flow Signals: Visual indicators showing where institutional money is moving
Smart Filtering: Pre-built strategy filters for different trading styles
Trend Detection: Emoji-based visual system for quick trend identification
💡 Key Features
1. Performance Metrics
Multiple timeframe analysis (1W, 1M, 3M, 6M)
Month-over-month change tracking
Relative strength vs benchmark index
2. Advanced Analytics
Momentum Score: Weighted composite of recent performance
Acceleration: Rate of change in momentum (second derivative)
Money Flow Signals: IN/OUT/TURN/WATCH indicators
3. Strategy Preset Filters
🎯 Swing Trade: High momentum opportunities
📈 Trend Follow: Established uptrends
🔄 Mean Reversion: Oversold bounce candidates
💎 Value Hunt: Deep value opportunities
🚀 Breakout: Emerging strength
⚠️ Risk Off: Sectors to avoid
4. Customization
All 39 sector ETFs can be customized
Adjustable benchmark index
Flexible display options
Multiple sorting methods
📋 Settings Documentation
Display Settings
Show Table (Default: On)
Toggles the entire dashboard display
Table Position (Default: Middle Center)
Choose from 9 positions on your chart
Options: Top/Middle/Bottom × Left/Center/Right
Rows to Show (Default: 15)
Number of sectors displayed (5-40)
Useful for focusing on top/bottom performers
Sort By (Default: Momentum)
1M/3M/6M: Sort by specific timeframe performance
Momentum: Weighted recent performance score
Acceleration: Rate of momentum change
1M Change: Month-over-month improvement
RS: Relative strength vs benchmark
Flow: IN First: Prioritize sectors with inflows
Flow: TURN First: Focus on reversal candidates
Recovery Plays: Oversold sectors recovering
Oversold Bounce: Deepest declines with positive signs
Top Gainers/Losers 3M: Best/worst quarterly performers
Best Acc + Mom: Combined strength score
Worst Acc (Topping): Sectors losing momentum
Filter Settings
Strategy Preset Filter (Default: All)
All: No filtering
🎯 Swing Trade: Mom >5, Acc >2, Money flowing in
📈 Trend Follow: Positive 1M & 3M, RS >0
🔄 Mean Reversion: Oversold but improving
💎 Value Hunt: Down >10% with recovery signs
🚀 Breakout: Rapid momentum surge
⚠️ Risk Off: Declining or topping sectors
Custom Flow Filter: Use manual flow filter
Custom Flow Signal Filter (Default: All)
Only active when Strategy Preset = "Custom Flow Filter"
IN Only: Strong inflows
TURN Only: Reversal signals
WATCH Only: Recovery candidates
OUT Only: Outflow sectors
Active Flows Only: Any non-neutral signal
Hide Low Volume ETFs (Default: Off)
Filters out illiquid sectors (future enhancement)
Visual Settings
Show Trend Emojis (Default: On)
🚀 Breakout (Strong 1M + High Acceleration)
🔥 Hot Recovery (From -10% to positive)
💪 Steady Uptrend (All timeframes positive)
➡️ Sideways/Ranging
⚠️ Warning/Topping (Up >15%, now slowing)
📉 Falling (Negative + declining)
🔄 Bottoming (Improving from lows)
Compact Mode (Default: Off)
Removes decimals for cleaner display
Useful when showing many rows
Min Data Points Required (Default: 3)
Minimum data points needed to display a sector
Prevents showing sectors with insufficient data
Relative Strength Settings
RS Benchmark Index (Default: AMEX:SPY)
Index to compare all sectors against
Can use SPY, QQQ, IWM, or any other index
RS Period (Days) (Default: 21)
Lookback period for RS calculation
21 days = 1 month, 63 days = 3 months, etc.
Sector ETF Settings (Groups 1-39)
Each sector has two inputs:
Symbol: The ticker (e.g., "AMEX:XLF")
Name: Display name (e.g., "Financials")
All 39 sectors can be customized to track different ETFs or markets.
📈 Column Explanations
Sector: ETF name/description
1M%: 1-month (21-day) performance
3M%: 3-month (63-day) performance
6M%: 6-month (126-day) performance
Mom: Momentum score (weighted average, recent-biased)
Acc: Acceleration (momentum rate of change)
Δ1M: Month-over-month change
RS: Relative strength vs benchmark
Flow: Money flow signal
↗️ IN: Strong inflows
🔄 TURN: Potential reversal
👀 WATCH: Recovery candidate
↘️ OUT: Outflows
—: Neutral
🎮 Usage Tips
For Swing Traders (3-14 days)
Use "🎯 Swing Trade" filter
Sort by "Acceleration" or "Momentum"
Look for Flow = "IN" and Mom >10
Confirm with positive RS
For Position Traders (2-8 weeks)
Use "📈 Trend Follow" filter
Sort by "RS" or "Best Acc + Mom"
Focus on consistent green across timeframes
Ensure RS >3 for market leaders
For Value Investors
Use "💎 Value Hunt" filter
Sort by "Recovery Plays" or "Top Losers 3M"
Look for improving Δ1M
Check for "WATCH" or "TURN" signals
For Risk Management
Regularly check "⚠️ Risk Off" filter
Sort by "Worst Acc (Topping)"
Review holdings for ⚠️ warning emojis
Exit sectors showing "OUT" flow
Market Regime Recognition
Bull Market: Many sectors showing "IN" flow, positive RS
Bear Market: Widespread "OUT" flows, negative RS
Rotation: Mixed flows, some "IN" while others "OUT"
Recovery: Multiple "TURN" and "WATCH" signals
🔧 Pro Tips
Combine Filters + Sorting: Filter first to narrow candidates, then sort to prioritize
Multi-Timeframe Confirmation: Best setups show alignment across 1M, 3M, and momentum
RS is Key: Sectors outperforming SPY (RS >0) tend to continue outperforming
Acceleration Matters: Positive acceleration often precedes price breakouts
Flow Transitions: "WATCH" → "TURN" → "IN" progression identifies new trends early
Regular Scans:
Daily: Check "Acceleration" sort
Weekly: Review "1M Change"
Monthly: Analyze "RS" shifts
Divergence Signals:
Price up but Acceleration down = Potential top
Price down but Acceleration up = Potential bottom
Sector Pairs Trading: Long sectors with "IN" flow, short sectors with "OUT" flow
⚠️ Important Notes
This indicator makes 40 security requests (maximum allowed)
Best used on Daily timeframe
Data updates in real-time during market hours
Some ETFs may show "—" if data is unavailable
🎯 Common Strategies
"Follow the Flow"
Only trade sectors showing "IN" flow with positive RS
"Rotation Catcher"
Focus on "TURN" signals in sectors down >15% from highs
"Momentum Rider"
Trade top 3 sectors by Momentum score, exit when Acceleration turns negative
"Mean Reversion"
Buy sectors in bottom 20% by 3M performance when Δ1M improves
"Relative Strength Leader"
Maintain positions only in sectors with RS >5
Not financial advice - always do additional research
KhoiHV - Bollinger Bands Buy/Sell Area ProBollinger Bands Buy/Sell Area Pro is a professional-grade indicator designed to identify potential trading opportunities based on Bollinger Bands. It highlights dynamic buy and sell areas by combining price action with volatility, helping traders quickly visualize market conditions.
✨ Key Features
Automatically plots upper, middle, and lower Bollinger Bands.
Marks Buy Areas when price enters oversold zones near the lower band.
Marks Sell Areas when price enters overbought zones near the upper band.
Configurable inputs for length, source, and multiplier to fit any trading style.
Easy-to-read chart visuals with colored zones for instant recognition.
💡 How to Use
Look for Buy Areas near the lower band in trending markets to catch potential rebounds.
Watch for Sell Areas near the upper band to anticipate possible pullbacks.
Combine with volume, momentum, or trend indicators for stronger confirmation.
This tool is especially useful for traders who want a clear, visual edge in spotting volatility-based entries and exits without constantly recalculating signals.
MultiFactor Power Indicator v4 (No-Repaint) 📊 Strategy: Trend + Momentum + Signal Confirmation
This setup uses 3 layers so signals are reliable:
1. Trend Filter: 200 EMA → only take trades in trend direction.
2. Momentum Trigger: RSI + MACD combo to confirm momentum.
3. Entry/Exit Signal: Arrow on chart (Buy/Sell) with alerts — non-repainting because it only confirms on candle close.
Pro Market Toolkit (TH) v2.4 — S/R + Zones + ATR Bands + Alertsรายละเอียด (ภาษาไทย):
อินดิเคเตอร์ชุดเครื่องมือครบวงจรสำหรับนักเทรด
คำนวณ แนวรับ–แนวต้าน (Support / Resistance) อัตโนมัติจากสวิง (Pivot High/Low)
สร้าง Supply/Demand Zones จาก ATR เพื่อหาพื้นที่กลับตัวสำคัญ
วาดเส้น Moving Average และ ATR Bands เพื่อประเมินแนวโน้มและความผันผวน
แสดงสัญญาณ Breakout และ Bounce/Reject อย่างชัดเจนบนกราฟ
รองรับ Alerts สำหรับ 4 เงื่อนไขสำคัญ: Breakout ขึ้น/ลง, Demand Bounce, Supply Reject
มีตารางแสดง Trend และค่า ATR ปัจจุบัน
เหมาะสำหรับผู้ที่ต้องการดูแนวโน้ม, หาจุดเข้า/ออก และรับการแจ้งเตือนอัตโนมัติ โดยไม่ต้องเฝ้ากราฟตลอดเวลา
Description (English):
A comprehensive trading toolkit indicator for professional traders.
Automatically detects Support/Resistance levels using swing pivots
Generates Supply/Demand Zones based on ATR to highlight potential reversal areas
Plots Moving Average and ATR Bands for trend and volatility analysis
Displays clear signal markers for Breakouts and Zone Bounces/Rejects
Provides Alerts for 4 key conditions: Breakout Up/Down, Demand Bounce, Supply Reject
Includes an on-chart table showing the current Trend and ATR value
Ideal for traders who want automatic key levels, zones, and signal alerts without the need to monitor the chart constantly.
EdgePredict — SWING CLEAN (v2.1)easy and clean indicator for predictions
Ultra-simple reading
Colored candlesticks = context (above EMA → greenish, below → reddish).
Green/red halo = active swing signal.
Arrow = entry timing.
Activate the Score panel only if you want to validate the signal strength (showScorePane).
DRKSCALPER Strategy"This indicator is designed to help traders identify market structure shifts, order blocks, and liquidity zones. It is useful for scalping and swing trading, and works on multiple timeframes."
DRKSCALPER Strategycoded by Russian coders
this indicators is based coded by buy and sell via price action and fundamental analysis
EMA + SMA - R.AR.A. Trader - Multi-MA Suite (EMA & SMA)
1. Overview
Welcome, students of R.A. Trader!
This indicator is a powerful and versatile tool designed specifically to support the trading methodologies taught by Rudá Alves. The R.A. Trader Multi-MA Suite combines two fully customizable groups of moving averages into a single, clean indicator.
Its purpose is to eliminate chart clutter and provide a clear, at-a-glance view of market trends, momentum, and dynamic levels of support and resistance across multiple timeframes. By integrating key short-term and long-term moving averages, this tool will help you apply the R.A. Trader analytical framework with greater efficiency and precision.
2. Core Features
Dual Moving Average Groups: Configure two independent sets of moving averages, perfect for separating short-term (EMA) and long-term (SMA) analysis.
Four MAs Per Group: Each group contains four fully customizable moving averages.
Multiple MA Types: Choose between several types of moving averages for each group (SMA, EMA, WMA, HMA, RMA).
Toggle Visibility: Easily show or hide each group with a single click in the settings panel.
Custom Styling: Key moving averages are styled for instant recognition, including thicker lines for longer periods and a special dotted line for the 250-period SMA.
Clean and Efficient: The code is lightweight and optimized to run smoothly on the TradingView platform.
Group 1 (Default: EMAs)
This group is pre-configured for shorter-term Exponential Moving Averages but is fully customizable.
Setting Label Description
MA Type - EMA Select the type of moving average for this entire group (e.g., EMA, SMA).
EMA 5 Sets the period for the first moving average.
EMA 10 Sets the period for the second moving average.
EMA 20 Sets the period for the third moving average.
EMA 400 Sets the period for the fourth moving average.
Show EMA Group A checkbox to show or hide all MAs in this group.
Exportar para as Planilhas
Group 2 (Default: SMAs)
This group is pre-configured for longer-term Simple Moving Averages, often used to identify major trends.
Setting Label Description
MA Type - SMA Select the type of moving average for this entire group.
SMA 50 Sets the period for the first moving average.
SMA 100 Sets the period for the second moving average.
SMA 200 Sets the period for the third moving average.
SMA 250 Sets the period for the fourth moving average (styled as a dotted line).
Show SMA Group A checkbox to show or hide all MAs in this group.
Daily / Weekly / Monthly High-Low Levels (Arindam )How it works:
Daily levels are taken from the previous day.
Weekly levels are from the previous week.
Monthly levels are from the previous month.
They extend across the chart for visual reference.
You can customize colors, line styles, or whether they reset each session.
Do you want me to also add labels on the right side (e.g., “Daily High”, “Weekly Low”) so the lines are clearly marked?
BB next+2This indicator extends the standard Bollinger Bands by allowing you to project future Bollinger Bands based on assumed closing prices for the next trading day (+1) and the day after (+2).
Key Features:
Plots standard Bollinger Bands (supports SMA, EMA, etc.)
Allows manual input of assumed closing prices for the next trading day (+1) and the day after (+2)
Displays projected Bollinger Bands (basis, upper, and lower) based on the input values
Option to restrict display to the latest bar or confirmed bars only
RSI - (R.A Trader)Of course. Here is a descriptive text in English for the custom RSI indicator, written for the students of R.A. Trader.
The R.A. Trader Custom RSI Indicator
1. Overview
Welcome, students of R.A. Trader!
This is the official custom Relative Strength Index (RSI) indicator designed specifically to support the analytical methods taught by Rudá Alves. This tool replaces the standard RSI with a specialized configuration, providing a more nuanced view of market momentum that aligns directly with the R.A. Trader strategy.
Its purpose is to help you quickly and accurately identify key zones of strength, weakness, and potential market exhaustion.
Market Sessions By Zcointv/ScottfdxThis code has been writted By Zcointv/Scottfdx traders
This is a Market Volatility Box Breakout Strategy designed for intraday trading on 5-minute charts.
How it Works:
Volatility Box: The strategy defines a "volatility box" by capturing the price range (High and Low) around the New York market open.
The box begins one hour before the market open and ends 30 minutes after the market open.
The High and Low of this box are locked for the rest of the day.
Breakout Entry: A trade is opened only after this session period has ended.
Long: A 5-minute candle must close above the High of the box.
Short: A 5-minute candle must close below the Low of the box.
Risk Management:
1% Risk: Each trade risks a maximum of 1% of the total account equity. The position size is calculated dynamically based on this risk.
Stop Loss: The initial stop-loss is placed just outside the opposite side of the box.
1:1 Take Profit: The target is set at a 1:1 risk-to-reward ratio.
Partial Exit & Breakeven: When the take-profit target is hit, 50% of the position is closed. The stop-loss for the remaining 50% is then immediately moved to the entry price (breakeven).
Key Features:
The strategy is limited to one trade per day.
The indicator also has options to display configurable boxes for the Tokyo and London sessions.
The High and Low levels of the volatility box are plotted on the chart for visual reference.
OB/SR + Day Open Signals (15m) - XAUUSD Daytrade//@version=5
indicator("OB/SR + Day Open Signals (15m) - XAUUSD Daytrade", overlay=true)
// ========================= INPUTS =========================
obLookback = input.int(5, "Pivot lookback (BOS)", minval=2)
obMaxAgeBars = input.int(600, "Máx. idade OB (barras)", minval=50)
mitigTolPts = input.float(0.30, "Tolerância de mitigação (em pontos)", minval=0.0)
useDayOpenBias = input.bool(true, "Somente compras acima / vendas abaixo da Abertura do Dia")
useSR = input.bool(true, "Usar Suporte/Resistência (pivots)")
srLen = input.int(20, "SR janela (barras)", minval=5)
confirmClose = input.bool(true, "Confirmar com fechamento além do OB/SR")
showLabels = input.bool(true, "Mostrar labels de Entrada")
showBoxes = input.bool(true, "Desenhar caixas dos Order Blocks")
// ========================= FILTRO DE SESSÃO =========================
sessLondon = input.session("0700-1100", "Sessão Londres")
sessNY = input.session("1230-1600", "Sessão NY")
useSessions = input.bool(true, "Operar apenas em Londres/NY")
inSession = not useSessions or (time(timeframe.period, sessLondon) or time(timeframe.period, sessNY))
// ========================= DAILY OPEN =========================
var color dayOpenColor = color.new(color.gray, 0)
= request.security(syminfo.tickerid, "D", )
if input.bool(true, "Mostrar Abertura do Dia")
line.new(bar_index , dayOpen , bar_index, dayOpen , extend=extend.right, color=dayOpenColor, width=1, style=line.style_dotted)
// ========================= BOS via Pivots =========================
ph = ta.pivothigh(high, obLookback, obLookback)
pl = ta.pivotlow(low, obLookback, obLookback)
var float lastSwingHigh = na
var float lastSwingLow = na
if not na(ph)
lastSwingHigh := ph
if not na(pl)
lastSwingLow := pl
bosUp = not na(ph) and high > nz(lastSwingHigh )
bosDown = not na(pl) and low < nz(lastSwingLow )
// ========================= ORDER BLOCKS =========================
var box bullOBs = array.new_box()
var float bullLow = array.new_float()
var float bullHigh = array.new_float()
var int bullBorn = array.new_int()
var box bearOBs = array.new_box()
var float bearLow = array.new_float()
var float bearHigh = array.new_float()
var int bearBorn = array.new_int()
createOB(isBull) =>
idx = isBull ? ta.barssince(close < open) : ta.barssince(close > open)
barsAgo = idx
obOpen = open
obClose = close
lo = math.min(obOpen, obClose)
hi = math.max(obOpen, obClose)
if isBull
bx = showBoxes ? box.new(bar_index , lo, bar_index, hi, xloc=xloc.bar_index, extend=extend.right, bgcolor=color.new(color.teal, 85), border_color=color.new(color.teal, 0)) : na
array.push(bullOBs, bx)
array.push(bullLow, lo)
array.push(bullHigh, hi)
array.push(bullBorn, bar_index)
else
bx = showBoxes ? box.new(bar_index , lo, bar_index, hi, xloc=xloc.bar_index, extend=extend.right, bgcolor=color.new(color.red, 85), border_color=color.new(color.red, 0)) : na
array.push(bearOBs, bx)
array.push(bearLow, lo)
array.push(bearHigh, hi)
array.push(bearBorn, bar_index)
if bosUp
createOB(true)
if bosDown
createOB(false)
cleanupOBs() =>
for i = array.size(bullOBs) - 1 to 0
if bar_index - array.get(bullBorn, i) > obMaxAgeBars
bx = array.get(bullOBs, i)
if showBoxes and not na(bx)
box.delete(bx)
array.remove(bullOBs, i)
array.remove(bullLow, i)
array.remove(bullHigh, i)
array.remove(bullBorn, i)
for j = array.size(bearOBs) - 1 to 0
if bar_index - array.get(bearBorn, j) > obMaxAgeBars
bx2 = array.get(bearOBs, j)
if showBoxes and not na(bx2)
box.delete(bx2)
array.remove(bearOBs, j)
array.remove(bearLow, j)
array.remove(bearHigh, j)
array.remove(bearBorn, j)
cleanupOBs()
// ========================= SUPORTE / RESISTÊNCIA =========================
srHigh = useSR ? ta.highest(high, srLen) : na
srLow = useSR ? ta.lowest(low, srLen) : na
plot(useSR ? srHigh : na, title="Resistência (SR)", style=plot.style_linebr, linewidth=1, color=color.new(color.red, 0))
plot(useSR ? srLow : na, title="Suporte (SR)", style=plot.style_linebr, linewidth=1, color=color.new(color.teal, 0))
// ========================= RETEST / MITIGAÇÃO =========================
within(val, lo, hi, tol) => val >= lo - tol and val <= hi + tol
bullTouch = false
for i = 0 to array.size(bullLow) - 1
if within(low, array.get(bullLow, i), array.get(bullHigh, i), mitigTolPts)
bullTouch := true
bearTouch = false
for i = 0 to array.size(bearLow) - 1
if within(high, array.get(bearLow, i), array.get(bearHigh, i), mitigTolPts)
bearTouch := true
// Bias pela Abertura do Dia
longBias = not useDayOpenBias or close >= dayOpen
shortBias = not useDayOpenBias or close <= dayOpen
// Confirmação por fechamento
bullConf = bullTouch and (not confirmClose or close > open)
bearConf = bearTouch and (not confirmClose or close < open)
// Sinais combinando OB + SR + Bias + Sessão
srLongOk = not useSR or close >= srLow
srShortOk = not useSR or close <= srHigh
longSignal = bullConf and longBias and srLongOk and inSession
shortSignal = bearConf and shortBias and srShortOk and inSession
plotshape(longSignal, title="Long Signal", style=shape.triangleup, size=size.tiny, color=color.new(color.teal, 0), location=location.belowbar, text="BUY")
plotshape(shortSignal, title="Short Signal", style=shape.triangledown, size=size.tiny, color=color.new(color.red, 0), location=location.abovebar, text="SELL")
// ========================= GESTÃO DE RISCO =========================
accBalance = input.float(10000, "Saldo da Conta ($)", minval=100)
riskPercent = input.float(2, "Risco por Trade (%)", minval=0.1)
stopLossPontos = input.float(5, "SL em pontos", minval=0.1)
riskAmount = accBalance * (riskPercent / 100)
valorPorPonto = syminfo.pointvalue
loteSugerido = riskAmount / (stopLossPontos * valorPorPonto)
var label lotLabel = na
if longSignal or shortSignal
if not na(lotLabel)
label.delete(lotLabel)
lotLabel := label.new(bar_index, high, str.tostring(loteSugerido, format.mintick) + " lotes sugeridos", color=color.new(color.blue, 0), style=label.style_label_down, textcolor=color.white)
// ========================= ALERTAS =========================
alertcondition(longSignal, title="BUY (OB/SR + DayOpen)", message="BUY: OB mitigado + SR + bias acima da abertura do dia + sessão válida")
alertcondition(shortSignal, title="SELL (OB/SR + DayOpen)", message="SELL: OB mitigado + SR + bias abaixo da abertura do dia + sessão válida")
Reversal Radars — Berk v2.0 (Bottom & Top)1) Combined script (Dip+Tepe)
Title:
Reversal Radars — Berk v2.0 (Bottom & Top)
Description (EN):
What it does
Two high-probability reversal detectors in one indicator: a Bottom Reversal Radar (long bias) and a Top Reversal Radar (short/hedge bias). Each radar aggregates multiple conditions into a single score and triggers when Score ≥ Threshold.
How it works
RSI regime shift: Bottom = recovery after oversold (touched 30, crosses up 35). Top = roll-over from overbought (touched 70, crosses down 65).
MACD cross: Bull (up) for bottoms, Bear (down) for tops.
EMA8 filter: Close above (bottom) / below (top) EMA(8).
Structure break (BOS): Close above recent swing high / below recent swing low (lookbackBars, using precomputed highest/lowest to avoid inconsistencies).
EMA200 proximity: Price within a configurable band (default −5% … +2%).
Volume expansion: Volume ≥ SMA(20) × multiplier (default 1.5×).
Divergence: Pivot-confirmed (3/3) bullish (bottom) or bearish (top) RSI divergence.
Scoring: RSI shift +2, divergence +2, MACD +1, EMA8 +1, BOS +1, Volume +1, EMA200 band +1.
Signals & Alerts
Bottom: label “DÖNÜŞ↑” and alert “Dipten Dönüş — Ana Sinyal” when scoreLong ≥ thrLong.
Top: label “DÖNÜŞ↓” and alert “Tepeden Dönüş — Ana Sinyal” when scoreShort ≥ thrShort.
Use Once per bar close for stable alerts.
Inputs
lenRSI, rsiOS=30, rsiRecover=35, rsiOB=70, rsiFall=65, volLen=20, volMult=1.5, lookbackBars=5, ema200 band (−5…+2%), thrLong/thrShort, toggles for Bottom/Top.
Timeframes & tips
Best on Daily/4H. Tighten thresholds (e.g., 4) and raise volume multiplier (1.8–2.0×) on lower TFs or thin liquidity.
No-repaint note
Evaluated on bar close; pivot divergences confirm with a natural ~3-bar delay.
Disclaimer
Educational use only. Not financial advice.
Tags: reversal, divergence, rsi, macd, ema, volume, trend, screener, stocks, crypto, bist
2) Bottom-only (Dip)
Title:
Bottom Reversal Radar — Berk v1.4
Description (EN):
Purpose
Scores bottoming conditions and triggers when Score ≥ Threshold (default 3).
Components
RSI recovery after oversold (30→35), MACD bull cross, close above EMA8, BOS above recent swing high, near-EMA200 band (−5…+2%), volume ≥ SMA(20)×1.5, and pivot-confirmed (3/3) bullish RSI divergence. Weights: RSI +2, Divergence +2, others +1.
Usage
Add to chart, set alert “Dipten Dönüş — Ana Sinyal”, Once per bar close. Works on any timeframe (need ≥200 bars for EMA200). Daily/4H recommended.
No-repaint
Bar-close evaluation; divergence confirms with ~3 bars.
Tags: bottom, reversal, rsi, macd, ema, volume, divergence
3) Top-only (Tepe)
Title:
Top Reversal Radar — Berk v1.0
Description (EN):
Purpose
Detects topping risk and triggers when Score ≥ Threshold (default 3) for exits/hedges.
Components
RSI roll-over from overbought (70→65), MACD bear cross, close below EMA8, BOS below recent swing low, near-EMA200 band, volume ≥ SMA(20)×1.5, and pivot-confirmed (3/3) bearish RSI divergence. Weights: RSI +2, Divergence +2, others +1.
Usage
Add to chart, set alert “Tepeden Dönüş — Ana Sinyal”, Once per bar close. Daily/4H preferred; tighten thresholds on lower TFs.
No-repaint
Bar-close evaluation; divergence confirms with ~3 bars.
Tags: top, reversal, rsi, macd, ema, volume, divergence
Market Internal Strength (Nasdaq/S&P 500)### Summary
This indicator is a versatile tool designed to measure the "internal health" or "market breadth" of a major stock index. Instead of just looking at the index's price, it analyzes the percentage of its constituent stocks that are participating in the trend. Users can easily switch between the **Nasdaq 100** and the **S&P 500** directly from the settings.
The data is displayed as an oscillator (scaled 0-100), similar to the RSI, making it intuitive to identify broad market **Overbought** and **Oversold** conditions and spot potential **Divergences** against the index price.
---
### What does it measure?
The indicator plots three lines based on the selected index's market breadth data:
* **% > 20D MA (Blue Line):** The percentage of stocks trading above their 20-day moving average (short-term trend).
* **% > 50D MA (Orange Line):** The percentage of stocks trading above their 50-day moving average (medium-term trend).
* **% > 200D MA (Red Line):** The percentage of stocks trading above their 200-day moving average (long-term trend).
---
### How to Use and Interpret
**1. Overbought / Oversold Conditions:**
* **Approaching the Overbought Zone (Value > 80):** This indicates that a very high number of stocks are in an uptrend, suggesting the market may be overheated or in a state of "Greed." This can signal a potential pullback or consolidation ahead.
* **Approaching the Oversold Zone (Value < 20):** This indicates that a large number of stocks have been sold off heavily, suggesting the market may be in a state of "Extreme Fear." This could present an opportunity for a technical rebound.
**2. Trend Confirmation:**
* When an index (e.g., QQQ or SPY) is making new highs and the **% > 200D MA** line is also rising, it confirms that the uptrend is healthy and broadly supported by the majority of stocks.
**3. Divergence Signals:**
* **Bearish Divergence:** If the index price reaches a new high but the indicator (especially the 50D and 200D lines) forms a lower high, it's a warning sign. This suggests that fewer stocks are participating in the rally and the trend's foundation is weakening, which could precede a reversal.
* **Bullish Divergence:** Conversely, if the index price makes a new low but the indicator forms a higher low, it signals that selling pressure is exhausting. Fewer stocks are making new lows, which could be an early sign of a potential bottom and a reversal to the upside.
---
### Settings
* **Index:** Choose between the "Nasdaq 100" and "S&P 500" as your data source.
* **Timeframe:** Allows you to select the data's timeframe (Daily "D" is recommended as the minimum).
* **Overbought/Oversold Level:** Lets you customize the threshold for the OB/OS zones.
* **Line Visibility:** You can toggle the visibility of each of the three lines.
Nasdaq 100 Internal Strength### Summary
This indicator is designed to measure the "health" or "internal strength" of the Nasdaq 100 index. Instead of just looking at the index's price, it analyzes whether the majority of its constituent stocks are participating in the trend. The data is displayed as an oscillator (scaled 0-100), similar to the RSI, making it easy to identify broad market Overbought and Oversold conditions.
This tool is ideal for traders and investors who want a deeper perspective on market dynamics, helping to confirm trend strength or spot early warning signs of a potential reversal.
---
### What does it measure?
The indicator plots three lines based on the market breadth data for the Nasdaq 100 index:
* **% > 20D MA (Blue Line):** The percentage of Nasdaq 100 stocks trading above their 20-day moving average (short-term trend).
* **% > 50D MA (Orange Line):** The percentage of Nasdaq 100 stocks trading above their 50-day moving average (medium-term trend).
* **% > 200D MA (Red Line):** The percentage of Nasdaq 100 stocks trading above their 200-day moving average (long-term trend).
---
### How to Use and Interpret
**Overbought / Oversold Conditions:**
* **Approaching the Overbought Zone (Value > 80):** This indicates that a very high number of stocks are in an uptrend, suggesting the market may be overheated or in a state of "Greed." This can signal a potential pullback or consolidation ahead.
* **Approaching the Oversold Zone (Value < 20):** This indicates that a large number of stocks have been sold off heavily, suggesting the market may be in a state of "Extreme Fear." This could present an opportunity for a technical rebound.
**Trend Confirmation:**
* When the index (e.g., QQQ) is making new highs, and the `% > 200D MA` line is also rising and making new highs, it confirms that the uptrend is healthy and broadly supported by the majority of stocks.
**Divergence Signals:**
* **Bearish Divergence:** If the index price reaches a new high, but the indicator (especially the 50D and 200D lines) fails to reach a new high and forms a lower high instead, it's a warning sign. This suggests that fewer stocks are participating in the rally, and the trend's foundation is weakening, which could precede a reversal.
* **Bullish Divergence:** Conversely, if the index price makes a new low, but the indicator forms a higher low, it signals that selling pressure is exhausting. Fewer stocks are making new lows, which could be an early sign of a potential bottom and a reversal to the upside.
---
### Settings
* **Timeframe:** Allows you to select the data's timeframe (using the Daily "D" timeframe is recommended).
* **Overbought/Oversold Level:** Lets you customize the threshold for the OB/OS zones.
* **Show Lines:** You can toggle the visibility of each of the three lines.
Trend Duration (Top-Right) — Fixed//@version=5
indicator("Trend Duration (Top-Right) — Fixed", overlay=true)
// === Input ===
maLen = input.int(50, "MA Length", minval=1)
maType = input.string("EMA", "MA Type", options= )
showBox = input.bool(true, "Show status box (top-right)")
// === MA calculation ===
ma = maType == "EMA" ? ta.ema(close, maLen) : ta.sma(close, maLen)
plot(ma, "MA", color=color.orange, linewidth=2)
// === Trend detection ===
isUp = close > ma
isDown = close < ma
// === Persistent state ===
var string curTrend = "NONE"
var int startBarIndex = na
if barstate.isconfirmed
if isUp and curTrend != "UP"
curTrend := "UP"
startBarIndex := bar_index
else if isDown and curTrend != "DOWN"
curTrend := "DOWN"
startBarIndex := bar_index
// === Duration calculation ===
// Hitung jumlah bar sejak trend mulai
barsPassed = na(startBarIndex) ? 0 : bar_index - startBarIndex
// Konversi ke menit sesuai TF chart
minutesPassed = barsPassed * timeframe.multiplier
hours = math.floor(minutesPassed / 60)
mins = minutesPassed - hours * 60
durText = (hours > 0 ? str.tostring(hours) + "h " : "") + str.tostring(mins) + "m"
// === Build table (top-right) ===
var table t = table.new(position.top_right, 1, 2, border_width = 1)
if showBox
bg = curTrend == "UP" ? color.new(color.green, 0) : curTrend == "DOWN" ? color.new(color.red, 0) : color.new(color.gray, 0)
table.cell(t, 0, 0, "Trend: " + curTrend, text_color = color.white, bgcolor = bg, text_size = size.normal)
table.cell(t, 0, 1, "Duration: " + durText, text_color = color.white, bgcolor = bg, text_size = size.normal)
Recommendation Indicatorالوصف بالعربية
استراتيجية تداول مبنية على ٦ مؤشرات تأكيدية لرصد حركة السوق واتجاهه.
تعتمد على عدّ الشموع الصاعدة والهابطة المتتالية كعامل أساسي، وتدمج معها مؤشرات إضافية للتأكيد.
عند توافق المؤشرات معًا، يتم توليد إشارة شراء (BUY) أو بيع (SELL) واضحة على الرسم البياني.
هذا يعزز دقة الإشارات ويقلل من التذبذبات أو الإشارات الكاذبة، مما يجعلها مناسبة للمتداولين الباحثين عن قوة الاتجاه وتأكيده قبل الدخول في الصفقة.
🔎 ملاحظات الاستخدام
الاستراتيجية تحتوي على ٦ أدوات تأكيد مجتمعة لضمان إشارات أدق.
يُفضل استخدامها مع اختبار رجعي (Backtesting) قبل التداول الفعلي.
يمكن تعديل إعدادات المؤشرات لتناسب السوق أو الإطار الزمني المستخدم.
لا تعتبر توصية مالية مباشرة، وإنما أداة تعليمية وتجريبية.
---
📌 Description in English
A trading strategy built on 6 confirmation indicators to track market movements and trends.
It uses consecutive up and down bars as the core logic, combined with additional indicators for confirmation.
When all confirmations align, the strategy generates clear BUY or SELL signals on the chart.
This approach improves signal accuracy, reduces noise, and helps traders confirm market direction before entering a trade.
🔎 Usage Notes
The strategy incorporates 6 confirmation tools working together for higher accuracy.
Backtesting is recommended before applying it to live trading.
Indicator parameters can be adjusted to fit different markets and timeframes.
This is not financial advice, but an educational and experimental tool.