VWAP + 2-Bar 9 EMA + Secondary MA System✅1. VWAP + 9 EMA Trend System
Detects when the 9 EMA crosses above or below the VWAP.
Bullish cross (9 EMA above VWAP with price confirmation) triggers a green vertical line and "VWAP BUY" label.
Bearish cross triggers a red vertical line and "VWAP SELL" label.
Use this to identify major trend shifts and momentum changes.
✅2-Bar EMA Signal System (Clean Entry/Exit Triggers)
Buy signal: When the previous two closes are above the 9 EMA.
Sell signal: When the previous two closes are below the 9 EMA.
One signal per direction: Prevents clutter by avoiding duplicate signals during trend continuation.
Great for cleaner entries after confirmation or for short-term directional bias.
✅3. Secondary Moving Average (Optional)
Select from SMA, EMA, WMA, VWMA, or RMA.
Customize the length (commonly used for 100 or 200 MA).
Use as a long-term trend filter or additional confluence.
🎛 Customization Options:
Toggle each system on or off independently
Choose secondary MA type and length
View or hide individual lines: VWAP, 9 EMA, secondary MA
Alert-ready for all buy/sell signals
🧠 Ideal For:
Trend traders
Reversal traders
Confirmation-based entries
Intraday and swing trading
Volume
VWAP with EMA Cross + Dynamic Colorupdated version of the vwap plus with 9ema cross and changes color based on if price is above or blow vwap . and a floating bullish or bearish sign to stay on right side of market
SMA Trend Panel// This indicator presents a compact panel for traders, combining SMA-based trend tracking and key volume/momentum technical indicators.
// The panel displays short-, mid-, and long-term SMAs (13, 50, 200), MACD, ADX, Stochastic RSI,
// OBV, CMF, volume change, weekly/monthly pivot levels, and ATR (volatility) directly on the chart.
// Each cell shows the current condition of its indicator with a symbol: positive (✅), negative (❌), or neutral (🔄).
// It is designed for traders who want to quickly assess overall technical conditions at a glance.
Custom VWAPThe Custom VWAP indicator provides traders with a streamlined approach to tracking Volume Weighted Average Price (VWAP) across multiple timeframes. Unlike standard VWAP indicators that limit users to a single timeframe, this tool allows multiple VWAPs to be enabled simultaneously, including Session, Weekly, Monthly, Yearly, and an RTH (Regular Trading Hours) VWAP.
Features:
Multi-Timeframe Support: Enable or disable individual VWAPs without adding multiple indicators.
RTH VWAP Option: Includes a dedicated RTH VWAP, which is not available in the standard TradingView VWAP tool.
Customizable Labels & Styling: Adjust colors, line widths, and label placements to match your charting preferences, keeping the chart organized.
Horizontal VWAP Lines: Optional horizontal lines provide clear price level visualization.
Automatic Reset: VWAPs update at the start of each session, week, month, or year, ensuring accurate calculations without manual adjustments.
This indicator is useful for traders who rely on VWAP levels for decision-making while keeping their charts clean and efficient.
Turnover in CroreA simple indicator for turnover in crores.
You can set a threshold volume of your choice, and the indicator will display volumes below this threshold in red and volumes above it in green.
MÈGAS ALGO : ZIG-ZAG CYCLE INSIGTH [INDICATOR]Overview
The Zig-Zag Cycle Insigth is a revisited version of the classic Zig Zag indicator, designed to provide traders with a more comprehensive and actionable view of price movements.
This advanced tool not only highlights significant price swings but also incorporates additional features such as cycle analysis, real-time data tracking, and Fibonacci retracement levels. These enhancements make it an invaluable resource for identifying trends, potential reversal points, and market structure.
This indicator adheres to TradingView's guidelines and is optimized for both technical analysts and active traders who seek deeper insights into market dynamics.
Key Features:
1. Customizable Thresholds for Price Movements:
- Users can set personalized thresholds for price movement percentages and time periods.
This ensures that only significant price swings are plotted, reducing noise and increasing
clarity.
- Straight lines connect swing highs and lows, providing a cleaner visual representation of
the trend.
2. Cycle Analysis Table:
- A dynamic table is included to analyze price cycles based on three key factors:
- Price Change: Measures the magnitude of each swing (high-to-low or low-to-high).
- Time Duration (Bar Count): Tracks the number of bars elapsed between consecutive swings,
offering precise timing insights.
- Volume: Analyzes trading volume during each segment of the cycle.
- The indicator calculates the **maximum**, **minimum**, and **mean** values for each
parameter across all completed cycles, providing deeper statistical insights into market
behavior.
- This table updates in real-time, offering traders a quantitative understanding of how price
behaves over different cycles.
3. Real-Time Data Integration:
- The indicator displays live updates of current price action relative to the last identified
swing high/low. This includes:
- Current distance from the last pivot point.
- Percentage change since the last pivot.
- Volume traded since the last pivot.
4. Fibonacci Retracement Levels:
- Integrated Fibonacci retracement levels are dynamically calculated based on the most
recent significant swing high and low.
- Key retracement levels (23.6%, 38.2%, 50%, 61.8%, and 78.6%) are plotted alongside the Zig
Zag lines, helping traders identify potential support/resistance zones.
- Extension levels (100%, 161.8%, etc.) are also included to anticipate possible breakout
targets.
5. Customizable Alerts:
- Users can configure alerts for specific real-time conditions, such as:
- Price Change
- Duration
- Volume
- Fibonacci Retracement Levels
How It Works:
1. Zig Zag Identification:
- The indicator scans historical price data to identify significant turning points where the
price moves by at least the user-defined percentage threshold.
- These turning points are connected by straight lines to form the Zig Zag pattern.
2. Cycle Analysis:
For each completed cycle (from one swing high/low to the next), the indicator calculates:
- Price Change: Difference between the start and end prices of the cycle.
- Maximum Price Change: The largest price difference observed across all cycles.
- Minimum Price Change: The smallest price difference observed across all cycles.
- Mean Price Change: The average price difference across all cycles.
- Time Duration (Bar Count): Number of bars elapsed between consecutive swings.
- Maximum Duration: The longest cycle in terms of bar count.
- Minimum Duration: The shortest cycle in terms of bar count.
- Mean Duration: The average cycle length in terms of bar count.
- Volume: Total volume traded during the cycle.
- Maximum Volume: The highest volume traded during any single cycle.
- Minimum Volume: The lowest volume traded during any single cycle.
- Mean Volume: The average volume traded across all cycles.
- These calculations provide traders with a statistical overview of market behavior, enabling
them to identify patterns and anomalies in price, time, and volume.
3. Fibonacci Integration:
- Once a new swing high or low is identified, the indicator automatically calculates Fibonacci
retracement and extension levels.
- These levels serve as reference points for potential entry/exit opportunities.
4. Real-Time Updates:
- As the market evolves, the indicator continuously monitors the relationship between the
current price and the last identified swing point.
- Real-time metrics, such as percentage change and volume, are updated dynamically.
5. Alerts Based on Real-Time Parameters:
- The indicator allows users to set customizable alerts based on real-time conditions:
- Price Change Alert: Triggered when the real-time price change is less or greater than a
predefined percentage threshold (e.g., > or < fixed value).
- Duration Alert: Triggered when the cycle duration (in bars) is less or greater than a
predefined
bar count threshold (e.g., > or < fixed value).
- Volume Alert: Triggered when the trading volume during the current cycle is less or greater
than a predefined volume threshold (e.g., > or < fixed value).
Advantages of Zig-Zag Cycle Insigth
- Comprehensive Insights: Combining cycle analysis, Fibonacci retracements, and real-time data
provides a holistic view of market conditions.
- Statistical Analysis: The inclusion of maximum, minimum, and mean values for price change,
duration, and volume offers deeper insights into market behavior.
- Actionable Signals: Customizable alerts ensure traders never miss critical market events based
on real-time price, duration, and volume parameters.
- User-Friendly Design: Clear visuals and intuitive controls make it accessible for traders of all
skill levels.
Reference:
TradingView/ZigZag
TradingView/AutofibRetracement
Please Note:
This indicator is provided for informational and educational purposes only. It is not financial advice, and it should not be considered a recommendation to buy, sell, or trade any financial instrument. Trading involves significant risks, including the potential loss of your entire investment. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
The results and images provided are based on algorithms and historical/paid real-time market data but do not guarantee future results or accuracy. Use this tool at your own risk, and understand that past performance is not indicative of future outcomes.
Triple Confirmation Scalper v2Bu strateji, trend takibi ve aşırı alım/satım koşullarını birleştirir. İşlem sinyallerini filtrelemek için hacim artışını kullanır.
This strategy combines trend following and overbought/sold conditions. It uses volume spike to filter out trading signals.
Triple Confirmation Scalper
3 temel gösterge + 2 filtre kullanarak yalancı sinyalleri minimize eder.
1. Kullanılan Göstergeler ve Parametreler:
Gösterge Parametreler Amacı
EMA 9 9 periyot (Close) Kısa vadeli momentum.
EMA 21 21 periyot (Close) Trend yönü.
RSI 14 periyot Aşırı alım/satım.
VWAP 20 periyot Ortalama giriş çıkış fiyatı.
OBV (On-Balance Volume) Hacim trendi.
Özellikler ve Optimizasyonlar:
Gelişmiş VWAP Hesaplaması: HLC3 (high+low+close/3) kullanarak daha doğru VWAP değerleri
Dinamik Risk Yönetimi:
Stop-loss: Son 5 mumun en düşük/en yüksek seviyesi ±%1
Take-profit: %1.5 kar hedefi (1.5:1 risk/reward)
Hacim Analizi:
OBV göstergesiyle hacim trendi onayı
20 periyotluk hacim ortalaması üzerinde spike kontrolü
Görselleştirmeler:
EMA'lar ve VWAP bantları çizilir
Trend yönüne göre arkaplan renklendirmesi
Alert Sistem:
Long/Short sinyalleri için tradingview alertleri
Strateji Ayarları:
%100 equity kullanımı
%0.1 komisyon hesaba katılmış
Long/Short pozisyonlara izin verilmiş
Daha agresif bir strateji için:
EMA periyotlarını 5-13 yapabilirsiniz
RSI eşiklerini 40-60 arasına çekebilirsiniz
Take-profit/Stop-loss oranlarını 2:1 yapabilirsiniz
“Triple Confirmation Scalper”
Minimizes false signals using 3 basic indicators + 2 filters.
1. Indicators and Parameters used:
Indicator Parameters Purpose
EMA 9 9 period (Close) Short-term momentum.
EMA 21 21 periods (Close) Trend direction.
RSI 14 periods Overbought/sold.
VWAP 20 periods Average entry and exit price.
OBV (On-Balance Volume) Volume trend.
Features and Optimizations:
Advanced VWAP Calculation: more accurate VWAP values using HLC3 (high+low+close/3)
Dynamic Risk Management:
Stop-loss Lowest/highest level of the last 5 candles ±1
Take-profit: 1.5% profit target (1.5:1 risk/reward)
Volume Analysis:
Volume trend confirmation with OBV indicator
Spike control over 20-period volume averaging
Visualizations:
EMAs and VWAP bands are plotted
Background coloring according to trend direction
Alert System:
Tradingview alerts for Long/Short signals
Strategy Settings:
100% equity utilization
0.1% commission taken into account
Long/Short positions allowed
Exponential Action Map (EAM)### **Exponential Action Map (EAM) – Description and Differences from VPVR**
The Exponential Action Map (EAM) indicator is a Pine Script-based volume profile indicator that offers **a weighted representation of buying and selling activity**. Unlike the standard **Volume Profile Visible Range (VPVR)**, which simply shows traded volume at various price levels, the EAM provides the following additional features:
1. **Exponential Weighting**:
- Instead of treating the volume of all considered bars equally, the EAM uses a **decay factor** to gradually diminish the significance of older data. This allows **more recent price movements to have greater influence**, making it particularly useful for short-term analysis.
2. **Exponential Stealth Move (ESM)**:
- In addition to buy and sell volume, the EAM calculates and displays the **Exponential Stealth Move (ESM)**.
- This measures the relative price movement compared to volume and highlights areas where **significant price changes occur with low volume**, which may indicate institutional activity or strong momentum.
- The ESM visualization is not present in VPVR, making it a distinct and valuable feature.
3. **Visualization Methodology**:
- Instead of simple histograms like in VPVR, volume is represented by **dynamic boxes** that encompass Buy (EBA), Sell (ESA), and Stealth Move (ESM) activities.
- The size and color of these boxes are **customizable**, allowing for clear differentiation between various volume types.
4. **Flexibility & Configuration**:
- Users can adjust parameters such as **Number of Bars, Decay Factor, Bar Width, and Maximum History Data**.
- The ability to **toggle historical data visibility** offers a **tailored view** that VPVR does not provide.
**Conclusion:** The EAM extends the classic volume profile (VPVR) by introducing **time-weighted volume analysis and detection of Stealth Moves (ESM)**. This not only highlights price levels with high trading volume but also reveals **price movements with low liquidity**, which can potentially indicate institutional interest.
Trendingline ZMDConfirming the Breakout
To avoid false breakouts, consider these confirmation signals:
A candle close beyond the trendline.
Increased volume during the breakout.
Retesting the trendline as support/resistance.
Trading the Breakout
Entry: Enter a trade after confirmation signals.
Stop Loss: Place a stop loss slightly beyond the trendline to limit risk.
Take Profit: Set profit targets based on support/resistance levels or Fibonacci extensions.
Trendline Retest Strategy
After breaking a trendline, the price often retests the broken trendline before continuing in the new direction. If the price respects the trendline as a new support/resistance, it adds further confirmation.
By following these steps, traders can effectively use trendline breakouts to identify high-probability trading opportunities.
VWAP StrategyVWAP and volatility filters for structured intraday trades.
How the Strategy Works
1. VWAP Anchored to Session
VWAP is calculated from the start of each trading day.
Standard deviations are used to create bands above/below the VWAP.
2. Entry Triggers: Al Brooks H1/H2 and L1/L2
H1/H2 (Long Entry): Opens below 2nd lower deviation, closes above it.
L1/L2 (Short Entry): Opens above 2nd upper deviation, closes below it.
3. Volatility Filter (ATR)
Skips trades when deviation bands are too tight (< 3 ATRs).
4. Stop Loss
Based on the signal bar’s high/low ± stop buffer.
Longs: signalBarLow - stopBuffer
Shorts: signalBarHigh + stopBuffer
5. Take Profit / Exit Target
Exit logic is customizable per side:
VWAP, Deviation Band, or None
6. Safety Exit
Exits early if X consecutive bars go against the trade.
Longs: X red bars
Shorts: X green bars
Explanation of Strategy Inputs
- Stop Buffer: Distance from signal bar for stop-loss.
- Long/Short Exit Rule: VWAP, Deviation Band, or None
- Long/Short Target Deviation: Standard deviation for target exit.
- Enable Safety Exit: Toggle emergency exit.
- Opposing Bars: Number of opposing candles before safety exit.
- Allow Long/Short Trades: Enable or disable entry side.
- Show VWAP/Entry Bands: Toggle visual aids.
- Highlight Low Vol Zones: Orange shading for low volatility skips.
Tuning Tips
- Stop buffer: Use 1–5 points.
- Target deviation: Start with VWAP. In strong trends use 2nd deviation and turn off the counter-trend entry.
- Safety exit: 3 bars recommended.
- Disable short/long side to focus on one type of reversal.
Backtest Setup Suggestions
- initial_capital = 2000
- default_qty_value = 1 (fixed contracts or percent-of-equity)
GQT GPT - Volume-based Support & Resistance Zones V2搞钱兔,搞钱是为了更好的生活。
Title: GQT GPT - Volume-based Support & Resistance Zones V2
Overview:
This strategy is implemented in PineScript v5 and is designed to identify key support and resistance zones based on volume-driven fractal analysis on a 1-hour timeframe. It computes fractal high points (for resistance) and fractal low points (for support) using volume moving averages and specific price action criteria. These zones are visually represented on the chart with customizable lines and zone fills.
Trading Logic:
• Entry: The strategy initiates a long position when the price crosses into the support zone (i.e., when the price drops into a predetermined support area).
• Exit: The long position is closed when the price enters the resistance zone (i.e., when the price rises into a predetermined resistance area).
• Time Frame: Trading signals are generated solely from the 1-hour chart. The strategy is only active within a specified start and end date.
• Note: Only long trades are executed; short selling is not part of the strategy.
Visualization and Parameters:
• Support/Resistance Zones: The zones are drawn based on calculated fractal values, with options to extend the lines to the right for easier tracking.
• Customization: Users can configure the appearance, such as line style (solid, dotted, dashed), line width, colors, and label positions.
• Volume Filtering: A volume moving average threshold is used to confirm the fractal signals, enhancing the reliability of the support and resistance levels.
• Alerts: The strategy includes alert conditions for when the price enters the support or resistance zones, allowing for timely notifications.
⸻
搞钱兔,搞钱是为了更好的生活。
标题: GQT GPT - 基于成交量的支撑与阻力区间 V2
概述:
本策略使用 PineScript v5 实现,旨在基于成交量驱动的分形分析,在1小时级别的图表上识别关键支撑与阻力区间。策略通过成交量移动平均线和特定的价格行为标准计算分形高点(阻力)和分形低点(支撑),并以自定义的线条和区间填充形式直观地显示在图表上。
交易逻辑:
• 进场条件: 当价格进入支撑区间(即价格跌入预设支撑区域)时,策略在没有持仓的情况下发出做多信号。
• 离场条件: 当价格进入阻力区间(即价格上升至预设阻力区域)时,持有多头头寸则会被平仓。
• 时间范围: 策略的信号仅基于1小时级别的图表,并且仅在指定的开始日期与结束日期之间生效。
• 备注: 本策略仅执行多头交易,不进行空头操作。
可视化与参数设置:
• 支撑/阻力区间: 根据计算得出的分形值绘制支撑与阻力线,可选择将线条延伸至右侧,便于后续观察。
• 自定义选项: 用户可以调整线条样式(实线、点线、虚线)、线宽、颜色及标签位置,以满足个性化需求。
• 成交量过滤: 策略使用成交量移动平均阈值来确认分形信号,提高支撑和阻力区间的有效性。
• 警报功能: 当价格进入支撑或阻力区间时,策略会触发警报条件,方便用户及时关注市场变化。
⸻
FunkyQuokka's $ Volume💡 Why $ Volume Matters
Share volume alone is a half-truth — 1M shares traded at $5 isn’t the same as 1M shares at $500. That’s where dollar volume steps in, offering a far more accurate view of institutional interest, breakout validity, liquidity zones and overall trader conviction.
📈 Features:
Clean histogram of dollar volume (close × volume)
Orange line showing customizable average $ volume
K/M/B formatting for axis scale (no huge ugly numbers)
Minimal design to blend into a multi-pane layout
⚙️ Inputs:
Tweakable average length – defaults to 20
By FunkyQuokka 🦘
Tendencia y Fuerza [4H - Sin Límites]This custom indicator combines two key elements for analyzing financial markets on a 4-hour timeframe:
Trend direction (bullish/bearish).
Brute force of the movement (no numerical limits).
🔍 Main Components:
1. Trend Line (Green/Red):
Green: Uptrend (20 EMA > 50 EMA on the 4-hour period).
Red: Downtrend (20 EMA < 50 EMA on the 4-hour period).
Purpose: To quickly identify market direction.
--------------------------------------------------------------------------------------------------------------------
Gufs VWAPI expanded on a public script to be able to show customizable horizontal price lines (and standard) on multiple timeframes (session, week, month, year) with corresponding text labels.
I like my charts clutter free, and this helps me accomplish that.
Let me know what you think, it's my first publish. Thanks!
MFI Module (Raw Output)Outputs raw Money Flow Index (MFI) values for modular use in other scripts.
Useful for confluence-based strategies that reference external modules via request.security().
Malama's big MACDMalama's Big MACD" is a versatile TradingView indicator designed to help traders identify high-probability buy and sell opportunities in fast-moving markets, particularly on short timeframes like 1-5 minute charts. It solves the common problem of filtering out market noise by combining a predictive price model (Stochastic Price Predictor, or SPP) with a comprehensive set of momentum and trend indicators (MACD, RSI, moving averages, and more). Whether you're scalping quick trades or confirming longer-term trends, this tool provides clear signals and visual cues to boost confidence and timing.
The indicator operates in two main layers:
Stochastic Price Predictor (SPP): This predictive engine forecasts short-term price movements using a simplified Monte Carlo simulation. It analyzes recent price changes, volatility (via ATR), and Stochastic RSI to estimate the likelihood of an upward or downward move within a set horizon (e.g., 3 bars). Buy signals trigger when the probability of an upward move exceeds a confidence threshold (default 65%) and the market isn’t overbought, while sell signals activate for downward moves when not oversold.
Comprehensive Indicator Suite: This layer combines classic tools like MACD (for momentum), RSI (for overbought/oversold conditions), moving averages (for trend direction), and ATR (for volatility-based levels). It generates signals when these align—e.g., a bullish MACD crossover paired with an oversold RSI and a rising fast MA. A unique "JKH RSI" (a fast RSI variant) adds extra confirmation, while manual sentiment input lets you tweak signals based on your market bias.
The script overlays these signals on your chart, color-codes trends, and highlights key levels (like stop-loss and profit targets) to make decision-making intuitive.
How to Use It
Adding to TradingView:
Copy the script into TradingView’s Pine Editor (under "Indicators" > "Pine Editor").
Click "Save," name it (e.g., "Malama's Big MACD"), then "Add to Chart."
Configuring Settings:
Open the indicator’s settings via the gear icon.
Adjust SPP settings (e.g., "Lookback Period" to 5 for short-term focus, "Confidence Threshold" to 65% for faster signals).
Tweak the Comprehensive settings (e.g., MACD lengths: 5/13/5 for scalping, or longer like 12/26/9 for swing trading).
Toggle visuals (e.g., enable "Show Predicted Range" or "Highlight Volume Spikes") under "Visual Settings."
Interpreting Signals:
SPP Signals: Green "BUY (SPP)" labels below bars or red "SELL (SPP)" above bars indicate predictive opportunities.
Comprehensive Signals: Lime "BUY (Comp)" or red "SELL (Comp)" labels show confirmed momentum trades. Blue/orange MACD arrows and green/red RSI dots add context.
Trend Line: Green means uptrend (fast MA > slow MA), red is downtrend, orange is neutral.
Extras: Purple ATR lines suggest stop-loss/profit targets; yellow backgrounds flag volume spikes.
Tips:
Beginners: Start with default settings and focus on SPP signals for quick trades. Use ATR lines to set safe exits.
Pros: Experiment with "Sentiment Input" (-1 to 1) to bias signals, or adjust MACD/MA lengths for your timeframe. Pair with volume spikes for breakout confirmation.
Originality
What makes "Malama's Big MACD" stand out is its hybrid approach: it fuses a predictive Monte Carlo model (SPP) with a robust multi-indicator confirmation system. Unlike standard MACD or RSI tools, it offers:
Short-Term Prediction: SPP’s probability-based signals cater to scalpers, rare in most indicators.
Layered Confirmation: Combines MACD, RSI, fast/slow MAs, and a custom JKH RSI for stronger filtering.
Visual Clarity: Trend coloring, predicted price ranges, and ATR-based levels make it a one-stop shop.
Flexibility: Adjustable for scalping or swing trading, with manual sentiment for personalized tuning.
This isn’t just another MACD—it’s a dynamic, all-in-one toolkit that adapts to your trading style, blending foresight with precision.
VWAP with Bank/Psychological Levels by TBTPH V.2This Pine Script defines a custom VWAP (Volume Weighted Average Price) indicator with several additional features, such as dynamic bands, bank levels, session tracking, and price-crossing detection. Here's a breakdown of the main elements and logic:
Key Components:
VWAP Settings:
The VWAP calculation is based on a source (e.g., hlc3), with an option to hide the VWAP on daily (1D) or higher timeframes.
You can choose the VWAP "anchor period" (Session, Week, Month, etc.) for adjusting the VWAP calculation to different time scales.
VWAP Bands:
The script allows you to plot bands above and below the VWAP line.
You can choose the calculation mode for the bands (Standard Deviation or Percentage), and the bands' width can be adjusted with a multiplier.
These bands are drawn using a gray color and can be filled to create a shaded area.
Bank Level Calculation:
The concept of bank levels is added as horizontal levels spaced by a user-defined multiplier.
These levels are drawn as dotted lines, and price labels are added to indicate each level.
You can define how many bank levels are drawn above and below the base level.
Session Indicators (LSE/NYSE):
The script identifies the open and close times of the London Stock Exchange (LSE) and the New York Stock Exchange (NYSE) sessions.
It limits the signals to only appear during these sessions.
VWAP Crossing Logic:
If the price crosses the VWAP, the script colors the candle body white to highlight this event.
Additional Plot Elements:
A background color is applied based on whether the price is above or below the 50-period Simple Moving Average (SMA).
The VWAP line dynamically changes color based on whether the price is above or below it (green if above, red if below).
Explanation of Key Sections:
1. VWAP and Band Calculation:
pinescript
Copy
= ta.vwap(src, isNewPeriod, 1)
vwapValue := _vwap
stdevAbs = _stdevUpper - _vwap
bandBasis = calcModeInput == "Standard Deviation" ? stdevAbs : _vwap * 0.01
upperBandValue1 := _vwap + bandBasis * bandMult_1
lowerBandValue1 := _vwap - bandBasis * bandMult_1
This code calculates the VWAP value (vwapValue) and standard deviation-based bands (upperBandValue1 and lowerBandValue1).
2. Bank Levels:
pinescript
Copy
baseLevel = math.floor(currentPrice / bankLevelMultiplier) * bankLevelMultiplier
The base level for the bank levels is calculated by rounding the current price to the nearest multiple of the bank level multiplier.
Then, a loop creates multiple bank levels:
pinescript
Copy
for i = -bankLevelRange to bankLevelRange
level = baseLevel + i * bankLevelMultiplier
line.new(x1=bar_index - 50, y1=level, x2=bar_index + 50, y2=level, color=highlightColor, width=2, style=line.style_dotted)
label.new(bar_index, level, text=str.tostring(level), style=label.style_label_left, color=labelBackgroundColor, textcolor=labelTextColor, size=size.small)
3. Session Logic (LSE/NYSE):
pinescript
Copy
lse_open = timestamp("GMT", year, month, dayofmonth, 8, 0)
lse_close = timestamp("GMT", year, month, dayofmonth, 16, 30)
nyse_open = timestamp("GMT-5", year, month, dayofmonth, 9, 30)
nyse_close = timestamp("GMT-5", year, month, dayofmonth, 16, 0)
The script tracks session times and filters the signals based on whether the current time falls within the LSE or NYSE session.
4. VWAP Crossing Detection:
pinescript
Copy
candleCrossedVWAP = (close > vwapValue and close <= vwapValue) or (close < vwapValue and close >= vwapValue)
barcolor(candleCrossedVWAP ? color.white : na)
If the price crosses the VWAP, the candle's body is colored white to highlight the cross.
Média de Volume - VXX & UVXY (Colorido)Explanation:
The code takes the daily volume of VXX and UVXY.
Calculates the average of the two volumes.
Plots a blue histogram, similar to the traditional volume indicator.
Adds a reference line at zero.
The histogram bars turn green when the price is above the 20 SMA and red when it is below.
Money Flow Oscillator [BullByte]
Overview :
The Money Flow Oscillator is a versatile technical analysis tool designed to provide traders with insights into market momentum through the Money Flow Index (MFI). By integrating trend logic, dynamic support/resistance levels, multi-timeframe analysis, and additional indicators like ADX and Choppiness, this script delivers a detailed view of market conditions and signal strength—all while adhering to TradingView’s publication guidelines.
Key Features :
Money Flow Analysis :
Uses the MFI to assess buying and selling pressure, helping traders gauge market momentum.
Trend Switch Logic :
Employs ATR-based calculations to determine trend direction. The background color adjusts dynamically to signal bullish or bearish conditions, and a prominent center line changes color to reflect the prevailing trend.
Dynamic Support/Resistance :
Calculates oscillator support and resistance over a pivot lookback period. These levels help you identify potential breakouts or reversals as the MFI moves above or below prior levels.
Signal Metrics & Classifications :
Combines MFI values with additional metrics to classify signals into categories such as “Strong Bullish,” “Bullish,” “Bearish,” or “Strong Bearish.” An accompanying note provides details on momentum entry and overall signal strength.
Multi-Timeframe Order Flow Confirmatio n:
Analyzes the MFI on a higher timeframe to confirm order flow. This extra layer of analysis helps verify the short-term signals generated on your primary chart.
Volume and ADX Integration :
Incorporates volume analysis and a manual ADX calculation to further validate signal strength and trend stability. A dashboard displays these metrics for quick reference.
Choppiness Indicator :
Includes a choppiness index to determine if the market is trending or choppy. When the market is identified as choppy, the script advises caution by adjusting the overall signal note.
Comprehensive Dashboard :
A built-in dashboard presents key metrics—including ADX, MFI, order flow, volume score, and support/resistance details—allowing you to quickly assess market conditions at a glance.
How to Use :
Trend Identification : Monitor the dynamic background and center line colors to recognize bullish or bearish market conditions.
Signal Confirmation : Use the oscillator support/resistance levels along with the signal classifications and dashboard data to make informed entry or exit decisions.
Multi-Timeframe Analysis : Validate short-term signals with the higher timeframe MFI order flow confirmation.
Risk Management : Always combine these insights with your own risk management strategy and further analysis.
Disclaimer :
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Always perform your own analysis and use proper risk management before making any trading decisions. Past performance is not indicative of future results.
Advanced HFT Detection with VWAP & SpreadsExplanation of the HFT Detection Strategy
🔹 1. Key Indicators Used in the Strategy
It's works by combining VWAP, moving averages (SMA), volume spikes, and price jumps to detect potential HFT activity.
✅ (A) VWAP (Volume Weighted Average Price)
VWAP acts as a benchmark price that professional traders and institutions use to execute large orders.
If price is above VWAP, buyers are in control → Bullish trend
If price is below VWAP, sellers are in control → Bearish trend
HFT algorithms often place buy orders above VWAP and sell orders below VWAP to follow momentum.
➡️ Why VWAP? It ensures that signals follow the institutional trading trend.
✅ (B) Moving Averages (SMA)
Moving averages smooth out price data and help in detecting short-term momentum changes.
Fast Moving Average (5-period SMA): Reacts quickly to price changes
Slow Moving Average (20-period SMA): Identifies trend direction
➡️ Why SMA? It filters noise and confirms short-term trend shifts.
✅ (C) Volume Spike Detection
High-frequency trading is often accompanied by large volume surges. We define a volume spike as:
📌 Current Volume > 2× Average Volume of last 20 bars
➡️ Why Volume? HFTs execute rapid buy/sell orders when they detect liquidity, leading to sudden volume bursts.
✅ (D) Price Jump Detection (Sudden Volatility)
HFT algorithms often exploit quick price movements. We check if the price has moved more than twice the ATR (Average True Range) in the last 5 bars.
➡️ Why ATR? It helps to detect abnormal price movements compared to normal volatility.
🔹 2. Trading Signal Logic
Now that we have VWAP, moving averages, volume, and price movement filters, we generate buy and sell signals based on conditions.
✅ (A) Buy Signal Condition
A BUY signal is triggered when:
✔ Fast SMA crosses above Slow SMA → Short-term trend is turning bullish
✔ Volume spike occurs → HFTs are active
✔ Sudden price jump detected → High volatility
✔ Price is above VWAP → Confirms bullish trend
➡️ Why this works? It confirms that institutional traders & HFTs are buying aggressively.
✅ (B) Sell Signal Condition
A SELL signal is triggered when:
✔ Fast SMA crosses below Slow SMA → Short-term trend is turning bearish
✔ Volume spike occurs → HFTs are selling aggressively
✔ Sudden price drop detected → High volatility
✔ Price is below VWAP → Confirms bearish trend
➡️ Why this works? It confirms that institutional traders & HFTs are selling aggressively.
🔹 3. Visual Representation (Plotting Signals & VWAP)
Once we detect buy and sell signals, we mark them on the chart.
✅ (A) Buy/Sell Markers
🟢 Buy → Green upward arrow below the candle
🔴 Sell → Red downward arrow above the candle
✅ (B) VWAP Line on Chart
We also plot VWAP as a blue line to visualize trend direction.
✅ (C) Highlighting Volume Spikes
To easily spot HFT activity, we highlight volume spike bars with a blue background.
🔹 4. How to Use This Strategy?
1️⃣ Apply this script on a 1-minute or 5-minute intraday chart.
2️⃣ Look for BUY signals above VWAP and SELL signals below VWAP.
3️⃣ Verify that the volume spikes before taking action.
4️⃣ Use stop-loss & risk management (e.g., stop-loss at recent low/high).
🚀 Summary: Why This Strategy Works?
✅ VWAP ensures we follow institutional traders
✅ Volume spikes confirm sudden liquidity inflows
✅ Price jumps detect fast market moves caused by HFT bots
✅ Moving averages smooth out short-term trend shifts
Relative Volume Indicator (RVOL)Relative Volume Indicator (RVOL)
The Relative Volume Indicator (RVOL) helps traders identify unusual volume activity by comparing the current volume to the average historical volume. This makes it easier to spot potential breakouts, reversals, or significant market events that are accompanied by volume confirmation.
What This Indicator Shows
This indicator displays volume as a multiple of average volume, where:
- 1.0x means 100% of average volume
- 2.0x means 200% of average volume (twice the average)
- 0.5x means 50% of average volume (half the average)
Color Coding
The volume bars are color-coded based on configurable thresholds:
- Red: Below average volume (< Average Volume Threshold)
- Yellow: Average volume (between Average Volume and Above Average thresholds)
- Green: Above average volume (between Above Average and Extreme thresholds)
- Magenta: Extreme volume (> Extreme Volume Threshold)
Horizontal Reference Lines
Three dotted horizontal reference lines help you visualize the thresholds:
- Lower gray line: Average Volume Threshold (default: 0.8x)
- Upper gray line: Above Average Threshold (default: 1.25x)
- Magenta line: Extreme Volume Threshold (default: 4.0x)
How To Use This Indicator
1. Volume Confirmation: Use green bars to confirm breakouts or trend changes - stronger moves often come with above-average volume.
2. Low Volume Warning: Red bars during price movements may indicate weak conviction and potential reversals.
3. Extreme Volume Events: Magenta bars (extreme volume) often signal major market events or potential exhaustion points that could lead to reversals.
4. Volume Divergence: Look for divergences between price and volume - for example, if price makes new highs but volume is decreasing (more yellow/red bars), the move may be losing strength.
Settings Configuration
- Average Volume Lookback Period: Number of bars used to calculate the average volume (default: 20)
- Average Volume Threshold: Volume below this level is considered below average (default: 0.8x)
- Above Average Threshold: Volume above this level is considered above average (default: 1.25x)
- Extreme Volume Threshold: Volume above this level is considered extreme (default: 4.0x)
- Colors: Customize colors for each volume category
Important Note: Adjust threshold values only through the indicator settings (not in the Style tab). Changing values in the Style tab will not adjust the coloring of the volume bars.
Adjust these settings based on the specific asset being analyzed and your trading timeframe. More volatile assets may require higher thresholds, while less volatile ones might need lower thresholds.