Momentum Trail Oscillator [AlgoAlpha]🟠 OVERVIEW
This script builds a Momentum Trail Oscillator designed to measure directional momentum strength and dynamically track shifts in trend bias using a combination of smoothed price change calculations and adaptive trailing bands. The oscillator aims to help traders visualize when momentum is expanding or contracting and to identify transitions between bullish and bearish conditions.
🟠 CONCEPTS
The core idea combines two methods. First, the script calculates a normalized momentum measure by smoothing price changes relative to their absolute values, which creates a bounded oscillator that highlights whether moves are directional or choppy. Second, it uses a trailing band mechanism inspired by volatility stops, where bands adapt to the oscillator’s volatility, adjusting the thresholds that define a shift in directional bias. This dual approach seeks to address both the magnitude and persistence of momentum, reducing false signals in ranging markets.
🟠 FEATURES
The momentum calculation applies Hull Moving Averages and double EMA smoothing to price changes, producing a smooth, responsive oscillator.
The trailing bands are derived by offsetting a weighted moving average of the oscillator by a multiple of recent momentum volatility. A directional state variable tracks whether the oscillator is above or below the bands, updating when the momentum crosses these dynamic thresholds.
Overbought and oversold zones are visually marked between fixed levels (+30/+40 and -30/-40), with color fills to highlight when momentum is in extreme areas. The script plots signals on both the oscillator pane and optionally overlays markers on the main price chart for clarity.
🟠 USAGE
To use the indicator, apply it to any symbol and timeframe. The “Oscillator Length” controls how sensitive the momentum line is to recent price changes—lower values react faster, higher values smooth out noise. The “Trail Multiplier” sets how far the adaptive bands sit from the oscillator mid-line, which affects how often trend state changes occur. When the momentum line rises into the upper filled area and then crosses back below +40, it signals potential overbought exhaustion. The opposite applies for the oversold zone below -40. The plotted trailing bands switch visibility depending on the current directional state: when momentum is trending up, the lower band acts as the active trailing stop, and when trending down, the upper band becomes active. Trend changes are marked with circular symbols when the direction variable flips, and optional overlay arrows appear on the price chart to highlight overbought or oversold reversals. Traders can combine these signals with their own price action or volume analysis to confirm entries or exits.
Analisis Trend
Step Channel Momentum Trend [ChartPrime]OVERVIEW
Step Channel Momentum Trend is a momentum-based price filtering system that adapts to market structure using pivot levels and ATR volatility. It builds a dynamic channel around a stepwise midline derived from swing highs and lows. The system colors price candles based on whether price remains inside this channel (low momentum) or breaks out (strong directional flow). This allows traders to clearly distinguish ranging conditions from trending ones and take action accordingly.
⯁ STRUCTURAL MIDLNE (STEP CHANNEL CORE)
The midline acts as the backbone of the trend system and is based on structure rather than smoothing.
Calculated as the average of the most recent confirmed Pivot High and Pivot Low.
The result is a step-like horizontal line that only updates when new pivot points are confirmed.
This design avoids lag and makes the line "snap" to recent structural shifts.
It reflects the equilibrium level between recent bullish and bearish control.
snapshot
This unique step logic creates clear regime shifts and prevents noise from distorting trend interpretation.
⯁ DYNAMIC VOLATILITY BANDS (ATR FILTERING)
To detect momentum strength, the script constructs upper and lower bands using the ATR (Average True Range):
The distance from the midline is determined by ATR × multiplier (default: 200-period ATR × 0.6).
These bands adjust dynamically to volatility, expanding in high-ATR environments and contracting in calm markets.
The area between upper and lower bands represents a neutral or ranging market state.
Breakouts outside the bands are treated as significant momentum shifts.
snapshot
This filtering approach ensures that only meaningful breakouts are visually emphasized — not every candle fluctuation.
⯁ MOMENTUM-BASED CANDLE COLORING
The system visually transforms price candles into momentum indicators:
When price (hl2) is above the upper band, candles are green → bullish momentum.
snapshot
When price is below the lower band, candles are red → bearish momentum.
snapshot
When price is between the bands, candles are orange → low or no momentum (range).
snapshot
The candle body, wick, and border are all colored uniformly for visual clarity.
This gives traders instant feedback on when momentum is expanding or fading — ideal for breakout, pullback, or trend-following strategies.
⯁ PIVOT-BASED SWING ANCHORS
Each confirmed pivot is plotted as a label ⬥ directly on the chart:
snapshot
They also serve as potential manual entry zones, SL/TP anchors, or confirmation points.
⯁ MOMENTUM STATE LABEL
To reinforce the current market mode, a live label is displayed at the most recent candle:
Displays either:
“Momentum Up” when price breaks above the upper band.
snapshot
“Momentum Down” when price breaks below the lower band.
snapshot
“Range” when price remains between the bands.
snapshot
Label color matches the candle color for quick identification.
Automatically updates on each bar close.
This helps discretionary traders filter trades based on market phase.
USAGE
Use the green/red zones to enter with momentum and ride trending moves.
Use the orange zone to stay out or fade ranges.
The step midline can act as a breakout base, pullback anchor, or bias reference.
Combine with other indicators (e.g., order blocks, divergences, or volume) to build high-confluence systems.
CONCLUSION
Step Channel Momentum Trend gives traders a clean, adaptive framework for identifying trend direction, volatility-based breakouts, and ranging environments — all from structural logic and ATR responsiveness. Its stepwise midline provides clarity, while its dynamic color-coded candles make momentum shifts impossible to miss. Whether you’re scalping intraday momentum or managing swing entries, this tool helps you trade with the market’s rhythm — not against it.
Future is hereOverview
"Future is Here" is an original, multi-faceted Pine Script indicator designed to provide traders with a comprehensive toolset for identifying high-probability trading opportunities. By integrating volatility-based entry zones, trend-based price targets, momentum confirmation, dynamic support/resistance levels, and risk-reward ratio (RRR) calculations, this indicator offers a cohesive and actionable trading framework. Each feature is carefully designed to complement the others, ensuring a synergistic approach that enhances decision-making across various market conditions. This script is unique in its ability to combine these elements into a single, streamlined interface with clear visual cues and customizable alerts, making it suitable for both novice and experienced traders.
Key Features and How They Work Together
Volatility-Based Entry Zones
Purpose: Identifies overbought and oversold conditions using a volatility-adjusted moving average, helping traders spot potential reversal zones.
Mechanism: Utilizes a user-defined volatility length and multiplier to calculate dynamic overbought/oversold thresholds based on the standard deviation of price. Crossovers and crossunders of these levels trigger "Buy Zone" or "Sell Zone" labels.
Synergy: These zones act as the foundation for entry signals, which are later confirmed by momentum and trend filters to reduce false signals.
Trend-Based Price Targets
Purpose: Projects potential price targets based on the prevailing trend, giving traders clear objectives for profit-taking.
Mechanism: Combines a fast and slow moving average to determine trend direction, then calculates target prices using a multiplier of the price deviation from the slow MA. Labels display bullish or bearish targets when the fast MA crosses the slow MA.
Synergy: Works in tandem with entry zones and momentum signals to align targets with market conditions, ensuring traders aim for realistic price levels supported by trend strength.
Momentum Confirmation
Purpose: Validates entry signals by assessing momentum strength, filtering out weak setups.
Mechanism: Uses the momentum indicator to detect bullish or bearish momentum crossovers, labeling them as "Strong" or "Weak" based on a comparison with a smoothed momentum average.
Synergy: Enhances the reliability of buy/sell signals by ensuring momentum aligns with volatility zones and trend direction, reducing the risk of premature entries.
Dynamic Support/Resistance Levels
Purpose: Highlights key price levels where the market is likely to react, aiding in trade planning and risk management.
Mechanism: Detects pivot highs and lows over a user-defined lookback period, drawing horizontal lines for the most recent support and resistance levels (limited to two each for clarity). Labels mark these levels with price values.
Synergy: Complements entry zones and price targets by providing context for potential reversal or continuation points, helping traders set logical stop-losses or take-profits.
Buy/Sell Signals with Risk-Reward Ratios
Purpose: Generates precise buy/sell signals with integrated take-profit (TP), stop-loss (SL), and RRR calculations for disciplined trading.
Mechanism: Combines volatility zone crossovers, trend confirmation, and positive momentum to trigger signals. ATR-based TP and SL levels are calculated, and the RRR is displayed in labels for quick assessment.
Synergy: This feature ties together all previous components, ensuring signals are only generated when volatility, trend, and momentum align, while providing clear risk-reward metrics for trade evaluation.
Customizable Alerts
Purpose: Enables traders to stay informed of trading opportunities without constant chart monitoring.
Mechanism: Alert conditions are set for buy and sell signals, delivering notifications with the entry price for seamless integration into trading workflows.
Synergy: Enhances usability by allowing traders to act on high-probability setups identified by the indicator’s combined logic.
Originality
"Future is Here" is an original creation that distinguishes itself through its holistic approach to technical analysis. Unlike single-purpose indicators, it integrates volatility, trend, momentum, and support/resistance into a unified system, reducing the need for multiple scripts. The inclusion of RRR calculations directly in signal labels is a unique feature that empowers traders to evaluate trade quality instantly. The script’s design emphasizes clarity and efficiency, with cooldowns to prevent label clutter and a limit on support/resistance lines to maintain chart readability. This combination of features, along with its customizable parameters, makes it a versatile and novel tool for traders seeking a robust, all-in-one solution.
How to Use
Setup: Add the indicator to your TradingView chart and adjust input parameters (e.g., Volatility Length, Trend Length, TP/SL Multipliers) to suit your trading style and timeframe.
Interpretation:
Look for "Buy Zone" or "Sell Zone" labels to identify potential entry points.
Confirm entries with "Bull Mom" or "Bear Mom" labels and trend direction (Bull/Bear Target labels).
Use Support/Resistance lines to set logical TP/SL levels or anticipate reversals.
Evaluate Buy/Sell signals with TP, SL, and RRR for high-probability trades.
Alerts: Set up alerts for Buy/Sell signals to receive real-time notifications.
Customization: Fine-tune multipliers and lengths to adapt the indicator to different markets (e.g., stocks, forex, crypto) or timeframes.
Fair Value GapsFair Value Gaps Indicator
The Fair Value Gaps (FVG) Indicator is a sleek, lightweight tool designed to identify and display unfilled fair value price gaps on any chart and timeframe. It dynamically updates as price moves into gaps, shrinking the displayed area to show only the remaining unfilled portion until the gap is fully closed. With a user-friendly settings panel, traders can customize visuals to suit their style, including a minimalist version.
Features
When a valid FVG is detected through a three-candle pattern, a box appears, highlighting the precise gap range. As price enters the gap, the box adjusts to reflect the remaining unfilled area, and when fully filled, the gap is deleted, allowing new gaps to appear. The settings panel offers robust customization for a tailored experience.
Preset Styles :
Custom : Define your own color and zone extension settings. (Default)
Blue Boxes : Blue gaps with 85% transparency and zones extended to the right.
Minimalist Yellow : Yellow gaps with 75% transparency, confined to the original gap area on the candlestick.
Color : Change the gap color and transparency.
Extend FVG Zone : Enable or disable zone extension to the right.
Show Borders : Toggle subtle borders on or off for enhanced visibility.
Maximum FVGs Displayed : Change the number of gaps displayed on the chart.
Thank you for your interest in my work. I use these fair value gaps as part of my trade trigger for many of my trade entries almost every day. If you have any comments, bugs, or suggestions, please leave them here, or you can find me on Twitter or Discord.
@ ContrarianIRL
Open-source developer for over 25 years
GlocksFibsA modded Version of AlgoAlphas fib script. reworked it into my fib set. same rules apply 868 924 entry. first tp 50% mark. using it to help speed up my charting process overall. This is by far one of the best ones ive found that wont print the fib weird once the new numbers are in. all credits to AlgoAlpha and this gem they made!
IDKFAIDKFA - Advanced Order Blocks & Volume Profile with Market Structure Analysis
Why IDKFA?
Named after the legendary DOOM cheat code that gives players "all weapons and full ammo," IDKFA provides traders with a comprehensive arsenal of market analysis tools. Just as the cheat code arms players with everything needed for combat, this indicator equips traders with essential market structure tools: Order Blocks, Volume Profile, LVN/HVN areas, Fibonacci retracements, and intelligent buy/sell signals - all in one unified system.
Core Features
Order Blocks Detection
Automatically identifies institutional order blocks using pivot high/low analysis
Extends blocks dynamically until price interaction occurs
Bullish blocks (demand zones) and bearish blocks (supply zones)
Customizable opacity and extend functionality
Advanced Volume Profile
Real-time volume profile calculation for multiple session types
Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL)
Mode 1: Side-by-side bull/bear volume display
Mode 2: Overlapped volume display with percentage analysis
Shows buying vs selling pressure at each price level
LVN/HVN Area Detection
Low Volume Nodes (LVN): Areas below VAL where price moves quickly
High Volume Nodes (HVN): Areas above VAH with strong resistance
NPOC (Naked Point of Control): Single print areas within Value Area
Volume-based gradient coloring shows relative activity levels
Smart Fibonacci Retracements
Auto-detects trend direction for proper fibonacci orientation
Dynamic color coding: Red levels in uptrends, Gold in downtrends
Special 88.6% level turns lime green in downtrends
Key levels: 23.6%, 38.2%, 50%, 61.8%, 65%, 78.6%, 88.6%
Intelligent Signal System
Works best on higher timeframes
Identifies high-probability reversal setups at key levels
Buy signals: Large bearish rejection followed by bullish reclaim
Sell signals: Large bullish rejection followed by bearish breakdown
Signals only trigger near significant support/resistance areas
Signal Analysis & Usage Guidelines
Buy Signal Mechanics
The buy signal triggers when:
Previous candle shows significant bearish movement (minimum ATR multiplier)
Current candle reclaims a configurable percentage of the previous candle's range
Price is near a key support level (order blocks, fibonacci, volume levels)
Sell Signal Mechanics
The sell signal triggers when:
Previous candle shows significant bullish movement (minimum ATR multiplier)
Current candle rejects below a configurable percentage of the previous candle's range
Price is near a key resistance level (order blocks, fibonacci, volume levels)
When to TAKE Signals
High Probability Buy Signals:
Signal appears AT or BELOW the VAL (Value Area Low)
Signal occurs at bullish order block confluence
Price is in LVN area below VAL (momentum acceleration zone)
Signal aligns with fibonacci 61.8% or 78.6% support
Multiple session POC levels provide support confluence
Previous session's VAL acting as current support
High Probability Sell Signals:
Signal appears AT or ABOVE the VAH (Value Area High)
Signal occurs at bearish order block confluence
Price is in HVN area above VAH (heavy resistance zone)
Signal aligns with fibonacci 61.8% or 78.6% resistance
Multiple session POC levels provide resistance confluence
Previous session's VAH acting as current resistance
When to AVOID Signals
Avoid Buy Signals When:
Signal appears ABOVE the VAH (buying into resistance)
Price is in HVN red zones (high volume resistance areas)
No clear support structure below current price
Volume profile shows heavy selling pressure (high bear percentages)
Signal occurs during low-volume periods between major sessions
Multiple bearish order blocks exist below current price
Avoid Sell Signals When:
Signal appears BELOW the VAL (selling into support)
Price is in LVN green zones (momentum could continue)
No clear resistance structure above current price
Volume profile shows heavy buying pressure (high bull percentages)
Signal occurs during Asian session ranges without clear direction
Multiple bullish order blocks exist above current price
Volume Profile Context for Signals
Understanding Bull/Bear Percentages:
70%+ Bull dominance at a level = Strong support expected
70%+ Bear dominance at a level = Strong resistance expected
50/50 Split = Neutral zone, less predictable
Use percentages to gauge conviction behind moves
POC (Point of Control) Interactions:
Signals above POC in uptrend = Higher probability
Signals below POC in downtrend = Higher probability
Signals against POC bias require extra confirmation
POC often acts as magnetic level for price return
Trading Strategies
Strategy 1: VAL/VAH Bounce Strategy
Wait for price to approach VAL (support) or VAH (resistance)
Look for signal confirmation at these critical levels
Enter with tight stops beyond the Value Area
Target opposite boundary or next session's levels
Strategy 2: Order Block + Volume Confluence
Identify order block alignment with VAL/VAH
Wait for signal within the confluence zone
Enter on signal with stop beyond order block
Use LVN areas as acceleration zones for targets
Strategy 3: LVN/HVN Strategy
LVN (Green) Areas: "Go Zones" - expect quick price movement through low volume
HVN (Red) Areas: "Stop Zones" - expect resistance and potential reversals
NPOC Areas: "Fill Zones" - price often returns to fill single print gaps
Strategy 4: Multi-Session Analysis
Use Daily/Weekly for major structure context
Use 4H for intermediate levels
Use 1H for precise entry timing
Ensure all timeframes align before taking signals
Strategy 5: Fibonacci + Volume Profile
Buy signals at 61.8% or 78.6% fibonacci near VAL
Sell signals at 61.8% or 78.6% fibonacci near VAH
Use 88.6% level as final support/resistance before major moves
50% level often aligns with POC for confluence
Signal Quality Assessment
Grade A Signals (Highest Probability):
Signal at VAL/VAH with order block confluence
Fibonacci level alignment (61.8%, 78.6%)
Volume profile shows 70%+ dominance in signal direction
Multiple timeframe structure alignment
Signal occurs during high-volume sessions (London/NY)
Grade B Signals (Moderate Probability):
Signal near POC with some confluence
Fibonacci 50% or 38.2% alignment
Mixed volume profile readings (50-70% dominance)
Some timeframe alignment present
Signal during overlap sessions
Grade C Signals (Lower Probability):
Signal with minimal confluence
Weak fibonacci alignment or none
Volume profile neutral or against signal
Conflicting timeframe signals
Signal during low-volume periods
Risk Management Guidelines
Position Sizing Based on Signal Quality:
Grade A: Standard position size
Grade B: Reduced position size (50-75%)
Grade C: Minimal position size (25%) or skip entirely
Stop Loss Placement:
Beyond order block boundaries
Outside Value Area (VAL/VAH)
Below/above fibonacci confluence levels
Account for session volatility ranges
Profit Targets:
First target: Opposite VAL/VAH boundary
Second target: Next session's key levels
Final target: Major order blocks or fibonacci extensions
Credits & Attribution
Original components derived from:
Market Sessions & Volume Profile by © Leviathan (Mozilla Public License 2.0)
Volume Profile elements inspired by @LonesomeTheBlue's volume profile script
Pivot Order Blocks by TradingWolf / © MensaTrader (Mozilla Public License 2.0)
Auto Fibonacci Retracement code (public domain)
Significant enhancements and modifications include:
Advanced LVN/HVN detection and visualization
Bull/Bear percentage analysis for Mode 2/3
Comprehensive alert system with market context
Integrated buy/sell signals at key levels
Performance optimizations and extended session support
Enhanced Mode 2/3 with percentage pressure analysis
Important Disclaimers
This indicator is a technical analysis tool designed for educational purposes. It does not provide financial advice, investment recommendations, or trading signals that guarantee profits. All trading involves substantial risk of loss, and past performance does not guarantee future results. Users should conduct their own research, understand the risks involved, and consider consulting with qualified financial advisors before making trading decisions. The signals and analysis provided are based on historical price patterns and volume data, which may not predict future market movements accurately.
Best Practices
Never trade signals blindly - always consider volume profile context
Wait for confluence between multiple tools before entering
Respect the Value Area - avoid buying above VAH or selling below VAL
Use session context - Asian ranges vs London/NY breakouts
Practice proper risk management - position size based on signal quality
Understand the bigger picture - use multiple timeframes for context
Remember: Like the IDKFA cheat code, having all the tools doesn't guarantee success. The key is learning to use them together effectively and understanding when NOT to take a signal is often more important than knowing when to take one.
Next Day Key Levels [Auto-Pivot Suite] RobustNext Day Key Levels
Automatically plot key levels (Floor Pivots) for the next U.S. trading day, with smart session detection.
What does this script do?
Automatically detects the most recent completed U.S. regular trading session (9:30 AM–4:00 PM Eastern) and plots all classic Floor Pivot levels for the next trading day.
Handles Mondays and holidays: Always uses the most recent session’s data, so Friday’s values are shown on Monday, and holidays are skipped seamlessly.
Works in both pre-market and after-hours—levels appear for the next session at the right time.
Levels plotted:
Previous Session High (H)
Previous Session Low (L)
Previous Session Close (C)
Pivot (P)
Resistance 1, 2, 3 (R1, R2, R3)
Support 1, 2, 3 (S1, S2, S3)
How it works
Monitors each bar and tracks session highs/lows/close only during regular market hours.
At the close of each session (4:00 PM ET), saves these values.
In pre-market (before 9:30 AM ET) and after-hours (after 4:00 PM ET), automatically plots levels based on the last completed session—always the correct session, even on Mondays and after holidays.
Why is it better?
No clutter: Only one set of levels per day, drawn cleanly.
Accurate pivots for every next U.S. session.
Zero manual setup: Add to any U.S. ticker, on any intraday timeframe.
Features
Works across all U.S. stocks and ETFs.
Plots and labels all levels with color coding for quick reference.
Designed for intraday and short-term trading strategies.
Handles time zone and market session edge cases automatically.
How to use
Add the indicator to any U.S. equity or ETF chart (15m–1h timeframes recommended).
Levels will appear automatically in pre-market or after the market closes, always for the next session.
Trade with confidence using automatic, accurate pivots and support/resistance levels.
Developed by .
For questions or feedback, leave a comment below!
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.
COG GravityBased on the COG concept by veryfid — but shown directly on the chart instead of an oscillator pane.
Long Entry
Price crosses above the COG line, and
Price is above the SMA
COG velocity is rising (momentum is building)
Short Entry
Price crosses below the COG line, and
Price is below the SMA
COG velocity is falling (momentum is weakening)
Feel free to modify the script and let me know ☺️
Smoothed CMF-ROC Trend (Auto TF Adjust)This Trend is adjusted for multi time frame. It measure CMF and its rate of change. Changes colors if crosses the zero line
Gold DynamicThis is a custom-made TradingView indicator designed to visualize "sequential price levels" based on a user-defined step value, dynamically centered around the current gold price. It draws horizontal lines at multiples of a chosen step value (e.g., 7) both above and below the current price.
Key Features:
Dynamic Price Levels: Lines are calculated relative to the live price, providing relevant support/resistance or structural levels for the current market context.
Customizable Step Value: Easily adjust the Sequence Step Value (e.g., 7, 10, 14) from the indicator settings to align with your trading theory.
Adjustable Line Count: Control the Number of Lines ABOVE Current Price and Number of Lines BELOW Current Price to show as many or as few levels as desired.
Extended Lines: Horizontal lines extend indefinitely to both the left (historical data) and right (future projection) for comprehensive visualization.
Clear Price Labels: Each line displays its exact price value, positioned at the far right of the chart for quick reference.
Customizable Appearance: Modify line color, width, and style (solid, dotted, dashed) to suit your charting preferences.
Exact Values: All displayed price labels are rounded to whole numbers for clear, precise visualization without decimal values.
This indicator is ideal for traders looking to apply a fixed-step price theory to their gold analysis.
Amavasya High Lows"This script plots Higher Highs and Lower Lows following each Amavasya trading date."
Dow Theory Trend IndicatorIdentifies bullish (Higher Highs/Lows) and bearish (Lower Highs/Lows) trends using Dow Theory principles, with dynamic volume confirmation.
Displays the current trend status ("Bull", "Bear", or "Neutral")
Intraday TWAP SimpleSlivKurs. This script implements a classic VWAP using ChatGPT (OpenAI). Purely a home project.
📈 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?
Multi Horizontal Lines 1000 BarsThis indicator is is not my code, I have copied this from another user and extened the lines so they go back 1000 bars for back testing.
I use this indicator to trade Crude Oil and set the horizontal lines to 20 cents increments, 0.2 is 20 cents. You can change the horizontal lines to any price distance to suit your style of trading.
My idea is when price crosses over a horizontal line I will enter a trade long or short looking to secure 20 cents.
ALP AT + KAMA Crossover This indicator is a powerful combination of two adaptive trend-following concepts: the AlphaTrend by Kivanc Ozbilgic and the Kaufman's Adaptive Moving Average (KAMA), often credited to Perry Kaufman (with the specific implementation based on HPotter's interpretation of KAMA).
The primary goal of this indicator is to provide a robust trend detection and dynamic support/resistance system, adapting to market volatility.
How it Works:
AlphaTrend Component: The green/red line is the AlphaTrend. It dynamically adjusts to market volatility (using ATR) and momentum (using MFI or RSI, configurable). It provides faster signals for trend changes.
KAMA Component: The black line is the Kaufman's Adaptive Moving Average. KAMA is designed to filter out market noise during choppy periods and follow the price closely during trending periods, making it a smoother and more reliable long-term trend indicator.
Color-Coded Trend Zones: The AlphaTrend line is color-coded to visually represent the current market condition based on the price's position relative to both AlphaTrend and KAMA:
Strong Uptrend (Lime Green): Price is above both AlphaTrend and KAMA.
Strong Downtrend (Red): Price is below both AlphaTrend and KAMA.
Uptrend Uncertainty (Orange): Price is above KAMA but below AlphaTrend (suggests consolidation or weakening uptrend).
Downtrend Uncertainty (Blue): Price is below KAMA but above AlphaTrend (suggests consolidation or strengthening downtrend within a downtrend).
Gray: Default/unclassified state.
The underlying logic is based on:
Bullish Crossover (Potential Buy Signal): When the AlphaTrend line crosses above the KAMA line.
Bearish Crossover (Potential Sell Signal): When the AlphaTrend line crosses below the KAMA line.
These crossovers indicate a shift in the adaptive trend momentum.
Customization:
Users can customize various parameters in the indicator's settings, including:
AlphaTrend Multiplier and Common Period.
KAMA Lengths and Alpha values.
All the color codes for different trend zones and lines, allowing for full personalization of the visual output.
Disclaimer:
This indicator is for informational and educational purposes only and should not be considered as financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Always conduct your own thorough research and analysis before making any trading or investment decisions. This indicator is NOT a buy/sell/hold recommendation. Use it as a tool to aid your analysis, not as a sole basis for your trades.
ZY Legend StrategyThe ZY Legend Strategy indicator closely follows the trend of the parity. It produces trading signals in candles where the necessary conditions are met and clearly shows these signals on the chart. Although it was produced for the scalp trade strategy, it works effectively in all time frames. 'DEAD PARITY' signals indicate that healthy signals cannot be generated for the relevant parity due to shallow ATR. It is not recommended to trade on parities where this signal appears.
Momo MasterA combination of moving averages and macd in one indicator.
Shows trend directionality and momentum.
SMA200 and VWAP are additional indicators that help to quickly assess whether we are in an up or down trend
RATE OF CHANGE ROLLING INTEGRALAdded an integral balance to the ROC subchart.
just tracks the balance of area back to the ROC length.
Daily Balance Point (Ray + Axis Price Only)This tool helps traders visually track the most important level of the day to plan smart trades based on price action, rejections, or breakouts from the balance point. By Fahad Malik FM Forex Academy ✅
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