Growing or Waning Patterns [Alerts]Example how to color patterns of 3 bodies growing or waning by percentage with or without trend. Also included option for alert triggers. The yellow triangles on the chart denote where the alert triggers will fire.
• Choose Pattern Of Filter: shows bodies growing or waning or both.
• Sample Lengths Of AvgBar: number of recent bars to use for average size.
• BigBar Is Min% Of AvgBar: the minimum percent of average the big bar must be.
• MedBar Is Max% Of BigBar: the maximum percent of big bar the medium bar can be.
• SmlBar Is Max% Of MedBar: the maximum percent of medium bar the small bar can be.
• Repeat Pattern If n Bars: the number of bars to ignore repeat patterns, 1 allows all.
• Trending: on requires the growing or waning patterns to also be trending.
• GrayBars: colors non pattern bodies gray.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
Cari dalam skrip untuk "momentum"
Waddah Attar Explosion [smillal]This is just a slightly altered version of Lazy Bear's great indicator
with the added feature to draw the explosion line in different colors while it is currently rising or falling.
BP Scalper with resistance barsThis Script is used for scalping on the 15 min. It can do the other time frames but i built it for primarily the 15. There is some logic where i use the previous candles and i'm using intervals of 4 to get 1 hour estimates. This also works with the 1 hour, because the 4 hour is what it will compare with.
It uses Buy volume and sell volume to create the indicators.
If the buy volume starts losing traction on the sell volume the indicator triggers.
JSE Market Breadth Stocks>MAThis indicator is for the Johannesburg Stock Exchange (JSE) and indicates the number of stocks in the Top 40 Index above its selected Smooth Moving Average (SMA). Typically the 200SMA is used to see the longer term health of the market and the 50SMA for a short term view. Currently the market has reached a point that less than 2% of stocks were above their 200SMA which is the lowest since 2013.
TrapTradingBuy on dips and sell into rallies. Simple as that.
- Short line (green)
- Base line (white)
- Long line (red)
When the market price touches the white or the red(green) lines, buy(sell) orders are generated.
The exit points are 2 lines above(below) the entries.
Parameters
- Period: It affects the value of Base line and the spacing of each line.
- Multiple: Specify the spacing between each line.
Frosted 12 EMA WIDTHThis is a complementary indicator for the 12 EMAs indicator ()
This width indicator shows the fanning width of each fan (shorter MAs and longer MAs).
To make things easier to see:
You can turn off one of the histograms to view just one of the widths (and add a 2nd instance of this indicator, turning off the other width).
B3 Directional Trend IndexB3 Directional Trend Index ~ All about the trend! William Blau is the designer of this gem, and IMHO it is the best trend finder of all the lagging indicators out there I have tested. It is important to pay attention to the slope and thickness of the line, and its relationship to zero. A reversion to the zero may look momentous, but in fact it could reverse when it reaches mean, only to turn back around. You can see this in March and April of this silver futures daily chart. Makes for a great instrument on anything you consider trendy, like crude oil for example. The default user inputs are set to my liking, as I find them to be great on all charts and resolutions. You may read around to find more about this on the internet, or its mentioned in Krausz's work. Also, imprtant to remember when no trend, trend finders like this sufffer, so be wise as to what market condition you are in. Rangy and within Range = no, On the Move = yes.
UCS_Momentum OscillatorI am not sure if someone else has already thought about it. But this is something I use to measure the meaningful oversold and overbought level, provided the stock is in a trend. I will add a Trend Indicator along with this in the next version.
I have added RSI, ROC, Stoch to compare. From the code below, i am using Stochastic, but the idea is same, if you use RSI. Experiment with your own comfortable time frames.
This is not a holy grail, The oversold and overbought in a trend transition period could be misleading. But over all, Its a good measure to trade overbought and oversold region
List of All my Indicators - www.tradingview.com
ANDROMEDA - TrendSyncANDROMEDA - TrendSync
Pedro Canto - Portfolio Manager | CGA/CGE
OVERVIEW
Trend Sync is a multi-layered trend-following indicator designed to help traders identify high-probability trend continuation setups while avoiding low-quality entries caused by overbought or oversold market conditions.
This indicator combines the power of Moving Averages (MA), MACD , and a visual RSI-based filter to validate both trend direction and timing for entries. It's goal is simple: filter out noise and highlight only the most technically relevant buy and sell signals based on objective momentum and trend criteria.
---
WALKTHROUGH
This indicator is built for traders seeking to operate in the direction of established trends. It's core principle is to identify and validate current trend conditions, and then signal entry opportunities during pullbacks to key moving averages.
Trend identification is achieved through the alignment of two moving averages. When these MAs are crossed and angled in the same direction, they confirm that a trend is in progress. To double-confirm trend direction, the MACD histogram is used—only. When both the MAs and MACD are aligned in the same direction, then the trend is considered valid.
Once all trend criteria are met, a dynamic coloring system is activated to visually reinforce the trend across the candles and moving averages.
To avoid poor entries during market exhaustion, an RSI-based filter is used. This short-term RSI highlights overbought or oversold zones, helping traders filter trades in extreme price conditions.
Only when the trend is validated and price pulls back to one of the MAs will a buy/sell signal be triggered, aligning momentum, price action and timing into a single actionable setup.
This combination ensures that each component plays a specific role:
i) Moving Averages define the trend
ii) MACD validates it
iii) RSI filters noise
iv) Intrabar price action triggers entries
This synchronism helps improve decision-making and entry timing, especially for swing and intraday traders.
---
USE CASES
- Identifying trend continuation setups
- Filtering false signals during consolidation phases
- Avoiding trades in overbought or oversold zones
- Enhancing entry timing for both swing and intraday strategies
- Providing visual confirmation of trend strength and momentum alignment
---
KEY FEATURES
1. Dual Moving Average Setup
The indicator allows full customization of two moving averages (MA1 and MA2), supporting both EMA and SMA types. The slope of the longer MA (MA2) acts as an essential trend filter, ensuring signals are only generated when the market shows clear directional bias.
2. MACD Histogram Trend Confirmation
A classic MACD Histogram calculation is used to validate the momentum of the prevailing trend.
- Bullish Trend: Histogram > 0
- Bearish Trend: Histogram < 0
This step filters out counter-trend signals and ensures trades are aligned with momentum.
3. Intrabar Price Trigger
Unlike standard crossover systems, this indicator waits for intrabar price action to trigger entries:
- Buy Signal: Price crosses below one of the MAs during an uptrend (dip-buy logic)
- Sell Signal: Price crosses above one of the MAs during a downtrend (rally-sell logic)
This intrabar trigger improves entry timing and helps capture retracement-based opportunities.
4. RSI Visual Filter
A short-term RSI is plotted and color-coded to visually highlight overbought and oversold conditions, acting as a discretionary filter for users to avoid low-probability trades during exhaustion points.
5. Dynamic Coloring System
Bar Colors:
- Blue: Bullish trend
- Red: Bearish trend
- Orange: RSI Overbought/Oversold zones
MA Colors:
- Blue for bullish conditions
- Red for bearish conditions
- Gray for neutral/no-trend phases
6. Signal Markers and Alerts
Clear visual buy and sell markers are plotted directly on the chart.
Additionally, the indicator includes real-time alerts for both Buy and Sell signals, helping traders stay informed even when away from the screen.
---
INPUTS AND CUSTOMIZATION OPTIONS
- Moving Average Types: EMA or SMA for both MA1 and MA2.
- MACD Settings: Customizable fast, slow, and signal periods.
- RSI Settings: Source, length, and overbought/oversold levels fully adjustable.
- Color Customization: Adjust RSI zone colors to suit your chart theme.
---
DISCLAIMER
This indicator is a technical analysis tool designed for educational and informational purposes only. It should not be used as a standalone trading system. Always combine it with sound risk management, price action analysis, and, where applicable, fundamental context.
Past performance does not guarantee future results.
Better MACD📘 Better MACD – Adaptive Momentum & Divergence Suite
Better MACD is a comprehensive momentum-trend tool that evolves the traditional MACD into a multi-dimensional, divergence-aware oscillator. It leverages exponential smoothing across logarithmic rate-of-change of OHLC data, adaptive signal processing, and intelligent divergence detection logic to provide traders with earlier, smoother, and more reliable momentum signals.
This indicator is built for professional-level analysis, suitable for scalping, swing trading, and trend-following systems.
🧬 Core Concept
Unlike the classic MACD which subtracts two EMAs of price, Better MACD constructs a signal by:
Applying logarithmic transformation on the change between OHLC components (Close, High, Low, Open).
Using double EMA smoothing to filter noise and volatility, Triangular method. 1st to 2nd Smoothing.
Averaging and de-biasing the results through a custom linear regression model, 4th Smoothing.
Subtracting a fast SMA and slow SMA response to yield a dynamic MACD value, 3rd Smoothing.
The result is a smooth, adaptive, and high-resolution MACD-style oscillator that responds more naturally to trend conditions and price geometry.
🧠 Features Breakdown
1. 📈 Multi-Layer MACD Engine
Src1: Smoothed Log Rate-of-Change on Close
Src2: Smoothed Log Rate-of-Change on High
Src3: Smoothed Log Rate-of-Change on Low
Src4: Smoothed Log Rate-of-Change on Open
These are blended using highest high, lowest low, and average Close price over a configurable window for more complete trend detection. The open-based Src4 is subtracted using SMA.
2. 🧮 Signal Line
A fast EMA (signalLength) of the Better MACD value is used for crossover logic.
Crossovers of MACD and Signal line signal potential entries or exits.
3. 📊 MACD Histogram
Visualizes the difference between MACD and Signal line.
Dynamically color-coded:
Green/Light Green for bullish impulse
Red/Pink for bearish impulse
Width and color intensity reflect strength and momentum slope.
🎨 Visual Enhancements
Feature Description
✅ Ribbon Fill Optional fill between MACD and Signal line, colored by trend direction
✅ Zero-Line Background Background highlights above/below 0 to easily read bullish/bearish bias
✅ Crossover Highlights Tiny circles plotted when MACD crosses Signal line
🔍 Divergence Detection Suite
The script includes a full Divergence Engine to detect:
🔼 Bullish Regular Divergence (Price lower lows + Indicator higher lows)
🔽 Bearish Regular Divergence (Price higher highs + Indicator lower highs)
🟢 Bullish Hidden Divergence (Price higher lows + Indicator lower lows)
🔴 Bearish Hidden Divergence (Price lower highs + Indicator higher highs)
🧩 Divergence Modes:
Supports both Regular, Hidden, or Both simultaneously
Detects from either Close Price or Heikin Ashi-derived candles
Uses dynamic pivot tracking with configurable lookback and divergence sensitivity
Divergence lines are labeled, colored, and plotted in real-time
🔁 Styling & Customization:
Choose from Solid, Dashed, or Dotted line styles
Configure separate colors and widths for all divergence types
Control number of divergence lines visible or only show the most recent
Divergences update live without repainting
⚠️ Alerts
Alerts are built-in for real-time notification:
MACD Histogram reversals (rising → falling, or vice versa)
Divergence signals (all 4 types, grouped and individually)
Combines seamlessly with TradingView alerts for actionable triggers
🔧 Input Controls (Grouped by Purpose)
Better MACD Group
1st–4th Smoothing Lengths: Controls responsiveness of MACD core engine
Signal Length: Smoothness of signal line
Toggles for crossover highlights, zero cross fills, and ribbon fills
Divergence Settings
Enable/disable divergence lines
Choose divergence type (Regular, Hidden, Both)
Set confirmation requirements
Customize pivot detection and bar search depth
Styling Options
Colors, line widths, and line styles for each divergence type
Heikin Ashi Mode for smoother pivots and divergences
🧠 How to Use
✅ For Trend Traders:
Use MACD > Signal + Histogram > 0 → Bullish confirmation
MACD < Signal + Histogram < 0 → Bearish confirmation
Wait for pullbacks with hidden divergences to enter in trend direction
✅ For Reversal Traders:
Look for Regular Divergences at trend exhaustion points
Combine with price action (e.g., support/resistance or candle pattern)
✅ For Swing & Day Traders:
Enable Heikin Ashi Mode for smoother divergence pivots
Use zero line background + histogram color to time entries
📌 Summary
Feature Description
🚀 Advanced MACD Core Smoother, more reliable, multi-source-based MACD
🔍 Divergence Engine Detects 4 divergence types with pivot logic
🎯 Real-Time Alerts Alerts for histogram slope and divergences
🎛️ Deep Customization Full styling, smoothing, and detection controls
📉 Heikin Ashi Support Improved signal quality in trend-based markets
Normalized EMA Cycle (NEC)Normalized EMA Cycle (NEC)
The Normalized EMA Cycle (NEC) is a versatile momentum and trend reversal tool designed to detect high-probability turning points and gauge the strength of price cycles.
It combines fast and slow Exponential Moving Averages (EMAs), dynamic normalization, and adaptive transparency to create clear, intuitive reversal signals on the chart.
🔹 How It Works
EMA Differencing
The NEC calculates the difference between a fast EMA and a slower EMA:
Fast EMA Length (default 6) captures short-term momentum.
Slow EMA Length (default 16) tracks broader trends.
The slope of this difference identifies accelerating or decelerating momentum.
Normalization to 0–100 Scale
The raw EMA difference is scaled relative to the recent Alpha Period range (default 6 bars).
This transforms the value into a normalized oscillator ranging between 0 and 100.
A 3-period Hull Moving Average (HMA) smooths this series to reduce noise.
Overbought and Oversold Thresholds
By default:
Overbought Level: 75
Oversold Level: 25
Crossovers of these levels are used to detect potential reversals.
Adaptive Alpha Adjustment
The normalized value is transformed into an “Alpha Schaff” line, dynamically shifting between price and normalized cycles.
This helps the model adjust to different volatility regimes.
Trend Reversal Logic
Bullish Reversal:
Normalized oscillator crosses above the Oversold Level.
EMA difference slope is positive.
Bearish Reversal:
Normalized oscillator crosses below the Overbought Level.
EMA difference slope is negative.
Additional confirmation comes when price crosses the Alpha Schaff line in the direction of momentum.
Dynamic Confidence Visualization
The indicator calculates a trend confidence score based on the normalized separation of the EMAs.
The transparency of reversal markers dynamically adjusts:
Strong trends = more opaque signals
Weak trends = more transparent signals
🔹 How to Use
✅ Entries
Long Signal: Aqua upward label appears below a bar.
Conditions:
Bullish reversal or price crossing above Alpha Schaff
Normalized slope is rising
Short Signal: Fuchsia downward label appears above a bar.
Conditions:
Bearish reversal or price crossing below Alpha Schaff
Normalized slope is falling
✅ Trend Strength
The less transparent the signal marker, the more significant the trend.
✅ Customization
Use the inputs to fine-tune sensitivity:
Shorter EMAs: Faster signals
Longer EMAs: Smoother trends
Alpha Period: Adjusts the lookback range for normalization
🟢 Best Practices
NEC is best used in combination with other trend confirmation tools (e.g., price structure, volume, or higher timeframe EMAs).
Avoid relying on signals in extremely low-volume or choppy ranges.
⚠️ Disclaimer
This script is intended for educational purposes only and does not constitute financial advice. Trading involves substantial risk, and you should consult your financial advisor before making any investment decisions.
Gabriel's Andean Oscillator📈 Gabriel's Andean Oscillator — Enhanced Trend-Momentum Hybrid
Gabriel's Andean Oscillator is a sophisticated trend-momentum indicator inspired by Alex Grover’s original Andean Oscillator concept. This enhanced version integrates multiple envelope types, smoothing options, and the ability to track volatility from both open/close and high/low dynamics—making it more responsive, adaptable, and visually intuitive.
🔍 What It Does
This oscillator measures bullish and bearish "energy" by calculating variance envelopes around price. Instead of traditional momentum formulas, it builds two exponential variance envelopes—one capturing the downside (bullish potential) and the other capturing the upside (bearish pressure). The result is a smoothed oscillator that reflects internal market tension and potential breakouts.
⚙️ Key Features
📐 Envelope Types:
Choose between:
"Regular" – Uses single EMA-based smoothing on open/close variance. Ideal for shorter timeframes.
"Double Smoothed" – Adds an extra layer of smoothing for noise reduction. Ideal for longer timeframes.
📊 Bullish & Bearish Components:
Bull = Measures potential upside using price lows (or open/close).
Bear = Measures downside pressure using highs (or open/close).
These can optionally be derived from high/low or open/close for flexible interpretation.
📏 Signal Line:
A customizable EMA of the dominant component to confirm momentum direction.
📉 Break Zone Area Plot:
An optional filled area showing when bull > bear or vice versa, useful for detecting expansion/contraction phases.
🟢 High/Low Overlay Option (Use Highs and Lows?):
Visualize secondary components derived from high/low prices to compare against the open/close dynamics and highlight volatility asymmetry.
🧠 How to Use It
Trend Confirmation:
When bull > bear and rising above signal → bullish bias.
When bear > bull and rising above signal → bearish bias.
Breakout Potential:
Watch the Break area plot (√(bull - bear)) for rapid expansion, signaling volatility bursts or directional moves.
High/Low Envelope Divergence:
Enabling the high/low comparison reveals hidden strength or weakness not visible in open/close alone.
🛠 Customizable Inputs
Envelope Type: Regular vs. Double Smoothed
EMA Envelope Lengths: For both regular and smoothed logic
Signal Length: Controls EMA smoothing for the signal
Use Highs and Lows?: Toggles second set of envelopes; the original doesn't include highs and lows.
Plot Breaks: Enables the filled “break” zone area, the squared difference between Open and Close.
🧪 Based On:
Andean Oscillator - Alpaca Markets
Licensed under CC BY-NC-SA 4.0
Developed by Gabriel, based on the work of Alex Grover
IU Fibonacci Levels For IntradayDESCRIPTION
This indicator draws intraday Fibonacci levels from the opening price of the day using percentage-based retracements. It helps traders identify potential intraday support and resistance zones derived from the day’s opening bias. The levels are dynamically calculated and displayed with optional labels and customizable colors, making it an effective tool for both breakout and mean-reversion intraday strategies.
USER INPUTS
Direction Of The Level
Choose whether to show Upside, Downside, or Both level sets based on your directional bias.
Show Labels of Levels
Option to enable or disable text labels displaying Fibonacci values and prices.
Individual Level Toggles & Colors
You can choose to show or hide each of the following Fibonacci levels and set their respective colors:
* 0.236
* 0.328
* 0.500
* 0.618
* 0.786
* 1.000
INDICATOR LOGIC
On the first bar of the session, the opening price is captured.
Fibonacci levels are then calculated above and below this open using percentage multipliers (for example, day\_open + (day\_open \* 0.236%) for the 0.236 level).
Depending on the selected direction, upside and/or downside levels are plotted.
Filled zones are drawn between levels to visually highlight key price zones.
Optionally, each level can be labeled with its Fibonacci value and price.
WHY IT IS UNIQUE
Unlike traditional swing-based Fibonacci retracements, this tool uses the day’s opening price as an anchor, specifically designed for intraday traders.
Allows traders to quickly visualize micro-support and resistance levels that adapt every day.
Highly customizable and easy to read, with filled level bands for better zone recognition.
Works independently of indicators like RSI, MACD, or moving averages – purely based on price action logic.
HOW USER CAN BENEFIT FROM IT
Spot precise intraday reversal zones or breakout regions.
Combine with price action or volume analysis for smarter entries.
Filter trades by choosing directional bias (Up Site, Down Site, or Both).
Set profit targets or stop-losses based on Fibonacci bands.
Works great for scalpers, day traders, and even short-term swing traders looking to align with opening price momentum.
Disclaimer
This indicator is not financial advice, it's for educational purposes only highlighting the power of coding( pine script) in TradingView, I am not a SEBI-registered advisor. Trading and investing involve risk, and you should consult with a qualified financial advisor before making any trading decisions. I do not guarantee profits or take responsibility for any losses you may incur.