EMA Crossover Signal (15min)📈 EMA Crossover Signal (15min)
This indicator generates Buy and Sell signals based on a simple yet effective Exponential Moving Average (EMA) crossover strategy, strictly evaluated on the 15-minute timeframe.
✅ Strategy:
Buy Signal: Triggered when the 5 EMA crosses above the 10 EMA.
Sell Signal: Triggered when the 5 EMA crosses below the 10 EMA.
📌 Features:
Signals are evaluated using 15-minute data, regardless of your current chart timeframe.
Clear Buy/Sell labels are displayed directly on the chart.
Optional plotting of the 5 EMA and 10 EMA from the 15-minute chart for visual confirmation.
This tool is ideal for traders who want to follow short-term momentum shifts with high clarity and precision.
Chỉ báo và chiến lược
S&P500 CorrelationThe indicator presents correlation values ranging from -1 to +1. Positive values (green) indicate that the assets tend to move in the same direction, while negative values (red) suggest opposite movements. A value near zero indicates little to no correlation.
Settings:
Correlation Period: Number of bars used in calculation
Index Ticker: Symbol for the index ("SPX" for S&P500, "NDX" for Nasdaq)
Price Type: Which price data to use (close, open, high, low, etc.)
Return Type: Method for calculating returns (simple or logarithmic)
Nasdaq CorrelationThe indicator presents correlation values ranging from -1 to +1. Positive values (green) indicate that the assets tend to move in the same direction, while negative values (red) suggest opposite movements. A value near zero indicates little to no correlation.
Settings:
Correlation Period: Number of bars used in calculation
Index Ticker: Symbol for the index ("SPX" for S&P500, "NDX" for Nasdaq)
Price Type: Which price data to use (close, open, high, low, etc.)
Return Type: Method for calculating returns (simple or logarithmic)
실전형 OBV + 추세 + 다이버전스//@version=5
indicator("실전형 OBV + 추세 + 다이버전스", overlay=false)
// === OBV 계산 ===
obv = ta.cum(volume * math.sign(close - close ))
// === EMA 기반 추세 판단
ema_fast = ta.ema(obv, 5)
ema_slow = ta.ema(obv, 20)
bullish = ta.crossover(ema_fast, ema_slow)
bearish = ta.crossunder(ema_fast, ema_slow)
// === OBV 다이버전스 감지 (간소형)
// 최근 고점/저점 비교
price_high = ta.highest(close, 10)
price_low = ta.lowest(close, 10)
obv_high = ta.highest(obv, 10)
obv_low = ta.lowest(obv, 10)
// 조건: 주가 고점 ↑, OBV 고점 ↓ → 약세 다이버전스
bear_div = close > close and obv < obv
// 조건: 주가 저점 ↓, OBV 저점 ↑ → 강세 다이버전스
bull_div = close < close and obv > obv
// === 차트 표시 ===
plot(obv, title="OBV", color=color.white, linewidth=2)
plot(ema_fast, title="EMA(5)", color=color.lime)
plot(ema_slow, title="EMA(20)", color=color.orange)
// === 시그널 마커 표시 ===
plotshape(bullish, title="골든크로스", location=location.belowbar, style=shape.triangleup, color=color.green, size=size.small)
plotshape(bearish, title="데드크로스", location=location.abovebar, style=shape.triangledown, color=color.red, size=size.small)
// === 다이버전스 표시
plotshape(bull_div, title="강세 다이버전스", location=location.belowbar, style=shape.circle, color=color.fuchsia, size=size.tiny)
plotshape(bear_div, title="약세 다이버전스", location=location.abovebar, style=shape.circle, color=color.maroon, size=size.tiny)
Bull Bear Pivot by RawstocksThe "Bull Bear Pivot" indicator is a custom Pine Script (v5) tool designed for TradingView to assist traders in identifying key price levels and pivot points on intraday charts (up to 1-hour timeframes). It combines time-based open price markers, pivot high/low detection, and candlestick visualization to provide a comprehensive view of potential support, resistance, and trend reversal levels. Below is a detailed description of the indicator’s functionality, features, and intended use.
Indicator Overview:
The "Bull Bear Pivot" indicator is tailored for intraday trading, focusing on specific times of the day to mark significant price levels (open prices) and detect pivot points. It plots horizontal lines at the open prices of user-defined sessions, identifies pivot highs and lows on the current chart timeframe, and overlays custom candlesticks to highlight price action. The indicator is designed to work on timeframes of 1 hour or less (e.g., 1-minute, 3-minute, 5-minute, 15-minute, 30-minute, 60-minute) and includes a warning mechanism for invalid timeframes.
Key Features:
Time-Based Open Price Markers:
The indicator allows users to define up to five time-based sessions (e.g., 4:00 AM, 8:30 AM, 9:30 AM, 10:00 AM, and a custom time) to capture the open price at the start of each session.
For each session, it plots a horizontal line at the 1-minute open price, extending from the session start to the market close at 4:00 PM EST.
Each line is accompanied by a label positioned 5 bars to the right of the market close (4:00 PM EST), with the text right-aligned and vertically centered on the line.
Users can enable/disable each marker, customize the session time, label text, line color, and text color via the indicator’s settings.
Pivot Highs and Lows:
The indicator calculates pivot highs and lows on the current chart timeframe using the ta.pivothigh and ta.pivotlow functions.
Pivot highs are marked with green triangles above the bars, and pivot lows are marked with red triangles below the bars.
The pivot period (lookback/lookforward) is user-configurable, allowing flexibility in detecting short-term or longer-term reversals.
Custom Candlesticks:
The indicator overlays custom candlesticks on the chart, colored green for bullish candles (close > open) and red for bearish candles (close < open).
This feature helps visualize price action alongside the open price markers and pivot points.
Timeframe Restriction:
The indicator is designed to work on timeframes of 1 hour or less. If the chart timeframe exceeds 1 hour (e.g., 4-hour, daily), a warning label ("Timeframe > 1H Indicator Disabled") is displayed, and no elements are plotted.
Customizable Appearance:
Users can customize the appearance of the open price marker lines, including the line style (solid, dashed, dotted) and line width.
Labels for the open price markers have no background (transparent) and use customizable text colors.
Hedging Exit Strategy - XAUUSD//@version=5
indicator("Hedging Exit Strategy - XAUUSD", overlay=true)
// === Supertrend Settings ===
atrPeriod = input.int(10, title="ATR Period")
factor = input.float(3.0, title="Supertrend Factor")
= ta.supertrend(factor, atrPeriod)
// === External ML Signal (manual input for simulation/testing) ===
mlSignal = input.string("Neutral", title="ML Signal (Buy / Sell / Neutral)", options= )
// === Entry Buy Info ===
entryBuyPrice = input.float(3005.0, title="Entry Buy Price")
currentProfit = close - entryBuyPrice
isBuyProfitable = currentProfit > 0
// === Conditions ===
isSupertrendSell = direction < 0
isMLSell = mlSignal == "Sell"
exitBuyCondition = isBuyProfitable and isMLSell and isSupertrendSell
// === Plotting Supertrend ===
plot(supertrend, "Supertrend", color=direction > 0 ? color.green : color.red, linewidth=2)
// === Plot Exit Buy Signal ===
bgcolor(exitBuyCondition ? color.red : na, transp=85)
plotshape(exitBuyCondition, title="Exit Buy", location=location.abovebar, color=color.red, style=shape.flag, text="EXIT")
// === Create label only when exitBuyCondition is true ===
if exitBuyCondition
label.new(bar_index, high, "EXIT BUY", style=label.style_label_down, color=color.red, size=size.small, textcolor=color.white)
ATH Levels with % DistanceThis Indicator for Use in Pine Scanner for find the Latest Distance from All Time High
is also make a Pine Scanners to search on Watchlist.
Cup and Handle Detector [Weekly]Spotted a classic Cup and Handle pattern forming on the weekly chart — a strong bullish signal brewing! The stock looks poised for a breakout to the upside soon. 📊🔥
Best rate to BUY 8.57 it's almost double the profit soon touch 17 InshaAllah.
✅ Rounded base (cup) formation
✅ Healthy handle consolidation
✅ Volume drying up = breakout incoming?
Keep this one on your radar — potential move coming.
👀Not financial advice. Always do your own research before making any trading decisions.
EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)
🚨 Main Utility: Early Squeeze Warning
The primary function of this indicator is to warn traders early when the market is approaching a "squeeze"—a tightening condition that often precedes significant moves or regime shifts. By visually highlighting areas of increasing tension, it helps traders anticipate potential volatility and prepare accordingly. This is intended to be a statistically and psychologically grounded replacement of so-called "fib-time-zones," which are overly-deterministic and subjective.
📌 Overview
The EMA-Based Squeeze Dynamics indicator projects future regime shifts (such as golden and death crosses) using exponential moving averages (EMAs). It employs historical interval data and current market conditions to dynamically forecast when the critical EMAs (50-period and 200-period) will reconverge, marking likely trend-change points.
This indicator leverages two core ideas:
Behavioral finance theory: Traders often collectively anticipate popular EMA crossovers, creating a self-fulfilling prophecy (normative social influence), similar to findings from Solomon Asch’s conformity experiments.
Bayesian-like updates: It utilizes historical crossover intervals as a prior, dynamically updating expectations based on evolving market data, ensuring its signals remain objectively grounded in actual market behavior.
⚙️ Technical & Mathematical Explanation
1. EMA Calculations and Regime Definitions
The indicator uses three EMAs:
Fast (9-period): Represents short-term price movement.
Medial (50-period): Indicates medium-term trend direction.
Slow (200-period): Defines long-term market sentiment.
Regime States:
Bullish: 50 EMA is above the 200 EMA.
Bearish: 50 EMA is below the 200 EMA.
A shift between these states triggers visual markers (arrows and labels) directly on the chart.
2. Gap Dynamics and Historical Intervals
At each crossover:
The indicator records the gap (distance) between the 50 and 200 EMAs.
It tracks the historical intervals between past crossovers.
An Exponentially Weighted Moving Average (EWMA) of these intervals is calculated, weighting recent intervals more heavily, dynamically updating expectations.
Important note:
After every regime shift, the projected crossover line resets its calculation. This reset is visually evident as the projection line appears to move further away after each regime change, temporarily "repelled" until the EMAs begin converging again. This ensures projections remain realistic, grounded in actual EMA convergence, and prevents overly optimistic forecasts immediately after a regime shift.
3. Gap Momentum & Adaptive Scaling
The indicator measures how quickly or slowly the gap between EMAs is changing ("gap momentum") and adjusts its forecast accordingly:
If the gap narrows rapidly, a crossover becomes more imminent.
If the gap widens, the next crossover is pushed further into the future.
The "gap factor" dynamically scales the projection based on recent gap momentum, bounded between reasonable limits (0.7–1.3).
4. Squeeze Ratio & Background Color (Visual Cues)
A "squeeze ratio" is computed when market conditions indicate tightening:
In a bullish regime, if the fast EMA is below the medial EMA (price pulling back towards long-term support), the squeeze ratio increases.
In a bearish regime, if the fast EMA rises above the medial EMA (price rallying into long-term resistance), the squeeze ratio increases.
What the Background Colors Mean:
Red Background: Indicates a bullish squeeze—price is compressing downward, hinting a bullish reversal or continuation breakout may occur soon.
Green Background: Indicates a bearish squeeze—price is compressing upward, suggesting a bearish reversal or continuation breakout could soon follow.
Opacity Explanation:
The transparency (opacity) of the background indicates the intensity of the squeeze:
High Opacity (solid color): Strong squeeze, high likelihood of imminent volatility or regime shift.
Low Opacity (faint color): Mild squeeze, signaling early stages of tightening.
Thus, more vivid colors serve as urgent visual warnings that a squeeze is rapidly intensifying.
5. Projected Next Crossover and Pseudo Crossover Mechanism
The indicator calculates an estimated future bar when a crossover (and thus, regime shift) is expected to occur. This calculation incorporates:
Historical EWMA interval.
Current squeeze intensity.
Gap momentum.
A dynamic penalty based on divergence from baseline conditions.
The "Pseudo Crossover" Explained:
A key adaptive feature is the pseudo crossover mechanism. If price action significantly deviates from the projected crossover (for example, if price stays beyond the projected line longer than expected), the indicator acknowledges the projection was incorrect and triggers a "pseudo crossover" event. Essentially, this acts as a reset, updating historical intervals with a weighted adjustment to recalibrate future predictions. In other words, if the indicator’s initial forecast proves inaccurate, it recognizes this quickly, resets itself, and tries again—ensuring it remains responsive and adaptive to actual market conditions.
🧠 Behavioral Theory: Normative Social Influence
This indicator is rooted in behavioral finance theory, specifically leveraging normative social influence (conformity). Traders commonly watch EMA signals (especially the 50 and 200 EMA crossovers). When traders collectively anticipate these signals, they begin trading ahead of actual crossovers, effectively creating self-fulfilling prophecies—similar to Solomon Asch’s famous conformity experiments, where individuals adopted group behaviors even against direct evidence.
This behavior means genuine regime shifts (actual EMA crossovers) rarely occur until EMAs visibly reconverge due to widespread anticipatory trading activity. The indicator quantifies these dynamics by objectively measuring EMA convergence and updating projections accordingly.
📊 How to Use This Indicator
Monitor the background color and opacity as primary visual cues.
A strongly colored background (solid red/green) is an early alert that a squeeze is intensifying—prepare for potential volatility or a regime shift.
Projected crossover lines give a dynamic target bar to watch for trend reversals or confirmations.
After each regime shift, expect a reset of the projection line. The line may seem initially repelled from price action, but it will recalibrate as EMAs converge again.
Trust the pseudo crossover mechanism to automatically recalibrate the indicator if its original projection misses.
🎯 Why Choose This Indicator?
Early Warning: Visual squeeze intensity helps anticipate market breakouts.
Behaviorally Grounded: Leverages real trader psychology (conformity and anticipation).
Objective & Adaptive: Uses real-time, data-driven updates rather than static levels or subjective analysis.
Easy to Interpret: Clear visual signals (arrows, labels, colors) simplify trading decisions.
Self-correcting (Pseudo Crossovers): Quickly adjusts when initial predictions miss, maintaining accuracy over time.
Summary:
The EMA-Based Squeeze Dynamics Indicator combines behavioral insights, dynamic Bayesian-like updates, intuitive visual cues, and a self-correcting pseudo crossover feature to offer traders a reliable early warning system for market squeezes and impending regime shifts. It transparently recalibrates after each regime shift and automatically resets whenever projections prove inaccurate—ensuring you always have an adaptive, realistic forecast.
Whether you're a discretionary trader or algorithmic strategist, this indicator provides a powerful tool to navigate market volatility effectively.
Happy Trading! 📈✨
VWAP Bands with Price LineUse it in new pane below the main pane.
Nothing fancy, u can just see the S/R levels in new pane with price line. I made it for personal use only.
RsiVirgilSignalsThrough this MVRV indicator we will know when to sell, when to buy coins, we are guided by RSI, when it is down, buy, when it is up, we sell.
RSI Buy/Sell SignalsRsI give Buy and Sell signal when rsi reaches the top and sell when it reaches the bottom.
RSI + TSI + SuperTrendRSI + TSI It measures when the coin is super bought or super sold and when the coin is down you buy when the money is up
Niveles intradía reinicio diario📌 Script Description: Projected Intraday Fibonacci Levels from 02:00 (Madrid)
This advanced Fibonacci level indicator is specially designed for intraday traders who seek high-precision reaction zones starting from a fixed daily control point.
🕑 How does it work?
Each day at 02:00 Madrid time (GMT+1), the indicator captures the opening price of that candle as the base level (0.84), and then projects upper and lower levels based on custom, non-standard but highly effective proportions.
🔢 Included Levels:
Upper levels: 0.068, 0.42, 0.21, 0, and extensions to 1.79, 2.00
Lower levels: 1, 1.26, 1.47, 1.68, 1.89, 2.10
Key level (0.84): visually highlighted in light blue for quick reference
💼 Use Cases — Ideal for:
Detecting high-confluence entry and exit zones
Spotting reversals or continuations from projected areas
Building intraday strategies based on breakouts, pullbacks, or mean reversion
🎯 Key Advantage:
Unlike traditional Fibs that use the high/low of the day, this tool activates at a fixed time (02:00), allowing for consistency, automation, and daily comparability.
4 Fast Stochastic Indicatorsthis contain four type of stochastic in different time frames it explain hte bullish bearish ness in different time frames
Abay Daily High | Equilibrium | low MovementIndicates the daily high, equilibrium and low drawn by green, yellow and red lines. Fill blocks indicate the average value movement relevant to the previous day. Green fills indicate that the value is moving higher than the previous day and red meaning lower.
TestMA Candle ColorTestMA Candle Color. To find MA breakouts.Once a green candle above MA - buy signal. Sell signal when the day green candle breaks down.
EMA Crossover with Stop Loss
Stop Loss Calculation:
A stop loss level is calculated as a percentage below the entry price for a long position or above the entry price for a short position.
The stopLossPercent input allows you to define how far the stop loss is set from the entry price, in percentage terms.
Buy Signal:
A buySignal is generated when the fast EMA crosses above the slow EMA.
The stop loss for this trade is calculated when the buy signal occurs, and the stop loss level is plotted on the chart.
Sell Signal:
A sellSignal is generated when the fast EMA crosses below the slow EMA.
The stop loss for the short trade is calculated when the sell signal occurs.
Plotting:
Buy and Sell Labels: "BUY" and "SELL" signals are plotted as labels above or below the bars when the crossovers occur.
Stop Loss Levels: When a buy signal occurs, the stop loss for the long position is plotted in orange. When a sell signal occurs, the stop loss for the short position is plotted in purple.
Alerts:
Alerts are available for the buy and sell signals as well as for the stop loss levels being reached, so you can track those events in real-time.
How it Works:
The buy signal triggers a long position, and the stop loss is calculated below the entry price by the percentage specified in stopLossPercent.
The sell signal triggers a short position, and the stop loss is calculated above the entry price.
The stop loss is drawn on the chart when a position is open, so you can visually track where your exit would be if the price moves against you.
How to Use:
Copy the updated script into TradingView's Pine Script editor.
Apply it to your chart.
You'll see the EMAs plotted, along with "BUY", "SELL", and stop loss levels for both long and short trades.
You can set up alerts from TradingView’s alert feature to notify you when buy, sell, or stop-loss levels are triggered.
Feel free to tweak the stopLossPercent input to better fit your risk management preferences!
Let me know if you'd like further customization or need help with anything else!
Auto Fibonacci Retracement (Clean)🔧 1. Inputs
lookback = input.int(50, title="Lookback Period")
lookback = input.int(50, title="Lookback Period")
You can adjust how far back the script looks to find the highest high and lowest low.
Default: last 50 candles.
📈 2. Finding High and Low Points
swingHigh = ta.highest(high, lookback)
swingLow = ta.lowest(low, lookback)
swingHigh = ta.highest(high, lookback)
swingLow = ta.lowest(low, lookback)
Finds the highest price and lowest price within the selected lookback period.
These define the range used for calculating Fibonacci levels.
🧮 3. Calculate Fibonacci Levels
diff = swingHigh - swingLow
diff = swingHigh - swingLow
We calculate 7 Fibonacci levels:
Level Formula
0% swingLow
23.6% swingLow + 0.236 * diff
38.2% swingLow + 0.382 * diff
50% swingLow + 0.5 * diff
61.8% swingLow + 0.618 * diff
78.6% swingLow + 0.786 * diff
100% swingHigh
These are commonly used retracement levels to identify potential support/resistance zones.
📏 4. When to Draw Lines
drawFib = bar_index == ta.highestbars(high, lookback) or bar_index == ta.lowestbars(low, lookback)
drawFib = bar_index == ta.highestbars(high, lookback) or bar_index == ta.lowestbars(low, lookback)
We only draw lines when the current bar is either the most recent swing high or swing low.
This avoids cluttering your chart with hundreds of unnecessary horizontal lines.
🎨 5. Drawing the Lines
line.new(...)
line.new(...)
Horizontal lines are drawn at each Fib level.
We offset the x-axis slightly (bar_index + 20) so the lines extend forward on the chart.
Each level uses a different color to visually separate them.
🧠 Use Case
You can use this to:
Identify where the price may pull back or bounce.
Plan entry or exit levels based on retracement.
Visually see key technical areas.
✅ Key Benefits
✅ Clean, minimalist design
✅ Automatically updates to latest price structure
✅ Avoids drawing clutter
✅ Ready to customize
Double SuperTrend Crossover AlertsDouble SuperTrend Crossover Alerts
This indicator uses two SuperTrend calculations to generate trading alerts based on their crossover. The idea is simple:
A Buy Signal is produced when the fast SuperTrend (using a factor of 2 by default) crosses above the slow SuperTrend (using a factor of 4 by default).
A Sell Signal is produced when the fast SuperTrend crosses below the slow SuperTrend.
How It Works
Inputs and Calculations
ATR Length: Set to 13 by default and used in the Average True Range (ATR) calculation to adjust the indicator's sensitivity.
Fast SuperTrend Factor: The fast SuperTrend uses a multiplier of 2, making it more sensitive to recent price changes.
Slow SuperTrend Factor: The slow SuperTrend uses a multiplier of 4, making it smoother and less reactive.
Customizable Settings:
Users can edit the ATR length, the fast factor, and the slow factor as desired, allowing you to adjust the indicator to suit your personal trading style and preferred time frames.
Signal Generation
Buy Signal: Generated when the fast SuperTrend moves above the slow SuperTrend, suggesting a bullish move.
Sell Signal: Generated when the fast SuperTrend falls below the slow SuperTrend, indicating a potential bearish move.
Alert Functionality
The indicator comes with built-in alert conditions. You can set up alerts in TradingView so that you receive notifications:
Buy Alert: When the fast SuperTrend crosses above the slow SuperTrend.
Sell Alert: When the fast SuperTrend crosses below the slow SuperTrend.
This way, you will never miss a potential trading signal.
Disclaimer
Trading involves risk, and past performance does not guarantee future results. This indicator is for educational purposes only and should not be used as the sole basis for any trading decision. Always use proper risk management and confirm signals with additional analysis before entering any trade.
Happy Trading!