Pivot Reversal Strategy - TimeFramedThis is Pivot Reversal Strategy including the time frames for backtesting.
在腳本中搜尋"reversal"
Livermore's One Day ReversalThis is an indicator based on Jessie Livermore's "One Day Reversal" from the book "How to Trade in Stocks" by Richard Smitten.
3-Bar-Reversal-Pattern Strategy Backtest This startegy based on 3-day pattern reversal described in "Are Three-Bar
Patterns Reliable For Stocks" article by Thomas Bulkowski, presented in
January, 2000 issue of Stocks&Commodities magazine.
That pattern conforms to the following rules:
- It uses daily prices, not intraday or weekly prices;
- The middle day of the three-day pattern has the lowest low of the three days, with no ties allowed;
- The last day must have a close above the prior day's high, with no ties allowed;
- Each day must have a nonzero trading range.
Please, use it only for learning or paper trading. Do not for real trading.
Bollinger Band and Moving Average v0.1 by JustUncleLThis is another Bollinger Band strategy+indicator in my series of Bollinger based setups. This one is seems to work best with 5min charts and 20 to 30min expiry. The strategy follows variation of a Bollinger band + Moving Averages
reversal strategy, it uses the 2 moving averages mainly to determine market direction.
Triple Bollinger BandsI found myself using multiple bollinger bands a lot so I decided to add them all to one script and add the ability to adjust them by 0.2. It has helped me by not taking up as much space in the upper left corner as well as improving my in's and outs of trend continuation trades. If you manage to find a double top at +2 or greater deviation, and with a bearish divergence on the RSI as shown in this picture, GO SHORT SON! This was a fast and easy 35 - 40 pips and if you used your fibonacci for an exit you had little doubt of the final result and could have even been prepared for an immediate reversal knowing you were then at an oversold -2.8 deviation. I could go on and on........
Outside Reversal SetUpwww.tradingview.com
This is an outside reversal set up from Frank Ochoa's book Secrets of a Pivot Boss. He recommends using this in confirmation with Pivots but I guess you can play with any other indicator of your choice.
PATTERN PSYCHOLOGY " The power behind this pattern lies in the psychology behind the traders involved in this setup. If you have ever participated in a breakout at support or resistance only to have the market reverse sharply against you, then you are familiar with the market dynamics of this setup .
Basically, market participants are testing the waters above resistance or below support to make sure there is no new business to be done at these levels. When no initiative buyers or sellers participate in range extension, responsive participants have all the information theyneed to reverse price back toward a new area of perceived value."
1-2-3 Reversal Strategy This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
EMA100 Bounce Tracker (Support Only)Reversal Traders can use this to trade bounces from the EMA100 on any TF! :)
Reversal Triggers + 200 EMA + Prior D1 + Bias TableKeep it simple stupid.
D1 bias
H1 bias
H1 ORB (momentum)
Reversal off EMA-XsEMA-Xs works mostly on Forex due to the small prices and price fluctuations. It does work on Gold, oddly enough, and some others like UKX 100...but mostly on forex. It doesn't work as well on JPY pairs but occasionally does; the JPY pairs give less signals, but when a JPY pair gives a signal, its a high probability setup. Another script EMA-XL works better on the higher priced instruments like S&P, DJI, OIL, BTC etc.
This script will show 3 moving averages: 13, 34, 200 and works on the 5m, 1hr, 4hr, daily charts. Signals "B" or "S" will be on the chart above or below the candles respectively.
When to open:
The script gives buy and sell signals based on a counter-trend move away from the MA's. When the price rises a specific percent above/below the EMA, it'll give a signal. It's best to take a trade when it gives a cluster of consecutive signals near the same price. If using on the 5m, definitely wait for consecutive signals. Also, use this in conjunction with support and resistance areas. Using with fibs for confirmation really makes this a good tool with high probability: IE, when price hits a fib and the script gives a signal, its a high probability setup.
When to close:
1. After a fast move up/down you may use this to counter trade a scalp 10+ pips, but you need to be quick; applies mostly to the 5m chart.
2. If you have the tenacity wait until you see an opposite signal. With this method you may be holding a loosing trade for a while. But what I've noticed is if it trends against you, price usually with come near to the first time it signaled. You may want to stack trades on each cluster of signals. IE first trade is 1000 units, next is 2000 units, etc... then close when prices comes near the first time it signaled. By this time, if you held, you should have profit. This strategy will really test your mental resilience.
3. Wait until it comes back to one of the trendlines; remember this is a counter trend signal so price is moving away from the MA and it always returns to touch one of the MA's...LOL eventually
4. Applying to scalping on the 5m, keep the stops tight because if the instrument trends hard and fast, you'll be upside-down quickly.
If you put a lot of time into using this signal generator, you can really make good profit. But with all tools, you need to master it. There are nuances to the simple logic of this script that can be both fun and frustrating. With all endeavors, if you put the time into it, you will reap the rewards.
Good luck and let me know if you have any questions/comments.
ATR Dual Breakout – Custom MA & ATR (v6)A dynamic volatility channel centered on a user-selected moving average (EMA, SMA, WMA, HMA, VWMA).
Uses ATR-based bands to detect reversal entries when price opens outside a band and closes inside — a classic sign of momentum exhaustion.
Signal Logic (Same for Inner & Outer)Signal
Condition
BUY
open < lowerBand and close > lowerBand
SELL
open > upperBand and close < upperBand
Inner bands = higher-probability, tighter entries
Outer bands = stronger momentum, wider confirmation
Clean. Configurable. Reliable.
Drop it on any chart and start trading smart reversals.
ICT Smart Money Zones - Sessions & MacrosThe script helps traders identify high-probability trading times by automatically plotting:
Major market sessions (Asian, London, New York)
ICT Kill Zones (Asian Range, London KZ, New York AM/PM, Lunch Dead Zone, Power Hour)
Opening Ranges (5-min, 15-min, 30-min)
London & New York Macro phases (pre-defined institutional timing windows)
It combines visual session overlays, macro labels, and a timeline bar that dynamically adjusts for Daylight Savings Time (DST) and user time zone preferences.
⚙️ Main Features
🕓 Time Zone Control
Time Zone Modes:
UTC
Session Local Time
Your Time Zone (custom)
Dynamically calculates DST changes for London and New York markets.
Converts session times based on your selected mode.
🌎 Major Market Sessions
Displayed as soft-colored background zones:
Asian Session: 7 PM – 4 AM ET (purple)
London Session: 3 AM – 12 PM ET (blue)
New York Session: 9:30 AM – 4 PM ET (green)
These create context for when liquidity and volatility shift between sessions.
⚡ ICT Kill Zones
Kill zones are the “smart money” time windows where liquidity sweeps and reversals often occur:
Zone Time (ET) Color Purpose
Asian Range 7 PM – 12 AM Red Establishes range / accumulation
London KZ 2 AM – 5 AM Cyan Early volatility & sweep setups
NY Open KZ 7 AM – 10 AM Lime Primary NY session move
Lunch Dead Zone 12 PM – 1 PM Gray Low volume / avoid trading
NY PM KZ 1 PM – 3 PM Orange Reversal or continuation
Power Hour 3 PM – 4 PM Gold Final hour volatility burst
Each is drawn as a translucent box, with automatic high-low range boxes and labels via the LowHighSessionDetector() function.
🏛️ ICT Macros
Institutional “macro” timing blocks used by ICT traders:
London Macros: Two separate sub-sessions (LDN 1, LDN 2)
New York Macros: AM 1–3, Lunch, PM, Last Hour
Each phase is color-coded and labeled with optional start–end times displayed in your chosen time zone.
📈 Opening Ranges
Helps visualize early volatility:
5-min Opening Range (9:30–9:35 ET) – Red
15-min Range (9:30–9:45 ET) – Orange
30-min Range (9:30–10:00 ET) – Violet
Used to measure breakout behavior and morning session direction.
🧮 Technical Architecture
DST_Detector() – Determines when daylight saving time is active per region.
Market_TimeZone_Calculator() – Generates session macros in UTC or local time dynamically.
LowHighSessionDetector() – Tracks the high and low within each session and draws labeled boxes.
draw_session() – Handles visual rendering for timeline zones (background layer).
SplitFunction() – Parses string time ranges into human-readable text for labeling.
📊 Visual Layers
The chart layers follow this order:
Major Sessions (background layer)
ICT Kill Zones (mid layer)
Opening Ranges
ICT Macros (top layer)
Each layer can be toggled on/off individually with color customization.
🧩 Customization Options
Toggle on/off for each zone, macro, or session.
Adjustable timeline bar height (3–30 % of chart).
Optional time display next to macro labels.
Selectable color transparency for each zone.
🧭 Intended Use
This indicator is designed for:
ICT traders analyzing session-based liquidity shifts.
Day traders identifying optimal trading windows.
Market structure enthusiasts visualizing time-based volatility zones.
Combining with Fair Value Gaps, Order Blocks, and SMT Divergences for precise entries.
Engulfing Candles Detector Multi-TimeframeKey Features
Multi-Timeframe Analysis
Simultaneously monitors engulfing patterns on current and higher timeframes
Helps identify confluence between different timeframes
Higher timeframe signals often carry more significance
No Repainting
Uses lookahead=barmerge.lookahead_on to ensure signals don't change after formation
Only uses completed bar data for pattern detection
User Customization
Adjustable higher timeframe via input settings
Clear visual distinction between current and higher timeframe signals
Comprehensive Display
Multiple visual cues (shapes, colors, table)
Real-time status monitoring
Non-intrusive overlay on price chart
Trading Applications
Bullish Engulfing: Potential buying opportunity or trend reversal signal
Bearish Engulfing: Potential selling opportunity or trend reversal signal
Multi-Timeframe Confirmation: Higher reliability when both timeframes show same pattern
Early Warning: Higher timeframe signals can anticipate moves on lower timeframes
This indicator serves as a comprehensive tool for traders who use engulfing patterns as part of their technical analysis strategy, with the added advantage of multi-timeframe confirmation for increased signal reliability.
Market Breadth - [JTCAPITAL]Market Breadth - is a comprehensive crypto market strength and sentiment indicator designed to visualize the overall bullish or bearish alignment across 40 major cryptocurrencies. By combining multi-asset Exponential Moving Average (EMA) comparisons and smoothing techniques, it offers a clean, aggregated view of the broader market trend—helping traders quickly assess whether the market is dominated by bullish momentum or bearish pressure.
The indicator works by calculating in the following steps:
Symbol Selection and Data Retrieval
The script monitors 40 leading cryptocurrencies based on Market Cap. Each asset’s daily close price is requested using a 1D timeframe. This ensures that every data point reflects the same temporal resolution, allowing the indicator to evaluate global crypto strength rather than individual token volatility.
EMA Comparison per Asset
For each asset, two Exponential Moving Averages (EMAs) are calculated:
A short-term EMA with period emalength (default 10).
A long-term EMA with period emalength2 (default 20).
Each coin receives a score of +1 when the short-term EMA is greater than the long-term EMA (indicating bullish structure), or -1 when it is below (indicating bearish structure). This binary scoring system effectively converts individual price action into a directional sentiment measure.
Market Breadth Aggregation
All 40 individual scores are summed into a single composite value called scores .
If many assets have bullish EMA alignment, the total score becomes strongly positive.
If the majority show bearish alignment, the total score turns negative.
This step transforms scattered price data into one unified market breadth metric—quantifying how many assets participate in the same directional trend.
Smoothing the Breadth Line
To reduce short-term noise and isolate trend direction, the aggregated score is smoothed using an EMA of length = smoothlen (default 15). The resulting smoothed line helps identify sustained shifts in collective sentiment rather than temporary fluctuations.
Visualization and Color Coding
When scores > 0 , the market breadth is bullish and the histogram is colored blue.
When scores < 0 , the breadth turns bearish and the histogram is purple.
The same logic applies to the smoothed line and background color, offering an instant visual cue of market mood transitions.
Buy and Sell Conditions:
The indicator itself does not trigger direct buy/sell signals but rather acts as a market regime filter . Traders can use it as follows:
Buy Filter: When the smoothed value is above zero and rising, the majority of assets confirm an uptrend — this favors long setups or trend continuation entries.
Sell Filter: When the smoothed value is below zero and falling, bearish alignment dominates — ideal for short setups or defensive risk management.
Optional filters could include combining this with RSI or volume-weighted momentum indicators to confirm breadth-based reversals.
Features and Parameters:
emalength – Defines the short-term EMA length used for individual asset trend detection (default 10).
emalength2 – Defines the long-term EMA length (default 20).
smoothlen – Defines the smoothing EMA length for the total market breadth line (default 15).
40 asset inputs – User-editable symbols allow full customization of which cryptos are tracked.
Dynamic color backgrounds – Visual distinction between bullish and bearish phases.
Specifications:
Exponential Moving Average (EMA)
EMA is a type of moving average that places more weight on recent price data, responding faster to market changes compared to SMA. By comparing a short-term and long-term EMA, the indicator captures momentum shifts across each asset individually. The crossover logic (EMA10 > EMA20) signals bullish conditions, while the opposite indicates bearish momentum.
Market Breadth
Market Breadth quantifies how many assets are participating in a directional move. Instead of tracking a single coin’s trend, breadth analysis measures collective sentiment. When most coins’ short-term EMAs are above long-term EMAs, the market shows healthy bullish breadth. Conversely, when most are below, weakness dominates.
Smoothing (EMA on Scores)
After summing the breadth score, the result is smoothed with an additional EMA to mitigate the inherent volatility caused by individual coin reversals. This second-level smoothing transforms raw fluctuations into a readable, trend-consistent curve.
Color Visualization
Visual cues are integral for intuitive interpretation.
Blue Shades: Indicate bullish alignment and collective upward momentum.
Purple Shades: Indicate bearish conditions and potential risk-off phases.
The background tint reinforces visual clarity even when the indicator is overlaid on price charts.
Background Logic
By applying the same color logic to the chart’s background, users can instantly recognize the prevailing market phase.
Use Cases
As a trend confirmation filter for other indicators (e.g., trade only in the direction of positive breadth).
As a divergence tool : when price rises but breadth weakens, it may signal a topping market.
As a macro sentiment monitor : perfect for assessing when the crypto market as a whole transitions from bearish to bullish structure.
Summary
“ Market Breadth - ” transforms the chaotic price movements of 40 cryptocurrencies into a single, powerful visual representation of overall market health. By merging EMA cross analysis with market-wide aggregation and smoothing , it provides traders with a deep understanding of when bullish or bearish forces dominate the ecosystem.
It’s a clean, data-driven approach to identifying shifts in crypto market sentiment — a perfect companion for trend-following, macro analysis, and timing portfolio exposure.
Enjoy!
Advanced Technical Analysis with Cumulative Delta//@version=5
indicator("Advanced Technical Analysis with Cumulative Delta", overlay=true)
This declares the script as a version 5 indicator.
The title is what appears in TradingView's indicator list.
overlay=true means it plots directly on the price chart (e.g., lines for moving averages) rather than in a separate pane.
2. Input Parameters
pinescript
smaLength = input.int(100, title="SMA Length")
emaLength = input.int(1000, title="EMA Length")
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought")
rsiOversold = input.int(30, title="RSI Oversold")
vwmoLength = input.int(20, title="VWMO Length")
adxLength = input.int(14, title="ADX Length")
obvLength = input.int(20, title="OBV Length")
obvDivergenceLookback = input.int(10, title="OBV Divergence Lookback")
stochLength = input.int(14, title="Stoch Length")
stochD = input.int(3, title="Stoch D")
stochOverbought = input.int(80, title="Stoch Overbought")
stochOversold = input.int(20, title="Stoch Oversold")
cciLength = input.int(14, title="CCI Length")
cciOverbought = input.int(100, title="CCI Overbought")
cciOversold = input.int(-100, title="CCI Oversold")
atrLength = input.int(14, title="ATR Length")
moneyFlowLength = input.int(14, title="Money Flow Length")
volSmaLength = input.int(20, title="Vol SMA Length")
These are user-configurable inputs using input.int() for integer values.
They define periods (lengths) and thresholds (e.g., overbought/oversold levels) for various indicators.
Examples: rsiLength sets the RSI calculation period (default 14 bars), rsiOverbought sets the upper threshold (default 70).
3. Display Options
pinescript
showMomentumScore = input.bool(true, title="Show Momentum Score")
showAdx = input.bool(true, title="Show ADX")
showDetailedLabels = input.bool(true, title="Show Detailed Labels")
showObv = input.bool(true, title="Show OBV")
showStoch = input.bool(true, title="Show Stoch")
showCci = input.bool(true, title="Show CCI")
showAtr = input.bool(true, title="Show ATR")
showMoneyFlow = input.bool(true, title="Show Money Flow")
showVolumeAnalysis = input.bool(true, title="Show Volume Analysis")
showCumulativeDelta = input.bool(true, title="Show Cumulative Delta")
Boolean inputs (input.bool()) to toggle visibility of specific metrics in the dashboard or on the chart.
This allows users to customize the display to avoid clutter.
4. Moving Averages
pinescript
SMA100 = ta.sma(close, smaLength)
EMA1000 = ta.ema(close, emaLength)
// Daily VWAP
varip float cumVol = 0.0
varip float cumPriceVol = 0.0
if ta.change(time("D")) != 0
cumVol := 0.0
cumPriceVol := 0.0
cumVol += volume
cumPriceVol += close * volume
VWAP_Day = cumPriceVol / cumVol
plot(SMA100, color=color.new(color.gray, 0), linewidth=2)
plot(EMA1000, color=color.new(color.blue, 0), linewidth=2)
plot(VWAP_Day, color=color.new(color.yellow, 0), linewidth=2)
Calculates Simple Moving Average (SMA) and Exponential Moving Average (EMA) using TradingView's ta library.
VWAP (Volume-Weighted Average Price) is reset daily: It accumulates volume and price*volume each bar, resetting on new days (ta.change(time("D")) detects day changes).
These are plotted as lines on the chart with custom colors and widths.
5. Oscillators
This section computes various momentum and volume-based oscillators.
RSI:
pinescript
rsi = ta.rsi(close, rsiLength)
Relative Strength Index measures price momentum (0-100 scale).
VWMO (Volume-Weighted Momentum Oscillator):
pinescript
volumeWeightedPrice = close * volume
vwmaCurrent = math.sum(volumeWeightedPrice, vwmoLength) / math.sum(volume, vwmoLength)
vwmaPast = math.sum(volumeWeightedPrice , vwmoLength) / math.sum(volume , vwmoLength)
vwmo = (vwmaCurrent - vwmaPast) / vwmaPast * 100
Custom oscillator: Compares current vs. past Volume-Weighted Moving Average (VWMA) to gauge volume-adjusted momentum.
ADX & DMI:
pinescript
= ta.dmi(adxLength, adxLength)
Average Directional Index (ADX) measures trend strength; Directional Movement Index (DMI) shows direction (+DI for up, -DI for down).
OBV (On-Balance Volume):
pinescript
obvRaw = ta.obv
obv = ta.sma(obvRaw, obvLength)
obvSlope = obv - obv
obvRising = obvSlope > 0
obvFalling = obvSlope < 0
OBV tracks cumulative volume based on price direction. Smoothed with SMA, and slope checks if it's rising/falling over 5 bars.
Cumulative Delta:
pinescript
cumDelta = ta.obv
cumDeltaChange = cumDelta - cumDelta
cumDeltaRising = cumDelta > cumDelta
cumDeltaFalling = cumDelta < cumDelta
cumDeltaMA = ta.sma(cumDelta, 20)
plot(showCumulativeDelta ? cumDelta : na, color=color.new(color.orange, 0), linewidth=2)
plot(showCumulativeDelta ? cumDeltaMA : na, color=color.new(color.yellow, 0), style=plot.style_line)
Uses OBV as proxy for Cumulative Delta (net buying/selling volume). Plots the raw value and its 20-period SMA if toggled.
Stochastic:
pinescript
fastK = ta.stoch(close, high, low, stochLength)
stochFullK = ta.sma(fastK, stochD)
stochFullD = ta.sma(stochFullK, stochD)
Stochastic oscillator compares closing price to high-low range. Smoothed with SMAs for %K and %D lines.
CCI (Commodity Channel Index):
pinescript
cci = ta.cci(close, cciLength)
Measures deviation from typical price.
MFI (Money Flow Index):
pinescript
mfi = ta.mfi(hlc3, moneyFlowLength)
mfiBullish = mfi > 50
mfiBearish = mfi < 50
mfiOverbought = mfi > 80
mfiOversold = mfi < 20
Volume-weighted RSI variant using typical price (hlc3 = (high + low + close)/3).
6. ATR & Volatility
pinescript
atr = ta.atr(atrLength)
atrAvg = ta.sma(atr, 20)
highVolatility = atr > atrAvg * 1.5
lowVolatility = atr < atrAvg * 0.5
volatilityRatio = math.round((atr / atrAvg) * 100)
Average True Range (ATR) measures volatility. Compared to its 20-period SMA to classify high/low volatility.
7. Volume Analysis
pinescript
volSma = ta.sma(volume, volSmaLength)
volRatio = volume / volSma
highVolume = volume > volSma * 1.5
lowVolume = volume < volSma * 0.5
extremeVolume = volRatio > 2
normalVolume = volRatio >= 0.5 and volRatio <= 1.5
Compares current volume to its SMA to detect high/low/extreme volume.
8. Price Action Signals
pinescript
bullishCandle = close > open
bearishCandle = close < open
candleSize = math.abs(close - open)
avgCandleSize = ta.sma(candleSize, 20)
largeCandleBody = candleSize > avgCandleSize * 1.5
strongBullishCandle = bullishCandle and largeCandleBody and highVolume
strongBearishCandle = bearishCandle and largeCandleBody and highVolume
Identifies candle types (bullish/bearish) and strength based on body size and volume.
9. Trend Analysis
pinescript
priceAboveAll = close > SMA100 and close > EMA1000 and close > VWAP_Day
priceBelowAll = close < SMA100 and close < EMA1000 and close < VWAP_Day
priceVsVWAP = close > VWAP_Day
Checks if price is above/below all key averages for trend direction.
10. Enhanced Momentum Conditions
pinescript
bullishMomentum = rsi > 50 and vwmo > 0 and stochFullK > 50 and cci > 0 and mfiBullish and cumDeltaRising
bearishMomentum = rsi < 50 and vwmo < 0 and stochFullK < 50 and cci < 0 and mfiBearish and cumDeltaFalling
strongTrend = adx > 25
veryStrongTrend = adx > 40
Combines multiple oscillators (including Cumulative Delta) for overall momentum. ADX thresholds define trend strength.
11. Directional Movement
pinescript
bullishDMI = diPlus > diMinus
bearishDMI = diMinus > diPlus
Uses DMI to confirm directional bias.
12. OBV Divergence
pinescript
priceHigherHigh = high > ta.highest(high , obvDivergenceLookback)
priceLowerLow = low < ta.lowest(low , obvDivergenceLookback)
obvHigherHigh = obv > ta.highest(obv , obvDivergenceLookback)
obvLowerLow = obv < ta.lowest(obv , obvDivergenceLookback)
obvBearishDiv = priceHigherHigh and not obvHigherHigh and close > SMA100
obvBullishDiv = priceLowerLow and not obvLowerLow and close < SMA100
Detects divergences: Price making higher highs/lows but OBV not confirming, signaling potential reversals.
13. Comprehensive Trend Classification
pinescript
bullishTrend = priceAboveAll and bullishMomentum and strongTrend and bullishDMI and obvRising
bearishTrend = priceBelowAll and bearishMomentum and strongTrend and bearishDMI and obvFalling
strongBullish = bullishTrend and veryStrongTrend and rsi > rsiOverbought and vwmo > 1
strongBearish = bearishTrend and veryStrongTrend and rsi < rsiOversold and vwmo < -1
Aggregates conditions for overall trend labels (e.g., bullish if price, momentum, trend strength, DMI, and OBV align).
14. Weakness/Strength Detection
pinescript
weaknessAtHigh = obvBearishDiv or (priceAboveAll and obvFalling and rsi > 70) or mfiOverbought
strengthAtLow = obvBullishDiv or (priceBelowAll and obvRising and rsi < 30) or mfiOversold
Flags hidden weaknesses (e.g., overbought with falling OBV) or strengths (e.g., oversold with rising OBV).
15. Advanced Momentum Scoring
pinescript
priceScore = priceAboveAll ? 50 : priceBelowAll ? 0 : 25
rsiScore = rsi > rsiOverbought ? 25 : rsi < rsiOversold ? 0 : rsi > 50 ? 15 : 5
vwmoScore = vwmo > 1 ? 25 : vwmo < -1 ? 0 : vwmo > 0 ? 15 : 5
adxScore = adx > 40 ? 20 : adx > 25 ? 10 : 0
stochScore = stochFullK > stochOverbought ? 20 : stochFullK < stochOversold ? 0 : stochFullK > 50 ? 12 : 4
cciScore = cci > cciOverbought ? 20 : cci < cciOversold ? 0 : cci > 0 ? 12 : 4
mfiScore = mfi > 80 ? 15 : mfi < 20 ? 0 : mfi > 50 ? 10 : 3
volScore = highVolatility ? 10 : lowVolatility ? 0 : 5
cumDeltaScore = cumDeltaRising ? 15 : cumDeltaFalling ? 0 : 8
momentumScore = priceScore + rsiScore + vwmoScore + adxScore + stochScore + cciScore + mfiScore + volScore + cumDeltaScore
marketBias = momentumScore > 155 ? 5 : momentumScore > 115 ? 4 : momentumScore < 45 ? 1 : momentumScore < 75 ? 2 : 3
Assigns points to each indicator based on conditions (e.g., higher scores for bullish signals).
Total momentumScore (max 200) determines marketBias (1=strong bear, 5=strong bull).
16. Dashboard Table
pinescript
var table dashboard = table.new(position.top_right, columns=1, rows=30, border_width=0, frame_width=0)
if barstate.islast
row = 0
// ... (code for adding cells to the table)
Swing Pivot Pullback Detector
Identifies pullback movements that occur immediately after a confirmed swing pivot in price.
It focuses on recognizing how deep the retracement travels relative to the most recent price leg, helping traders visualize short-term corrections that often precede trend continuations or reversals.
How It Works
The script uses built-in pivot logic to confirm swing highs and lows, defined by a user-set number of left and right bars.
Once a pivot of the opposite type forms, the indicator measures the retracement that develops from the end of that leg.
When a valid pullback is found, a small label appears on the chart showing the percentage size of that retracement compared to the previous pivot leg.
Optional alerts can notify the user when a pullback exceeds the specified minimum retrace percentage.
Inputs
Pivot left/right bars: define how far back and forward a swing point must extend to be confirmed.
Lookback: limits how many bars are scanned when searching for the pullback extreme.
Min retrace %: sets the smallest correction percentage to trigger an alert.
Show label / Enable alert: toggle visual or alert output.
Usage
This tool is most useful for visual analysis of price rhythm, measuring the strength of retracements within ongoing swings.
It does not generate trade signals on its own but can complement manual or algorithmic methods that rely on pullback structure or market symmetry.
Round Number Analyzer v3Round Number Analyzer v3 is an indicator designed to analyze how price interacts with round number levels (levels spaced at fixed intervals in points or pips).
The indicator does not generate entry/exit signals, but provides detailed statistics to better understand market dynamics around these key levels.
✨ Key Features
Cross Counting: detects every time the price crosses a round number level (up = Long, down = Short).
Continuations & Reversals: classifies each cross as:
Continuation: the move continues in the same direction as the previous sequence.
Reversal: the move changes direction compared to the previous sequence.
Sequence Classification (L1…L5+): each level is labelled based on its position within the consecutive cross sequence:
L1 = first level of the sequence,
L2 = second consecutive,
…
L5+ = fifth or higher.
Comprehensive Stats Table (top right corner):
Total crosses (Long, Short, Totals).
Total continuations + breakdown by L1…L5+.
Total reversals + breakdown by L1…L5+.
Percentages calculated against the proper denominator, displayed directly inside the cells next to the absolute values.
Date range of analysis (user-defined).
Customizable Step: Works in both points and pips, making the indicator suitable for indices and forex.
⚙️ Main Inputs
Start date / End date → sets the analysis period.
Step mode → Points or Pips.
Step value → distance between round levels.
Pip size → pip size (default = 0.0001, typical for forex).
📈 How to Interpret
A high continuation percentage after L1–L2 suggests the market tends to extend multiple times beyond the first breakout levels.
Higher reversal percentages at advanced levels (L4–L5+) may signal trend exhaustion.
The analysis helps estimate the probability of continuation or reversal depending on how many consecutive levels have already been crossed.
🔎 Practical Applications
Support for breakout or mean-reversion strategies.
Comparative analysis across different markets (e.g. indices vs forex) or different time periods.
📝 Notes
The indicator is timeframe-robust, as it accounts for multiple steps within the same candle, ensuring results do not depend on the selected timeframe (except for TradingView’s historical data limits).
It does not provide automatic trading signals, but serves as a quantitative analysis tool to refine your strategies.
---
Round Number Analyzer v3 è un indicatore pensato per analizzare come il prezzo interagisce con i livelli di round number (livelli a distanza fissa in punti o pips).
L’indicatore non genera segnali di ingresso/uscita, ma fornisce statistiche dettagliate utili per comprendere la dinamica del mercato attorno a questi livelli.
✨ Funzionalità principali
Conteggio dei Cross: rileva ogni volta che il prezzo attraversa un livello round (verso l’alto = Long, verso il basso = Short).
Continuations & Reversals: classifica ogni attraversamento come:
Continuation: il movimento prosegue nella stessa direzione della sequenza precedente.
Reversal: il movimento inverte la direzione rispetto alla sequenza precedente.
Classificazione per sequenza (L1…L5+): ogni livello è etichettato in base alla sua posizione nella sequenza di cross consecutivi:
L1 = primo livello della sequenza,
L2 = secondo consecutivo,
…
L5+ = quinto o superiore.
Statistiche complete in tabella (in alto a destra):
Cross totali (Long, Short, Totals).
Continuations totali + breakdown per L1…L5+.
Reversals totali + breakdown per L1…L5+.
Percentuali calcolate sul denominatore corretto, mostrate direttamente dentro le celle accanto ai valori assoluti.
Date range di analisi (impostabile dall’utente).
Step personalizzabile: puoi lavorare sia in punti che in pips, così l’indicatore è adatto sia per indici che per forex.
⚙️ Input principali
Start date / End date → imposta l’intervallo temporale di analisi.
Step mode → punti o pips.
Step value → ampiezza tra i livelli round.
Pip size → dimensione del pip (default = 0.0001, tipico per il forex).
📈 Come interpretarlo
Una percentuale di continuation molto alta dopo L1–L2 indica che il mercato tende a proseguire più volte oltre i primi livelli di breakout.
Percentuali di reversal più elevate nei livelli avanzati (L4–L5+) possono suggerire esaurimento della spinta.
L’analisi permette di stimare la probabilità che un movimento in corso continui o si inverta in base a quanti livelli sono già stati attraversati consecutivamente.
🔎 Applicazioni pratiche
Supporto per strategie di breakout o mean reversion.
Analisi comparativa tra mercati (es. indici vs forex) o tra periodi temporali diversi.
📝 Note
L’indicatore è timeframe-robust: il conteggio tiene conto di multipli step dentro la stessa candela, così i risultati non dipendono dal timeframe scelto (salvo i limiti di caricamento storico di TradingView).
Non fornisce segnali operativi automatici, ma è un tool di analisi quantitativa per affinare le proprie strategie.
Mean Reversion Indictor, Based on Standard Deviations Description:
The Reversal Candle Mean Reversion Indicator is designed for traders seeking to identify potential reversal points in the market based on key price action and volatility. This indicator combines price action analysis (sweeping prior highs or lows) with mean reversion theory, highlighting opportunities where the price tests or touches a moving average's standard deviation bands.
By focusing on these moments of price extremes, the indicator helps traders spot bullish and bearish reversal signals when the price retraces from volatile movements. These conditions often signal a return to the mean—an ideal setup for reversal traders who thrive on fading exaggerated price moves.
How It Works:
1. Price Action Reversal Signal:
* Bullish Reversal: The indicator flags a bullish signal when the current candle's low sweeps the prior candle's low, and the candle closes higher than the prior candle's close.
* Bearish Reversal: The indicator flags a bearish signal when the current candle's high sweeps the prior candle's high, and the candle closes lower than the prior candle's close.
2. Mean Reversion Confirmation:
* Mean Reversion Signal is triggered when the price touches or tests the upper or lower bands, calculated using a user-selected moving average (SMA, EMA, WMA, VWMA, or Hull MA) and standard deviation.
* The indicator combines price action and volatility, providing stronger reversal signals when the price reaches an extreme distance from the moving average.
3. Customization Options:
* Moving Average Type: Choose from SMA, EMA, WMA, VWMA, or Hull MA.
* Moving Average Length: Adjust the length of the moving average (default: 20).
* Standard Deviation Multiplier: Set the number of standard deviations for the volatility bands (default: 2.0).
* Custom Candle Colors: Choose custom colors for bullish and bearish reversal candles to easily spot signals.
How to Use for Trading Reversals:
1. Identify Extremes:
* Watch for candles where the price tests or touches the standard deviation bands. These are key moments when the price has moved significantly from the moving average, indicating a potential overbought or oversold condition.
2. Look for Reversals:
* When the price tests a band and simultaneously forms a bullish reversal pattern (sweeping the prior low and closing higher), it signals a potential mean reversion to the upside.
* When the price tests a band and forms a bearish reversal pattern (sweeping the prior high and closing lower), it signals a potential mean reversion to the downside.
3. Entry Points:
* Long Trades: Enter a long trade after a bullish signal appears (green candle) near the lower band, indicating a likely price reversal back towards the mean.
* Short Trades: Enter a short trade after a bearish signal appears (red candle) near the upper band, indicating a likely price pullback.
4. Exit Strategy:
* Set a profit target at the moving average (the mean) or a specific price level based on your strategy.
* Consider using a trailing stop to capture additional profit in case of a stronger reversal beyond the mean.
5. Risk Management:
* Place stops just below the low of the bullish reversal candle or just above the high of the bearish reversal candle to manage risk efficiently.
Geometric Trend Angle [AstroHub]This script, "Geometric Trend Angle," is designed to identify trend reversals based on the geometric angle of the price chart. Here's a detailed explanation of its originality, functionality, and usage:
Originality and Usefulness:
The uniqueness of this script lies in its approach to trend reversal detection through the calculation of the geometric trend angle. Unlike traditional methods, this script combines the analysis of the angle of the price movement with specific conditions for identifying potential trend reversals.
How it Works:
Length and Trend Angle: The user sets the "Length" parameter, determining the period for calculating the trend angle. The script then computes the trend angle, representing the change in prices over the specified period.
Trend Reversal: The script identifies potential trend reversals when the trend angle changes from positive to negative, and the current closing price is higher than the previous closing price.
Green Reversal: Additionally, the script looks for instances where the trend angle changes from negative to positive, and the current closing price is lower than the previous closing price, indicating a potential reversal to the downside.
Graphical Representation: The script visually highlights the identified reversal points on the chart with labels ("Trend Reversal" and "Green Reversal") and draws a line from the reversal point for better visualization.
Alerts: Traders are alerted to potential trend reversals and green reversals, allowing for timely responses to changing market dynamics.
How to Use:
Apply the script to your TradingView chart.
Customize the "Length" parameter based on your preference and analysis.
Observe the colored candles and graphical elements to identify potential trend reversals.
Pay attention to alerts for timely notifications of reversal signals.
Conclusion:
The "Geometric Trend Angle" script provides a unique perspective on trend reversals, combining geometric angle analysis with specific conditions for improved accuracy. Traders can use it as part of their overall analysis to make informed decisions in the dynamic market environment.
OBV with MA & Bollinger Bands by Marius1032OBV with MA & Bollinger Bands by Marius1032
This script adds customizable moving averages and Bollinger Bands to the classic OBV (On Balance Volume) indicator. It helps identify volume-driven momentum and trend strength.
Features:
OBV-based trend tracking
Optional smoothing: SMA, EMA, RMA, WMA, VWMA
Optional Bollinger Bands with SMA
Potential Combinations and Trading Strategies:
Breakouts: Look for price breakouts from the Bollinger Bands, and confirm with a rising OBV for an uptrend or falling OBV for a downtrend.
Trend Reversals: When the price touches a Bollinger Band, examine the OBV for divergence. A bullish divergence (price lower low, OBV higher low) near the lower band could signal a reversal.
Volume Confirmation: Use OBV to confirm the strength of the trend indicated by Bollinger Bands. For example, if the BBs indicate an uptrend and OBV is also rising, it reinforces the bullish signal.
1. On-Balance Volume (OBV):
Purpose: OBV is a momentum indicator that uses volume flow to predict price movements.
Calculation: Volume is added on up days and subtracted on down days.
Interpretation: Rising OBV suggests potential upward price movement. Falling OBV suggests potential lower prices.
Divergence: Divergence between OBV and price can signal potential trend reversals.
2. Moving Average (MA):
Purpose: Moving Averages smooth price fluctuations and help identify trends.
Combination with OBV: Pairing OBV with MAs helps confirm trends and identify potential reversals. A crossover of the OBV line and its MA can signal a trend reversal or continuation.
3. Bollinger Bands (BB):
Purpose: BBs measure market volatility and help identify potential breakouts and trend reversals.
Structure: They consist of a moving average (typically 20-period) and two standard deviation bands.
Combination with OBV: Combining BBs with OBV allows for a multifaceted approach to market analysis. For example, a stock hitting the lower BB with a rising OBV could indicate accumulation and a potential upward reversal.
Created by: Marius1032






















