Candle Pip SizeThis script shows previous candle close to low for bullish candles and close to high for bearish candles.
It also shows for current candle price to low for bullish candles and current candle price to high for bearish candles.
It's useful for calculating the stop loss risk.
Change Pip/Tick size input based on the pair (e.g. 1 MNQ, 0.1 USD/JPY)
Индикаторы и стратегии
EMA Scalping RR 1:2//@version=5
indicator("EMA RR 1:2 Scalping (24H + Fixed SL)", overlay=true, max_labels_count=200, max_lines_count=200)
// ===== INPUT =====
fastLen = input.int(9, "Fast EMA")
slowLen = input.int(21, "Slow EMA")
rr = input.float(2.0, "Risk Reward", step=0.1)
atrLen = input.int(14, "ATR Length")
slATR = input.float(1.0, "SL = ATR x", step=0.1)
adxLen = input.int(14, "ADX Length")
minADX = input.int(20, "Min ADX")
bodyATR = input.float(0.5, "Big Candle vs ATR", step=0.1)
// ===== EMA =====
emaFast = ta.ema(close, fastLen)
emaSlow = ta.ema(close, slowLen)
plot(emaFast, color=color.orange, linewidth=2)
plot(emaSlow, color=color.blue, linewidth=2)
// ===== ATR & CANDLE =====
atrVal = ta.atr(atrLen)
bigBody = math.abs(close - open) >= atrVal * bodyATR
// ===== MANUAL ADX =====
upMove = high - high
downMove = low - low
plusDM = (upMove > downMove and upMove > 0) ? upMove : 0
minusDM = (downMove > upMove and downMove > 0) ? downMove : 0
trur = ta.rma(ta.tr(true), adxLen)
plusDI = 100 * ta.rma(plusDM, adxLen) / trur
minusDI = 100 * ta.rma(minusDM, adxLen) / trur
dx = 100 * math.abs(plusDI - minusDI) / (plusDI + minusDI)
adx = ta.rma(dx, adxLen)
trendOK = adx >= minADX
// ===== SIGNAL =====
buySignal =
trendOK and bigBody and
emaFast > emaSlow and close > emaFast and close <= emaFast
sellSignal =
trendOK and bigBody and
emaFast < emaSlow and close < emaFast and close >= emaFast
// ===== BUY =====
if buySignal
entry = close
sl = entry - atrVal * slATR
tp = entry + (entry - sl) * rr
label.new(bar_index, low,
"BUY Entry: " + str.tostring(entry) +
" SL: " + str.tostring(sl) +
" TP: " + str.tostring(tp),
style=label.style_label_up,
color=color.green,
textcolor=color.white)
line.new(bar_index, entry, bar_index+12, entry)
line.new(bar_index, sl, bar_index+12, sl, color=color.red)
line.new(bar_index, tp, bar_index+12, tp, color=color.green)
// ===== SELL =====
if sellSignal
entry = close
sl = entry + atrVal * slATR
tp = entry - (sl - entry) * rr
label.new(bar_index, high,
"SELL Entry: " + str.tostring(entry) +
" SL: " + str.tostring(sl) +
" TP: " + str.tostring(tp),
style=label.style_label_down,
color=color.red,
textcolor=color.white)
line.new(bar_index, entry, bar_index+12, entry)
line.new(bar_index, sl, bar_index+12, sl, color=color.red)
line.new(bar_index, tp, bar_index+12, tp, color=color.green)
JOBJABB - Risk Management Calculator1. Script Title (ชื่อสคริปต์)
JOBJABB - Risk Management Calculator
2. Description (รายละเอียดสคริปต์)
JOBJABB - Risk Management Calculator is a minimalist tool designed for traders who prioritize professional risk management. It calculates the optimal Lot Size based on your account balance and desired risk percentage, specifically optimized for Gold (XAUUSD) and Forex markets.
Key Features:
Automatic Lot Calculation: Instant position sizing for accurate risk control.
Gold & Forex Optimized: Built-in logic for different contract sizes (100 for Gold, 100k for Forex).
Multi-RR Targets: Automatically calculates TP prices for Risk-to-Reward ratios of 1:2, 1:3, and 1:5.
Minimalist Design: Clean black-and-white UI that won't clutter your chart.
Smart Alerts: Get notified when price hits Entry, SL, or TP levels.
JOBJABB - Risk Management Calculator คือเครื่องมือคำนวณขนาดไม้ (Lot Size) สไตล์ Minimalist ที่เน้นความเรียบง่ายแต่ทรงพลัง ออกแบบมาเพื่อช่วยให้เทรดเดอร์ควบคุมความเสี่ยงได้อย่างแม่นยำ โดยเฉพาะในตลาดทองคำ (XAUUSD) และ Forex
ฟีเจอร์หลัก:
คำนวณ Lot อัตโนมัติ: คำนวณจากเงินทุนและ % ความเสี่ยง ไม่ต้องกดเครื่องคิดเลขเอง
แม่นยำสำหรับทองคำ: รองรับค่า Contract Size ของทองคำ (100) และ Forex (100,000)
เป้าหมายกำไร (TP): แสดงราคาระดับ TP 1:2, 1:3 และ 1:5 ให้ทันที
ดีไซน์สะอาดตา: โทนขาว-ดำ อ่านง่าย ไม่รบกวนการวิเคราะห์กราฟ
ระบบแจ้งเตือน: แจ้งเตือนเมื่อราคาถึงจุด Entry, Stop Loss และ TP
3. How to Setup (วิธีการใช้งาน)
Risk Settings: Input your Account Balance and the % Risk you want to take per trade.
Trade Config: * Choose Direction (Buy or Sell).
Select Asset Type (Gold or Forex).
Set your Entry Price and Stop Loss Price.
Execution: Use the Recommended LOT shown in the table to open your position.
Alerts: Create an alert by selecting this script and choosing "Any alert() function call".
VWAP Enhanced (Visual Feedback)This is the standard Volume-Weighted Average Price (VWAP) indicator, with the addition of an adjustable anchored time point. This modification aligns with the objective of analyzing price action relative to a specific subsequent event.
Single Year Historical ProjectionBasic year projection onto chart from a previous year, good for reference previous years movements.
Enjoy
Zap Super Line// Zap - Close Line Color by SMA20, MACD, RSI
// Description: Line turns green when close > SMA20 and MACD rising or above signal; red otherwise. RSI > 70 turns purple; RSI < 30 turns gray.
// Author: Ron Belson
// Email: ronbelson@gmail.com
Clean Support & Resistance ZonesThis indicator automatically maps out key Support and Resistance zones on any chart and displays them as clean, easy-to-read filled boxes.
Instead of flooding the chart with dozens of levels, it ranks zones by strength (how often price has pivoted from that area), then shows only the most relevant zones near current price. It also includes a no-overlap filter, so zones don’t stack on top of each other — making it much easier to see exactly where you might want to buy from support or sell from resistance.
Key Features
Automatic Support & Resistance zones using pivot structure
Strength-based filtering (keeps the most respected zones)
Distance filter (only shows zones within a user-defined ATR range of price)
No overlapping zones + optional minimum spacing for clarity
Custom colours for support/resistance fill and borders
Works on all markets and all timeframes
Boxes can optionally extend to the right for forward planning
Inputs You Can Adjust
Pivot sensitivity (Pivot Left/Right)
Zone thickness (ATR multiplier or fixed tolerance)
How many zones to display per side
How close zones must be to current price (ATR distance)
Minimum separation between zones (ATR spacing)
Full colour controls for fills + borders
Ichimoku bull bear trend Multi-BG by Pranojit Dey It gives you bullish and bearish bias using ichimoku, VWAP, SMA and Pivot. can be used as a great confirmation tool for trading. Use it. You will love it. Lets trade traders....
John Trade AlertsImagine you are watching a ball bounce up and down on a graph.
This script is like a set of rules that says:
When to start playing
When to stop playing
When you got some prize levels
and it yells to you (alerts) when those things happen.
The main ideas
Breakout Buy (ball jumps high)
There is a line drawn high on the chart called the breakout level.
If the price (the ball) closes above that line, and some extra “good conditions” are true (enough volume, uptrend, etc.),
the script says: “We entered a Breakout trade now.”
Pullback Buy (ball dips into a box)
There is a zone (a small box) between a low line and a high line: the pullback zone.
If the price closes inside that zone, and the pullback looks “healthy” (not too much volume, still above a moving average, etc.),
the script says: “We entered a Pullback trade now.”
Stops (when to get out if it goes wrong)
For each entry type (Breakout or Pullback), there is a red stop line under the price.
If the price falls below that stop line, the script says:
“Stop hit, we’re out of the trade.”
Hard Support / Invalidation (big no‑no level)
There is a special hard support line.
The script also looks at the 1‑hour chart in the background.
If a 1‑hour candle closes below that hard support, it says:
“Hard invalidation – idea is broken, get out.”
Targets (prize levels)
Above the current price there are several orange lines: Target 1, 2, 3A, 3B, 4A, 4B.
If the price goes up and crosses one of these lines, the script says:
“Target X reached!”
Trend and Volume “health checks”
It checks if the short‑term average price (SMA20) is going up → “uptrend.”
It can check if price is above a long‑term average (SMA200).
For breakouts, it checks if volume is stronger than usual (good push).
For pullbacks, it prefers quieter than usual volume (calm dip).
It can also check an Anchored VWAP line (a special average price from a chosen starting time) and only trade if price is above that too.
Remembering if you are “in a trade”
The script keeps a little memory:
Are we currently in a position (inPos) or not?
Was it a Breakout or a Pullback entry?
What is our entry price and active stop?
When it gets a new entry signal, it turns inPos to true, picks the right stop, and draws that stop line.
When a stop or hard invalidation happens, it sets inPos to false again.
It can also “forget” and reset at the start of a new trading day if you want.
Alerts
When:
you get a Breakout entry
or a Pullback entry
or a Stop is hit
or the hard support is broken on 1‑hour
or a Target is reached
the script sends a message you can use in TradingView alerts (pop‑ups, email, webhook, etc.).
Things you see on the chart
Teal line: Breakout level
Green lines: Pullback zone low & high
Red line: Active stop (only when you’re “in” a trade)
Orange lines: Targets 1, 2, 3A, 3B, 4A, 4B
Blue line: Anchored VWAP (if you turn it on)
Purple faint line: SMA20 (short‑term trend)
Gray faint line: SMA200 (long‑term trend)
Little label near the last bar that says:
if you’re IN or Flat
which type of entry (Breakout/Pullback)
what your current stop is
So in kid words:
It draws important lines on the chart.
It watches the price move like a ball.
When the ball does something special (jump above, fall below, hit a prize line),
it shouts to you with alerts.
It remembers if you’re in the game or not, and where your safety line (stop) is.
All-In-One Trading Toolkit [wjdtks255]Title: All-In-One Trading Toolkit
Description: This professional toolkit integrates 5 essential indicators into one seamless interface to enhance your market analysis. It provides a comprehensive view of trend, momentum, and volatility.
Features:
Bollinger Bands: Tracks price volatility and potential reversal zones.
Ichimoku Cloud: Visualizes long-term trend support and resistance.
RSI Dashboard: Real-time momentum monitoring in the top-right corner.
MACD Signals: Direct Buy/Sell shape indicators on the chart for instant decision making.
Volume Profile: Identifies key price levels with high trading activity.
Strategy:
Entry: Follow the MACD crossover signals (Green/Red triangles) when they align with the Ichimoku Cloud direction.
CVD-MACD### CVD-MACD (Research)
The CVD-MACD is a research-oriented indicator that combines Cumulative Volume Delta (CVD) with the classic MACD framework to provide insights into market momentum and potential reversals. Unlike a standard MACD based on price, this version uses CVD (the running total of buy vs. sell volume delta) as its input source, offering a volume-driven perspective on trend strength and divergences.
Key Features:
- **CVD-Based MACD Calculation**: Computes MACD using CVD instead of price, highlighting volume imbalances that may precede price moves.
- **Dual Divergence Detection**: Identifies bullish/bearish divergences on both the MACD line and histogram, with configurable pivot lookbacks and filters (e.g., momentum decay and zero-side consistency).
- **Visual Flexibility**: Toggle divergences in the indicator pane or overlaid on the main chart, with optional raw CVD line for reference.
- **Alerts**: Built-in conditions for bullish and bearish divergences to notify users of potential setups.
###This indicator is designed for research and experimentation—it's not financial advice. It performs best on liquid assets with reliable volume data (e.g., stocks, futures). I've shared this to gather community feedback: please test it thoroughly and point out any bugs, inefficiencies, or improvements! For example, if you spot issues with divergence detection on certain timeframes or symbols, let me know in the comments. Your input will help refine it.
Inspired by volume analysis techniques; open to collaborations or forks.
## User Manual for CVD-MACD (Research)
### Overview
The CVD-MACD indicator transforms traditional MACD by using Cumulative Volume Delta (CVD) as the base input. CVD accumulates the net delta between estimated buy and sell volume per bar, providing a volume-centric view of momentum. The indicator plots a MACD line, signal line, and histogram, while also detecting divergences on both the MACD line and histogram for potential reversal signals.
This manual covers setup, interpretation, and troubleshooting.
Note: This is a research tool—backtest and validate on your own data before using in live trading.
### Installation and Setup
1. **Add to Chart**: Search for "CVD-MACD (Research)" in TradingView's indicator library or paste the script into the Pine Editor and add it to your chart.
2. **Compatibility**: Works on any timeframe and symbol with volume data. Best on daily/intraday charts for stocks, forex, or futures. Avoid illiquid symbols where volume may be unreliable.
3. **Customization**: All inputs are configurable via the indicator's settings panel. Defaults are optimized for general use but can be tuned based on asset volatility.
### Input Parameters
The inputs are grouped for ease of use:
#### MACD Settings
- **Fast EMA (CVD)** (default: 12): Length of the fast EMA applied to CVD. Shorter values make it more responsive to recent volume changes.
- **Slow EMA (CVD)** (default: 26): Length of the slow EMA on CVD. Longer values smooth out noise for trend identification.
- **Signal EMA** (default: 9): Smoothing period for the signal line (EMA of the MACD line).
#### Divergence Logic (MACD Line)
- **Pivot Lookback (MACD Line)** (default: 5): Bars to look left/right for detecting pivots on the MACD line. Higher values detect larger swings but may miss smaller divergences.
- **Max Lookback Range (MACD Line)** (default: 50): Maximum bars between two pivots to consider a divergence valid. Prevents detecting outdated signals.
- **Enable Momentum Decay Filter (Histogram)** (default: false): When enabled, requires the histogram to show decaying momentum (absolute value decreasing) for MACD-line divergences to trigger.
#### Histogram Divergence
- **Pivot Lookback (Histogram)** (default: 5): Similar to above, but for histogram pivots.
- **Max Lookback Range (Histogram)** (default: 50): Max bars for histogram divergence detection.
- **Show Histogram Divergences in Indicator Pane** (default: true): Displays dashed lines and "H" labels for histogram divergences in the sub-window.
- **Show Histogram Divergences on Main Chart** (default: true): Overlays histogram divergences on the price chart with semi-transparent lines and labels.
- **Require Histogram to Stay on Same Side of Zero** (default: true): Filters divergences to only those where the histogram doesn't cross zero between pivots, ensuring consistent momentum direction.
#### Visuals (Dual View)
- **Show MACD-Line Divergences (Indicator Pane)** (default: true): Draws solid lines and "L" labels for MACD-line divergences in the sub-window.
- **Show MACD-Line Divergences (Main Chart)** (default: true): Overlays MACD-line divergences on the price chart.
- **Show Raw CVD Line** (default: false): Plots the underlying CVD as a faint gray line for reference.
### How to Interpret the Indicator
1. **Core Plots**:
- **MACD Line** (blue): Difference between fast and slow CVD EMAs. Above zero indicates building buy volume momentum; below zero shows sell dominance.
- **Signal Line** (orange): EMA of the MACD line. Crossovers can signal potential entries/exits (e.g., MACD above signal = bullish).
- **Histogram** (columns): MACD minus signal. Green shades for positive/expanding bars (bullish momentum); red for negative/contracting (bearish). Fading colors indicate weakening momentum.
- **Zero Line** (gray horizontal): Reference for bullish (above) vs. bearish (below) territory.
- **Raw CVD** (optional gray line): The cumulative buy-sell delta. Rising = net buying; falling = net selling.
2. **Divergences**:
- **Bullish (Green Lines/Labels)**: Occur when price makes lower lows, but MACD line or histogram makes higher lows. Suggests weakening downside momentum and potential reversal up. Look for "L" (MACD line) or "H" (histogram) labels.
- **Bearish (Red Lines/Labels)**: Price higher highs vs. MACD/histogram lower highs. Indicates fading upside and possible downturn.
- **Dual View**: Divergences appear in the indicator pane (sub-window) for clean analysis and overlaid on the main chart for price context. Histogram divergences use dashed lines to distinguish from MACD-line (solid).
- **Filters**: Momentum decay ensures only "hidden" or weakening divergences trigger. Zero-side filter prevents false signals from oscillating histograms.
3. **Alerts**:
- **Bullish Divergence (L or H)**: Triggers on either MACD-line or histogram bullish divergence. Message: "CVD-MACD Bullish Divergence detected on {{ticker}}".
- **Bearish Divergence (L or H)**: Similar for bearish. Use TradingView's alert setup to notify via email/SMS/webhook.
- Tip: Combine with price action (e.g., support/resistance) for confirmation.
### Usage Tips and Strategies
- **Trend Confirmation**: Use in uptrends for bullish divergences (pullback buys) or downtrends for bearish (short entries).
- **Timeframe Selection**: Higher timeframes (e.g., daily) for swing trading; lower (e.g., 15-min) for intraday. Adjust pivot lookbacks accordingly (shorter for faster charts).
- **Combination Ideas**: Pair with RSI for overbought/oversold confirmation or VWAP for intraday volume context.
- **Risk Management**: Divergences are probabilistic—not guarantees. Always use stop-losses based on recent swings.
- **Performance Notes**: Backtest on historical data via TradingView's Strategy Tester. CVD relies on accurate volume; test on exchanges like NYSE/NASDAQ.
### Known Limitations and Troubleshooting
- **Volume Dependency**: CVD estimation assumes linear buy/sell distribution based on bar position—may be less accurate on thin markets or during gaps.
- **Repainting**: Pivots and divergences can repaint as new data arrives (common in pivot-based indicators). Use on closed bars for reliability.
- **Resource Usage**: High max_bars_back (5000) ensures deep history; reduce if chart loads slowly.
- **No Signals on Low-Volume Bars**: If CVD flatlines, check symbol volume—some crypto/forex pairs have inconsistent data.
- **Community Feedback**: If you encounter bugs (e.g., false divergences on specific symbols/timeframes), missing alerts, or calculation errors, please comment below with details like symbol, timeframe, and screenshots. Suggestions for enhancements (e.g., more filters or visuals) are welcome!
If you have questions or find issues, drop a comment—let's improve this together!
Weekly Open Line This script draws a horizontal line on the first price of the week, the weekly open.
NY Open | Opening Drive | Close UTC Open (15m)📝 Indicator Description
This indicator highlights key institutional market timing levels on a 15-minute chart, using New York session time for precision.
It visually marks and colors candles for the most important intraday moments used by active traders:
🔹 Features
NY Open (9:30 AM ET)
- Identifies the official U.S. market open.
Opening Drive Entry (9:45 AM ET)
- Marks the end of the opening volatility window and potential directional confirmation.
NY Close (4:00 PM ET)
- Highlights the U.S. equity market close.
UTC Daily Open (7:00 PM ET / 00:00 UTC)
- Marks the start of the new UTC trading day and colors the candle teal for easy recognition.
🎯 Designed For
- Crypto traders
- Index & futures traders
- Intraday and session-based strategies
- Traders who use time-based entries and session structure
⚙️ Notes
- Built specifically for the 15-minute timeframe
- Automatically adjusts for New York daylight savings
- Works on all markets that trade through the NY session
VWAP Band PositionVWAP Band Position — Synopsis
VWAP Band Position is a session-based oscillator that measures where price is trading relative to volume-weighted VWAP deviation bands.
The indicator uses true VWAP logic with volume-weighted variance, resetting each trading session to ensure accurate intraday behavior.
Values are normalized on a 0–1 scale:
0.0 → price at the lower VWAP deviation band
0.5 → price at VWAP (fair value)
1.0 → price at the upper VWAP deviation band
Readings above 1.0 or below 0.0 indicate price extension beyond VWAP deviation, highlighting potential exhaustion, continuation, or mean-reversion conditions depending on market context.
This tool is designed for intraday traders who use VWAP as a primary reference and want a clear, normalized view of price location within the VWAP range. It works well alongside trend-strength or momentum indicators to help filter entries, manage risk, and identify high-probability trade zones.
D1 High/LowThis indicator automatically plots the previous day’s high and low (D1) as thin dashed horizontal lines on the chart.
The levels are calculated strictly from yesterday’s daily candle only.
The lines are anchored directly at the previous day’s candle and extend to the right, matching institutional-style reference levels.
Visible on Daily (D1) and all lower timeframes (H4, H1, M15, etc.).
The lines reset at the start of each new trading day to reflect the latest completed session.
Designed as a context and liquidity reference, not as a predictive indicator.
Vortex Indicator (Smoothed Version)The original tradingview vortex indicator but with smoothed as default
Order Blocks ScannerHighlights order blocks with inneficiencies onto the chart, while removing mitigated blocks if price has touched that supply or demand area.
Also by default changes the candle color of the order block origin candle to make it easier to see already mitigated blocks for potential breaker block zones.
4MAs+5VWAPs+FVG+ Fractals4MAs + 5VWAPs + FVG + Fractals
All-in-one market structure indicator combining 4 moving averages, 5 VWAP timeframes, fair value gaps, fractals, and order blocks.
🔧 Features:
· 4 MAs - SMA/EMA, customizable lengths & colors
· 5 VWAPs - Daily, Weekly, Monthly, RTH, Custom sessions
· Fractals - Market structure with breakout lines & custom colors
· FVG/Imbalances - Bullish/bearish gap detection with alerts
· Order Blocks - Dynamic institutional levels
· Smart Labels - VWAP labels with color matching
⚙️ Quick Setup:
1. Toggle groups in Master Control Panel
2. Customize colors for each component
3. Set sessions for RTH/Custom VWAP
4. Adjust fractal periods (default: 2)
📈 Trading Use:
· Identify market structure with fractals
· Find confluence at VWAP + MA levels
· Trade FVG fills and order block reactions
· Multiple timeframe analysis with 5 VWAPs
Customizable • Color-Coordinated • Performance Optimized
StO Price Action - Panel US Economy DataShort Summary
- Displays selected us economic data as a time series graph
- Economic indicator name shown in the upper-right corner
- Designed as a lightweight fundamental context overlay
Full Description
Overview
- Plots economic macro data as a continuous graph
- Combines visual trend context with clear textual identification
Supported Economic Data
- CPI – Consumer Price Index
- CIR – Core Inflation Rate (YoY)
- IRYY – Inflation Rate (YoY)
- IJC – Initial Jobless Claims
- JC4W – Jobless Claims (4-Week Average)
- NFP – Nonfarm Payrolls
- UR – Unemployment Rate
Graph Behavior
- Selected economic series is rendered as a line graph
- Graph color is user-configurable
Label Display
- Full descriptive name of the selected indicator
- Fixed position in the upper-right corner
Usage
- Helps identify macro trends alongside price action
- Useful for bias alignment on higher timeframes
- Works well with Trend-following Systems or higher-timeframe structure analysis
Notes
- Economic data is informational and non-predictive
- Not a signal or timing tool
- Best used as contextual background not standalone input






















