QQE MODADDED QQE WEIGHTED OSCILLATOR to the QQE MOD indicator. The oscillator has a fast line that crosses the slow line. As the fast crosses above the slow line this is a long situation and vice versa for a short situation. The weighted Oscillator is a deriviation by LuxAlgo. The QQE mod portion was published by Colinmck
Indicators and strategies
Round Number Levels ProRound Number Levels Pro is a powerful support and resistance indicator that automatically plots psychological price levels on your chart.
What it does:
- Displays major round number levels (100, 200, 300, etc.) with prominent lines
- Shows mid-level lines (50, 150, 250, etc.) for additional reference points
- All lines extend across the entire chart for maximum visibility
- Automatically adjusts levels based on current price action
Key Features:
- Customizable Font Sizes - Large text for main levels, normal for mid-levels
- Clean Black Styling - Professional appearance that works on any chart background
- Flexible Line Styles - Choose solid, dashed, or dotted lines for main and mid levels
- Adjustable Parameters - Control number of levels, rounding increments, and label positioning
- Full Chart Extension - Lines extend both directions for complete price reference
Perfect for:
- Day traders looking for key psychological support/resistance levels
- Swing traders identifying major price zones
- Any trader who uses round numbers as decision points
How to use:
Simply add to your chart and the indicator will automatically plot relevant round number levels. Customize the settings to match your trading style and timeframe.
These psychological levels are where many traders make decisions, often creating natural support and resistance zones in the market.
NY HIGH LOW BREAKNY HIGH LOW BREAK: A New York Session Breakout Strategy
The "NY HIGH LOW BREAK" indicator is a powerful TradingView script designed to identify and capitalize on breakout opportunities during the New York trading session. This strategy focuses on the initial price action of the New York market open, looking for clear breaches of the high or low established within the first 30 minutes. It's particularly suited for intraday traders who seek to capture momentum-driven moves.
Strategy Logic
The core of the "NY HIGH LOW BREAK" strategy revolves around these key components:
New York Session Opening Range Identification:
The script first identifies the opening range of the New York session. This is defined by the high and low prices established during the first 30 minutes of the New York trading session (from 7:01 AM GMT-4 to 7:31 AM GMT-4).
These crucial levels are then extended forward on the chart as horizontal lines, serving as potential support and resistance zones.
Breakout Signal Generation:
Long Signal: A buy signal is generated when the price breaks above the high of the New York opening range. Specifically, it looks for a candle whose open and close are both above the highLinePrice, and importantly, the previous candle's open was below and close was above the highLinePrice. This indicates a strong upward momentum confirming the breakout.
Short Signal: Conversely, a sell signal is generated when the price breaks below the low of the New York opening range. It looks for a candle whose open and close are both below the lowLinePrice, and the previous candle's open was above and close was below the lowLinePrice. This suggests strong downward momentum confirming the breakdown.
Supertrend Filter (Implicit/Future Enhancement):
While the supertrend and direction variables are present in the code, they are not actively used in the current signal generation logic. This suggests a potential future enhancement where the Supertrend indicator could be incorporated as a trend filter to confirm breakout directions, adding an extra layer of confluence to the signals. For example, only taking long breakouts when Supertrend indicates an uptrend, and short breakouts when Supertrend indicates a downtrend.
Second Candle Confirmation (Possible Future Enhancement):
The close_sec_candle function and openSEC, closeSEC variables indicate an attempt to capture the open and close of a "second candle" (30 minutes after the initial New York open). Currently, closeSEC is used in a specific condition for signal_way but not directly in the primary longSignal or shortSignal logic. This also suggests a potential future refinement where the price action of this second candle could be used for further confirmation or specific entry criteria.
Time-Based Filtering:
Signals are only considered valid within a specific trading window from 8:00 AM GMT-4 to 8:00 AM GMT-4 + 16 * 30 minutes (which is 480 minutes, or 8 hours) on 1-minute and 5-minute timeframes. This ensures that trades are taken during the most active and volatile periods of the New York session, avoiding late-session chop.
The script also highlights the New York session and lunch hours using background colors, providing visual context to the trading day.
Key Features
Automated New York Open Range Detection: The script automatically identifies and plots the high and low of the first 30 minutes of the New York trading session.
Clear Breakout Signals: Visually distinct "BUY" and "SELL" labels appear on the chart when a breakout occurs, making it easy to spot trading opportunities.
Timeframe Adaptability: While optimized for 1-minute and 5-minute timeframes for signal generation, the opening range lines can be displayed on various timeframes.
Customizable Risk-to-Reward (RR): The rr input allows users to define their preferred risk-to-reward ratio for potential trades, although it's not directly implemented in the current signal or trade management logic. This could be used by traders for manual trade management.
Visual Session and Lunch Highlights: The script colors the background to clearly delineate the New York trading session and the lunch break, helping traders understand the market context.
How to Use
Apply the Indicator: Add the "NY HIGH LOW BREAK" indicator to your chart on TradingView.
Select a Relevant Timeframe: For optimal signal generation, use 1-minute or 5-minute timeframes.
Observe the Opening Range: The green and red lines represent the high and low of the first 30 minutes of the New York session.
Look for Breakouts: Wait for price to decisively break above the green line (for a buy) or below the red line (for a sell).
Confirm Signals: The "BUY" or "SELL" labels will appear on the chart when the breakout conditions are met within the active trading window.
Implement Your Risk Management: Use your preferred risk management techniques, including stop-loss and take-profit levels, in conjunction with the signals generated. The rr input can guide your manual risk-to-reward calculations.
Potential Enhancements & Considerations
Supertrend Confirmation: Integrating the supertrend variable to filter signals would significantly enhance the strategy's robustness by aligning trades with the prevailing trend.
Stop-Loss and Take-Profit Automation: The rr input currently serves as a manual guide. Future versions could integrate automated stop-loss and take-profit placement based on this ratio, potentially using ATR for dynamic sizing.
Volume Confirmation: Adding a volume filter to confirm breakouts would ensure that only high-conviction moves are traded.
Backtesting and Optimization: Thorough backtesting across various assets and market conditions is crucial to determine the optimal settings and profitability of this strategy.
Session Times: The current session times are hardcoded. Making these user-definable inputs would allow for greater flexibility across different time zones and trading preferences.
The "NY HIGH LOW BREAK" is a straightforward yet effective strategy for capturing initial New York session momentum. By focusing on clear breakout levels, it aims to provide timely and actionable trading signals for intraday traders.
顶底力量这个"顶底力量"指标是一个反转信号识别器,专门用来捕捉价格的顶部和底部转折点。
顶部信号(红色下三角):
价格创新高但动量衰竭
适合考虑做空或止盈多单
底部信号(绿色上三角):
价格创新低但动能衰竭
适合考虑做多或止盈空单
优缺点
优点:
结合价格行为和动量指标,相对可靠
有确认机制,减少假信号
专门捕捉转折点,适合波段交易
缺点:
在强趋势中容易产生假信号
RSI可能长时间保持极值状态
确认周期短,可能错过最佳入场点
Application Scenarios
This is a typical reversal trading indicator:
Top Signal (Red down triangle):
Price makes new high but momentum is exhausted
Consider short entry or take profit on long positions
Bottom Signal (Green up triangle):
Price makes new low but selling pressure is exhausted
Consider long entry or take profit on short positions
Pros and Cons
Advantages:
Combines price action with momentum indicator for reliability
Has confirmation mechanism to reduce false signals
Specifically targets turning points, suitable for swing trading
Disadvantages:
May generate false signals in strong trending markets
RSI can remain at extreme levels for extended periods
Short confirmation period might miss optimal entry points
This indicator is particularly effective in sideways markets or at trend exhaustion points for timing reversal entries.
Volume Dominance (Multi-Timeframe)Volume dominance is a mathematical concept i invented by separating up volume and down volume, and replacing the opposing elements in the averaging arrays with zeroes.
positive volume dominance is calculated by taking the average of volumes with a positive price direction over a period. for every volume with a negative price direction within the period, a zero is added to the averaging array.
Dpv = sum(upVol + (dnVol * 0)) / length
Dnv = sum(dnVol + (upVol * 0)) / length
Dpv = Dominance of Positive volume
Dnv = Dominance of Negative volume
upVol = total volume of upward filtered candles within length array
dnVol = total volume of downward filtered candles within length array
the user can see positive and negative volume dominance and read the label at the end of the plot to see the breadth of the dominance gap.
the user can select between using EMA and SMA to compute the dominance averages.
when the yellow center line moves with the change of a dominance line, it indicates strong directional force.
Trend Confluence Indicator identify potential trend reversals by combining signals from three popular technical indicators: MACD, Stochastic Oscillator, and ADX.
Here's a breakdown of its components and how it defines confluence:
MACD (Moving Average Convergence Divergence):
Purpose: This indicator helps to spot changes in the strength, direction, momentum, and duration of a trend.
Signals:
A bullish MACD signal is generated when the MACD line crosses above its signal line, indicating increasing bullish momentum.
A bearish MACD signal is generated when the MACD line crosses below its signal line, indicating increasing bearish momentum.
Stochastic Oscillator:
Purpose: This momentum indicator compares a security's closing price to its price range over a given period, identifying overbought and oversold conditions. It also shows momentum shifts.
Signals:
A bullish Stochastic signal is typically a crossover of the %K line above the %D line.
A bearish Stochastic signal is a crossover of the %K line below the %D line.
ADX (Average Directional Index):
Purpose: The ADX measures the strength of a trend, not its direction. Higher ADX values indicate a stronger trend, while lower values suggest a weak or ranging market.
Role in Confluence: For reversal signals, the indicator looks for the ADX to be below a specified threshold (defaulting to 25). The idea is that reversals are more likely to occur when the existing trend is weak or the market is consolidating, rather than when a strong trend is in full force.
How Confluence is Currently Defined (Simplified for Debugging):
In its current state (with the debugging simplification active in the Canvas), a signal is generated when:
Bullish Reversal (Trend Up): The MACD line crosses above its signal line AND the Stochastic %K line crosses above its %D line.
Bearish Reversal (Trend Down): The MACD line crosses below its signal line AND the Stochastic %K line crosses below its %D line.
When these simplified conditions are met, the indicator plots "Reversal Up" (▲) or "Reversal Down" (▼) labels directly on your chart. It also plots the individual MACD, Stochastic, and ADX lines on separate sub-panes to help you visualize the underlying indicator movements.
Original (More Comprehensive) Confluence (Commented Out):
The Canvas also contains commented-out code for the original, more stringent confluence conditions. These would have added further filters:
For Bullish Reversal: The Stochastic %K and %D lines would also need to be below the stochOversold level (e.g., 20) when the crossover occurred, and the ADX would need to be below the adxThreshold.
For Bearish Reversal: The Stochastic %K and %D lines would also need to be above the stochOverbought level (e.g., 80) when the crossover occurred, and the ADX would need to be below the adxThreshold.
Once you confirm the indicator is showing signals with the simplified logic, you can uncomment these original lines in the Canvas to activate the more precise confluence criteria, or adjust the input parameters to fine-tune its sensitivity.
SMIСross (зоны + RSI + MFI)SMICross simple signal, with additional filters based on MFI, RSI
Can make Buy/Sell alerts
Useful Open Price Lines - Multi-Timeframe SupportDisplay important opening price levels on your chart with this comprehensive indicator.
KEY FEATURES:
✓ Track up to 6 different opening prices simultaneously
✓ Support for intraday time-based opens (any hour:minute)
✓ Higher timeframe opens: Daily, Weekly, Monthly, Quarterly, Semi-Annual, Yearly
✓ Automatic line extension with customizable cutoff
✓ Clean chart option - hide previous day's lines
✓ Full timezone support for global markets
✓ Customizable colors, labels, and line styles
USE CASES:
- Day traders: Track key session opens (Asian, London, NY)
- Swing traders: Monitor weekly and monthly opens
- Position traders: Track quarterly and yearly opens
- Multi-timeframe analysis: See all key levels at once
CUSTOMIZATION:
- Choose any time for intraday opens (00:00 - 23:00)
- Select from multiple timeframes (D, W, M, 3M, 6M, 12M)
- Customize labels, colors, and line styles
- Adjust label offset and size
- Set line extension cutoff time
The indicator is optimized for performance and works smoothly on all timeframes.
Heikin Ashi Color Change Alert📈 Heikin Ashi Color Change Alert
This indicator detects color changes in Heikin Ashi candles and issues visual signals and alerts when a change is confirmed at bar close.
🔍 What it does:
Reconstructs Heikin Ashi candles directly from chart prices.
Detects when the color changes from bearish to bullish (or vice versa).
Prints a triangle symbol on the chart when the change occurs.
Allows you to set alerts so you never miss a potential reversal.
✅ How it works:
A bullish signal occurs when a red (bearish) Heikin Ashi candle is followed by a green (bullish) one.
A bearish signal occurs when a green (bullish) candle is followed by a red (bearish) one.
The detection is done only after the current candle is fully closed, ensuring cleaner signals.
🔔 Example Alerts:
"Heikin Ashi candle changed to bullish"
"Heikin Ashi candle changed to bearish"
This indicator is ideal for:
Traders who follow price action
Those who want to filter trends
Anyone who uses Heikin Ashi to smooth market noise and detect reversals
Option Volume Wave FlowOption Wave graph. Takes into consideration call/put volume to identify the wave of where money is moving to. Goal is to identify fake outs
Trading strategy Jesse LivermoreLong only trading strategies based on Jesse Livermore's trading philosophy
Kalman Moving Average For LoopKey Features of the Indicator:
Flexible Moving Average Calculation (calcMovingAverage):Description: Allows users to select from 10 moving average types (SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, HMA, LSMA, ALMA) to process the input price source (pricesource, default: close).
Parameters:
maType: User selects the moving average type (default: HMA).
period: Length of the moving average (default: 14).
almaSigma: Sigma parameter for ALMA (default: 5).
Purpose: Provides versatility in analyzing price trends, with the chosen moving average (maValue) used for comparison with the smoothed Kalman filter output.
Kalman Filter for Price Smoothing:
Description:
Applies a Kalman filter to the price source to produce a filtered price (kalmanFilteredPrice), which is further smoothed using an HMA to create smoothedKalmanPrice.
Parameters:
process_noise: Controls system model noise (default: 0.01).
measurement_noise:
Controls measurement noise (default: 3).
N: Filter order, determining the number of state estimates (default: 3).
smooth_period: HMA period for smoothing kalmanFilteredPrice (default: 9).
Purpose: Reduces noise in price data, providing a smoother trend line for signal generation and plotting.
Historical Analysis with For-Loop:
Description: Uses a for-loop to calculate the average of calcMovingAverage values over a user-defined historical range (from to to_) for historical bars of the price source (pricesource ).
Parameters:
from: Start of the historical range (default: 1).
to_: End of the historical range (default: 25).
Purpose: Computes an average moving average (avgMa) over the specified range to compare with the smoothed Kalman price for signal generation.
Error Handling and Robustness:
Description: Includes checks for na values in the for-loop to ensure only valid calcMovingAverage values contribute to the average (avgMa). Resets signal and plot variables each bar to prevent carryover.
Purpose: Ensures reliable calculations and prevents errors from invalid data.
3D Surface Modeling [PhenLabs]📊 3D Surface Modeling
Version: PineScript™ v6
📌 Description
The 3D Surface Modeling indicator revolutionizes technical analysis by generating three-dimensional visualizations of multiple technical indicators across various timeframes. This advanced analytical tool processes and renders complex indicator data through a sophisticated matrix-based calculation system, creating an intuitive 3D surface representation of market dynamics.
The indicator employs array-based computations to simultaneously analyze multiple instances of selected technical indicators, mapping their behavior patterns across different temporal dimensions. This unique approach enables traders to identify complex market patterns and relationships that may be invisible in traditional 2D charts.
🚀 Points of Innovation
Matrix-Based Computation Engine: Processes up to 500 concurrent indicator calculations in real-time
Dynamic 3D Rendering System: Creates depth perception through sophisticated line arrays and color gradients
Multi-Indicator Integration: Seamlessly combines VWAP, Hurst, RSI, Stochastic, CCI, MFI, and Fractal Dimension analyses
Adaptive Scaling Algorithm: Automatically adjusts visualization parameters based on indicator type and market conditions
🔧 Core Components
Indicator Processing Module: Handles real-time calculation of multiple technical indicators using array-based mathematics
3D Visualization Engine: Converts indicator data into three-dimensional surfaces using line arrays and color mapping
Dynamic Scaling System: Implements custom normalization algorithms for different indicator types
Color Gradient Generator: Creates depth perception through programmatic color transitions
🔥 Key Features
Multi-Indicator Support: Comprehensive analysis across seven different technical indicators
Customizable Visualization: User-defined color schemes and line width parameters
Real-time Processing: Continuous calculation and rendering of 3D surfaces
Cross-Timeframe Analysis: Simultaneous visualization of indicator behavior across multiple periods
🎨 Visualization
Surface Plot: Three-dimensional representation using up to 500 lines with dynamic color gradients
Depth Indicators: Color intensity variations showing indicator value magnitude
Pattern Recognition: Visual identification of market structures across multiple timeframes
📖 Usage Guidelines
Indicator Selection
Type: VWAP, Hurst, RSI, Stochastic, CCI, MFI, Fractal Dimension
Default: VWAP
Starting Length: Minimum 5 periods
Default: 10
Step Size: Interval between calculations
Range: 1-10
Visualization Parameters
Color Scheme: Green, Red, Blue options
Line Width: 1-5 pixels
Surface Resolution: Up to 500 lines
✅ Best Use Cases
Multi-timeframe market analysis
Pattern recognition across different technical indicators
Trend strength assessment through 3D visualization
Market behavior study across multiple periods
⚠️ Limitations
High computational resource requirements
Maximum 500 line restriction
Requires substantial historical data
Complex visualization learning curve
🔬 How It Works
1. Data Processing:
Calculates selected indicator values across multiple timeframes
Stores results in multi-dimensional arrays
Applies custom scaling algorithms
2. Visualization Generation:
Creates line arrays for 3D surface representation
Applies color gradients based on value magnitude
Renders real-time updates to surface plot
3. Display Integration:
Synchronizes with chart timeframe
Updates surface plot dynamically
Maintains visual consistency across updates
🌟 Credits:
Inspired by LonesomeTheBlue (modified for multiple indicator types with scaling fixes and additional unique mappings)
💡 Note:
Optimal performance requires sufficient computing resources and historical data. Users should start with default settings and gradually adjust parameters based on their analysis requirements and system capabilities.
HTF Trend Table + 15M Wick SD Marker [No Error Edition]Criteria Used in the Indicator:
TRENDING (Bullish or Bearish):
Bullish:
The 4H close is above the most recent 4H swing high (pivot high)
The 1H close is above the most recent 1H swing high (pivot high)
→ Both conditions must be true at the same time
Bearish:
The 4H close is below the most recent 4H swing low (pivot low)
The 1H close is below the most recent 1H swing low (pivot low)
→ Both conditions must be true at the same time
CHOPPY (Ranging):
Any other case!
If the close is not above both the last swing highs (not trending up)
AND not below both the last swing lows (not trending down)
Example:
4H is above its last swing high but 1H is not
1H is below its last swing low but 4H is not
Both are in between their swings
→ In these scenarios, the code sets the trend as "CHOPPY" (ranging/sideways).
ADR TableTrack volatility and session momentum in real-time with customizable precision.
Key Features:
Average Daily Range (ADR): Configurable length (default 5 days), based on previous daily high–low ranges.
Session Anchor Options: Choose anchor at 4 am NY, 6 pm NY, 9:30 am NY, 8:30 am NY, Previous Day Close, or Current Bar.
Session Range & %ADR: Displays the real-time range from the chosen anchor, plus what percentage of ADR has been covered.
High / Low Target Levels: Calculates ADR targets based on anchor: anchor ± ADR.
Optional Target Lines: Draw horizontal lines for high and low targets across the session; customize color and width.
Dynamic Table Display: User-selectable table size and text size (Tiny to Huge) for optimal readability.
Robust Anchor Logic: Uses the first bar at-or-after anchor time each NY day, ensuring stability even on irregular intraday timeframes.
How to Use
Choose your anchor in settings.
View ADR, session range (with %ADR), and target price levels in the top-right pane.Toggle High/Low lines to overlay targets on the chart.
Adjust table and text size to match your workspace.
Why It Matters
Quickly assess where price stands relative to typical volatility.
Easily identify intraday price exhaustion or breakout zones.
Anchor flexibility enables use for both futures and equities, aligning with your trading session.
Clean, professional display—no clutter, no guesswork.
GOLD Auto-Alert Strategy [Enhanced+Signals+UT Bot]New Version The Indicator
✅ BUY Signal Triggers Only If:
UT Buy signal flips (from down to up)
ADX > Threshold → market has strength
RSI is outside the 40–60 range
Volume is spiking above 20-bar average × 1.2
EMA Fast > EMA Slow → uptrend confirmed
Close > EMA Fast → price above short-term trend
Bullish Engulfing candle
🔻 SELL Signal Triggers Only If:
UT Sell signal flips (from up to down)
ADX > Threshold → market has strength
RSI is outside the 40–60 range
Volume is spiking above average
EMA Fast < EMA Slow → downtrend confirmed
Close < EMA Fast → bearish structure
Bearish Engulfing candle
Live 30-Point Horizontal Lines with Price LabelsLive 30-Point Horizontal Lines with Price Labels for upper and below current price
New York Master Range📈 New York Master Range (5-Min Timeframe)
Description:
This custom TradingView indicator captures the opening range based on the body high and low of the first 3 candles after 10:30 AM (BRT – Brasília Time) on the 5-minute timeframe — a technique often used during the New York market session.
🔍 How it works:
At exactly 10:30 AM (BRT), the indicator starts collecting the highs and lows of candle bodies (not wicks) for the next 3 five-minute candles.
Once the 3 candles are processed, the highest close/open (body high) and lowest close/open (body low) are plotted as static green and red lines on the chart.
These levels can act as key intraday support/resistance zones or range breakout triggers.
Dual Donchian Channels + Death CrossDual Donchain Channels with a 50/200 day angel/death cross indicator built in. Intended to be used on the daily time frame.
QQE + Signals RNEdited this to do away with larged signals of long and short to small triangles labeld only with QQE text
Multi-Mode MACD Signals v2Multi-Mode MACD Signals v2
Signal Types Explained ⚙️
You can now choose your preferred signal from a dropdown menu in the indicator's settings:
Pullback (Default): The original, high-probability strategy. It identifies "buy the dip" and "sell the rally" opportunities within an established trend.
Buy: Triggers on a bullish MACD/Signal line cross above the zero line.
Sell: Triggers on a bearish MACD/Signal line cross below the zero line.
Standard Crossover: The most common MACD signal. It's a pure momentum signal that triggers whenever the MACD line crosses the signal line, regardless of the trend.
Buy: MACD line crosses above the Signal line.
Sell: MACD line crosses below the Signal line.
Zero Line Cross: A trend-change signal. It identifies when the overall momentum shifts from bullish to bearish or vice-versa.
Buy: MACD line crosses above the Zero line.
Sell: MACD line crosses below the Zero line.
How Signals Are Displayed (Real-time vs. Confirmed)
This indicator addresses your request to have signals "display as it occurs" automatically. Here is how it works:
Real-time Alert (As it Occurs): On a live, developing candle, a "BUY" or "SELL" label may appear the instant the MACD conditions are met. This gives you the earliest possible warning.
Signal Repainting: Because the price is still moving within the live candle, the signal may appear and later disappear if the conditions are no longer met by the time the candle closes. This is known as "repainting".
Confirmed Signal: Once the candle closes, the signal is locked in and will never change. This is the confirmed, non-repainting signal.
To create alerts based on these signals, right-click a label on the chart, select "Add alert on Multi-Mode MACD Signals," and choose "Once Per Bar Close" for a confirmed signal or "Once Per Bar" for an earlier, real-time alert.
거래량 지표 전략 (최종)"Leverage 100x, 10% of capital committed, 0.3% profit target, 0.2% stop loss."
레버리지 100배 이용, 10프로 자본금 투입, 0.3프로 수익 , 0.2프로 손해
"Volume Indicator Strategy (Final)" Summary
This Pine Script strategy is designed to integrate volume data from multiple cryptocurrency exchanges (Binance, Bitget, OKX, Bybit) across spot and futures markets. It then uses this consolidated volume data to identify volume spikes and apply an RSI filter to generate buy/sell signals.
Key Features and Logic:
Multi-Exchange/Asset Volume Consolidation:
Based on user settings, it fetches and sums up spot and perpetual futures volume data from Binance, Bitget, OKX, and Bybit.
It uses the request.security function to query volume data from each specified exchange.
NA (Not Available) data points are safely handled and treated as 0 to prevent calculation errors.
Volume Spike Detection:
It calculates the Simple Moving Average (avg_volume) of the combined_volume over a lookback period (default 70 bars).
A vol_7x condition is met when the combined_volume is equal to or greater than 7 times (vol_multiplier_7x, user-configurable) the avg_volume.
RSI Filter (Optional):
An RSI (Relative Strength Index) filter (enable_rsi_filter, user-configurable) can be applied in conjunction with the volume spike condition.
Short Entry Condition: vol_7x (volume spike) & price_up (current bar's close is higher than the previous close) & RSI is 73 or greater (if filter is enabled).
Long Entry Condition: vol_7x (volume spike) & price_down (current bar's close is lower than the previous close) & RSI is 28 or less (if filter is enabled).
Strategy Entry/Exit:
When entry conditions are met, the strategy enters a position at market price.
It includes a re-entry cooldown period (default 10 bars) to prevent immediate re-entry in the same direction.
Fixed Take Profit and Stop Loss percentages (0.3% Take Profit, 0.2% Stop Loss) are set to manage open positions.
Visualization:
The combined_volume is plotted as columns (plot.style_columns) in a lower pane, changing color when the 7x volume spike condition is met.
The avg_volume is plotted as a line.
Volume values on the plot (and intended for the Y-axis scale) are formatted using format=format.volume to display in K (thousands), M (millions), B (billions) units.
The chart background color changes to indicate RSI overbought (>= 70, red) and oversold (<= 30, blue) zones.
Labels are displayed on the chart for individual trade P/L (Profit/Loss), and an info panel shows the total P/L over a user-defined period.
This strategy aims to capture significant market movements by aggregating volume data across various sources and combining it with price action and momentum (RSI) analysis to generate automated trading signals.
-------------------------------------------------------------------------------------------------------------
"거래량 지표 전략 (최종)" 요약
이 전략은 여러 암호화폐 거래소(바이낸스, 비트겟, OKX, 바이비트)의 현물(Spot) 및 선물(Futures) 거래량 데이터를 통합하여 사용하는 것을 핵심으로 합니다. 통합된 거래량 데이터를 바탕으로 거래량 급등을 포착하고 RSI 필터를 적용하여 매수/매도 신호를 생성하는 전략입니다.
주요 기능 및 로직:
다중 거래소/자산 거래량 통합:
사용자 설정에 따라 바이낸스, 비트겟, OKX, 바이비트의 현물 및 선물(무기한) 거래량을 개별적으로 가져와 합산합니다.
request.security 함수를 사용하여 각 거래소의 거래량 데이터를 요청합니다.
데이터가 없는 경우(NA)는 0으로 처리하여 계산 오류를 방지합니다.
거래량 급등 감지:
통합된 거래량(combined_volume)의 lookback 기간(기본 70봉) 이동평균(avg_volume)을 계산합니다.
combined_volume이 avg_volume의 7배(vol_multiplier_7x, 사용자 설정 가능) 이상으로 급등하면 vol_7x 조건을 만족합니다.
RSI 필터 (옵션):
거래량 급등 조건과 함께 RSI(상대 강도 지수) 필터(enable_rsi_filter, 사용자 설정 가능)를 적용할 수 있습니다.
매도(Short) 진입 조건: vol_7x (거래량 급등) & price_up (현재 봉 종가가 이전 봉보다 상승) & RSI가 73 이상일 때.
매수(Long) 진입 조건: vol_7x (거래량 급등) & price_down (현재 봉 종가가 이전 봉보다 하락) & RSI가 28 이하일 때.
전략 진입/청산:
위 진입 조건이 충족되면 시장가로 포지션에 진입합니다.
동일 방향으로 10봉 이내 재진입을 제한합니다.
고정 익절(Take Profit) 및 손절(Stop Loss) 비율(각각 0.3%, 0.2%)을 설정하여 포지션을 관리합니다.
시각화:
통합 거래량(combined_volume)은 차트 하단에 막대그래프(plot.style_columns)로 표시되며, 7배 급등 시 색상이 변경됩니다.
평균 거래량(avg_volume)은 선으로 표시됩니다.
거래량 값은 format=format.volume을 사용하여 K(천), M(백만), B(십억) 단위로 간소화되어 표시됩니다.
차트 배경색으로 RSI 과매수(70 이상, 빨간색) 및 과매도(30 이하, 파란색) 구간을 시각적으로 표시합니다.
개별 거래의 P/L(손익) 라벨과 지정된 기간 동안의 총 P/L을 차트 상단에 표시합니다.
이 전략은 여러 거래소의 거래량 데이터를 취합하여 시장의 전반적인 거래 활동을 파악하고, 이를 바탕으로 특정 패턴(거래량 급등 + 가격 방향 + RSI 필터)에 따라 매매 결정을 내리도록 설계되었습니다.