Yosef26 - איתותים לכניסה ויציאה// Yosef26 - מודל מלא ל-TradingView לזיהוי נקודות כניסה ויציאה
// כולל: פתילים, ממוצעים נעים, ווליום, איתותים יציבים לגרף, והתראות
//@version=5
indicator("Yosef26 - איתותים לכניסה ויציאה", overlay=true)
// === חישובי ממוצעים ===
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema100 = ta.ema(close, 100)
ema200 = ta.ema(close, 200)
// === חישובי מבנה נר ===
priceRange = high - low
body = math.abs(close - open)
upperWick = high - math.max(close, open)
lowerWick = math.min(close, open) - low
vol = volume
volSMA = ta.sma(vol, 20)
// === תנאים לנר היפוך חיובי (כניסה) ===
entryCond = (lowerWick > priceRange * 0.4) and (close > open) and (body < priceRange * 0.35) and (close > ema100 * 0.97 and close < ema200 * 1.03) and (vol > volSMA) and (close > ema20 and close > ema50)
// === תנאים לנר היפוך שלילי (יציאה) ===
exitCond = (upperWick > priceRange * 0.4) and (close < open) and (body < priceRange * 0.35) and (close < ema50) and (vol < volSMA)
// === הצגת סימני כניסה/יציאה צמודים לנרות (עמידים לכל שינוי גרף) ===
plotshape(entryCond, title="כניסה", location=location.belowbar, style=shape.triangleup, color=color.green, size=size.normal, text="Long")
plotshape(exitCond, title="יציאה", location=location.abovebar, style=shape.triangledown, color=color.red, size=size.normal, text="Sell")
// === התראות ===
alertcondition(entryCond, title="Alert Entry", message="📥 אות כניסה לפי מודל Yosef26")
alertcondition(exitCond, title="Alert Exit", message="📤 אות יציאה לפי מודל Yosef26")
指标和策略
Guppy Multiple Moving Average (GMMA)The GMMA Momentum Indicator plots 12 EMAs on your chart, divided into two groups:
Short-term EMAs (6 lines, default periods: 3, 5, 8, 10, 12, 15): Represent short-term trader sentiment and momentum.
Long-term EMAs (6 lines, default periods: 30, 35, 40, 45, 50, 60): Reflect long-term investor behavior and broader market trends.
By analyzing the interaction between these two groups, the indicator identifies:
Bullish and bearish trends based on the relative positions of the short- and long-term EMAs.
Momentum strength through the spread or convergence of the EMAs.
Potential reversals or breakouts via compression signals.
This PineScript version enhances the traditional GMMA by adding visual cues like background colors, bearish signals, and compression detection, making it ideal for swing traders seeking clear, actionable insights.
The GMMA Momentum Indicator provides several key features:
1. Trend Identification
Bullish Trend: When the short-term EMAs (green lines) are above the long-term EMAs (blue lines) and spreading apart, it signals strong upward momentum. The chart background turns light green to highlight this condition.
Bearish Trend: When the short-term EMAs cross below the long-term EMAs and converge, it indicates downward momentum. The background turns light red, and an orange downward triangle appears above the bar to mark a new bearish signal.
2. Momentum Analysis
The spread between the short-term EMAs reflects the strength of short-term momentum. A wide spread suggests strong momentum, while a tight grouping indicates weakening momentum or consolidation. Similarly, the long-term EMAs act as dynamic support or resistance, guiding traders on the broader trend.
3. Compression Detection
Compression occurs when both the short-term and long-term EMAs converge, signaling low volatility and a potential breakout or reversal. A yellow upward triangle appears below the bar when compression is detected, alerting traders to watch for price action.
4. Visual Cues
Green short-term EMAs: Show short-term trader activity.
Blue long-term EMAs: Represent long-term investor sentiment.
Background colors: Light green for bullish trends, light red for bearish trends, and transparent for neutral conditions.
Orange downward triangles: Mark new bearish trends.
Yellow upward triangles: Indicate compression, hinting at potential breakouts.
How to Use the GMMA Momentum Indicator for Swing Trading
Swing trading involves capturing price moves over days to weeks, and the GMMA Momentum Indicator is an excellent tool for this strategy. Here’s how to use it effectively:
1. Identifying Trade Entries
Buy Opportunities:
Look for a bullish trend (green background) where the short-term EMAs are above the long-term EMAs and spreading apart, indicating strong momentum.
A compression signal (yellow triangle) followed by a breakout above resistance or a bullish candlestick pattern can confirm an entry.
Example: On a daily chart, if the short-term EMAs cross above the long-term EMAs and the background turns green, consider entering a long position, especially if volume supports the move.
Sell Opportunities:
Watch for a bearish signal (orange downward triangle) or a bearish trend (red background) where the short-term EMAs cross below the long-term EMAs.
Example: If the short-term EMAs collapse below the long-term EMAs and an orange triangle appears, it may signal a shorting opportunity or a time to exit longs.
2. Managing Trades
Use the long-term EMAs as dynamic support (in uptrends) or resistance (in downtrends) to set stop-loss levels or trail stops.
Monitor the spread of the short-term EMAs. A widening spread suggests the trend is strong, while convergence may indicate it’s time to take profits or tighten stops.
3. Anticipating Reversals
Compression signals (yellow triangles) highlight periods of low volatility, often preceding significant price moves. Combine these with price action (e.g., breakouts or reversals) or other indicators (e.g., RSI or volume) for confirmation.
Example: If a compression signal appears near a key support level and the price breaks upward, it could signal the start of a new bullish swing.
4. Best Practices
Timeframes: The indicator works well on daily or 4-hour charts for swing trading, but you can adjust the EMA periods for shorter (e.g., 1-hour) or longer (e.g., weekly) timeframes.
Confirmation: Combine the GMMA with other tools like support/resistance levels, candlestick patterns, or oscillators (e.g., MACD) to reduce false signals.
Risk Management: Always use proper position sizing and stop-losses, as EMAs are lagging indicators and may produce delayed signals in choppy markets.
2x 200MAThis indicator plots the 200-period Moving Average (SMA or EMA) and a line that represents 2x the value of the 200MA. You can switch between SMA and EMA from the settings panel.
Sector 50MA vs 200MA ComparisonThis TradingView indicator compares the 50-period Moving Average (50MA) and 200-period Moving Average (200MA) of a selected market sector or index, providing a visual and analytical tool to assess relative strength and trend direction. Here's a detailed breakdown of its functionality:
Purpose: The indicator plots the 50MA and 200MA of a chosen sector or index on a separate panel, highlighting their relationship to identify bullish (50MA > 200MA) or bearish (50MA < 200MA) trends. It also includes a histogram and threshold lines to gauge momentum and key levels.
Inputs:
Resolution: Allows users to select the timeframe for calculations (Daily, Weekly, or Monthly; default is Daily).
Sector Selection: Users can choose from a list of sectors or indices, including Tech, Financials, Consumer Discretionary, Utilities, Energy, Communication Services, Materials, Industrials, Health Care, Consumer Staples, Real Estate, S&P 500 Value, S&P 500 Growth, S&P 500, NASDAQ, Russell 2000, and S&P SmallCap 600. Each sector maps to specific ticker pairs for 50MA and 200MA data.
Data Retrieval:
The indicator fetches closing prices for the 50MA and 200MA of the selected sector using the request.security function, based on the chosen timeframe and ticker pairs.
Visual Elements:
Main Chart:
Plots the 50MA (blue line) and 200MA (red line) for the selected sector.
Fills the area between the 50MA and 200MA with green (when 50MA > 200MA, indicating bullishness) or red (when 50MA < 200MA, indicating bearishness).
Threshold Lines:
Horizontal lines at 0 (zero line), 20 (lower threshold), 50 (center), 80 (upper threshold), and 100 (upper limit) provide reference points for the 50MA's position.
Fills between 0-20 (green) and 80-100 (red) highlight key zones for potential overbought or oversold conditions.
Sector Information Table:
A table in the top-right corner displays the selected sector and its corresponding 50MA and 200MA ticker symbols for clarity.
Alerts:
Generates alert conditions for:
Bullish Crossover: When the 50MA crosses above the 200MA (indicating potential upward momentum).
Bearish Crossover: When the 50MA crosses below the 200MA (indicating potential downward momentum).
Use Case:
Traders can use this indicator to monitor the relative strength of a sector's short-term trend (50MA) against its long-term trend (200MA).
The visual fill between the moving averages and the threshold lines helps identify trend direction, momentum, and potential reversal points.
The sector selection feature allows for comparative analysis across different market segments, aiding in sector rotation strategies or market trend analysis.
This indicator is ideal for traders seeking to analyze sector performance, identify trend shifts, and make informed decisions based on moving average crossovers and momentum thresholds.
DDDDD: ATR & ADR Table + Suggested Time-based Exit📈 DDDDD: ATR & ADR Table + Suggested Time-based Exit
This indicator provides a simple yet powerful table displaying key volatility metrics for any timeframe you apply it to. It is designed for traders who want to assess the volatility of an asset, estimate the average time required for a potential move, and define a time-based exit strategy.
🔍 Features:
Displays ATR (Average True Range) for the selected length
Shows Average Range (High-Low) and Maximum Range over a configurable number of bars
Calculates Avg Bars/Move → average number of bars needed to achieve the maximum range
Calculates Recommended Exit Bars → suggested maximum holding period (in bars) before considering an exit if price hasn’t moved as expected
All values dynamically adjust based on the chart’s current timeframe
Outputs values directly in a table overlay on your main chart for quick reference
📝 How to interpret the table:
Field Meaning
ATR (14) Average True Range over the last 14 bars (volatility indicator)
Avg Range (20) Average High-Low range over the last 20 bars
Max Range Maximum High-Low range observed in the last 20 bars
Avg Bars/Move Average number of bars it takes to achieve a Max Range move
Rec. Exit Bars Suggested max holding period (bars) → consider exit if move hasn’t occurred
✅ How to use:
Apply this indicator to any chart (works on minutes, hourly, daily, weekly…)
It will automatically calculate based on the chart’s current timeframe
Use ATR & Avg Range to gauge volatility
Use Avg Bars/Move to estimate how long the market usually takes to achieve a big move
Use Rec. Exit Bars as a soft stop — if price hasn’t moved by this time, consider exiting due to declining probability of a breakout
⚠️ Notes:
All values are relative to your current chart timeframe. For example:
→ On a daily chart, ATR represents daily volatility
→ On a 1H chart, ATR represents hourly volatility
“Bars” refers to the bars of the current timeframe. Always interpret time accordingly.
Perfect for traders who want to:
Time their trades based on average volatility
Avoid overholding losing positions
Set time-based exit rules to complement price-based stoplosses
XAUUSA Sniping SMA by Time/Trend with BBPT trend alignmentThis indicator is designed to trade XAUUSD and has defaults set during the hours (Central Time) that gold usually falls and when it usually rises. Using the input form defaults and a 1 to 3 minute timeframe on your chart is best. Don't take trades during the no-trade times (white line) and do trade when the line changes to either green or red. The first few bars going with the trend are high probability but as the trend fades the line will change to orange (caution signal) when the trend is likely over for the moment. This indicator is best used with the BBPT indicator that shows bull/bear strength. When the BBPT trend line is rising, pair with the green line in this indicator and when the BBPT trend is falling pair with the red line in this indicator for some high probability trades.
VWAP & EMAs with Accurate Color LogicThis Pine Script combines multiple technical indicators to help traders analyze price movements with precision. It features:
VWAP (Volume Weighted Average Price):
Displays the 5-minute VWAP with dynamic coloring:
White when the price is neutral.
Yellow when the price closes below the 5-minute VWAP.
Red when the price closes below the 15-minute VWAP.
Helps identify potential support and resistance levels.
VWAP Crossover Dots:
Blue dots appear on the chart whenever the price crosses the 5-minute VWAP, indicating a potential change in price direction.
Exponential Moving Averages (EMAs):
EMA 5, EMA 10, and EMA 21 with soft, eye-friendly colors.
EMA 50 and EMA 200 will only be displayed if the price is near them (within 1% threshold), helping you spot key support and resistance levels when the price is close to these longer-term moving averages.
This script is designed to assist day traders and swing traders by highlighting key price levels and crossovers, making it easier to spot trends and market reversals.
Market Correlation Monitor v6 simpleIf gold and VIXM (medium term volatility) are up, we're in a risk-off regime where defensive investments do best. Likely at that time, SPY and the Nasdaq (QQQ or XLK) are down, and vice versa.
But typical asset relationships can change in volatile times like this. Using Claude and pinescript, I created a market correlation view indicator that can show you whether we're risk on or risk off, and what the relationships between oil, gold, SPY, and bitcoin are right now. It tells you when relationships decouple. Fascinating stuff, for me, as I was learning these things even exist for the first time.
Market Correlation Monitor v6 simpleIf gold and VIXM (medium term volatility) are up, we're in a risk-off regime where defensive investments do best. Likely at that time, SPY and the Nasdaq (QQQ or XLK) are down, and vice versa.
But typical asset relationships can change in volatile times like this. Using Claude and pinescript, I created a market correlation view indicator that can show you whether we're risk on or risk off, and what the relationships between oil, gold, SPY, and bitcoin are right now. It tells you when relationships decouple. Fascinating stuff, for me, as I was learning these things even exist for the first time.
Market Warning Dashboard Enhanced📊 Market Warning Dashboard Enhanced
A powerful macro risk dashboard that tracks and visualizes early signs of market instability across multiple key indicators—presented in a clean, professional layout with a real-time thermometer-style danger gauge.
🔍 Included Macro Signals:
Yield Curve Inversion: 10Y-2Y and 10Y-3M spreads
Credit Spreads: High-yield (HYG) vs Investment Grade (LQD)
Volatility Structure: VIX/VXV ratio
Breadth Estimate: SPY vs 50-day MA (as a proxy)
🔥 Features:
Real-time Danger Score: 0 (Safe) to 100 (Extreme Risk)
Descriptive warnings for each signal
Color-coded thermometer gauge
Alert conditions for each macro risk
Background shifts on rising systemic risk
⚠️ This dashboard can save your portfolio by alerting you to macro trouble before it hits the headlines—ideal for swing traders, long-term investors, and anyone who doesn’t want to get blindsided by systemic risk.
BTC vs ALT Lag Detector [MEXC Overlay]This indicator monitors the price movement of Bitcoin (BTC) and compares it in real time to a customizable list of major altcoins on the MEXC exchange.
It helps you identify lagging altcoins — tokens that are underperforming or overperforming BTC’s price action over a selected timeframe. These temporary deviations can offer profitable entry or rotation opportunities, especially for scalpers, day traders, and arbitrage-style strategies.
Key Features:
- Real-time deviation detection between BTC and altcoins
- Customizable comparison timeframe: 1m, 6m, 12m, 30m, 1h, 4h, or 1d
- Deviation threshold alert: Highlights coins that lag BTC by more than 0.5%, 1%, 2%, or 3%
- Compact stats table embedded in the price chart
- Fully adjustable layout: Table position (Top/Bottom/Center + Left/Right), Font size (Tiny, Small, Medium)
- Built-in alert system when deviation exceeds your chosen threshold
How to Use It:
Set your desired timeframe for comparison (e.g., 1 hour).
Select a deviation threshold (e.g., 1.0%).
The table will show:
Each altcoin’s % change
BTC’s % change
The delta (deviation) vs BTC
Red highlights indicate alts whose deviation exceeded the threshold.
When at least one alt lags beyond your threshold, the indicator can trigger an alert — helping you capitalize on potential catch-up trades.
Please provide any feedback on it.
FVG Alerts (Vortus)Fair Value Gaps (FVGs) represent price inefficiencies where buying and selling volumes are imbalanced, creating gaps between the wicks of consecutive candles. These gaps often act as magnets for price, as markets tend to "fill" these gaps before resuming their trend.
TTM Squeeze Overlay (Wave A/B/C Visible)This script overlays three MACD-based wave structures directly on the price chart — giving you a clear, time-based view of market momentum without needing a sub-panel.
🔴 Wave A (Short-Term) – fast reactions, shows immediate price pressure
⚫ Wave B (Mid-Term) – smoother movements, ideal for swing context
🔵 Wave C (Long-Term) – area-style macro trend overlay
All waves are dynamically scaled and centered around price action, so you don’t need to manually stretch or shift anything.
Built for traders who want trend clarity at a glance — right where it matters.
Colored SMA by Time & TrendScalping script for XAUUSD this indicator checks times in which there is a usual uptrend or downtrend for this instrument. When green, a buy is likely to be profitable (at least for a few bars) and when red, a sell is likely to be profitable (for the next few bars).
TTM Squeeze Overlay (Wave A/B/C Visible)This script overlays three MACD-based wave structures directly on the price chart — giving you a clear, time-based view of market momentum without needing a sub-panel.
🔴 Wave A (Short-Term) – fast reactions, shows immediate price pressure
⚫ Wave B (Mid-Term) – smoother movements, ideal for swing context
🔵 Wave C (Long-Term) – area-style macro trend overlay
All waves are dynamically scaled and centered around price action, so you don’t need to manually stretch or shift anything.
Built for traders who want trend clarity at a glance — right where it matters.
Variación vs Cierre MáximoChange in the highest closing price of period N versus the current closing price to see the percentage change, ideal for setting an alarm when the price rises or falls more than a certain value.
Dual ATR TargetsATR Distance Markers with Percentage Display
This powerful indicator visually displays dynamic support/resistance levels based on the ATR Trailing Stop, while providing clear percentage-based distance measurements to help traders assess risk/reward ratios at a glance.
Key Features:
🔹 Dual Distance Markers - Track two customizable distance multiples (default: 1.0x and 0.35x ATR)
🔹 Percentage-First Display - Shows percentage distances first (more intuitive for multi-timeframe analysis) with exact price differences in parentheses
🔹 Current + Previous Candle Data - Compare current levels with previous candle's values for trend confirmation
🔹 Clean Visual Presentation - Grey info box with white text for optimal readability
🔹 Customizable Settings - Adjust ATR period, multiplier, colors, and visibility
How Traders Use It:
✅ Identify potential profit targets based on volatility-adjusted distances
✅ Gauge stop-loss placement with percentage-based risk assessment
✅ Compare current vs. previous candle distances for momentum shifts
✅ Maintain consistent risk parameters across different instruments
Input Parameters:
ATR Period (default 14)
ATR Multiplier (default 1.1)
Two fully configurable distance markers
Custom colors for each marker
Perfect For:
• Swing traders looking for volatility-based targets
• Position traders managing risk across timeframes
• Anyone who prefers percentage-based analysis over fixed price distances
The indicator plots circular markers (blue) and cross markers (red) at your specified distances from the ATR trailing stop, while the info box keeps all critical data organized in one corner of your chart.
Pro Tip: Combine with trend analysis tools - the distances become more reliable when trading in the direction of the prevailing trend. The percentage display helps maintain consistent position sizing across different priced instruments.
S&P 500 Bear Markets and CorrectionsS&P 500 Corrections and Bear Markets (pullbacks/crashes) from 1970 to 2025 (May).
You are always welcome to reach out with feedback :-)
Best - Nicolai
Shade Between 9 EMA and 20 EMAThis indicator shades the area between the 9 EMA and the 20 EMA.
The wider the area of shade, the stronger the trend and momentum. If the shaded area is more narrow, that tells you to possibly take caution as there is no clear trend yet.
EMA Channel + Kangaroo Tail + Volume This all-in-one indicator combines multiple proven trading concepts into one tool:
🔸 EMA-based Price Channel (with Standard Deviation): helps identify overbought/oversold zones and channel reversals.
🔸 Kangaroo Tail Patterns: a price action setup signaling potential reversals based on wick/close structure.
🔸 Volume Confirmation Filter: filters signals when volume exceeds the average by 20% (1.2×), reducing noise.
🔸 Unconfirmed KT Highlights: shows potential Kangaroo Tails even if volume is not confirmed, so no setup is missed.
🔸 Volume Info Labels: display current and average volume on chart (toggleable).
🧠 Built with ChatGPT based on real-world trader feedback, suitable for both the Moscow Exchange and crypto markets.
✅ Best suited for:
Futures, stocks, crypto.
Timeframes: 15m – 1h, though it works across all timeframes.
🔓 Free to use & modify. If you like it — give it a star or share feedback!
Hourly FVG/iFVG ZoneMacros Price Delivery
Note: Determine short time bias and enter for a 30 40 handles runs to the minor liquidity or FVG
Trendline Break & Retest Strategy + FiltersTrendline break and retest with filters RSI
How It Works – Step-by-Step
1. Swing High & Swing Low Detection
The script looks for pivot points:
A swing high is when a high is higher than surrounding candles.
A swing low is when a low is lower than surrounding candles.
These points act as anchor points for trendlines.
2. Simulated Trendlines
Since Pine Script can’t draw truly dynamic trendlines, it mathematically simulates:
A downward resistance trendline from the last swing high.
An upward support trendline from the last swing low.
These lines estimate where resistance or support would exist if you were manually drawing trendlines.
3. Breakout Detection
The strategy checks:
If price breaks above the resistance trendline (bullish breakout).
If price breaks below the support trendline (bearish breakout).
It looks for a clean break with candle close beyond the line, not just a wick.
4. Retest Confirmation
To avoid chasing breakouts, the strategy waits for a retest:
After a breakout, price must come back close to the broken trendline (within a % tolerance).
This simulates the classic "break → retest → go" pattern.
Only after a valid retest will the strategy consider entering.
5. Technical Filters (for Better Accuracy)
Once a valid breakout + retest is detected, the strategy applies filters:
✅ RSI Filter
Go long only if RSI > 50 (bullish momentum).
Go short only if RSI < 50 (bearish momentum).
✅ Volume Filter
Only enter trades when current volume is greater than the 20-period average, ensuring market participation.
✅ EMA Trend Filter
Long trades only if price is above the 50 EMA (uptrend).
Short trades only if price is below the 50 EMA (downtrend).
This avoids going against the dominant trend.
6. Trade Execution
Entries: After all conditions are met (break, retest, filters).
Exits: Set using:
Take Profit = +2% from entry
Stop Loss = -1% from entry
You can adjust these in the script settings.
Stochastics + VixFix Buy/Sell SignalsThis script is designed for long-term investors using ETFs on a weekly timeframe, where catching high-probability bottoms is the goal. It combines the Stochastic Oscillator with the Williams VixFix to identify moments of extreme fear and potential reversals.
A Buy signal is triggered when:
Stochastic %K drops below 20
VixFix forms a green spike (suggesting a panic-driven market flush)
A Sell signal is triggered when:
Stochastic %K rises above 90
VixFix falls below 5 (indicating excessive complacency)
Catching tops is much harder than catching bottoms.
These Sell signals are not designed to fully exit positions. Instead, they suggest trimming a small portion of ETF holdings — simply to free up liquidity for future opportunities.
This strategy is ideal for:
Long-term ETF investors
Weekly charts
Systematic decision-making in volatile markets
Use in conjunction with macro indicators, sector rotation, and valuation frameworks for best results.