On Balance Volume W DivergenceOBV With Divergence Indicator
A comprehensive On Balance Volume (OBV) indicator enhanced with divergence detection capabilities.
Core Features:
Classic OBV calculation with volume-based price movement tracking
Advanced divergence detection system
Multiple smoothing options for OBV
Bollinger Bands integration
Technical Components:
Volume-based price movement analysis
Pivot point detection for divergence
Customizable lookback periods
Adjustable divergence range parameters
Customization Options:
Multiple Moving Average types (SMA, EMA, SMMA, WMA, VWMA)
Bollinger Bands with adjustable standard deviation
Divergence sensitivity settings
Visual customization for signals and alerts
The indicator combines traditional OBV analysis with modern divergence detection, offering traders a powerful tool for identifying potential trend reversals and market momentum shifts.
Key Parameters:
- Pivot Lookback Right/Left: 5 (default)
- Divergence Range: 5-60 bars
- MA Length: 14 (default)
- BB StdDev: 2.0 (default)
Alert System:
- Bullish divergence alerts
- Bearish divergence alerts
- Customizable alert messages
Note: The indicator requires volume data to function properly and will display an error if volume data is not available.
Indicatori e strategie
MACD Trump/Biden MarketThis unique indicator visually distinguishes between two distinct market regimes by displaying bold, dynamic labels directly on the chart. The indicator aims to capture shifts in market sentiment, highlighting bullish and bearish phases in a way that's easy to interpret at a glance.
When the market is in a favorable phase, a green box labeled "Trump Market" appears, signaling positive conditions. Conversely, during challenging phases, a red box labeled "Biden Market" is displayed.
This tool is perfect for traders looking to quickly identify shifts in market dynamics and make informed decisions based on the current market environment. Use it to enhance your trading strategy and stay ahead of sudden changes.
Candle Rating (1–5)This “Candle Rating (1–5)” indicator measures where each bar’s close sits within its own high-low range and assigns a simple strength score:
Range Calculation
It computes the candle’s total range (high − low) and finds the close’s position as a percentage of that range (0 = close at low, 1 = close at high).
Five-Point Rating
1 (Strong Buy): Close in the top 20% of the range
2 (Moderate Buy): 60–80%
3 (Neutral): 40–60%
4 (Moderate Sell): 20–40%
5 (Strong Sell): Bottom 20%
Visual Feedback
It plots the numeric rating above each bar (colored green → red), giving you an at-a-glance read of candle momentum and potential reversal strength across any timeframe.
Opti-EnvelopeUse Cases
Trend Confirmation: Confirm strong trending conditions via HMA slope and bar colors.
Overbought/Oversold Alerts: Spot potential reversal zones when price breaks the envelope bands.
Volatility Monitoring: Track market volatility through the widening and narrowing of the envelope.
ATR Usage % (Legacy-Compatible)What It Does:
• Calculates how much of today’s ATR has already been used.
• Shows a label above price bar with % usage.
• Color-coded:
• Green if usage < 80%
• Orange if 80–100%
• Red if over 100% → Possible exhaustion
Black Candle - First Sell/Buy Signalthis indicator gives you signals to buy and sell with high accuracy.
SS Galaxy TRI-Force Setup EMASuper trend Indicator (to identify trend direction and reversals)
10 EMA and 21 EMA Crossover (to time entry and exit)
ATR in Percentagethe script calculates ATR in percentage instead of money units, useful for comparison
Created by me using ChatGPT orders.
hope it is useful you can put alerts too
SAN BTC StochRSI Indicator with RSI and KGS SMA (Daily)buys bitcoin if below SMA 2, stoch as oversold and RSI above oversold, take 100 % profit after stoch RSI is overbought and Stoch RSI is overbought, SL in SMA3
Closest Candle to EMA (CCE)🔍 Closest Candle to EMA (CCE)
The Closest Candle to EMA (CCE) indicator is a visual analytical tool designed to identify the historical price (candle close) that is closest to the current Exponential Moving Average (EMA) over a user-defined period. This allows traders to easily detect how price has interacted with the trend line recently, providing insights into potential mean reversion, support/resistance, and price convergence behavior.
📌 Key Features
✅ Highlights the candle with a closing price closest to the current EMA
✅ Customizable EMA length for various trading styles and timeframes
✅ Helps detect potential zones of trend interaction
✅ Supports analysis of price behavior near dynamic support/resistance
✅ Lightweight and non-intrusive visual overlay (red = closest price, blue = EMA)
🧠 How It Works
The script calculates the EMA using the user-defined length (default: 20).
It then scans the last N candles (equal to the EMA length) and finds the one whose closing price is closest to the current EMA value.
That close is highlighted in red, while the EMA is shown in blue.
This comparison helps traders understand the proximity of past price action to the current trend level.
💡 Use Cases
Mean Reversion Strategies – Spot when price historically reverts to the trend
Dynamic Support/Resistance Identification – Find levels where price respected or returned to the EMA
Consolidation Zone Analysis – Identify areas where price hovered around trend lines
Backtesting Trend Sensitivity – See how price reacted to EMA over time
⚙️ Settings
EMA Length – Set the number of periods used for EMA and comparison window (default: 20)
📊 Example Strategy Setup – EMA Touch with Reversal Candle
This indicator can be incorporated into a price-action strategy that combines candlestick patterns, EMA proximity, and volume confirmation. Here's a practical use case:
🔧 Note: This setup is designed specifically with the EMA length set to 9.
🔁 Bullish Setup – Hammer + EMA (in uptrend)
The market is in an uptrend, confirmed by EMA(9) sloping upward
A Hammer candlestick forms
The EMA (blue) must touch the lower shadow (wick) of the Hammer
It must not touch the candle body
Candle volume is above average
→ ✅ This may signal a bullish continuation opportunity
🔁 Bearish Setup – Shooting Star + EMA (in downtrend)
The market is in a downtrend, confirmed by EMA(9) sloping downward
A Shooting Star candlestick forms
The EMA (blue) must touch the upper shadow (wick) of the candle
It must not touch the candle body
Candle volume is above average
MAD_MacD_MTFThis is educational purpose only but not a financial advise. Script modified on top Chris Moody.
Dual DEMA w/ Trend TableDual DEMA
Updated with multi time frame trend table
Couldn't find one on trading view so I made one my self.
3 Bollinger Bands (Shaded) & 5 EMAs3 Bollinger Bands (Shaded) & 5 EMAs – Multi-Timeframe Trend & Volatility Indicator
This powerful and customizable indicator overlays three shaded Bollinger Bands and five Exponential Moving Averages (EMAs) on your chart. It's designed to give traders a clear view of volatility, trend direction, and dynamic support/resistance levels across multiple timeframes.
✅ Features:
3 Bollinger Bands:
Independent configuration of period, standard deviation, timeframe, and color.
Beautiful shaded zones between upper and lower bands for clear visualization of volatility.
5 EMAs:
Fully customizable period, timeframe, and color.
Useful for identifying multi-timeframe trend alignment and crossovers.
🔧 Use Cases:
Confirm trend strength and direction.
Spot mean reversion or breakout zones using Bollinger Bands.
Detect dynamic support/resistance via EMAs.
Align short-term and long-term trends using multi-timeframe analysis.
🛠️ How to Use:
Customize each EMA and BB to your preferred settings.
Use shaded bands to identify high-volatility zones or squeeze conditions.
Watch for price interacting with key EMAs or bouncing within/outside Bollinger Bands for trade setups.
Market Cap & Turnover (in Cr)This script will suggest Market cap & Close price X volume in Rs crore
can be use to find out liquidity rush
Perfect Daily Markers FINALsalamtak legamrey yessssssssss. very good indicator that helps you identefy the high and low of all days and mark the time: between 15:30 and 19:00
Magfi 1.3 Инвертированный мультиактивный FGIUpdated version of my previous MAGFI indicator (Inverted fear and greed index multicorellation)
Now you can select 3 assets for corellations depending on the current trading sessions as some of the tickers are not traded during certain trading hours
24hour corellations - tickers that are actively traded 23 hours a day 5 days a week
EU/UK - traded during Frankfurt / London session hours
USA - standard US (chigago / nyse) trading hours
If you trade during Asian trading hours p.m. me to add this or use comma-separated textbox to input your set of 3 tickers.
i sleep during Asian trading hours.
Minor design changes.
Feel welcome to send your feature requests or suggestions i love feedback.
Regards
Credit Spread Monitor: HY & IG vs US10Y📉 Credit Spread Monitor: HY & IG vs US10Y
This indicator provides a dynamic and visual way to monitor credit spreads relative to the US Treasury benchmark. By comparing High Yield (HY) and Investment Grade (IG) corporate bond yields to the 10-Year US Treasury Yield (US10Y), it helps assess market stress, investor risk appetite, and potential macro turning points.
🔍 What It Does
-Calculates credit spreads:
HY Spread = BAMLH0A0HYM2EY − US10Y
IG Spread = BAMLC0A0CMEY − US10Y
-Detects macro risk regimes using statistical thresholds and yield curve signals:
🔴 HY Spread > +2σ → Potential financial stress
🟠 Inverted Yield Curve + HY Spread > 2% → Recession risk
🟢 HY Spread < 1.5% → Risk-on environment
-Visually highlights conditions with intuitive background colors for fast decision-making.
📊 Data Sources Explained
🔴 High Yield (HY): BAMLH0A0HYM2EY → ICE BofA US High Yield Index Effective Yield
🔵 Investment Grade (IG): BAMLC0A0CMEY → ICE BofA US Corporate Index Effective Yield
⚪ Treasury 10Y: US10Y → 10-Year US Treasury Yield
⚪ Treasury 2Y: US02Y → 2-Year US Treasury Yield (used to detect curve inversion)
✅ This Indicator Is Ideal For:
Macro traders looking to anticipate economic inflection points
Portfolio managers monitoring systemic risk or credit cycles
Fixed-income analysts tracking the cost of corporate borrowing
ETF/Asset allocators identifying shifts between risk-on and risk-off environments
🧠 Why It's Useful
This script helps visualize how tight or loose credit conditions are relative to government benchmarks. Since HY spreads typically widen before major downturns, this tool can provide early warning signals. Similarly, compressed spreads may indicate overheating or complacency in risk markets.
🛠️ Practical Use Case:
You’re managing a multi-asset portfolio. The HY spread jumps above +2σ while the yield curve remains inverted. You decide to reduce exposure to equities and high-yield bonds and rotate into cash or Treasuries as recession risk rises.
📎 Additional Notes
Sourced from FRED (Federal Reserve Economic Data) and TradingView’s bond feeds.
Designed to work best on daily resolution, using open prices to ensure consistency across series with different update timings.
This script is original, not based on built-in or public templates, and intended to offer educational, statistical, and visual insights for serious market participants.
🧮Calculadora de Entrada/ApalancamientoThis tool automatically calculates the required position size and leverage for a trade based on the user's defined risk amount, stop loss percentage, and capital allocated for the operation.
📊 It displays the following data in a clean table at the bottom-right corner of the chart:
🟨 Required position size
⚡ Leverage needed
💰 Capital used in the trade
🟥 Risk amount per trade
Perfect for traders who manage their capital and risk with precision.
Values update automatically every few candles.
💡 Recommended for traders using fixed risk management strategies (% of capital) and who want a quick visual reference for executing safe and efficient trades.
NY Key Open Lines (True UTC-4)📌 NY Key Open Lines (UTC-4 Based) — Indicator Description
This TradingView indicator automatically draws horizontal lines at four key New York session opening times:
08:30, 09:30, 10:30, and 18:00 (based on New York time, UTC-4).
✅ Key Features
Auto-draws lines at:
Custom line length per time: You can independently set how far each line extends to the right (in number of bars).
Label above line: Each line shows a clean time label (e.g., 09:30) slightly above the right edge of the line.
Customizable style:
Line color
Line width
Label font size
Label vertical offset
asami.factor Buy/Sell Strategy### **1\. Purpose**
The script fires **Buy/Sell signals** based on an EMA golden/death‑cross, but only when **volatility (ATR & Bollinger width), volume, and short‑term momentum** confirm that market conditions are meaningful. It also self‑tracks win‑rate and average P/L, displaying the stats in a table.
### **2\. Input Parameters**
| Category | Variable(s) | Function |
| :---- | :---- | :---- |
| Trend | `emaFast`, `emaSlow` | Determine EMA crossover direction |
| Oscillator | `rsiLength` | Oversold/overbought context only |
| MACD | `macdFast`, etc. | Extra momentum context (not plotted) |
| Volatility | `atrPeriod`, `atrMultiplier`, `bbLength`, `bbMult` | Measure relative ATR & BB width |
| Threshold | `minVolatilityThreshold` | Minimum % width to call vol “high” |
### **3\. Core Logic**
1. **Trend** – `fastMA > slowMA` is up‑trend, else down.
2. **Signal Generation**
* `crossover(fastMA, slowMA)` → **Buy**
* `crossunder(fastMA, slowMA)` → **Sell**
3. **Volatility & Volume Filter**
* Current ATR vs 100‑bar ATR average.
* Bollinger‑band width (% of middle band).
* Volume \> 1.5 × 20‑bar MA.
* If both conditions pass, table shows “HIGH”.
4. **Momentum Filter** – 3‑bar price %‑change must exceed the same threshold.
5. **Stat Tracking** – On every Buy→Sell pair it logs P/L %, counts total & successful signals, and updates accuracy / average profit.
### **4\. Visual Components**
* **Chart** – Plots fast/slow EMA, ATR‑based dynamic bands, upper/lower BB, plus triangle icons at each signal.
* **Table (top‑right)** – Displays volatility status, BB width %, ATR ratio, current or last signal, plus room to add accuracy/avg P/L lines.
### **5\. Alerts**
Three `alertcondition()` calls let you create TradingView alerts for **Buy**, **Sell**, or **any** signal and forward JSON/Webhooks to external trading bots.
### **6\. Usage Notes**
* The multilayer filter aims to fire only when **trend, volatility, and volume align**, reducing crossover whipsaws.
* Treat the built‑in statistics as a **research aid**; refine parameters (`minVolatilityThreshold`, `atrMultiplier`, etc.) per symbol and timeframe.
* Combine with proper risk management (SL/TP, position sizing) before live deployment.
Bollinger Bands with Stochastic and Exit Strategy (v6)Bollinger Bands with Stochastic and Exit use take profit and stop loss is good to use APi's trading or scalping. Codes are public and credited to owner ryzinray@gmail.com please follow..
EMA Scalping Buy/Sell Labels5-min chart Gold (XAU/USD)
✅ EMA 9 crosses above EMA 21
✅ Price pulls back and touches EMA 21
✅ Bullish engulfing candle appears
✅ Enter long, target quick 10 pips
✅ Stop-loss 5 pips below EMA 21
Supertrend - PineConnectorThis strategy uses the Supertrend indicator to identify trend-based buy and sell opportunities. A trade is entered when the price crosses over or under the Supertrend line:
Buy Entry: Triggered when the price crosses above the Supertrend line.
Sell Entry: Triggered when the price crosses below the Supertrend line.
Exit Conditions: Opposite crossover signals indicate a potential trend reversal and are used to close positions.