RSI + Stochastic (Custom by TitikSona)📊 Overview
The RSI + Stochastic Combo is a powerful and clean oscillator that combines two of the most popular momentum indicators - RSI and Stochastic - into a single, easy-to-read window. Designed for traders who want multiple confirmations in one view, this indicator helps identify overbought and oversold conditions with precision.
⚙️ Indicator Components
RSI (Relative Strength Index)
Period: 11 (customizable)
Color: Solid Blue line
Levels: 30 (oversold), 50 (midline), 70 (overbought)
Stochastic Oscillator
%K Period: 100
%D Period: 8
Slowing: 8
Colors: Solid White (%K), Light White (%D)
Levels: 20 (oversold), 80 (overbought)
🎯 Trading Signals
Overbought Conditions:
🔴 RSI above 70 AND Stochastic %K above 80
Red background highlight
Alert notification available
Oversold Conditions:
🟢 RSI below 30 AND Stochastic %K below 20
Green background highlight
Alert notification available
📊 Visual Features
Clear Color Scheme:
Blue: RSI line
White: Stochastic %K and %D lines
Red Dotted: Overbought levels (70 RSI, 80 Stochastic)
Green Dotted: Oversold levels (30 RSI, 20 Stochastic)
Gray Dotted: Midline (50)
Background Highlights:
Red Zone: When either RSI > 70 or Stochastic > 80
Green Zone: When either RSI < 30 or Stochastic < 20
💪 Key Benefits
Dual Confirmation - RSI and Stochastic work together for higher accuracy
Clean Visualization - No clutter, easy to interpret
Customizable Parameters - Adjust all settings to your preference
Automatic Alerts - Get notified when both indicators align
Multi-Timeframe Compatible - Works on all timeframes
🚀 How to Use
For Buy Opportunities:
Look for green background zones
Wait for both RSI < 30 and Stochastic < 20
Consider entering when both indicators start turning up
For Sell Opportunities:
Look for red background zones
Wait for both RSI > 70 and Stochastic > 80
Consider entering when both indicators start turning down
⚡ Pro Tips
Confluence Trading: Use zones where both indicators signal simultaneously
Divergence Detection: Watch for price making new highs/lows while indicators don't confirm
Trend Confirmation: Use in conjunction with trend analysis for better results
Timeframe Analysis: Apply same settings across multiple timeframes for confirmation
🛠 Customization Options
All parameters are adjustable:
RSI length and source
Stochastic periods and slowing
Colors and line styles
Alert conditions
🎯 Ideal For
Swing Traders - Identifying reversal points
Day Traders - Finding intraday extremes
Position Traders - Timing entries and exits
All Market Types - Stocks, Forex, Crypto, Commodities
⭐ If this indicator helps your trading, please give it a like and follow for more tools!
🔔 Enable alerts to never miss trading opportunities when both indicators align!
Индикаторы и стратегии
Trend system🧭 System 1 – Trend Flip Strategy
System 1 is a simple yet powerful EMA-based strategy designed to capture early trend flips using volatility-adjusted signals. It works best on trending markets and aims to get you positioned early in the move while avoiding chop when the market is neutral.
📊 Core Logic
Uses a fast EMA and slow EMA to define market structure.
Applies an ATR-based margin to filter out noise and identify true bullish or bearish momentum shifts.
Generates a one-shot long entry when the market flips bullish.
Closes the position either on a bearish flip or optionally on neutral signals for a cleaner exit.
⚙️ Key Features
🟢 Trend confirmation with EMA + ATR margin
🪄 One-shot entries – only enters when flat and a clean flip occurs
🚪 Configurable exits – choose to exit on trend reversal or neutrality
🧭 Clear visual cues – color-coded EMA bands and entry/exit markers
📬 Custom alert messages – ready for webhook automation or bot integration
🧠 Why It May Be Useful
Great for momentum traders looking to enter early on trend shifts.
ATR filtering helps avoid false signals during choppy conditions.
Minimal parameters make it easy to optimize across multiple markets and timeframes.
Useful for systematic strategy builders as a core trend-following module.
Compatible with automation and alerts, making it suitable for both discretionary and systematic approaches.
📌 Tip:
For best results, test across multiple timeframes and assets. Consider pairing with volume or higher-timeframe confluence to improve selectivity.
🐬RSI_CandleRSI_Candle
Calculates the RSI based on the open, high, low, and close prices, and displays it in the form of candles.
The overbought and oversold zones are highlighted with background colors, which become darker as the RSI value approaches 100 or 0.
-----
RSI_Candle
RSI를 시가, 고가, 저가, 종가로 계산하여 캔들로 보여줍니다.
과매수/과매도 구간에서 배경색으로 보여주며, 100/0에 가까울수록 배경색이 짙어집니다.
-----
High Volume & Near All-Time HighThe **High Volume & Near All-Time High Screener** is a simple yet powerful Pine Script tool designed to help traders identify stocks showing strong price momentum and trading activity. This screener automatically scans multiple tickers that you define in the settings and highlights those meeting two key conditions — daily trading volume greater than **500,000 shares** and the closing price being **within a set percentage (default 2%) of its all-time high**. The results are displayed in an easy-to-read table directly on your chart, making it ideal for traders who want to quickly spot potential breakout stocks without switching between multiple charts.
**How to Use:**
To use this script, open your **TradingView Pine Editor**, paste the code, and click **“Add to Chart.”** Make sure your chart is set to the **Daily timeframe (1D)**, as the script pulls daily data automatically. You can customize the list of symbols, the minimum volume threshold, and the proximity percentage in the settings panel to match your trading style. Once added, the screener will display a table on the right side of your chart showing each symbol, its latest closing price, and whether it currently meets the breakout conditions. A ✅ mark indicates that the stock meets both criteria. This tool works best for swing traders and momentum investors who want to focus on high-volume stocks nearing new highs for potential entries.
Round Numbers (Plotter) v2The *Round Numbers (Plotter) v2* indicator highlights key psychological price levels on the chart — the so-called *round numbers* (e.g. 1.1000 on EURUSD or23,000 on NASDAQ).
These levels often act as **natural support or resistance zones**, where price tends to react, consolidate, or reverse.
Version 2 introduces the concept of **gravitational zones**, which define a price range surrounding each round level — visualizing how price “gravitates” around these equilibrium areas.
---
### 🧩 **Main Features**
* 🔹 **Dynamic round levels:** plotted automatically based on user-defined *step size* (in points or pips).
* 🔹 **Custom step mode:** switch between “Points” (for indices, commodities, crypto) and “Pips” (for Forex pairs).
* 🔹 **Configurable appearance:** color, width, and line style (solid, dashed, dotted).
* 🔹 **Gravitation zones:** optional secondary lines plotted above and below each round level.
* Distance adjustable as a **percentage of the step size** (default = 25%).
* Help visualize “magnet areas” where price tends to slow down or oscillate before crossing a level.
* 🔹 **Optional fill:** softly shaded area between the upper and lower gravitation lines for clearer visualization of each zone.
* You can enable or disable this with the *“Show gravitation fill”* toggle.
* Fill color and transparency fully customizable.
---
### 📈 **Use Cases**
* Identify **psychological support/resistance** levels on any instrument or timeframe.
* Observe **market equilibrium zones** where price tends to cluster or hesitate before continuing.
* Combine with oscillators or volume indicators to confirm reaction strength near round numbers.
* Use the **gravitational zones** to refine stop-loss or take-profit placement near high-impact levels.
---
### 💡 **Notes**
* The indicator does **not repaint** and updates levels dynamically based on the latest price.
* Works on all asset classes: **Forex, Indices, Crypto, Commodities, Stocks.**
* Designed to be **lightweight** — no accumulation of historical objects.
* Combine this with *Round Number Analyzer* for complete analysis of round numbers level
🐬Stochastic_RSIStochastic RSI
The indicator highlights the chart background for two specific signals:
- A bearish deadcross occurring above the upper band.
- A bullish goldencross occurring below the lower band.
-----
스토캐스틱 RSI
두가지 신호를 배경색으로 나타냅니다.
- 어퍼 밴드 위에서의 데드크로스
- 로우어 밴드 아래에서의 골든크로스
-----
Session Boxes & Key Levels (Daily Prev HL)Session Boxes & Key Levels
Draws intraday session ranges and key higher-timeframe levels to aid structure and bias.
Session boxes: Shades the Asia, Europe, and US sessions with live-updating highs/lows. Timezone is user-selectable.
Previous Day levels (PDH/PDL): Plots yesterday’s Daily high and low, auto-extends across the current day.
Previous Week levels (PWH/PWL): Plots last week’s high and low, auto-extends across the current week.
Works on any timeframe and updates in real time; labels are added for quick identification.
Use it to spot session ranges, liquidity sweeps, and reactions at prior day/week extremes.
Sharpshooter 30Sharpshooter 30
Always wait. TVC:GOLD
If you just follow the rules, you will always win.
After a 7/200 EMA death cross, the script arms and plots one BUY on the first confirmed bar where the Fast EMA is $30 below the 200 EMA. 5-minute chart recommended.
Note: MA lengths and the USD distance are user-configurable—tune them to your market/session.
Sharpshooter 30 — 常に待つこと。
7/200 EMAのデッドクロス後に待機し、Fast EMAが200EMAより$30下になった確定足で1回だけBUYを点灯。推奨:5分足。
MA期間や乖離額(USD)は各自でカスタムしてください。
EMA 50, 100 & 200This indicator displays three key Exponential Moving Averages (EMA 50, EMA 100, and EMA 200) directly on your chart.
It helps traders identify the overall market trend, key support and resistance zones, and potential momentum shifts.
EMA 50 (Green): Short-term trend, useful for identifying momentum changes.
EMA 100 (Blue): Mid-term trend, great for confirmation of direction.
EMA 200 (Red): Long-term trend, often used as a major support or resistance level by institutional traders.
How to use:
When price is above all three EMAs → strong bullish trend.
When price is below all three EMAs → strong bearish trend.
Crossovers between EMAs can indicate potential trend reversals.
This indicator is ideal for scalpers, swing traders, and long-term investors who want a clean, trend-focused view of the market.
UTC Pro (Year / Month / Week / Day) MUSOFIRMBto determine OHLQ when we look at 1h time frame you can see OHLQ 1D
ATR SL
### 📘 **스크립트 설명 — ATR 기반 스탑로스 표시기 (ATR SL)**
이 스크립트는 **캔들 저가(low)와 ATR(평균 진폭 지표)** 를 활용해
트레이딩 시 **동적인 스탑로스 라인과 라벨**을 자동으로 표시해주는 인디케이터입니다.
---
#### 🔧 **기본 로직**
* **각 봉별 ATR(10)** 을 이용하여 변동성 기반 스탑로스 계산
→ `ATR SL = 저가 - ATR(10) × Multiplier`
* **오늘 봉(실시간)** 은 변동성이 작게 잡히는 것을 방지하기 위해
`오늘 ATR`과 `전일 ATR` 중 **더 큰 값**을 사용
* 과거 봉들은 해당 시점의 **그날 ATR**로 계산되어 고정됨
---
#### 🎯 **표시 요소**
| 항목 | 설명 |
| --------------------- | ----------------------------------- |
| **핑크 라인** | 각 봉별 스탑로스 라인 (`저가 - ATR × m`) |
| **오늘 스탑 라벨** | 현재 캔들 위에 표시되는 오늘 기준 스탑 가격 |
| **최근 5일 중 맥시멈 스탑 라벨** | 최근 5일간 가장 높은 스탑로스 값이 발생한 봉 위에 1개 표시 |
---
#### ⚙️ **주요 설정값**
| 이름 | 설명 | 기본값 |
| ------------ | -------------------------------- | ---- |
| `Length` | ATR 계산 기간 | 10 |
| `Smoothing` | ATR 계산 방식 (RMA/SMA/EMA/WMA 중 선택) | RMA |
| `Multiplier` | ATR 배수 (리스크 여유 조절) | 1.01 |
| `Long Base` | 기준가 (보통 저가 low 사용) | low |
| `Lookback` | 최근 N봉 중 최고 스탑 탐색 구간 | 5 |
---
#### 🎨 **색상**
* 라인: 연핑크 (`rgba(255,105,180,0.3)`)
* 라벨: 진한 핑크 (`rgba(255,105,180,0.1)`)
* 텍스트: 흰색
---
#### 📈 **활용 예시**
* **스탑로스 설정:**
ATR 기반의 변동성 대응형 스탑라인을 즉시 시각화
* **리스크 관리:**
변동성이 줄어들 때도 지나치게 좁은 스탑을 방지 (오늘 봉은 `max(오늘ATR, 전일ATR)` 적용)
* **트레일링 스탑 용도:**
상승 추세에서 최근 5일 중 최고 스탑 라벨 참고 가능
---
#### 🧠 **주의사항**
* 라벨은 항상 **2개만 표시됨**
→ 오늘 스탑 1개 + 최근 5일 맥시멈 스탑 1개
* 하단 보조창이 아니라 **메인 차트 위(`overlay=true`)** 에 표시
* 멀티라인 문법 오류 방지를 위해 모든 `label.new()`는 **한 줄로 작성됨**
---
#### 💬 **요약**
> ATR SL = 변동성을 반영한 실전용 스탑로스 표시기
> → 실시간 ATR 보정(`max(오늘, 어제)`)으로 장 초반 왜곡 방지
> → 최근 5일 최고 스탑과 오늘 스탑을 함께 시각화해 추세 파악 용이
---
필요하면 제목 아래에 이런 문구를 추가해도 좋아👇
> “By turtlekim 🐢 — 변동성 기반 리스크 매니지먼트용 Pine Script”
──────────────────────────────────────────────────────────────
// 📘 ATR SL — 변동성 기반 스탑로스 표시기 (by turtlekim)
//
// This script visualizes a **volatility-based stop loss** line
// using each candle's **Low** and **ATR(10)** value.
// Designed for traders who want adaptive, risk-adjusted stop levels.
//
//──────────────────────────────────────────────────────────────
// 🔧 기본 로직 / Core Logic
// - ATR SL = Low - ATR(10) × Multiplier
// - For historical candles → uses that day's ATR(10)
// - For the current (realtime) candle → uses max(Today’s ATR, Previous ATR)
// to prevent unrealistically small stops when volatility is low early in the session.
//
//──────────────────────────────────────────────────────────────
// 🎯 표시 요소 / Display Elements
// • Pink line → ATR-based stop line per candle
// • Pink label → Today’s stop (current candle)
// • Pink label → Highest stop over the past 5 bars (1 label only)
//
//──────────────────────────────────────────────────────────────
// ⚙️ 주요 설정값 / Key Parameters
// Length : ATR period (default = 10)
// Smoothing : Type of ATR averaging (RMA/SMA/EMA/WMA)
// Multiplier : Adjusts distance from Low (default = 1.01)
// Long Base : Reference price (usually Low)
// Lookback : Number of bars for max stop check (default = 5)
//
//──────────────────────────────────────────────────────────────
// 🎨 색상 / Color Scheme
// • Line : Light pink (rgba(255,105,180,0.3))
// • Labels : Solid pink (rgba(255,105,180,0.1))
// • Text : White
//
//──────────────────────────────────────────────────────────────
// 📈 활용 예시 / How to Use
// - Set your stop-loss visually at the pink line (ATR-based distance).
// - For position sizing, use this stop level to calculate volatility risk.
// - Track both today’s stop and the 5-bar max stop to monitor trailing support.
//
//──────────────────────────────────────────────────────────────
// 🧠 주의사항 / Notes
// • Only two labels are shown: Today’s stop + 5-bar max stop.
// • Works only on main chart (overlay=true).
// • All label.new() statements are written in a single line
// to avoid syntax errors in Pine Script.
//
//──────────────────────────────────────────────────────────────
// 💬 요약 / Summary
// ATR SL = Dynamic, volatility-adjusted stop loss visualizer
// → Prevents premature stopouts in early low-volatility periods
// → Highlights both current and recent 5-bar maximum stops
//
//──────────────────────────────────────────────────────────────
JW Clean Adaptive Channel//@version=5
indicator("JW Clean Adaptive Channel", overlay=true)
// Inputs
emaFast = input.int(20, "EMA Fast")
emaMid = input.int(50, "EMA Mid")
emaSlow = input.int(200, "EMA Slow")
atrLen = input.int(14, "ATR Length")
regLen = input.int(100, "Regression Window")
multATR = input.float(2.0, "Channel Width x ATR", step=0.1)
baseATR = input.int(50, "ATR Baseline")
volCap = input.float(2.5, "Max Vol Mult", step=0.1)
// EMAs
ema20 = ta.ema(close, emaFast)
ema50 = ta.ema(close, emaMid)
ema200 = ta.ema(close, emaSlow)
plot(ema20, "EMA 20", color=color.lime)
plot(ema50, "EMA 50", color=color.yellow)
plot(ema200, "EMA 200", color=color.orange, linewidth=2)
// Adaptive regression channel
atr = ta.atr(atrLen)
bAtr = ta.sma(atr, baseATR)
vRat = bAtr == 0.0 ? 1.0 : math.min(atr / bAtr, volCap)
width = atr * multATR * vRat
basis = ta.linreg(close, regLen, 0)
upper = basis + width
lower = basis - width
slope = basis - basis
chanColor = slope > 0 ? color.lime : slope < 0 ? color.red : color.gray
pU = plot(upper, "Upper", color=chanColor)
pL = plot(lower, "Lower", color=chanColor)
pB = plot(basis, "Basis", color=color.gray)
fill(pU, pL, color=color.new(chanColor, 85))
// Candle and background color
ribbonBull = ema20 > ema50 and ema50 > ema200
ribbonBear = ema20 < ema50 and ema50 < ema200
barcolor(ribbonBull ? color.lime : ribbonBear ? color.red : na)
bgcolor(slope > 0 ? color.new(color.green, 85) : slope < 0 ? color.new(color.red, 85) : na)
// MACD buy/sell markers
= ta.macd(close, 12, 26, 9)
buySig = ta.crossover(macdLine, sigLine) and slope > 0
sellSig = ta.crossunder(macdLine, sigLine) and slope < 0
plotshape(buySig, title="Buy", style=shape.triangleup, color=color.lime, location=location.belowbar, size=size.tiny)
plotshape(sellSig, title="Sell", style=shape.triangledown, color=color.red, location=location.abovebar, size=size.tiny)
// Trend strength label (single-line calls; no dangling commas)
strength = slope * vRat * 1000.0
string tText = "Sideways"
color tCol = color.gray
if strength > 2
tText := "Strong Uptrend"
tCol := color.lime
else if strength > 0.5
tText := "Weak Uptrend"
tCol := color.new(color.lime, 40)
else if strength < -2
tText := "Strong Downtrend"
tCol := color.red
else if strength < -0.5
tText := "Weak Downtrend"
tCol := color.new(color.red, 40)
var label tLbl = na
if barstate.islast
if not na(tLbl)
label.delete(tLbl)
tLbl := label.new(x=bar_index, y=high, text=tText, style=label.style_label_right, textcolor=color.white, color=tCol, size=size.normal, yloc=yloc.price)
// 10-day breakout alerts
hi10 = ta.highest(high, 10)
lo10 = ta.lowest(low, 10)
alertcondition(close > hi10, title="10-Day High Break", message="{{ticker}} 10D HIGH @ {{close}}")
alertcondition(close < lo10, title="10-Day Low Break", message="{{ticker}} 10D LOW @ {{close}}")
alertcondition(buySig, title="Buy Alert", message="BUY {{ticker}} @ {{close}}")
alertcondition(sellSig, title="Sell Alert", message="SELL {{ticker}} @ {{close}}")
Session First 15-Min High/LowHere's a professional description for your 15-minute indicator:
Session First 15-Min High/Low Marker
This indicator automatically identifies and marks the high and low price levels established during the first 15 minutes of major trading sessions, providing traders with broader opening range support and resistance zones for intraday analysis.
Key Features:
Tracks three major trading sessions in IST (Indian Standard Time):
Asian Session: 5:30 AM - 5:45 AM
London Session: 12:30 PM - 12:45 PM
New York Session: 5:30 PM - 5:45 PM
Draws horizontal lines at the highest and lowest prices reached during each session's opening 15-minute window
Color-coded for easy identification (Green for Asian, Blue for London, Red for New York)
Lines extend across the chart to help track price reactions throughout the day
Clean, minimal design with optional labels
Best Used For:
Identifying stronger intraday support and resistance levels with a wider opening range
Session breakout and reversal trading strategies
Understanding institutional order flow during market opens
Works on 1-minute timeframe for precise tracking (15 candles) or 5-minute timeframe (3 candles)
Why 15 Minutes vs 5 Minutes? The 15-minute opening range captures more price action and market participation, often providing more reliable support/resistance levels than the narrower 5-minute range. This makes it ideal for swing traders and those looking for higher-probability trade setups.
Customizable Settings:
Toggle line extensions on/off
Adjust line width (1-2)
Change colors for each session
Show/hide session labels
Perfect for day traders and position traders who want to identify high-probability support/resistance zones established during the critical opening 15 minutes of major trading sessions when liquidity and volatility are highest.
This description highlights the difference between the 5-minute and 15-minute versions and explains the practical benefits of the wider range.
One cushion backward movement① The price breaks through the MA at the body, confirming that it is there.
② After that, a reversal candlestick is confirmed, triggering a sign and alert.
*If the reversal candlestick returns to the MA at the body, no sign or alert will be issued.
*In other words, this is Granville's guideline #2. Or #1.
RSI Buy/Sell SignalsThis indicator generates buy and sell signals based on the Relative Strength Index (RSI). It works by calculating the RSI value over a 14-period length and then checking if the RSI drops below 30 (oversold) or rises above 70 (overbought). When it’s oversold, the indicator plots a green upward arrow suggesting a potential buy. When it’s overbought, it plots a black downward arrow suggesting a potential sell. In essence, it helps traders spot possible reversal points using RSI levels directly on their charts. CME_MINI:NQ1!
Last All-Time High (ATH) — By yarinit shows the recant all time high and then you can detact where was the recant all time high without searching it
RSI Scalping Gold (XAUUSD) - v5Displays the EMA9 and SMA20 to identify the trend.
Colors the area between the two averages to better visualize the equilibrium zone.
Displays green (buy) and red (sell) arrows aligned with the candles.
The RSI is calculated but hidden from the main chart (you can activate it by checking “Display on chart” in the settings).
TMA Bands with AlertsTMA Bands with Alerts uses bands to indicate the up and downtrend with alerts to show potential reversals. POAYEE
Inside Bar Highlighter by nkChartsOverview:
The Inside Candle Highlighter is a simple yet powerful TradingView indicator designed to identify inside bars (inside candles) on your chart. An inside candle is defined as a candle whose high is lower than the previous candle's high and low is higher than the previous candle's low, meaning it forms entirely within the range of the preceding candle.
Inside candles are commonly interpreted by traders as periods of market consolidation or indecision and often precede breakouts or significant price moves. This indicator highlights these candles directly on your chart, making them easy to spot at a glance.
Features
Detects Inside Candles: Automatically identifies bars that are fully contained within the previous bar’s high-low range.
Confirmed Bar Coloring: Colors the candle after it closes, ensuring no repainting occurs during formation.
Style Tab Customization: Users can adjust the candle color directly from the Style tab, allowing seamless integration with your chart theme.
Clean & Minimal: Only inside candles are highlighted, keeping charts uncluttered.
How Traders Can Use It
Identify Consolidation Zones: Quickly spot periods where the market is contracting.
Prepare for Breakouts: Inside candles often signal an upcoming directional move; traders can plan entry or exit points based on breakouts from the inside candle range.
Combine With Other Indicators: Use alongside trend indicators, volume tools, or support/resistance levels to enhance trade confirmation.
Recommended Use
Works on all timeframes — from intraday charts to daily or weekly charts.
Particularly useful in price action trading, swing trading, and trend-following strategies.
Ideal for traders who want a visual cue for consolidation and potential breakout areas without adding complexity to the chart.
Note: This indicator only highlights inside candles. Interpretation and trading decisions are left to the user.
ADX - Globx Options & Futures 2.0The ADX Globx Options & Futures is a custom-built trend strength indicator designed to replicate and enhance the classic Average Directional Index (ADX) model, commonly used in professional trading platforms such as IQ Option.
This version is optimized for options and futures trading, providing precise directional strength readings through adaptive smoothing and configurable parameters.
Concept and Logic
This indicator measures the strength of the current trend, regardless of its direction (bullish or bearish), by comparing directional movement between price highs and lows over a defined period.
It uses three main components:
+DI (Positive Directional Indicator): represents bullish strength.
–DI (Negative Directional Indicator): represents bearish strength.
ADX (Average Directional Index): measures the intensity of the prevailing trend, independent of direction.
The script follows the original logic proposed by J. Welles Wilder Jr., but introduces enhanced smoothing flexibility.
Users can choose between EMA (Exponential Moving Average) and Wilder’s RMA (Running Moving Average) for both DI and ADX calculations, allowing closer alignment with various platform implementations (IQ Option, MetaTrader, etc.).
How It Works
Directional Movement Calculation
The script computes upward and downward movements (+DM and –DM) by comparing the differences in highs and lows between consecutive candles.
Only positive directional changes that exceed the opposite side are considered.
This ensures each bar contributes only one valid directional movement.
True Range and Smoothing
The True Range (TR) is calculated using ta.tr(true) to include price gaps—replicating how professional derivatives platforms account for volatility jumps.
Both TR and DM values are smoothed using the selected averaging method (EMA or Wilder).
Directional Index and ADX
The smoothed +DI and –DI values are normalized over the True Range to form the Directional Index (DX), which measures the percentage difference between the two.
The ADX is then derived by smoothing the DX values, providing a stable reading of overall market strength.
Visual Representation
The ADX (white line) indicates the overall trend strength.
The +DI (dark blue) and –DI (dark red) lines show which side (bullish or bearish) is currently dominant.
Reference levels at 20 and 25 serve as strength thresholds:
Below 20 → Weak or sideways market.
Above 25 → Strong and directional trend.
Usage and Interpretation
When ADX rises above 25, the market shows a strong trend — use +DI > –DI for bullish confirmation, or the opposite for bearish momentum.
A falling ADX suggests decreasing trend strength and potential consolidation.
The default parameters (ADX Length = 34, DI Length = 34, both smoothed by EMA) match IQ Option’s internal ADX configuration, ensuring consistency between platforms.
Works on any timeframe or asset class, but is especially tuned for futures and options volatility dynamics.
Originality and Improvements
Unlike many open-source ADX indicators, this version:
Recreates IQ Option’s 34-length EMA-based ADX calculation with exact parameter alignment.
Provides selectable smoothing algorithms (EMA or Wilder) to switch between modern and classic formulations.
Uses dark-theme-optimized visuals with fine line weight and subtle contrast for clean visibility.
Maintains constant guide levels (20/25) rendered globally for precision and style compliance in Pine Script v6.
Is fully rewritten for Pine Script v6, ensuring compatibility and optimized execution.
Recommended Use
Combine with trend-following systems or breakout strategies.
Ideal for identifying market strength before engaging in options directionals or futures entries.
Use the ADX to confirm breakout momentum or filter sideways markets.
Disclaimer
This script is for educational and analytical purposes. It does not constitute financial advice or a trading signal. Users are encouraged to validate the indicator within their own trading strategies and risk frameworks.
Adaptive Volume Delta Map---
📊 Adaptive Volume Delta Map (AVDM)
What is Adaptive Volume Delta Map (AVDM)?
The Adaptive Volume Delta Map (AVDM) is a smart, multi-timeframe indicator that visualizes buy and sell volume imbalances directly on the chart.
It adapts automatically to the best available data resolution (tick, second, minute, or daily), allowing traders to analyze market activity with micro-level precision .
In addition to calculating volume delta (the difference between buying and selling pressure), AVDM can display a Volume Distribution Map — a per-price-level visualization showing how volume is split between buyers and sellers.
Key Features
✅ Adaptive Resolution Selection — Automatically chooses the highest possible data granularity — from tick to daily timeframe.
✅ Volume Delta Visualization — Displays delta candles reflecting the dominance of buyers (green), sellers (red), and delta (orange).
✅ Per-Level Volume Map (optional) — Shows detailed buy/sell volume distribution per price level, grouped by `Ticks Per Row`.
✅ Bid/Ask Classification — When enabled, AVDM uses bid/ask logic to classify trade direction with greater accuracy.
✅ Smart Auto-Disable Protection — Automatically disables volume map if too many price levels (>50) are detected — preventing performance degradation.
Inputs Overview
Use Seconds Resolution — Enables use of second-level data (if your TradingView subscription allows it).
Use Tick Resolution — Enables tick-based analysis for the most detailed view. If available, enable both tick and seconds resolution.
Use Bid/Ask Calculated — Uses bid/ask midpoint logic to classify trades.
Show Volume Distribution — Toggles per-price-level buy/sell volume visualization.
Ticks Per Row — Controls how many ticks are grouped per volume level. Reduce this value for finer detail, or increase it to reduce visual load.
Calculated Bars — Sets how many historical bars the indicator should process. Higher value increases accuracy but may impact performance.
How to Use
1. Add the indicator to your chart.
2. Ensure that your symbol provides volume data (and preferably tick or second-level data).
3. The indicator will automatically select the optimal timeframe for detailed calculation.
4. If your TradingView subscription allows second-level data , enable “Use Seconds Resolution.”
5. If your subscription allows tick-level data , enable both “Use Tick Resolution” and “Use Seconds Resolution.”
6. Adjust the “Calculated Bars” input to set how many historical bars the indicator should process.
7. Observe the Volume Delta Candles :
* Green = Buy pressure dominates
* Red = Sell pressure dominates
8. To see buy/sell clustering by price, enable “Show Volume Distribution.”
9. If the indicator disables the map and shows:
" Volume Distribution disabled: Too many price levels detected (>50). Try decreasing 'Ticks Per Row' or using a lower chart resolution. If you don’t care about the map, just turn off 'Show Volume Distribution'. "
— follow the instructions to reduce chart load.
Notes
* Automatically adapts to your chart’s resolution and data availability.
* If your symbol doesn’t provide volume data, a runtime warning will appear.
* Works best on futures , FX , and crypto instruments with high-frequency volume streams.
Why Traders Love It
AVDM combines adaptive resolution , volume delta analysis , and visual distribution mapping into one clean, efficient tool.
Perfect for traders studying:
* Market microstructure
* Aggressive vs. passive participation
* Volume absorption
* Order flow imbalance zones
* Delta-based divergence signals
Technical Highlights
* Built with Pine Script v6
* Adaptive resolution logic (`security_lower_tf`)
* Smart memory-safe map rendering
* Dynamic bid/ask classification
* Automatic overload protection
---
GOLD SL CANDLEPIPS🟡 GOLD SL Distance + Position Size (500 $ Fixed Risk)
This indicator displays two essential pieces of information directly on the chart:
1. The Stop-Loss distance — measured from the candle close to the end of the wick.
• For long trades, the distance is calculated from the close to the low.
• For short trades, it’s from the high to the close.
• The result is shown as a clean numeric value, placed just above or below each candle, without any lines or labels cluttering the chart.
2. The required position size (in lots) to risk a fixed amount of 500 USD on that distance.
• This script includes a GOLD preset, based on the standard value of 10 USD per point per lot.
• The calculation follows this rule:
Lots = round(500 / (Distance_in_points × 10))
→ Equivalent to Lots = round(50 / Stop_in_points).
• Example:
• If the wick is 5 points, the script shows “5 | 10” → 5 pt stop = 10 lots for a 500 USD risk.
• If the wick is 8 points, it shows “8 | 6”, matching the official GOLD risk table.
⸻
⚙️ Main Features
• Works with Points, Ticks, or Pips (unit selectable).
• Shows both Stop-Loss distance and corresponding lot size near the candle.
• Fully customizable colors, font size, and text transparency.
• Offsets allow you to move the numbers vertically or horizontally on the chart.
• Option to display values for the current candle only, or for the last N candles.
• The GOLD preset can be disabled to use a custom value per unit (e.g., $/pip/lot, $/tick/lot).
⸻
🧠 Ideal Use Case
This tool is designed for Gold (XAU/USD) traders who want to:
• Instantly see their Stop-Loss distance in real time,
• And know exactly how many lots to use to maintain a consistent 500 USD risk per trade.
It’s a clean, minimalist money-management indicator that helps you stay precise, consistent, and disciplined in your risk control — without leaving the chart.