📈 Smart Alert System — EMA/MA/Volume/SMC AlertsHere's a detailed description of your custom TradingView **Pine Script v6**:
---
### 📌 **Title**: Smart Alert System — Webhook Ready (with EMA, MA, Volume, and SMC)
This script is designed to **monitor price behavior**, detect important **technical analysis events**, and **send real-time alerts via webhook to a Telegram bot**.
---
## 🔧 SETTINGS
| Setting | Description |
| ----------------------- | ------------------------------------------------------------------------------ |
| `volumeSpikeMultiplier` | Multiplier to determine a volume spike compared to the 20-bar average volume |
| `testAlert` | If `true`, sends a test alert when the indicator is first applied to the chart |
---
## 🔍 COMPONENT BREAKDOWN
### 1. **EMA & MA Calculations**
These indicators are calculated and plotted on the chart:
* **EMAs**: 13, 25, 30, 200 — used for trend and touch detection
* **MAs**: 100, 300 — used for break and retest detection
```pinescript
ema_13 = ta.ema(close, 13)
ema_200 = ta.ema(close, 200)
ma_100 = ta.sma(close, 100)
```
---
### 2. **📈 Volume Spike Detection**
* A volume spike is identified when the current bar's volume is **2x (default)** greater than the 20-period average.
* A red triangle is plotted above such candles.
* A **JSON alert** is triggered.
```pinescript
volSpike = volume > avgVol * volumeSpikeMultiplier
```
---
### 3. **📊 EMA Touch Alerts**
* The script checks if the current close is:
* Within 0.1% of an EMA value **OR**
* Has crossed above/below it.
* If so, it sends an alert with the EMA name.
```pinescript
touch(val, crossed) =>
math.abs(close - val) / val < 0.001 or crossed
```
---
### 4. **📉 MA Break and Retest Alerts**
* A **break** is when price falls **below** a moving average.
* A **retest** is when price climbs **above** the same average after breaking below.
```pinescript
breakBelow(ma) => close > ma and close < ma
```
---
### 5. 🧠 **SMC Alerts (Break of Structure \ & Change of Character \ )**
These follow **Smart Money Concepts (SMC)**. The script identifies:
* **BOS**: New higher high in uptrend or lower low in downtrend
* **CHOCH**: Opposite of trend, e.g. lower low in uptrend or higher high in downtrend
```pinescript
bos = (high > high ) and (low > low ) and (low > low )
choch = (low < low ) and (high < high ) and (high < high )
```
---
### 6. 🧪 Dummy Test Alert (1-time fire)
* Sends a `"✅ Test Alert Fired"` to verify setup
* Executes **once only** after adding the indicator
```pinescript
var bool sentTest = false
if testAlert and not sentTest
```
---
### 7. 🚀 Alert Delivery (Webhook JSON)
All alerts are sent as a JSON payload that looks like this:
```json
{
"pair": "BTCUSD",
"event": "🔺 Volume Spike",
"timeframe": "15",
"timestamp": "2024-06-29T12:00:00Z",
"volume": "654000"
}
```
This format makes it compatible with your **Telegram webhook server**.
---
### 🔔 Alerts You Can Create in TradingView
* Set **Webhook URL** to your `https://xxxx.ngrok-free.app/tradingview-webhook`
* Use alert condition: `"Any alert()`" — because all logic is internal.
* Select **"Webhook URL"** and leave the message body blank.
---
### 🛠️ Use Cases
* Notify yourself on **EMA interaction**
* Detect **trend shifts or retests**
* Spot **volume-based market interest**
* Get real-time **BOS/CHOCH alerts** for Smart Money strategies
* Alert through **Telegram using your Node.js webhook server**
---
Would you like me to break down the full Pine Script block-by-block as well?
趨勢分析
STRENGTH INDEX / Impulse SystemSTRENGTH INDEX / Impulse System Indicator
Developed by Marcelo Ulisses Sobreiro Ribeiro
This powerful TradingView indicator combines two distinct trading approaches in one versatile tool:
1. STRENGTH INDEX (Multiple EMA System)
The first section features a unique configuration of 17 exponential moving averages designed to identify market strength and trend direction. The system includes:
Core EMAs (6, 21, and 34 periods) plotted with distinct colors and weights
A dense cluster of 14 additional EMAs (7-20 periods) that create a "zone of strength"
2. Impulse System (Based on Dr. Alexander Elder's Work)
The second section implements a modified version of Dr. Alexander Elder's famous Impulse System from his classic book Trading for a Living, featuring:
Color-coded bars (green/red/blue) based on trend strength
Customizable MACD parameters (12,26,9 by default)
Optional moving average (SMA/EMA/WMA/VWMA) with adjustable periods
EMA baseline (13-period default) for trend identification
Key Features:
Switch between systems with one click
Fully customizable parameters
Clean visual presentation with adjustable line weights
Maximum 500 plotted lines for performance optimization
This indicator is ideal for traders who want to:
✔ Identify strong trends using the EMA cluster
✔ Follow the market's impulse with Elder's proven system
✔ Customize their analysis with multiple technical tools
Tip: Use the STRENGTH INDEX for trend identification and the Impulse System for entry/exit timing.
FutureObitz Bank LevelsFutureObitz Bank Levels - Daily Structure & Trading Zones
"The Obitz Bank Levels indicator is a powerful tool designed to help traders identify key daily structural price levels. It automatically extracts the 1 hour and 4 hour High and 1 hour and 4 hour Low. You may also use this indicator for lower timeframes aswell. Going lower than 15 min is not recommended.
What This Indicator Provides:
Dynamic Daily Levels: Calculates and plots the Daily High, Daily Low, Middle, Middle High, and Middle Low of the current trading day. These lines provide clear reference points for price action.
Defined Buy & Sell Zones: Visualizes potential accumulation (Buy Zone) and distribution (Sell Zone) areas. These zones are calculated as a customizable percentage (via inputs) above/below the 'Middle' of the daily range, helping to identify potential entry or exit points.
Multi-Timeframe Compatibility: Displays the exact same daily levels regardless of your active chart's timeframe, offering a consistent higher-timeframe perspective for intraday traders.
Visual Clarity: Includes filled zones for better visualization of the Buy and Sell areas.
Optional Labels: Provides clear labels for the latest daily levels (D. High, D. Low, D. Middle, D. Buy Zone, D. Sell Zone) on the last bar of your chart for quick reference.
This indicator serves as a robust framework for understanding daily market structure and can assist in identifying potential areas of support, resistance, and trading opportunities. It's an excellent tool for traders who rely on clear, higher-timeframe levels to inform their trading decisions.
-FutureObitz
TMNT3 [v5, Code Copilot] with PyramidCore Principles
Trend-Following Breakouts
Enters on clean price breakouts above the prior N-day high (System 1: 20 days; System 2: 55 days).
Exits on reversals through the prior M-day low (System 1: 10 days; System 2: 20 days).
Volatility-Based Stops
Uses the Average True Range (ATR) to set a dynamic stop-loss at
Stop = Entry Price ± (ATR×Multiplier)
Stop= Entry Price-(ATR×Multiplier)
Adapts to changing market noise—wider stops in volatile conditions, tighter in calm markets.
System 1 vs. System 2 Toggle
System 1 (20/10) for shorter, faster swing opportunities.
System 2 (55/20) for catching longer, more powerful trends.
Pyramiding into Winners
Scales into a position in fixed “units” (each risking a constant % of equity).
Adds an extra unit each time price extends by a set fraction of ATR (default 0.5× ATR), up to a configurable maximum (default 5 units).
Only increases exposure when the trend proves itself—managing risk while maximizing returns.
Strict Risk Management
Each unit carries its own ATR-based stop, ensuring no single leg blows out the account.
Default risk per unit is a small, fixed percentage of total equity (e.g. 1% per unit).
Visual Aids & Confirmation
Overlaid entry/exit channels and trend/exit lines for immediate context.
Optional on-chart labels and background shading to highlight active trade regimes.
Why It Works
Objectivity & Discipline: Rules-based entries, exits, and sizing remove emotional guesswork.
Adaptive to Market Conditions: ATR stops and pyramiding adapt to both calm and turbulent phases.
Scalable: Toggle between short and long breakout horizons to suit different assets or timeframes.
Amavasya High Lows"This script plots Higher Highs and Lower Lows following each Amavasya trading date."
🔁 EMA 3/21 Crossover Strategy — Exit on Opposite SignalEMA 3/21 Crossover Strategy — Exit on Opposite Signal
This strategy enters trades based on a crossover between two exponential moving averages:
Buy Entry: When the 3-period EMA crosses above the 21-period EMA
Sell Entry: When the 3-period EMA crosses below the 21-period EMA
Exit Rule: Positions are exited only when an opposite signal occurs (i.e., a new crossover in the other direction)
Key Features:
Designed for trend-following setups
Uses ATR-based SL/TP lines for visual reference only (trades do not auto-close at SL/TP)
Suitable for manual or automated trading logic with high trade clarity
Can be applied on any timeframe and any liquid instrument (Forex, crypto, indices, etc.)
Recommended Use:
Combine with volume or session filters for improved signal quality
Ideal for traders seeking clear entry/exit rules with minimal noise
Best on trending instruments and medium timeframes (USDJPY; Daily)
Momentum TrendThis indicator suite aims to confirm strong uptrends or downtrends by combining ADX, MACD, ATR, and Accumulation/Distribution signals—green dots suggest confirmed upward momentum supported by accumulation at that moment, red dots indicate strong downward momentum, while separate A/D and ADX panels help visually assess trend strength and volume pressure for confirmation.
Historical Volatility with HV Average & High/Low TrendlinesHere's a detailed description of your Pine Script indicator:
---
### 📊 **Indicator Title**: Historical Volatility with HV Average & High/Low Trendlines
**Version**: Pine Script v5
**Purpose**:
This script visualizes market volatility using **Historical Volatility (HV)** and enhances analysis by:
* Showing a **moving average** of HV to identify volatility trends.
* Marking **high and low trendlines** to highlight extremes in volatility over a selected period.
---
### 🔧 **Inputs**:
1. **HV Length (`length`)**:
Controls how many bars are used to calculate Historical Volatility.
*(Default: 10)*
2. **Average Length (`avgLength`)**:
Number of bars used for calculating the moving average of HV.
*(Default: 20)*
3. **Trendline Lookback Period (`trendLookback`)**:
Number of bars to look back for calculating the highest and lowest values of HV.
*(Default: 100)*
---
### 📈 **Core Calculations**:
1. **Historical Volatility (`hv`)**:
$$
HV = 100 \times \text{stdev}\left(\ln\left(\frac{\text{close}}{\text{close} }\right), \text{length}\right) \times \sqrt{\frac{365}{\text{period}}}
$$
* Measures how much the stock price fluctuates.
* Adjusts annualization factor depending on whether it's intraday or daily.
2. **HV Moving Average (`hvAvg`)**:
A simple moving average (SMA) of HV over the selected `avgLength`.
3. **HV High & Low Trendlines**:
* `hvHigh`: Highest HV value over the last `trendLookback` bars.
* `hvLow`: Lowest HV value over the last `trendLookback` bars.
---
### 🖍️ **Visual Plots**:
* 🔵 **HV**: Blue line showing raw Historical Volatility.
* 🔴 **HV Average**: Red line (thicker) indicating smoothed HV trend.
* 🟢 **HV High**: Green horizontal line marking volatility peaks.
* 🟠 **HV Low**: Orange horizontal line marking volatility lows.
---
### ✅ **Usage**:
* **High HV**: Indicates increased risk or potential breakout conditions.
* **Low HV**: Suggests consolidation or calm markets.
* **Cross of HV above Average**: May signal rising volatility (e.g., before breakout).
* **Touching High/Low Levels**: Helps identify volatility extremes and possible reversal zones.
---
Let me know if you’d like to add:
* Alerts when HV crosses its average.
* Shaded bands or histogram visualization.
* Bollinger Bands for HV.
Ichimoku + RSI + VWMA Strategy Suite (w/ ATR SLTP)Ichimoku + RSI + VWMA indikatörleri kullanılarak üretilen seçmeli stratejiler.
Position Trading Strategy - EMA + FVGMulti-Timeframe Momentum & Pattern Recognition System
This comprehensive trading indicator combines multiple technical analysis components to identify high-probability entry and exit signals for Bitcoin and other assets. The system utilizes:
LuxAlgo Fair Value Gap Detection - Identifies institutional order flow imbalances
Hull Suite & MACD Integration - Confirms trend direction and momentum shifts
Pyramid Scoring System - Ranks signal strength using multiple confluences
Smart Position Management - Provides clear long/short entry and exit alerts
Visual Market Structure - Displays key support/resistance levels and gap zones
The indicator generates scored signals based on the alignment of trend, momentum, and market structure, helping traders identify optimal entry points while managing risk through systematic exit conditions. Perfect for swing trading and scalping strategies on multiple timeframes.
Best Used For: BTC/USD, major forex pairs, and liquid cryptocurrency markets
Recommended Timeframes: 5M, 15M, 1H for optimal signal accuracy
Previous Day High/Low (PDH/PDL) LevelsPlot Powerful Key Levels Automatically
This clean and lightweight indicator marks the Previous Day’s High (PDH) and Previous Day’s Low (PDL) directly on your chart — perfect for:
✅ Breakout traders
✅ Rejection setups
✅ Liquidity zone hunters
✅ Smart money style entries
📌 Features:
Customizable line style (Solid, Dashed, Dotted)
Choose your own colors and line width
Live right-edge labels showing exact PDH/PDL prices
Automatically resets and updates each new session
Use this as a standalone tool or stack it with your confluence strategy. PDH/PDL levels don’t lie — price respects structure.
Moving Average StrategyMoving Average Strategy Indicator
A comprehensive EMA strategy tool to identify market trends with the following setup parameters:
1. Display EMA for current chart time period with graphical overlay showing fill colors for positive/negative correlation (defaulted to 50 for Fast EMA/200 for Slow EMA)
2. Overlay background time frame to show correlation with EMA on different time frame than chart value (defaulted to hourly).
3. Display BB bands with customization as well as a BB Band Cross Up and Cross down test (shows unusual and fast moving market activity by marking BB band intercept with symbol).
4. Display VWAP.
I use this tool primarily with the following configuration:
Daily charts
Fast EMA - 50
Slow EMA - 200
BG Time Frame - Weekly
BG Fast EMA - 3
BG Slow EMA - 9
BB Length - 20
BB Deviation - 4
BG Fast/Slow Crossover enabled
BG Fast/Slow Crossunder enabled
BB Dev Cross Up Test enabled
BB Dev Cross Down Test enabled
Configuration issues:
For some reason there are plot values that cannot be set to absolute. I need to dig deeper into that and will plan to post it out when I resolve the issue. I just set the values to above and below to mitigate for that.
BTC/Fiat Divergence & Spread Monitor📄 BTC/Fiat Divergence & Spread Monitor
This indicator visualizes Bitcoin’s relative performance across multiple fiat currencies and highlights periods of unusual divergence. It helps traders assess which fiat pairs BTC has outperformed or underperformed over a configurable lookback period and monitor the dynamic spread between the strongest and weakest pairs.
Features:
Relative Performance Matrix:
Ranks BTC returns in 6 fiat pairs, displaying a color-coded table of percentage changes and ranks.
Divergence Spread Oscillator:
Calculates the spread between the top and bottom performing pairs and normalizes this using a Z-Score. The oscillator helps identify when fiat pricing divergence is unusually high or compressed.
Dynamic Smoothing:
Optional Hull Moving Average smoothing to reduce noise in the spread signal.
Customizable Inputs:
Lookback period for percent change.
Z-Score normalization window.
Smoothing length.
Symbol selection for each fiat pair.
Visual Mode Toggle:
Switch between relative performance lines and spread oscillator view.
Potential Use Cases:
Fiat Rotation:
Identify which fiat is relatively weak or strong to optimize your exit currency when taking BTC profits.
Volatility Detection:
Use the spread Z-Score to detect periods of high divergence across fiat pairs, signaling macro FX volatility or dislocations.
Regime Analysis:
Track when fiat spreads are converging or expanding, potentially signaling market regime shifts.
Risk Management:
When divergence is extreme (Z-Score > +1), consider reducing position sizing or waiting for reversion.
Disclaimer:
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security or asset. Always do your own research and consult a qualified financial professional before making trading decisions. Use at your own risk.
Tip:
Experiment with different lookback periods and smoothing settings to adapt the indicator to your timeframe and trading style.
Close Above Prev High / Below Prev LowIdentifies candles that close above the previous candle's high (bullish) and candles that close below the previous candle's low (bearish). Helps with decisions for entry and exit.
CMF Hybrid Scalper (1m Optimized)CMF Hybrid SCALPER That measures the change of CMF and smoothen it with EMA. Gives green zone zero and vise versa
Moving Average ExponentialThis indicator plots 8 Exponential Moving Averages (EMAs) with customizable lengths: 20, 25, 30, 35, 40, 45, 50, and 55. It also includes optional smoothing using various moving average types (SMA, EMA, WMA, etc.) and an optional Bollinger Bands overlay based on the EMA. It helps identify trend direction, momentum, and potential reversal zones.
ZYTX GKDDThe ZYTX High-Sell Low-Buy Indicator Strategy is a trend-following indicator that integrates multiple indicator resonances. It demonstrates the perfect performance of an automated trading robot, truly achieving the high-sell low-buy strategy in trading.
Close vs 50SMA % (Bars colored by 20SMA)This indicator plots the percentage difference between the Close price and the 50-period Simple Moving Average (SMA50), and colors each bar based on whether the Close is above or below the 20-period SMA (SMA20).
Intraday TWAP SimpleSlivKurs. This script implements a classic VWAP using ChatGPT (OpenAI). Purely a home project.
XRP 4H UTC Edge | metaduro.com🔍 Strategy Overview
The XRP 16H Strong strategy is a time-based intraday trading system built specifically for XRP on the 4-hour chart. It focuses on the 16:00–20:00 UTC session, targeting short-term price moves during this high-activity window.
✅ Entry Condition
📅 Time = 16:00 UTC → A long position is opened at the start of the 16:00–20:00 UTC candle. This time period often captures late-day momentum and volatility.
❌ Exit Condition
📅 Time = 20:00 UTC → The position is closed at the start of the 20:00–00:00 UTC candle, realizing gains or cutting risk quickly.
📊 No Indicators Used
This strategy is purely based on time-of-day logic — no indicators like RSI, MACD, or moving averages are used. It aims to isolate specific market behavior tied to certain hours.
⚙️ Settings
• Timeframe: 4H (required for correct execution)
• Trade Type: Long only
• Position Size: 100% equity per trade (default setting, adjustable)
💡 Use Cases
• Ideal for testing statistically favorable trading hours
• Can be applied to other crypto assets or combined with filters (e.g., volume spikes, price action patterns)
• Simple foundation for more complex hybrid models (time + indicator-based)
📉 No Stop-Loss or Take-Profit Logic
This script does not use SL/TP. It's recommended to combine with external risk management or modify the code for tighter control.
Market Strength Dashboard🚀 What It Does:
The indicator gives you a real-time dashboard showing three things:
✅ Trend Direction
Uses EMA 50 vs EMA 200.
Bullish: EMA 50 is above EMA 200 → Price favors upside swing.
Bearish: EMA 50 is below EMA 200 → Price favors downside swing.
Neutral: EMAs are equal → No clear trend.
✅ Momentum Strength
Uses RSI (Relative Strength Index).
Strong Bullish: RSI > 55 → Buyers in control.
Strong Bearish: RSI < 45 → Sellers in control.
Neutral: RSI between 45–55 → No strong momentum, usually sideways or uncertain.
✅ Volatility State (Expansion/Consolidation)
Uses Bollinger Band Width.
Measures if price is:
Expanding: BB Width increasing → Market opening up, volatility rising, often precedes large moves or breakouts.
Contracting: BB Width shrinking → Market compressing, often leads to tight ranges or consolidation.
Stable: No change in BB Width → Range behavior or calm trend.
🔥 How It Works Behind the Scenes:
EMA Cross Check:
→ Looks at whether the faster EMA (50) is above or below the slower EMA (200).
RSI Scan:
→ Reads current RSI level to determine momentum strength.
Bollinger Band Width Scan:
→ Calculates the distance between the upper and lower Bollinger Bands to detect if price is expanding or compressing.
Dashboard Output:
→ Combines all this into a floating label on the chart like:
“Trend: Bullish | Momentum: Strong Bullish | Volatility: Expanding”
🏆 How to Use It — Simple Rules for Swing or Day Trading:
🔥 Ideal Swing Trade Setup:
→ ✅ Trend: Bullish
→ ✅ Momentum: Strong Bullish
→ ✅ Volatility: Expanding
→ → Take long setups → pullbacks to EMA50 or previous highs → ride the trend.
→ ❌ If Trend is Neutral or Volatility is Contracting, skip the trade — market is chopping.
🔥 Ideal Day Trade Setup:
Look for Volatility Expanding → confirms active session/move.
Pair it with either Trend Bullish + Momentum Bullish for longs
→ Or Trend Bearish + Momentum Bearish for shorts.
🔥 When Not to Trade:
Trend Neutral + Momentum Neutral + Contracting Volatility → Sideways chop → No trade zone.
🔥 Breakout Watch Strategy:
When volatility shifts from Contracting → Expanding, expect a breakout.
→ Look for the first candle that pushes away from the Bollinger squeeze.
📊 How To Combine With Other Setups:
→ ✅ Add this dashboard to any chart to instantly know:
Should I be thinking up, down, or neither?
Is this market about to move big or stay stuck?
Pair it with:
Your price action entries.
Support/resistance levels.
Candle patterns.
Trendline or liquidity breaks.
🧠 Bottom Line:
→ This is a market condition scanner, not a signal generator.
→ It tells you: “Should I trade? What’s the direction? Is the market moving or stuck?”
→ You still choose the entry — this tool tells you when conditions are ideal or not.