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.
Trend Analysis
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!
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 ☺️
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.
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.
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")
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
Amavasya High Lows"This script plots Higher Highs and Lower Lows following each Amavasya trading date."
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.
RATE OF CHANGE ROLLING INTEGRALAdded an integral balance to the ROC subchart.
just tracks the balance of area back to the ROC length.
Liquidity Sweep Strategy v2 - Fixed Close LabelsThe Liquidity Sweep Strategy v2 is designed to detect stop-loss hunting behavior, commonly seen in institutional trading. It capitalizes on false breakouts beyond recent swing highs or lows (liquidity zones), which are followed by sharp reversals.
This strategy is particularly effective during high-volume liquidity grabs when markets trigger stop-loss clusters and then reverse direction — a phenomenon often referred to as a liquidity sweep or stop hunt
Market Generated InformationCredits
Original Author: mcthatsme
Remixed to add in London's High and Low
Overview
The Market Generated Information (MGI Levels v2) is a comprehensive technical analysis. It overlays key price levels from daily, weekly, and monthly timeframes on a chart, providing traders with critical market reference points such as Open, High, Low, Close, Volume Weighted Average Price (VWAP), and standard deviation bands. These levels help traders identify potential support, resistance, and pivot points for intraday and longer-term trading strategies. The indicator is highly customizable, allowing users to tailor the displayed levels, colors, line styles, and label settings to their preferences.
Features
Multi-Timeframe Levels: Displays key price levels from daily, weekly, and monthly sessions, including Open, High, Low, Close, VWAP, and VWAP standard deviation bands (SD1, SD2, SD3).
Session-Based Calculations: Supports Regular Trading Hours (RTH) and Extended Trading Hours (ETH) for stocks and futures, with specific session times for New York, London, and overnight sessions.
Customizable Display: Users can toggle the visibility of specific levels, adjust line styles (solid, dashed, dotted), colors, thicknesses, and label settings (size, offset, and price inclusion).
Opening Range and Initial Balance: Plots the Opening Range (default: 9:30–10:00 AM EST) and Initial Balance (default: 9:30–10:30 AM EST) for intraday traders.
Tested Level Tracking: Optionally tracks untested or tested levels, hiding or showing them based on user preferences.
Overnight and T+2 Levels: Includes overnight high/low and T+2 (two days prior) levels for additional context.
VWAP Calculations: Computes VWAP and its standard deviation bands for daily, weekly, and monthly periods.
Holiday and Session Filters: Adjusts for market-specific conditions, such as Good Friday or shortened trading sessions.
Inputs and Customization
The indicator is organized into three main groups: Daily Levels, Weekly Levels, and Monthly Levels. Each group allows users to configure the following:
Visibility: Toggle whether to show levels (e.g., Show Daily Levels, Show Weekly Levels).
Session Times: Define session ranges (e.g., New York RTH: 9:30 AM–4:00 PM EST, Opening Range: 9:30–10:00 AM EST).
Line and Label Settings: Customize line colors, styles (solid, dashed, dotted), thickness, label text size (Tiny, Small, Normal, Large, Huge), label offset, and whether to include price values in labels.
Number of Periods: Specify how many previous days (1–40), weeks (1–20), or months (1–12) to display.
Tested/Untested Levels: Choose to keep untested levels or show tested levels (Open, High, Low, Close).
Timeframe for Calculations: Option to use a 30-second or 1-minute timeframe for Opening Range and Initial Balance calculations to accommodate different TradingView plans.
Key Levels
Daily Levels: Includes Current Day High/Low, Previous Day High/Low, Opening Range High/Mid/Low, Initial Balance High/Mid/Low, Globex Open, RTH Open, Midnight Open, London Open/Close/High/Low, Previous Day 50% (HL2/OC2), T+2 Open/Close/High/Low, Overnight High/Low, RTH Close, 5 PM Close, and VWAP with standard deviation bands.
Weekly Levels: Previous Week High/Low, 50% (HL2/OC2), Current Week Open, Previous Week Close, and VWAP with standard deviation bands.
Monthly Levels: Previous Month High/Low, 50% (HL2/OC2), Current Month Open, Previous Month Close, and VWAP with standard deviation bands.
Troubleshooting
Levels Not Displaying: Check if the timeframe is ≤ 30 minutes for daily levels and ensure session times are correct for your market.
Incorrect Prices: Verify that extended hours are enabled for ETH charts or disabled for RTH-only charts.
Too Many Lines/Labels: Reduce the number of previous days/weeks/months or disable unneeded levels.
Session Errors: Ensure session times are in UTC-5 (New York time) and match your asset’s trading hours.
License
This script is licensed under the Mozilla Public License 2.0. See mozilla.org for details.
Volatility & Momentum Nexus (VMN)Volatility & Momentum Nexus (VMN)
This indicator was designed to solve a common trader's problem: chart clutter from dozens of indicators that often contradict each other. The Volatility & Momentum Nexus ( VMN ) is not just another indicator; it's a complete analysis system that synthesizes four essential market pillars into a single, clean, and intuitive visual signal.
The goal of VMN is to identify high-probability moments where a period of accumulation (low volatility) is about to erupt into an explosive move, confirmed by trend, momentum, and volume.
VMN analyzes the real-time confluence of four critical elements:
The Trend (The Main Filter): A 100-period Exponential Moving Average (EMA) sets the overall context. The indicator will only look for buy signals above this line (in an uptrend) and sell signals below it (in a downtrend). The line's color changes for quick visualization.
Volatility (Energy Accumulation): Using Bollinger Bands Width (BBW), the indicator identifies "Squeeze" periods—when the price contracts and builds up energy. These zones are marked with a yellow background on the chart, signaling that a major move is imminent.
Momentum (The Trigger): An RSI (Relative Strength Index) acts as the trigger. A signal is only validated if momentum confirms the direction of the breakout (e.g., RSI > 55 for a buy), ensuring we enter the market with force.
Volume (The Final Confirmation): No breakout move is credible without volume. VMN checks if the volume at the time of the signal is significantly higher than its recent average, adding a vital layer of confirmation.
Green Arrow (Buy Signal): Appears ONLY when ALL the following conditions are met simultaneously:
Price is above the 100 EMA (Bullish Trend).
The chart is exiting a Squeeze zone (yellow background on the previous bar).
Price breaks above the upper Bollinger Band.
RSI is above the buy threshold (default 55).
Volume is above average.
Red Arrow (Sell Signal): Appears ONLY when all the opposite conditions are met.
Do not treat signals as blind commands to trade. They are high-probability confirmations.
Look for signals near key Support/Resistance levels for an even higher success rate.
Always set a Stop Loss (e.g., below the low of the signal candle or below the lower Bollinger Band for a buy).
All parameters (EMA, RSI, Bollinger Bands lengths, thresholds, etc.) can be customized from the settings menu to adapt the indicator to any financial asset or timeframe.
Disclaimer: This indicator is a tool for educational and analytical purposes. It does not constitute and should not be interpreted as financial advice. Trading involves significant risk. Always perform your own analysis and backtesting before risking real capital.
Intraday TWAP SimpleSlivKurs. This script implements a classic VWAP using ChatGPT (OpenAI). Purely a home project.
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.
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
📈 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?
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.