지표 및 전략
Four MAs with Bands Pack by Rising Falcon# **Four MAs with Bands Pack by Rising Falcon**
## **Overview**
The **Four MAs with Bands Pack** is a dynamic multi-moving average indicator designed to enhance trend identification, momentum analysis, and volatility assessment. It allows traders to configure and visualize up to four different moving averages (MAs) with an optional **higher timeframe Hull MA (HMA)** for advanced trend confirmation. The indicator also incorporates **band structures** around each MA, providing additional insights into price volatility, breakout zones, and trend strength.
---
## **Fundamental Aspects**
Moving Averages (MAs) are a foundational tool in technical analysis, widely used to **smooth out price fluctuations** and identify directional bias over time. This indicator leverages four MAs of varying lengths to **capture different time horizons** of market trends, making it useful for:
- **Short-Term Analysis (Scalping):** Fast MAs (e.g., 20, 50) respond quickly to price action, allowing traders to catch early trend shifts.
- **Mid-Term Analysis (Swing Trading):** Medium-length MAs (e.g., 100) help validate trend continuation.
- **Long-Term Analysis (Position Trading):** Slow MAs (e.g., 200) provide macro trend direction and filter noise from short-term fluctuations.
By **color-coding** the MAs based on trend direction and incorporating a **band system**, the indicator helps traders identify price momentum shifts, consolidation zones, and potential breakout opportunities.
---
## **Technical Aspects**
### **1. Configurable Moving Averages**
Each of the four MAs can be customized using three calculation methods:
- **SMA (Simple Moving Average):** A traditional average of past prices, best for stable trend confirmation.
- **EMA (Exponential Moving Average):** Gives more weight to recent price action, making it more reactive to new trends.
- **WMA (Weighted Moving Average):** Assigns greater importance to more recent data, reducing lag while maintaining smoothness.
#### **Formulae:**
1. **SMA:**
\
2. **EMA:**
\
where \( k = \frac{2}{N+1} \)
3. **WMA:**
\
where \( W_i \) is the weight assigned to each period.
Each moving average has an optional **higher timeframe setting**, allowing traders to plot an MA from a larger timeframe on their current chart for **multi-timeframe analysis (MTA)**. This is useful for confirming trends and filtering noise from lower timeframes.
---
### **2. Dynamic Bands & Volatility Visualization**
Each moving average has an associated band, defined by:
- **Upper Band:** The MA value at the current bar.
- **Lower Band:** The MA value from two bars ago (**lagging component** for trend assessment).
- **Color Coding:**
- **Green:** Uptrend (price above the moving average).
- **Red:** Downtrend (price below the moving average).
- **Orange:** Neutral (no strong trend bias).
The band thickness and transparency are customizable, helping traders **visually assess market conditions**:
- **Expanding Bands:** Increased price volatility (potential breakout).
- **Contracting Bands:** Reduced volatility (possible consolidation).
Mathematically, the **band region is defined by**:
\
This concept is similar to **Keltner Channels** or **Bollinger Bands**, but instead of standard deviations, it uses historical MA differences to capture trend momentum.
---
### **3. Trend Alerts & Crossover Signals**
To assist traders in making timely decisions, the indicator generates alerts when **fast MAs cross slow MAs**:
- **Bullish Crossover (Uptrend Confirmation):**
\
- **Bearish Crossover (Downtrend Confirmation):**
\
- These alerts can be used to set up **automated notifications** for trade entries/exits.
---
## **How to Use This Indicator**
### **Scalping Strategy**
1. Use **shorter length MAs (20, 50)** with **higher timeframe Hull MA** enabled.
2. Look for **bullish crossovers** of fast MAs over slow MAs.
3. Ensure the band is **expanding** before entering a trade.
4. Exit when the opposite crossover occurs or when bands **contract**.
### **Swing Trading Strategy**
1. Use a combination of **medium and long MAs (50, 100, 200)** for trend confirmation.
2. Look for **price pullbacks** into the bands before **trend continuation**.
3. Set alerts for **crossovers** to validate trend direction.
### **Trend Reversal Strategy**
1. Look for **bearish crossovers** near resistance levels for short trades.
2. Wait for **bullish crossovers** at support levels for long trades.
3. Confirm with **higher timeframe MA direction** to reduce false signals.
---
## **Key Benefits**
✅ **Versatile:** Works for scalping, swing trading, and trend following.
✅ **Multi-Timeframe Support:** View higher timeframe MAs for broader trend validation.
✅ **Customizable:** Adjust MA type, length, color coding, and band visibility.
✅ **Alerts:** Automatic notifications for trend shifts and crossovers.
✅ **Clear Visualization:** Helps traders identify breakout zones, volatility spikes, and reversals.
---
## **Final Thoughts**
The **Four MAs with Bands Pack by Rising Falcon** is an advanced yet intuitive tool for traders looking to enhance their trend-following strategies. By combining **multiple moving averages, band structures, and trend color coding**, it provides a comprehensive view of price action, helping traders make **informed trading decisions** with greater confidence.
🔥 مؤشر VWAP + تحديد الاتجاه 🔥📌 مميزات المؤشر:
✅ يستخدم VWAP لتحديد السعر العادل واتجاه السيولة الذكية.
✅ يحدد الاتجاه باستخدام متوسطات متحركة (EMA 50 و EMA 200).
✅ يُظهر إشارات شراء عندما يكون السعر فوق VWAP والاتجاه صاعد.
✅ يُظهر إشارات بيع عندما يكون السعر تحت VWAP والاتجاه هابط.
📌 Indicator Features:
✅ Uses VWAP to determine the fair price and direction of smart liquidity.
✅ Determines the trend using moving averages (EMA 50 and EMA 200).
✅ Shows buy signals when the price is above VWAP and the trend is up.
✅ Shows sell signals when the price is below VWAP and the trend is down.
Breakout/Breakdown Strategy//@version=5
indicator("Breakout/Breakdown Strategy", overlay=true)
// Define the time window for 9:45 AM candle
start_time = timestamp("2025-01-17 09:45 +0530") // Adjust this time for your required date and timezone
end_time = timestamp("2025-01-28 09:45 +0530") + 5 * 60 * 1000 // 5 minutes after 9:45 AM
// Get the high and low of the 9:45 AM candle
var float high_945 = na
var float low_945 = na
if (time >= start_time and time <= end_time)
high_945 := high
low_945 := low
// Entry conditions: Breakout or Breakdown
long_condition = close > high_945
short_condition = close < low_945
// Plot Buy/Sell signals
plotshape(long_condition, color=color.green, style=shape.labelup, title="Buy Signal", location=location.belowbar)
plotshape(short_condition, color=color.red, style=shape.labeldown, title="Sell Signal", location=location.abovebar)
// Stop-Loss and Target Calculation (1:3 Risk/Reward)
risk = math.abs(close - low_945)
target_long = close + (risk * 3)
target_short = close - (risk * 3)
stop_loss_long = low_945
stop_loss_short = high_945
// Plot Stop-Loss and Target on chart for long positions
plot(long_condition ? stop_loss_long : na, color=color.red, style=plot.style_line, title="Long Stop Loss", linewidth=2)
plot(long_condition ? target_long : na, color=color.green, style=plot.style_line, title="Long Target", linewidth=2)
// Plot Stop-Loss and Target on chart for short positions
plot(short_condition ? stop_loss_short : na, color=color.red, style=plot.style_line, title="Short Stop Loss", linewidth=2)
plot(short_condition ? target_short : na, color=color.green, style=plot.style_line, title="Short Target", linewidth=2)
Doji Breakout 3:1 DetectorFinds a proper doji for you to buy its high or sell its low for a 3:1 reward
MDTrader DashboardMDtrader Script that looks at moving averages, weekly and daily levels to help guide the trading day and establish a bias
Gold Scalping Basic+This script is the "Basic+ Gold Scalping Strategy," specifically designed for scalping XAUUSD on the 5-minute chart. It combines smart indicator filters with price action logic to help traders identify high-probability entries and exits. The strategy is based on market structure, trend bias, and momentum confirmation, making it ideal for short-term traders who want clarity in fast-moving gold markets.
Key Features:
Trend-based entry signals using price action
Indicator filters to avoid false setups
Works best in volatile conditions
Optimized for 5M timeframe
Includes visual signals for buy/sell zones
HTF Support & Resistance Zones📌 English Description:
HTF Support & Resistance Zones is a powerful indicator designed to auto-detect key support and resistance levels from higher timeframes (Daily, Weekly, Monthly, Yearly).
It displays the number of touches for each level and automatically classifies its strength (Weak – Strong – Very Strong) with full customization options.
✅ Features:
Auto-detection of support/resistance from HTFs
Strength calculation based on touch count
Clean visual display with color, size, and label customization
Ideal for scalping and intraday trading
📌 الوصف العربي:
مؤشر "HTF Support & Resistance Zones" يساعد المتداولين على تحديد أهم مناطق الدعم والمقاومة المستخرجة تلقائيًا من الفريمات الكبيرة (اليومي، الأسبوعي، الشهري، السنوي).
يعرض المؤشر عدد اللمسات لكل مستوى ويقيّم قوته تلقائيًا (ضعيف – قوي – قوي جدًا)، مع خيارات تخصيص كاملة للعرض.
✅ ميزات المؤشر:
دعم/مقاومة تلقائية من الفريمات الكبيرة
تقييم تلقائي لقوة المستويات بناءً على عدد اللمسات
عرض مرئي مرن مع تحكم بالألوان، الحجم، الشكل، والخلفية
مناسب للتداولات اليومية والسكالبينج
Enhanced RSI, VWAP, Pivot Points,BB, Supertrend & SAREnhanced Adaptive RSI with VWAP, Pivots, Bollinger Bands, Supertrend & SAR
This comprehensive trading indicator offers a multi-faceted approach to market analysis, combining multiple adaptive and traditional technical indicators to enhance decision-making. It is ideal for traders looking to gain insights into price momentum, support and resistance levels, and potential trend reversals.
Key Features and Benefits
Adaptive RSI (ARSI)
Tracks market momentum using an adaptive Relative Strength Index, which responds to changing market conditions.
Smoothed with a Simple Moving Average for better clarity.
Provides buy and sell signals with clear visual markers.
VWAP (Volume Weighted Average Price)
Displays Daily, Weekly, Monthly, and Approximate Quarterly VWAP levels.
Useful for identifying fair market value and institutional activity.
Pivot Points with Camarilla S3 and R3
Calculates dynamic support and resistance levels.
Helps traders set effective entry and exit points.
Adaptive Bollinger Bands
Adjusts dynamically to market volatility.
Helps traders identify overbought and oversold conditions.
Adaptive Supertrend
Generates trend-following signals based on volatility-adjusted values.
Provides clear buy and sell markers with color-coded trend identification.
Adaptive Parabolic SAR
Assists in trailing stop-loss placement and identifying trend reversals.
Particularly useful in trending markets.
How to Use
Trend Identification: Follow the Supertrend and SAR for clear directional bias.
Support and Resistance: Use Pivot Points and VWAP levels to gauge market sentiment.
Volatility Management: Monitor Bollinger Bands for breakout or reversal opportunities.
Momentum Analysis: Track ARSI movements for early signals of trend continuation or reversal.
This indicator is a powerful all-in-one solution for day traders, swing traders, and even longer-term investors who want to optimize their trading strategy.
Scalping Sniper Entry NUMMY//@version=6
indicator("Scalping Sniper Entry NUMMY", overlay=true)
// === CONFIG ===
sl_points = 5
tp_points = 300
entry_offset = 100
max_distance = 20
// === TIME FILTER (NY 7AM–12PM) ===
startHour = 7
endHour = 12
ny_timezone = "America/New_York"
startSession = timestamp(ny_timezone, year, month, dayofmonth, startHour, 0)
endSession = timestamp(ny_timezone, year, month, dayofmonth, endHour, 0)
inSession = time >= startSession and time <= endSession
// === NEW DAY DETECTION ===
var bool tradeExecutedToday = false
isNewDay = ta.change(time("D")) != 0
if isNewDay
tradeExecutedToday := false
// === ENTRY LOGIC ===
entryPrice = close - entry_offset
sl = entryPrice - sl_points
tp = entryPrice + tp_points
proximity = math.abs(close - entryPrice) <= max_distance
smallBody = math.abs(close - open) <= (high - low) * 0.3
zoneConfirmed = proximity and smallBody and not tradeExecutedToday and inSession
// === VISUAL SIGNAL ===
if zoneConfirmed
label.new(bar_index, entryPrice, text="Entry: $" + str.tostring(entryPrice), style=label.style_label_up, color=color.green, textcolor=color.white)
line.new(bar_index, entryPrice, bar_index + 10, entryPrice, color=color.green, width=2)
line.new(bar_index, sl, bar_index + 10, sl, color=color.red, width=1)
line.new(bar_index, tp, bar_index + 10, tp, color=color.blue, width=1)
tradeExecutedToday := true
plotshape(zoneConfirmed, title="Entry Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
// === ALERT ===
alertcondition(zoneConfirmed, title="Sniper Entry Alert", message="Sniper entry detected")
JPMorgan Collar LevelsJPMorgan Collar Levels – SPX/SPY Auto-Responsive (Quarterly Logic)
This script tracks the JPMorgan Hedged Equity Fund collar strategy, one of the most watched institutional positioning tools on SPX/SPY. The strategy rolls quarterly and often acts as a magnet or resistance/support zone for price.
Smart Money RTM MACD Divergence//@version=5
indicator("Smart Money RTM MACD Divergence", overlay=true)
// MACD Calculation
fastLength = 12
slowLength = 26
signalSmoothing = 9
source = close
= ta.macd(source, fastLength, slowLength, signalSmoothing)
// Detect MACD Divergence with Better Confirmation
macdHigh = ta.highest(macdLine, 20)
macdLow = ta.lowest(macdLine, 20)
priceHigh = ta.highest(high, 20)
priceLow = ta.lowest(low, 20)
bullishDiv = priceLow < ta.valuewhen(priceLow, 1, 1) and macdLine > ta.valuewhen(macdLow, 1, 1) and ta.rising(macdLine, 3)
bearishDiv = priceHigh > ta.valuewhen(priceHigh, 1, 1) and macdLine < ta.valuewhen(macdHigh, 1, 1) and ta.falling(macdLine, 3)
// Return to Mean (RTM) using 50 EMA with Confirmation
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200) // Additional Trend Confirmation
atr = ta.atr(14) // Volatility Filter
rtmBuy = close < ema50 and ta.crossover(macdLine, signalLine) and close > ema200 and ta.barssince(ta.lowest(close, 10)) < 5
rtmSell = close > ema50 and ta.crossunder(macdLine, signalLine) and close < ema200 and ta.barssince(ta.highest(close, 10)) < 5
// Plot Buy and Sell Signals with Filters
plotshape(series=bullishDiv or rtmBuy, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", size=size.small)
plotshape(series=bearishDiv or rtmSell, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", size=size.small)
// Plot EMA 50 and EMA 200 for reference
plot(ema50, title="50 EMA", color=color.blue)
plot(ema200, title="200 EMA", color=color.orange)
3 EMAs with Price Action by Sap KarCombines three EMAs with Price Action. Price action visible as GREEN and RED ARROWS below and above bars.
Buy when bars start forming above 9,21 emas GREEN arrows starts forming below bars.
Sell when bars start forming below 9,21 emas RED arrows starts forming above bars.
ATR Probability + MAs + Bollinger Bands PROATR Probability + MAs + Bollinger Bands
Made by DeepSeek))
Volume Delta Divergence + Bollinger Bands (Filtered)📌 Volume Delta Divergence with Bollinger Bands (Filtered)
This script combines Volume Delta Divergence detection with Bollinger Bands to help identify high-probability buy and sell signals based on volume behavior and price action.
🔍 Key Features:
✅ Divergence Detection: Identifies when price moves in one direction (green/red candle), but the delta volume (buy vs sell volume) moves in the opposite direction — a common sign of hidden weakness or strength.
✅ Volume Strength Filter: Filters out weak divergence signals by checking if the delta volume is significantly larger than its historical average (user-defined lookback).
✅ Breakout Confirmation: A signal is only triggered when the next candle breaks the high or low of the divergence candle.
✅ Bollinger Bands Overlay: Adds standard Bollinger Bands (20-period SMA ± 2 standard deviations by default) for trend and volatility analysis.
✅ Clean Signal Display: Plots "BUY" and "SELL" labels only when strong divergences occur, reducing noise and false signals.
⚙️ User Inputs:
Custom timeframe for volume delta analysis
Delta volume average lookback period
Bollinger Band settings (length & deviation)
🧠 How to Use:
Use the divergence signals in conjunction with Bollinger Band positioning.
Consider SELL signals stronger when they occur near the upper Bollinger Band, and BUY signals near the lower band.
Combine with price action or RSI for added confluence.
Candle Height & Trend Probability DashboardDescription and Guide
Description:
This Pine Script for TradingView displays a dashboard that calculates the probability of price increases or decreases based on past price movements. It analyzes the last 30 candles (by default) and shows the probabilities for different timeframes (from 1 minute to 1 week). Additionally, it checks volatility using the ATR indicator.
Script Features:
Calculates probabilities of an upward (Up %) or downward (Down %) price move based on past candles.
Displays a dashboard showing probabilities for multiple timeframes.
Color-coded probability display:
Green if the upward probability exceeds a set threshold.
Red if the downward probability exceeds the threshold.
Yellow if neither threshold is exceeded.
Considers volatility using the ATR indicator.
Triggers alerts when probabilities exceed specific values.
How to Use:
Insert the script into TradingView: Copy and paste the script into the Pine Script editor.
Adjust parameters:
lookback: Number of past candles used for calculation (default: 30).
alertThresholdUp & alertThresholdDown: Thresholds for probabilities (default: 51%).
volatilityLength & volatilityThreshold: ATR volatility settings.
dashboardPosition: Choose where the dashboard appears on the chart.
Enable visualization: The dashboard will be displayed over the chart.
Set alerts: The script triggers notifications when probabilities exceed set thresholds.
Open Price on Selected TimeframeIndicator Name: Open Price on Selected Timeframe
Short Title: Open Price mtf
Type: Technical Indicator
Description:
Open Price on Selected Timeframe is an indicator that displays the Open price of a specific timeframe on your chart, with the ability to dynamically change the color of the open price line based on the change between the current candle's open and the previous candle's open.
Selectable Timeframes: You can choose the timeframe you wish to monitor the Open price of candles, ranging from M1, M5, M15, H1, H4 to D1, and more.
Dynamic Color Change: The Open price line changes to green when the open price of the current candle is higher than the open price of the previous candle, and to red when the open price of the current candle is lower than the open price of the previous candle. This helps users quickly identify trends and market changes.
Features:
Easy Timeframe Selection: Instead of editing the code, users can select the desired timeframe from the TradingView interface via a dropdown.
Dynamic Color Change: The color of the Open price line changes automatically based on whether the open price of the current candle is higher or lower than the previous candle.
Easily Track Open Price Levels: The indicator plots a horizontal line at the Open price of the selected timeframe, making it easy for users to track this important price level.
How to Use:
Select the Timeframe: Users can choose the timeframe they want to track the Open price of the candles.
Interpret the Color Signal: When the open price of the current candle is higher than the open price of the previous candle, the Open price line is colored green, signaling an uptrend. When the open price of the current candle is lower than the open price of the previous candle, the Open price line turns red, signaling a downtrend.
Observe the Open Price Levels: The indicator will draw a horizontal line at the Open price level of the selected timeframe, allowing users to easily monitor this important price.
Benefits:
Enhanced Technical Analysis: The indicator allows you to quickly identify trends and market changes, making it easier to make trading decisions.
User-Friendly: No need to modify the code; simply select your preferred timeframe to start using the indicator.
Disclaimer:
This indicator is not a complete trading signal. It only provides information about the Open price and related trends. Users should combine it with other technical analysis tools to make more informed trading decisions.
Summary:
Open Price on Selected Timeframe is a simple yet powerful indicator that helps you track the Open price on various timeframes with the ability to change colors dynamically, providing a visual representation of the market's trend.
DAMA OSC - Directional Adaptive MA OscillatorOverview:
The DAMA OSC (Directional Adaptive MA Oscillator) is a highly customizable and versatile oscillator that analyzes the delta between two moving averages of your choice. It detects trend progression, regressions, rebound signals, MA cross and critical zone crossovers to provide highly contextual trading information.
Designed for trend-following, reversal timing, and volatility filtering, DAMA OSC adapts to market conditions and highlights actionable signals in real-time.
Features:
Support for 11 custom moving average types (EMA, DEMA, TEMA, ALMA, KAMA, etc.)
Customizable fast & slow MA periods and types
Histogram based on percentage delta between fast and slow MA
Trend direction coloring with “Green”, “Blue”, and “Red” zones
Rebound detection using close or shadow logic
Configurable thresholds: Overbought, Oversold, Underbought, Undersold
Optional filters: rebound validation by candle color or flat-zone filter
Full visual overlay: MA lines, crossover markers, rebound icons
Complete alert system with 16 preconfigured conditions
How It Works:
Histogram Logic:
The histogram measures the percentage difference between the fast and slow MA:
hist_value = ((FastMA - SlowMA) / SlowMA) * 100
Trend State Logic (Green / Blue / Red):
Green_Up = Bullish acceleration
Blue_Up (or Red_Up, depending the display settings) = Bullish deceleration
Blue_Down (or Green_Down, depending the display settings) = Bearish deceleration
Red_Down = Bearish acceleration
Rebound Logic:
A rebound is detected when price:
Crosses back over a selected MA (fast or slow)
After being away for X candles (rebound_backstep)
Optional: filtered by histogram zones or candle color
Inputs:
Display Options:
Show/hide MA lines
Show/hide MA crosses
Show/hide price rebounds
Enable/disable blue deceleration zones
DAMA Settings:
Fast/Slow MA type and length
Source input (close by default)
Overbought/Oversold levels
Underbought/Undersold levels
Rebound Settings:
Use Close and/or Shadow
Rebound MA (Fast/Slow)
Candle color validation
Flat zone filter rebounds (between UnderSold and UnderBought)
Available MA type:
SMA (Simple MA)
EMA (Exponential MA)
DEMA (Double EMA)
TEMA (Triple EMA)
WMA (Weighted MA)
HMA (Hull MA)
VWMA (Volume Weighted MA)
Kijun (Ichimoku Baseline)
ALMA (Arnaud Legoux MA)
KAMA (Kaufman Adaptive MA)
HULLMOD (Modified Hull MA, Same as HMA, tweaked for Pine v6 constraints)
Notes:
**DEMA/TEMA** reduce lag compared to EMA, useful for faster reaction in trending markets.
**KAMA/ALMA** are better suited to noisy or volatile environments (e.g., BTC).
**VWMA** reacts strongly to volume spikes.
**HMA/HULLMOD** are great for visual clarity in fast moves.
Alerts Included (Fully Configurable):
Golden Cross:
Fast MA crosses above Slow MA
Death Cross:
Fast MA crosses below Slow MA
Bullish Rebound:
Rebound from below MA in uptrend
Bearish Rebound:
Rebound from above MA in downtrend
Bull Progression:
Transition into Green_Up with positive delta
Bear Progression:
Transition into Red_Down with negative delta
Bull Regression:
Exit from Red_Down into Blue/Green with negative delta
Bear Regression:
Exit from Green_Up into Blue/Red with positive delta
Crossover Overbought:
Histogram crosses above Overbought
Crossunder Overbought:
Histogram crosses below Overbought
Crossover Oversold:
Histogram crosses above Oversold
Crossunder Oversold:
Histogram crosses below Oversold
Crossover Underbought:
Histogram crosses above Underbought
Crossunder Underbought:
Histogram crosses below Underbought
Crossover Undersold:
Histogram crosses above Undersold
Crossunder Undersold:
Histogram crosses below Undersold
Credits:
Created by Eff_Hash. This code is shared with the TradingView community and full free. do not hesitate to share your best settings and usage.
ScalpingSniperEntry NUMMYF(Rbound+BoutRtest)1%TP/0.5%SL//@version=6
indicator("ScalpingSniperEntry NUMMYF(Rbound+BoutRtest)1%TP/0.5%SL", overlay=true)
// === CONFIG ===
percent_tp = 1.0 // Take profit: 1%
percent_sl = 0.5 // Stop loss: 0.5%
entry_offset = 100 // Offset to simulate rebound entry detection
max_distance = 20 // Proximity sensitivity for confirmations
// === TIME FILTER (NY 7AM–12PM) ===
startHour = 7
endHour = 12
ny_timezone = "America/New_York"
startSession = timestamp(ny_timezone, year, month, dayofmonth, startHour, 0)
endSession = timestamp(ny_timezone, year, month, dayofmonth, endHour, 0)
inSession = time >= startSession and time <= endSession
// === NEW DAY DETECTION ===
var bool tradeExecutedToday = false
var bool tradeClosedToday = false
isNewDay = ta.change(time("D")) != 0
if isNewDay
tradeExecutedToday := false
tradeClosedToday := false
// === TRACKING ===
var float entryPrice = na
var float slPrice = na
var float tpPrice = na
var string tradeResult = ""
var int wins = 0
var int losses = 0
// === SNIPER ENTRY (REBOUND) ===
reboundLevel = close - entry_offset
proximityRebound = math.abs(close - reboundLevel) <= max_distance
smallBody = math.abs(close - open) <= (high - low) * 0.3
entryRebound = proximityRebound and smallBody and not tradeExecutedToday and inSession
// === BREAKOUT RETEST ENTRY ===
breakoutLevel = high + 20
isBreakout = close > breakoutLevel and (high - low) > (high - low ) * 1.5
retestProximity = math.abs(close - high ) <= max_distance
entryBreakoutRetest = isBreakout and retestProximity and smallBody and not tradeExecutedToday and inSession
// === ENTRY EXECUTION ===
entryConfirmed = entryRebound or entryBreakoutRetest
if entryConfirmed
entryPrice := close
tpPrice := entryPrice * (1 + percent_tp / 100)
slPrice := entryPrice * (1 - percent_sl / 100)
entryLabel = entryRebound ? "REBOUND ENTRY" : "BREAKOUT RETEST ENTRY"
entryColor = entryRebound ? color.green : color.orange
label.new(bar_index, entryPrice, text=entryLabel + " BUY NOW 🟢", style=label.style_label_up, color=entryColor, textcolor=color.white)
line.new(bar_index, entryPrice, bar_index + 10, entryPrice, color=entryColor, width=2)
line.new(bar_index, tpPrice, bar_index + 10, tpPrice, color=color.blue, width=1)
line.new(bar_index, slPrice, bar_index + 10, slPrice, color=color.red, width=1)
tradeExecutedToday := true
// === EXIT DETECTION ===
tpHit = not tradeClosedToday and not na(tpPrice) and high >= tpPrice
slHit = not tradeClosedToday and not na(slPrice) and low <= slPrice
if tpHit
label.new(bar_index, tpPrice, text="✅ TAKE PROFIT HIT", style=label.style_label_up, color=color.blue, textcolor=color.white)
tradeResult := "Win"
wins := wins + 1
tradeClosedToday := true
entryPrice := na
tpPrice := na
slPrice := na
if slHit
label.new(bar_index, slPrice, text="❌ STOP LOSS HIT", style=label.style_label_down, color=color.red, textcolor=color.white)
tradeResult := "Loss"
losses := losses + 1
tradeClosedToday := true
entryPrice := na
tpPrice := na
slPrice := na
// === DAILY SUMMARY ===
sessionEnd = time == endSession
if sessionEnd
winrate = wins + losses > 0 ? (wins * 100) / (wins + losses) : 0.0
summaryText = "──── SNIPER REPORT ──── " +
"Date: " + str.tostring(year) + "/" + str.tostring(month) + "/" + str.tostring(dayofmonth) + " " +
"Trade: " + (tradeExecutedToday ? "Executed" : "No Trade") + " " +
"Result: " + tradeResult + " " +
"Wins: " + str.tostring(wins) + " | Losses: " + str.tostring(losses) + " " +
"Winrate: " + str.tostring(winrate, '#.##') + "% " +
"────────────────────────"
label.new(bar_index, high + 10, text=summaryText, style=label.style_label_left, color=color.gray, textcolor=color.white)
tradeResult := ""
// === ALERTS ===
alertcondition(entryConfirmed, title="Sniper Entry", message="Sniper entry detected")
alertcondition(tpHit, title="Take Profit Alert", message="TP Hit: Exit with profit")
alertcondition(slHit, title="Stop Loss Alert", message="SL Hit: Exit with loss")
// === SHAPES ===
plotshape(entryRebound, title="Rebound Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(entryBreakoutRetest, title="Breakout Retest Signal", location=location.belowbar, color=color.orange, style=shape.triangleup, size=size.small)
Asia Session Trap & Fade (v6 FULL with Auto OB & FVG)@version=6
indicator("Asia Session Trap & Fade (v6 FULL with Auto OB & FVG)", overlay=true)
// === INPUTS === //
startHour = input.int(20, title="Asia Session Start Hour (UTC)")
startMin = input.int(30, title="Asia Session Start Minute")
endHour = input.int(23, title="Asia Session End Hour (UTC)")
endMin = input.int(30, title="Asia Session End Minute")
// === FIX for built-in conflicts === //
myYear = year(time)
myMonth = month(time)
myDay = dayofmonth(time)
// === TIME RANGE === //
session_start = timestamp("UTC", myYear, myMonth, myDay, startHour, startMin)
session_end = timestamp("UTC", myYear, myMonth, myDay, endHour, endMin)
in_session = time >= session_start and time <= session_end
// === TRACK ASIA SESSION HIGH & LOW === //
var float asiaHigh = na
var float asiaLow = na
asiaHigh := in_session ? na(asiaHigh) ? high : math.max(asiaHigh, high) : na
asiaLow := in_session ? na(asiaLow) ? low : math.min(asiaLow, low) : na
if not in_session
asiaHigh := na
asiaLow := na
plot(in_session ? asiaHigh : na, title="Asia High", color=color.red, linewidth=1)
plot(in_session ? asiaLow : na, title="Asia Low", color=color.green, linewidth=1)
plot(in_session ? (asiaHigh + asiaLow) / 2 : na, title="Asia Midline", color=color.orange, linewidth=1)
bgcolor(in_session ? color.new(color.purple, 85) : na)
// === PREVIOUS DAY HIGH/LOW === //
previousHigh = request.security(syminfo.tickerid, "D", high )
previousLow = request.security(syminfo.tickerid, "D", low )
plot(previousHigh, title="Previous Day High", color=color.fuchsia, linewidth=1)
plot(previousLow, title="Previous Day Low", color=color.aqua, linewidth=1)
// === SWEEP DETECTION === //
sweepHigh = ta.crossover(high, asiaHigh )
sweepLow = ta.crossunder(low, asiaLow )
plotshape(sweepHigh, title="Asia High Sweep", location=location.abovebar, color=color.red, style=shape.triangleup, size=size.small)
plotshape(sweepLow, title="Asia Low Sweep", location=location.belowbar, color=color.green, style=shape.triangledown, size=size.small)
// === BOS DETECTION === //
var float prevSwingHigh = na
var float prevSwingLow = na
prevSwingHigh := high > high and high > high ? high : prevSwingHigh
prevSwingLow := low < low and low < low ? low : prevSwingLow
bosUp = ta.crossover(close, prevSwingHigh)
bosDown = ta.crossunder(close, prevSwingLow)
plotshape(bosUp, title="BOS Up", location=location.abovebar, style=shape.labelup, color=color.blue, text="BOS↑")
plotshape(bosDown, title="BOS Down", location=location.belowbar, style=shape.labeldown, color=color.purple, text="BOS↓")
// === FVG ZONES (Auto Rectangle Drawing) === //
var fvg_top = array.new_float()
var fvg_bot = array.new_float()
var fvg_time = array.new_int()
bullishFVG = low > high
bearishFVG = high < low
if bullishFVG
array.push(fvg_top, low)
array.push(fvg_bot, high )
array.push(fvg_time, bar_index)
if bearishFVG
array.push(fvg_top, low )
array.push(fvg_bot, high)
array.push(fvg_time, bar_index)
max_zones = 5
for i = 0 to math.min(array.size(fvg_top) - 1, max_zones - 1)
top = array.get(fvg_top, i)
bot = array.get(fvg_bot, i)
t = array.get(fvg_time, i)
var box b = na
b := box.new(left=t, right=bar_index, top=top, bottom=bot, border_color=color.new(color.teal, 0), bgcolor=color.new(color.teal, 85))
box.set_right(b, bar_index)
// === ORDER BLOCK (Auto Box Drawing) === //
var ob_top = array.new_float()
var ob_bot = array.new_float()
var ob_time = array.new_int()
isBullishOB = close < open and close > high
isBearishOB = close > open and close < low
if isBullishOB
array.push(ob_top, open )
array.push(ob_bot, low )
array.push(ob_time, bar_index)
if isBearishOB
array.push(ob_top, high )
array.push(ob_bot, open )
array.push(ob_time, bar_index)
for i = 0 to math.min(array.size(ob_top) - 1, max_zones - 1)
otop = array.get(ob_top, i)
obot = array.get(ob_bot, i)
ot = array.get(ob_time, i)
var box ob = na
ob := box.new(left=ot, right=bar_index, top=otop, bottom=obot, border_color=color.new(color.orange, 0), bgcolor=color.new(color.orange, 85))
box.set_right(ob, bar_index)
Volume Delta DashboardHow It Works:
This script creates a Volume Delta Dashboard on TradingView, which helps traders visualize the balance between buying and selling volume (Volume Delta) directly on the chart. Here's a breakdown of the key components:
Volume Delta Calculation:
The script calculates the Volume Delta by comparing the volume of bars where the price closed higher (buying pressure) to those where the price closed lower (selling pressure).
Positive Volume Delta (green background) indicates more buying activity than selling, suggesting upward price movement. Negative Volume Delta (red background) indicates more selling than buying, signaling a potential downward move.
Smoothing with EMA:
To make the volume delta trend smoother and more consistent, an Exponential Moving Average (EMA) of the Volume Delta is used. This helps to reduce noise and highlight the prevailing buying or selling pressure over a 14-period.
Dynamic Position Selection:
The user can choose where the Volume Delta dashboard table will appear on the chart by selecting a position: top-left, top-right, bottom-left, or bottom-right. This makes the indicator adaptable to different chart setups.
Coloring:
The background of the table changes color based on the value of the Volume Delta. Green indicates a positive delta (more buyers), and Red indicates a negative delta (more sellers).
Use of This Strategy:
This Volume Delta Dashboard strategy is particularly useful for traders who want to:
Monitor Market Sentiment:
By observing the volume delta, traders can get a sense of whether there is more buying or selling pressure in the market. Positive volume delta can indicate a bullish sentiment, while negative delta can point to bearish sentiment.
Confirm Price Action:
The Volume Delta can be used alongside price action to confirm the strength of a price move. For example, if the price is moving up and the volume delta is positive, it suggests that the price increase is supported by buying pressure.
Identify Divergences:
Volume delta can help traders spot divergences between price and volume. For example, if the price is moving higher but the volume delta is negative, it may suggest a weakening trend and a potential reversal.
Optimize Entry/Exit Points:
By understanding the relationship between price movement and volume, traders can make more informed decisions about entering or exiting positions. For instance, a sudden increase in buying volume (positive delta) may indicate a good entry point for a long position.
Overall, the Volume Delta Dashboard can serve as a powerful tool for improving decision-making, by providing real-time insights into market dynamics and trading sentiment.
EURUSD Swing High/Low ProjectionBikini Bottom custom projection tool. Aimed to project tops and bottoms. Don't use unless you understand how it works :)
ATR Daily Progress 180Calculates the average number of points that the price has passed over the selected number of days, and also shows how much has already passed today in points and percentages.
The number of days can be adjusted at your discretion.
P.S. It does not work correctly on metals, stocks and crypto in terms of displaying items. But the percentages are shown correctly.