OBV Osc (No Same-Bar Exit)//@version=5
strategy("OBV Osc (No Same-Bar Exit)", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// === JSON ALERT STRINGS ===
callBuyJSON = 'ANSHUL '
callExtJSON = 'ANSHUL '
putBuyJSON = 'ANSHUL '
putExtJSON = 'ANSHUL '
// === INPUTS ===
length = input.int(20, title="OBV EMA Length")
sl_pct = input.float(1.0, title="Stop Loss %", minval=0.1)
tp_pct = input.float(2.0, title="Take Profit %", minval=0.1)
trail_pct = input.float(0.5, title="Trailing Stop %", minval=0.1)
// === OBV OSCILLATOR CALC ===
src = close
obv = ta.cum(ta.change(src) > 0 ? volume : ta.change(src) < 0 ? -volume : 0)
obv_ema = ta.ema(obv, length)
obv_osc = obv - obv_ema
// === SIGNALS ===
longCondition = ta.crossover(obv_osc, 0) and strategy.position_size == 0
shortCondition = ta.crossunder(obv_osc, 0) and strategy.position_size == 0
// === RISK SETTINGS ===
longStop = close * (1 - sl_pct / 100)
longTarget = close * (1 + tp_pct / 100)
shortStop = close * (1 + sl_pct / 100)
shortTarget = close * (1 - tp_pct / 100)
trailPoints = close * trail_pct / 100
// === ENTRY BAR TRACKING TO PREVENT SAME-BAR EXIT ===
var int entryBar = na
// === STRATEGY ENTRY ===
if longCondition
strategy.entry("Long", strategy.long)
entryBar := bar_index
alert(callBuyJSON, alert.freq_all)
label.new(bar_index, low, text="BUY CALL", style=label.style_label_up, color=color.new(color.green, 85), textcolor=color.black)
if shortCondition
strategy.entry("Short", strategy.short)
entryBar := bar_index
alert(putBuyJSON, alert.freq_all)
label.new(bar_index, high, text="BUY PUT", style=label.style_label_down, color=color.new(color.red, 85), textcolor=color.black)
// === EXIT ONLY IF BAR_INDEX > entryBar (NO SAME-BAR EXIT) ===
canExitLong = strategy.position_size > 0 and bar_index > entryBar
canExitShort = strategy.position_size < 0 and bar_index > entryBar
if canExitLong
strategy.exit("Exit Long", from_entry="Long", stop=longStop, limit=longTarget, trail_points=trailPoints, trail_offset=trailPoints)
if canExitShort
strategy.exit("Exit Short", from_entry="Short", stop=shortStop, limit=shortTarget, trail_points=trailPoints, trail_offset=trailPoints)
// === TRACK ENTRY/EXIT FOR ALERTS ===
posNow = strategy.position_size
posPrev = nz(strategy.position_size )
longExit = posPrev == 1 and posNow == 0
shortExit = posPrev == -1 and posNow == 0
if longExit
alert(callExtJSON, alert.freq_all)
label.new(bar_index, high, text="EXIT CALL", style=label.style_label_down, color=color.new(color.blue, 85), textcolor=color.black)
if shortExit
alert(putExtJSON, alert.freq_all)
label.new(bar_index, low, text="EXIT PUT", style=label.style_label_up, color=color.new(color.orange, 85), textcolor=color.black)
// === PLOTS ===
plot(obv_osc, title="OBV Oscillator", color=obv_osc > 0 ? color.green : color.red, linewidth=2)
hline(0, color=color.gray)
Volum
Only Break and Retest StrategyCombines various strategies of Break and Retest along with VWAP and 9 MA.
KT Adaptive Gold StrategyKT Adaptive Gold Strategy
📊 Strategy Overview
- Strategy Name: KT Adaptive Gold Strategy
- Type: Trend Following with Momentum Confirmation
- Market: Gold (XAUUSD) - Optimized for precious metals trading
- Timeframe: Multi-timeframe compatible (recommended: H1, H4, D1)
🎯 Core Strategy Logic
Primary Signal Generation
The strategy combines multiple technical analysis components to generate high-probability trading signals:
1. **Trend Identification**
- **Fast EMA (8)** vs **Slow EMA (21)** crossover system
- Bullish trend when Fast EMA > Slow EMA and price > Fast EMA
- Bearish trend when Fast EMA < Slow EMA and price < Fast EMA
2. **Momentum Confirmation**
- **RSI (14)** for momentum direction
- **MACD (12,26,9)** for trend momentum confirmation
- Bullish momentum: RSI > 50 AND MACD line > Signal line
- Bearish momentum: RSI < 50 AND MACD line < Signal line
3. **Structure Break Analysis**
- **Resistance Break:** Price closes above 20-period highest high
- **Support Break:** Price closes below 20-period lowest low
- Confirms breakout momentum and trend continuation
4. **Volume Validation**
- Entry signals require volume > 20-period SMA of volume
- Ensures institutional participation and signal strength
🔍 Market Regime Analysis
ADX-Based Trend Strength Filter
- **ADX (14)** with threshold of 25
- Only trades in trending markets (ADX > 25)
- Filters out choppy, ranging market conditions
Volatility Assessment
- **ATR-based volatility analysis** (14 periods)
- High volatility: ATR > 120% of 20-period average
- Normal volatility: ATR between 80-120% of average
- Low volatility: ATR < 80% of average
- Background color coding for visual market condition identification
📈 Entry Conditions
Long Entry Signal
**ALL conditions must be met:**
1. ✅ Bullish trend (Fast EMA > Slow EMA, Price > Fast EMA)
2. ✅ Bullish momentum (RSI > 50, MACD > Signal)
3. ✅ Resistance break (Close > 20-period high)
4. ✅ Volume confirmation (Volume > 20-period average)
5. ✅ Trending market (ADX > 25)
6. ✅ Signal cooldown period (10 bars minimum between signals)
Short Entry Signal
**ALL conditions must be met:**
1. ✅ Bearish trend (Fast EMA < Slow EMA, Price < Fast EMA)
2. ✅ Bearish momentum (RSI < 50, MACD < Signal)
3. ✅ Support break (Close < 20-period low)
4. ✅ Volume confirmation (Volume > 20-period average)
5. ✅ Trending market (ADX > 25)
6. ✅ Signal cooldown period (10 bars minimum between signals)
🛡️ Risk Management System
Stop Loss Methods
**3 Different SL calculation methods:**
1. **ATR-Based (Default):** 1.5x ATR from entry price
2. **Structure-Based:** Recent swing high/low with ATR buffer
3. **Percentage-Based:** Fixed 2% risk per trade
Take Profit Strategy
**Multiple TP levels for profit optimization:**
- **TP1:** 1.0x ATR (33% position closure)
- **TP2:** 2.0x ATR (33% position closure)
- **TP3:** 3.0x ATR (34% position closure)
Risk-Reward Ratios:
- Minimum 1:1 ratio with TP1
- Potential 1:2 ratio with TP2
- Maximum 1:3 ratio with TP3
🚀 Key Strategy Features
Adaptive Elements
- **Market regime detection** adjusts strategy behavior
- **Volatility-based position sizing** considerations
- **Dynamic support/resistance levels** update in real-time
Anti-Spam Protection
- **10-bar cooldown** between signals prevents overtrading
- **Signal type tracking** prevents immediate opposite signals
- **Confirmation requirements** reduce false breakouts
Performance Tracking
- **Real-time win rate calculation**
- **Total trades counter**
- **PnL tracking per completed trade**
- **Visual performance dashboard**
📱 User Interface & Alerts
Visual Elements
- **Support/Resistance levels** plotted as horizontal lines
- **Moving averages** with dynamic color coding
- **Entry signals** marked with triangular shapes
- **Active position levels** (Entry, SL, TP1-3) displayed
- **Market condition background** color coding
Information Table
**Real-time dashboard showing:**
- Current market condition (Trending/Ranging)
- Active position type (Long/Short/None)
- Entry price and risk levels
- Performance statistics
- Win rate percentage
Alert System
- **Entry signals** with complete trade setup information
- **Position management** alerts for TP/SL levels
- **Custom alert messages** with entry, SL, and TP prices
🎪 Strategy Strengths
1. **Multi-Confirmation System:** Reduces false signals through multiple filter layers
2. **Adaptive Risk Management:** ATR-based levels adjust to market volatility
3. **Trend Following Nature:** Captures major market moves in gold
4. **Professional Risk Management:** Multiple TP levels and position scaling
5. **Market Regime Awareness:** Only trades in optimal market conditions
⚠️ Strategy Considerations
1. **Trending Market Dependency:** Performance may decline in ranging markets
2. **Gold Market Specificity:** Optimized for precious metals characteristics
3. **Parameter Sensitivity:** Requires periodic optimization for changing market conditions
4. **Commission Impact:** 0.02% commission factored into backtesting
🔧 Recommended Settings
Optimal Timeframes
- **Primary:** H4 (4-hour) for swing trading
- **Secondary:** H1 (1-hour) for more frequent signals
- **Conservative:** D1 (daily) for position trading
Market Sessions
- **Best Performance:** During London/New York overlap
- **Avoid:** Low volatility Asian session
- **Special Attention:** News events and Fed announcements
📊 Expected Performance Characteristics
- **Trading Frequency:** 2-5 signals per week (H4 timeframe)
- **Average Hold Time:** 1-3 days per position
- **Risk per Trade:** 1.5% (based on ATR stop loss)
- **Target Win Rate:** 60-70% with proper market conditions
- **Risk-Reward:** 1:2 average across all TP levels
Growthx 365📌 GrowthX 365 — Adaptive Crypto Strategy
GrowthX 365 is a precision-built Pine Script strategy designed for crypto traders who want hands-off, high-frequency execution with clear, consistent logic.
It adapts dynamically to market volatility using multi-timeframe filters and manages exits with a smart 3-tier take-profit and stop-loss system.
Built for automation, GrowthX 365 helps eliminate emotional decision-making and gives traders a rules-based, 24/7 edge across major crypto pairs.
⚙️ Core Features:
• ✅ Multi-timeframe, non-repainting trend confirmation
• ✅ Configurable TP1 / TP2 / TP3 + Fixed SL
• ✅ Trailing stop & risk-reward tuning supported
• ✅ On-chart labels, trade visuals & stat dashboard
• ✅ Fully compatible with Cornix, WunderTrading, 3Commas bots
• ✅ Works in trending, ranging, and volatile markets
🧪 Strategy Backtest Highlights (May 2025)
🔹 EIGEN/USDT — 15m Timeframe
• Net Return: +318%
• Drawdown: $35 (3.5%)
• Trades: 247
• Win Rate: 49%
📸 Screenshot: ibb.co
🔹 AVAX/USDT — 15m Timeframe
• Net Return: +108%
• Drawdown: $22.5 (2.25%)
• Trades: 115
• Win Rate: 49%
📸 Screenshot: ibb.co
🧪 Backtest settings used:
Capital: $1000 • Risk per trade: $100 • Slippage: 0.1% • Commission: 0.04%
📌 These results reflect one-month performance. Strategy has shown similar behavior across coins like SOL, INJ, and ARB in trending markets.
⚠️ Backtest performance does not guarantee future results. Always validate settings per coin and timeframe.
Access:
This script is invite-only and closed-source.
Please check my profile signature for access details.
Asset master - POCKET Pro + Range Bounce Strategy with ScreenerPOCKET Pro + Range Bounce Strategy with Screener
Smart Trend-Powered Long-Only Entry System with Asset Screener
This invite-only script combines two of the most reliable long-entry systems — our POCKET Pro Strategy and a dynamic Range Bounce — to deliver high-quality long setups on breakout-ready assets only. It includes:
✅ Smart Trend Confirmation
✅ Volatility-Driven Entries when price is near Range Lows
✅ filter to avoid choppy trends
✅ Automated Screener Logic that pre-selects assets
✅ Built-in ATR-based SL/TP + Optional Trailing Profit
✅ CryptoHopper-compatible alert format for automation
Access Instructions:
Follow me on TradingView
Message me with your username and intended use , i will send u link to join
For faster access, join the Telegram Bot @PocketVaultAlertsBot
Pro Strategy: This invite-only strategy is part of the POCKET Signal Suite – a professional-grade system designed for traders who want high-confidence entries, volatility-adjusted risk management, and automated execution via webhooks (CryptoHopper-ready).
Strategy Highlights:
🔹 Smart Trend Filter
Only trades in strong bullish trends – a proven higher timeframe trend filter.
🔹 Momentum Confirmation
filter out weak or choppy setups.
🔹 Volume Breakout Detection
Enters only on high-volume breakout conditions, filtering out low-momentum moves.
🔹 Dynamic Risk Management
Utilizes ATR-based Stop Loss and a configurable Take Profit system, including trailing TP for trend continuation trades.
🔹 Webhook-Ready Alerts
Fully compatible with CryptoHopper OR OTHER BOT via webhook
Best For:
15min–1h crypto charting
Swing & intraday strategies
Automated systems via webhook (CryptoHopper, 3Commas, etc.)
8↔20 EMA Cross with 100‑EMA Trend – NY SessionWhat each EMA does 🎯
EMA Typical look-back Role in the setup
8-EMA ~ 2 trading days on a 5-min chart (8 recent closes) Trigger line – reacts quickest to price; defines very short-term momentum.
21-EMA ~ 1 trading week on a 5-min chart Signal line – smooths noise; confirms momentum once it persists a bit.
100-EMA Varies with timeframe (≈ one month of 5-min data) Trend filter – separates bullish from bearish regimes so you only trade in the dominant direction.
Volume Exhaustion RSI Reversal StrategyKey Features:
Volume Logic:
1. Identifies two consecutive red bars (down periods) or green bars (up periods)
2. First down or up bars has the highest volume of the three
3. Volume decreases on the second down or up bars
4. Current (third) bar is green for up Reversal or red for down Reversal with higher volume than second bar
RSI Logic:
Uses standard 14-period RSI
Detects "V" shape pattern (decline, trough, rise)
Requires trough value <= 30 (oversold condition) or <= 70 (overbought condition)
Current bar shows RSI rising from trough
Execution:
Enters long/Short position when both volume and RSI conditions are met
Plots green "BUY/SELL" labels below the trigger candle
Visualization:
Green "BUY/SELL" labels appear below qualifying candles
Strategy positions shown in the strategy tester
How To Use:
Apply to any timeframe (works best on 5M-15M charts)
Combine with price action confirmation for example when candle 3 closes above candle 2 for "BUY" Or when Closes below for "SELL"
Ideal for oversold reversals in downtrends
Works best with volume-based assets
Note: The strategy enters at the close of the trigger candle. Always backtest before live trading and consider adding stop-loss protection.
RFM Strategy - High QualityI trade high-probability resistance fades using a systematic 4-pillar approach that has delivered a proven 60%+ win rate with 2.5+ profit factor."
📊 Core Strategy Elements:
1. VRF Resistance Identification:
Multiple resistance level confluence (minimum 2 levels)
Dynamic resistance zones using 20-period high/low ranges
Only trade when price approaches clustered resistance
2. Volume Weakness Confirmation:
Volume ROC must be ≤ -30% (weak buying pressure)
Identifies exhaustion rallies with poor participation
Confirms institutional selling vs retail buying
3. Momentum Divergence:
SMI ≥ 60 (extreme overbought) OR 25-point momentum collapse
Multi-timeframe confirmation for higher reliability
Catches momentum exhaustion at key levels
4. Price Rejection Patterns:
Long upper wicks (2x body size) at resistance
Doji formations showing indecision
Failed breakout patterns with immediate rejection
⚡ Execution:
Entry: Only when ALL 4 conditions align simultaneously
Risk Management: 6-point stops, 12-point targets (2:1 R/R minimum)
Timeframe: 5-minute charts for precise entries
Selectivity: Quality over quantity - average 5 trades per period
🏆 Performance:
60% win rate (matches manual trading performance)
2.59 Profit Factor (highly profitable)
Systematic approach eliminates emotional decisions
"This strategy automates the discretionary resistance fade setups that institutional traders use, with strict filters ensuring only the highest-probability opportunities."
Enhanced Volume Profile Strategy [Lite]🔍 Enhanced Volume Profile Strategy
A smart and nimble trading strategy that blends Volume Profile theory with classic trend and volatility filters — optimized for intraday breakout and pullback setups.
🧠 Key Concepts:
Volume Profile (Lite Simulation): Approximates volume distribution over a fixed period to identify:
VPOC (Volume Point of Control): Price level with the highest traded volume
VAH / VAL (Value Area High / Low): Range containing a customizable % of total volume
Breakout + Pullback Logic: Enters on breakout above VAH or below VAL, after a healthy pullback confirms the move
Trend Filtering: Uses SMA to align trades with the dominant trend
Volume Confirmation: Optional volume spike check to avoid low-liquidity traps
ATR-Based Trailing Stop: Dynamically adapts exit levels based on recent volatility
⚙️ Strategy Inputs:
Volume Profile Period: How many bars to analyze for volume distribution
Value Area %: Range around VPOC containing the majority of volume
ATR & MA Periods: Configure volatility and trend filters
Pullback Bars: Fine-tune confirmation before entry
Volume Confirmation Multiplier: Demand a surge in volume before acting
✅ Entries:
Long: Breaks above VAH, confirms with volume and trend, then pulls back and reclaims breakout level
Short: Breaks below VAL, confirms with volume and trend, then pulls back and breaks again downward
❌ Exits:
ATR-based trailing stop protects gains and adapts to market movement
📈 Plots:
VPOC: Orange
VAH: Red
VAL: Green
This "Lite" version is lightweight and highly customizable — perfect for traders who want to balance volume insights with price action and trend-following logic. Ideal for futures, forex, and crypto on lower timeframes.
Enhanced Volume Profile Strategy [Lite]🔍 Enhanced Volume Profile Strategy
A smart and nimble trading strategy that blends Volume Profile theory with classic trend and volatility filters — optimized for intraday breakout and pullback setups.
🧠 Key Concepts:
Volume Profile (Lite Simulation): Approximates volume distribution over a fixed period to identify:
VPOC (Volume Point of Control): Price level with the highest traded volume
VAH / VAL (Value Area High / Low): Range containing a customizable % of total volume
Breakout + Pullback Logic: Enters on breakout above VAH or below VAL, after a healthy pullback confirms the move
Trend Filtering: Uses SMA to align trades with the dominant trend
Volume Confirmation: Optional volume spike check to avoid low-liquidity traps
ATR-Based Trailing Stop: Dynamically adapts exit levels based on recent volatility
⚙️ Strategy Inputs:
Volume Profile Period: How many bars to analyze for volume distribution
Value Area %: Range around VPOC containing the majority of volume
ATR & MA Periods: Configure volatility and trend filters
Pullback Bars: Fine-tune confirmation before entry
Volume Confirmation Multiplier: Demand a surge in volume before acting
✅ Entries:
Long: Breaks above VAH, confirms with volume and trend, then pulls back and reclaims breakout level
Short: Breaks below VAL, confirms with volume and trend, then pulls back and breaks again downward
❌ Exits:
ATR-based trailing stop protects gains and adapts to market movement
📈 Plots:
VPOC: Orange
VAH: Red
VAL: Green
This "Lite" version is lightweight and highly customizable — perfect for traders who want to balance volume insights with price action and trend-following logic. Ideal for futures, forex, and crypto on lower timeframes.
JS Elite XAUUSD Scalper v1.0📈 Elite XAUUSD Scalper v1.0 – A Premium Scalping Strategy for Gold
The Elite XAUUSD Scalper v1.0 is a high-performance scalping strategy designed to capture quick price movements in the XAUUSD (Gold) market. Built with precision and optimized for intraday trading, this strategy uses a combination of Fast & Slow EMAs, ATR (Average True Range), and advanced Order Block & Liquidity Sweep logic to identify profitable opportunities in real-time.
Key Features:
Multiple Confluences: The strategy utilizes the HTF Trend Filter, RSI, Volume Analysis, and Order Blocks to ensure that trades are placed with the highest probability of success.
Real-time Entry & Exit Signals: Automated long and short entries with Take-Profit (TP), Stop-Loss (SL), and Partial TP levels for precise risk management.
Trailing Stop: Automatically trails stop-loss to lock in profits as the price moves in your favor, ensuring that you can ride the trend while protecting your gains.
Alerts: Get notified of long and short signals in real-time via TradingView alerts. Never miss a trade!
Strategy Logic:
Trend Filter: The strategy incorporates a higher time-frame (HTF) trend filter, which ensures that trades are taken only in the direction of the overall trend.
Scalping Precision: The Fast EMA (4) and Slow EMA (14) ensure timely entry and exit points, while the ATR (2) adds an extra layer of risk management, ensuring your stops are intelligently placed.
Risk-to-Reward: Set to a 2:1 reward-to-risk ratio, with an option for partial take-profit at 1.2x RR, allowing you to lock in gains while letting the trade run.
Order Block & Liquidity Sweep: Identifies price levels with high institutional interest, ensuring your trades align with market liquidity.
Ideal For:
Intraday Traders: This strategy is perfect for traders looking to capitalize on fast, small price movements in XAUUSD (Gold).
Scalpers & Swing Traders: It’s designed to handle quick moves while minimizing drawdown and securing profits during market swings.
Why Choose Elite XAUUSD Scalper v1.0?
Customizable: Adjust the strategy's risk parameters, trailing stop, and partial TP to suit your trading style and risk tolerance.
Highly Accurate: Combining the Fast & Slow EMAs, ATR, and order block logic, this strategy increases the accuracy of your trades, helping you stay ahead of market movements.
Automated: Set it and forget it — the strategy takes care of entries, exits, and risk management, freeing you to focus on other markets or activities.
🚀 Start Trading with Elite XAUUSD Scalper v1.0 Today!
Unlock the power of high-frequency scalping with the Elite XAUUSD Scalper v1.0. Get access to the strategy and start trading smarter today.
💬 Disclaimer
This strategy is for educational purposes only. Past performance is not indicative of future results. Use this strategy at your own risk and ensure that you fully understand its features and risks before trading with real capital.
🎯 Ready to Take Your Trading to the Next Level?
Access the strategy via Invite-Only access on TradingView
Enjoy personalized, automated, and highly accurate signals that can boost your trading potential
Start making consistent profits with a professional trading approach
HedgeFi - 30 Min OpenTest script for Miyagi
Script maps the first 30minute candle high and low for London and NY sessions.
When price cleanly closes above the high or below the low, within the first 90 minutes of the session, a signal is generated.
Aligned to NY timezone.
Liquidity Sweep Strategy v2 - Fixed Close LabelsThe Liquidity Sweep Strategy v2 is designed to detect stop-loss hunting behavior, commonly seen in institutional trading. It capitalizes on false breakouts beyond recent swing highs or lows (liquidity zones), which are followed by sharp reversals.
This strategy is particularly effective during high-volume liquidity grabs when markets trigger stop-loss clusters and then reverse direction — a phenomenon often referred to as a liquidity sweep or stop hunt
Out of the Noise Intraday Strategy with VWAP [YuL]This is my (naive) implementation of "Beat the Market An Effective Intraday Momentum Strategy for S&P500 ETF (SPY)" paper by Carlo Zarattini, Andrew Aziz, Andrea Barbon, so the credit goes to them.
It is supposed to run on SPY on 30-minute timeframe, there may be issues on other timeframes.
I've used settings that were used by the authors in the original paper to keep it close to the publication, but I understand that they are very aggressive and probably shouldn't be used like that.
Results are good, but not as good as they are stated in the paper (unsurprisingly?): returns are smaller and Sharpe is very low (which is actually weird given the returns and drawdown ratio), there are also margin calls if you enable margin check (and you should).
I have my own ideas of improvements which I will probably implement separately to keep this clean.
Deviation between Quantity and Price - Event Contract Quantitative strategy is a strategy developed based on trading volume and price behavior, mainly to capture the deviation between trading volume strength and price behavior in the short term, and set it as a unique fixed position of two K-lines. Therefore, this strategy is only applicable to event contract trading!!!
Note: The indicators and parameters of this strategy are specifically selected for the 5-minute cycle of ETH contracts, so they are not applicable to other varieties and cycles!
This strategy combines multiple technical indicators, quantitative analysis, and market trend filters to identify high probability trading opportunities and support both long and short trades.
Its core features include:
Quantitative analysis: Focus on the surge in trading volume, and confirm market momentum through indicators such as net trading volume (OBV) and cash flow (CMF).
Price behavior: Analyze the K-line pattern (such as long/short breaks) and its entity to full range ratio to ensure the reliability of price movements.
Trend filtering: Use exponential moving averages (EMA), average trend indices (ADX), and custom benchmark moving averages (Base MA) to confirm trend direction and strength.
External market environment: Introduce Bitcoin (BTC/USDT) trend data to align with broader market sentiment.
Risk management: Manage risks through controlling position size, trading direction, and cooling off periods after losses.
Performance tracking: Provide a detailed statistical panel to monitor transaction frequency, win rate, and continuous profit/loss records.
Those who need a strategy can contact me for authorization.
US30 Stealth StrategyOnly works on US30 (CAPITALCOM) 5 Minute chart
📈 Core Concept:
This is a trend-following strategy that captures strong market continuations by entering on:
The 3rd swing in the current trend,
Confirmed by a volume-verified engulfing candle,
With adaptive SL/TP and position sizing based on risk.
🧠 Entry Logic:
✅ Trend Filter
Uses a 50-period Simple Moving Average (SMA).
Buy only if price is above SMA → Uptrend
Sell only if price is below SMA → Downtrend
✅ Swing Count Logic
For buy: Wait for the 3rd higher low
For sell: Wait for the 3rd lower high
Uses a 5-bar lookback to detect highs/lows
This ensures you’re not buying early — but after trend is confirmed with structure.
✅ Engulfing Candle Confirmation
Bullish engulfing for buys
Bearish engulfing for sells
Candle must engulf previous bar completely (body logic)
✅ Volume Filter
Current candle volume must be greater than the 20-period volume average
Ensures trades only occur with institutional participation
✅ MA Slope Filter
Requires the slope of the 50 SMA over the last 3 candles to exceed 0.1
Avoids chop or flat trends
Adds momentum confirmation to the trade
✅ Session Filter (Time Filter)
Trades only executed between:
2:00 AM to 11:00 PM Oman Time (UTC+4)
Helps avoid overnight chop and illiquidity
📊 Position Sizing & Risk Management
✅ Smart SL (Adaptive Stop Loss)
SL is based on full size of the signal candle (including wick)
But if candle is larger than 25 points, SL is cut to half the size
This prevents oversized risk from long signals during volatile moves.
Timeshifter Triple Timeframe Strategy w/ SessionsOverview
The "Enhanced Timeshifter Triple Timeframe Strategy with Session Filtering" is a sophisticated trading strategy designed for the TradingView platform. It integrates multiple technical indicators across three different timeframes and allows traders to customize their trading Sessions. This strategy is ideal for traders who wish to leverage multi-timeframe analysis and session-based trading to enhance their trading decisions.
Features
Multi-Timeframe Analysis and direction:
Higher Timeframe: Set to a daily timeframe by default, providing a broader view of market trends.
Trading Timeframe: Automatically set to the current chart timeframe, ensuring alignment with the trader's primary analysis period.
Lower Timeframe: Set to a 15-minute timeframe by default, offering a granular view for precise entry and exit points.
Indicator Selection:
RMI (Relative Momentum Index): Combines RSI and MFI to gauge market momentum.
TWAP (Time Weighted Average Price): Provides an average price over a specified period, useful for identifying trends.
TEMA (Triple Exponential Moving Average): Reduces lag and smooths price data for trend identification.
DEMA (Double Exponential Moving Average): Similar to TEMA, it reduces lag and provides a smoother trend line.
MA (Moving Average): A simple moving average for basic trend analysis.
MFI (Money Flow Index): Measures the flow of money into and out of a security, useful for identifying overbought or oversold conditions.
VWMA (Volume Weighted Moving Average): Incorporates volume data into the moving average calculation.
PSAR (Parabolic SAR): Identifies potential reversals in price movement.
Session Filtering:
London Session: Trade during the London market hours (0800-1700 GMT+1).
New York Session: Trade during the New York market hours (0800-1700 GMT-5).
Tokyo Session: Trade during the Tokyo market hours (0900-1800 GMT+9).
Users can select one or multiple sessions to align trading with specific market hours.
Trade Direction:
Long: Only long trades are permitted.
Short: Only short trades are permitted.
Both: Both long and short trades are permitted, providing flexibility based on market conditions.
ADX Confirmation:
ADX (Average Directional Index): An optional filter to confirm the strength of a trend before entering a trade.
How to Use the Script
Setup:
Add the script to your TradingView chart.
Customize the input parameters according to your trading preferences and strategy requirements.
Indicator Selection:
Choose the primary indicator you wish to use for generating trading signals from the dropdown menu.
Enable or disable the ADX confirmation based on your preference for trend strength analysis.
Session Filtering:
Select the trading sessions you wish to trade in. You can choose one or multiple Sessions based on your trading strategy and market focus.
Trade Direction:
Set your preferred trade direction (Long, Short, or Both) to align with your market outlook and risk tolerance. You can use this feature to gauge the market and understand the possible directions.
Tips for Profitable and Safe Trading:
Recommended Timeframes Combination:
LT: 1m , CT: 5m, HT: 1H
LT: 1-5m , CT: 15m, HT: 4H
LT: 5-15m , CT: 4H, HT: 1W
Backtesting:
Always backtest the strategy on historical data to understand its performance under various market conditions.
Adjust the parameters based on backtesting results to optimize the strategy for your specific trading style.
Risk Management:
Use appropriate risk management techniques, such as setting stop-loss and take-profit levels, to protect your capital.
Avoid over-leveraging and ensure that you are trading within your risk tolerance.
Market Analysis:
Combine the script with other forms of market analysis, such as fundamental analysis or market sentiment, to make well-rounded trading decisions.
Stay informed about major economic events and news that could impact market volatility and trading sessions.
Continuous Monitoring:
Regularly monitor the strategy's performance and make adjustments as necessary.
Keep an eye on the results and settings for real-time statistics and ensure that the strategy aligns with current market conditions.
Education and Practice:
Continuously educate yourself on trading strategies and market dynamics.
Practice using the strategy in a demo account before applying it to live trading to gain confidence and understanding.
Volume and Volatility Ratio Indicator-WODI策略名称
交易量与波动率比例策略-WODI
一、用户自定义参数
vol_length:交易量均线长度,计算基础交易量活跃度。
index_short_length / index_long_length:指数短期与长期均线长度,用于捕捉中短期与中长期趋势。
index_magnification:敏感度放大倍数,调整指数均线的灵敏度。
index_threshold_magnification:阈值放大因子,用于动态过滤噪音。
lookback_bars:形态检测回溯K线根数,用于捕捉反转模式。
fib_tp_ratio / fib_sl_ratio:斐波那契止盈与止损比率,分别对应黄金分割(0.618/0.382 等)级别。
enable_reversal:反转信号开关,开启后将原有做空信号反向为做多信号,用于单边趋势加仓。
二、核心计算逻辑
交易量百分比
使用 ta.sma 计算 vol_ma,并得到 vol_percent = volume / vol_ma * 100。
价格波动率
volatility = (high – low) / close * 100。
构建复合指数
volatility_index = vol_percent * volatility,并分别计算其短期与长期均线(乘以 index_magnification)。
动态阈值
index_threshold = index_long_ma * index_threshold_magnification,过滤常规波动。
三、信号生成与策略执行
做多/做空信号
当短期指数均线自下而上突破长期均线,且 volatility_index 突破 index_threshold 时,发出做多信号。
当短期指数均线自上而下跌破长期均线,且 volatility_index 跌破 index_threshold 时,发出做空信号。
反转信号模式(可选)
若 enable_reversal = true,则所有做空信号反向为做多,用于在强趋势行情中加仓。
止盈止损管理
进场后自动设置斐波那契止盈位(基于入场价 × fib_tp_ratio)和止损位(入场价 × fib_sl_ratio)。
支持多级止盈:可依次以 0.382、0.618 等黄金分割比率分批平仓。
四、图表展示
策略信号标记:图上用箭头标明每次做多/做空(或反转加仓)信号。
斐波那契区间:在K线图中显示止盈/止损水平线。
复合指数与阈值线:与原版相同,在独立窗口绘制短、长期指数均线、指数曲线及阈值。
量能柱状:高于均线时染色,反转模式时额外高亮。
Strategy Name
Volume and Volatility Ratio Strategy – WODI
1. User-Defined Parameters
vol_length: Length for volume SMA.
index_short_length / index_long_length: Short and long MA lengths for the composite index.
index_magnification: Sensitivity multiplier for index MAs.
index_threshold_magnification: Threshold multiplier to filter noise.
lookback_bars: Number of bars to look back for pattern detection.
fib_tp_ratio / fib_sl_ratio: Fibonacci take-profit and stop-loss ratios (e.g. 0.618, 0.382).
enable_reversal: Toggle for reversal mode; flips short signals to long for trend-following add-on entries.
2. Core Calculation
Volume Percentage:
vol_ma = ta.sma(volume, vol_length)
vol_percent = volume / vol_ma * 100
Volatility:
volatility = (high – low) / close * 100
Composite Index:
volatility_index = vol_percent * volatility
Short/long MAs applied and scaled by index_magnification.
Dynamic Threshold:
index_threshold = index_long_ma * index_threshold_magnification.
3. Signal Generation & Execution
Long/Short Entries:
Long when short MA crosses above long MA and volatility_index > index_threshold.
Short when short MA crosses below long MA and volatility_index < index_threshold.
Reversal Mode (optional):
If enable_reversal is on, invert all short entries to long to scale into trending moves.
Fibonacci Take-Profit & Stop-Loss:
Automatically set TP/SL levels at entry price × respective Fibonacci ratios.
Supports multi-stage exits at 0.382, 0.618, etc.
4. Visualization
Signal Arrows: Marks every long/short or reversal-add signal on the chart.
Fibonacci Zones: Plots TP/SL lines on the price panel.
Index & Threshold: Same as v1.0, with MAs, index curve, and threshold in a separate sub-window.
Volume Bars: Colored when above vol_ma; extra highlight if a reversal-add signal triggers
G-Bot v3Overview:
G-Bot is an invite-only Pine Script tailored for traders seeking a precise, automated breakout strategy. This closed-source script integrates with 3Commas via API to execute trades seamlessly, combining classic indicators with proprietary logic to identify high-probability breakouts. G-Bot stands out by filtering market noise through a unique confluence of signals, offering adaptive risk management, and employing advanced alert deduplication to ensure reliable automation. Its purpose-built design delivers actionable signals for traders prioritizing consistency and efficiency in trending markets.
What It Does and How It Works:
G-Bot generates trade signals by evaluating four key market dimensions—trend, price action, momentum, and volume—on each 60-minute bar. The script’s core components and their roles are:
Trend Detection (EMAs): Confirms trend direction by checking if the 5-period EMA is above (bullish) or below (bearish) the 6-period EMA, with the price positioned accordingly (above the 5-period EMA for longs, below for shorts). The tight EMA pairing is optimized for the 60-minute timeframe to capture sustained trends while minimizing lag.
Price Action Trigger (Swing Highs/Lows): Identifies breakouts when the price crosses above the previous swing high (for longs) or below the previous swing low (for shorts), using a period lookback to focus on recent price pivots. This ensures entries align with significant market moves.
Momentum Filter (RSI): Validates breakouts by requiring RSI to fall within moderated ranges. These ranges avoid overbought/oversold extremes, prioritizing entries with balanced momentum to enhance trade reliability.
Volume Confirmation (3-period SMA): Requires volume to exceed its 3-period SMA, confirming that breakouts are driven by strong market participation, reducing the risk of false moves.
Risk Management (14-period ATR): Calculates stop-loss distances (ATR) and trailing stops (ATR and ATR-point offset) to align trades with current volatility, protecting capital and locking in profits.
These components work together to create a disciplined system: the EMAs establish trend context, swing breaks confirm price momentum, RSI filters for optimal entry timing, and volume ensures market conviction. This confluence minimizes false signals, a critical advantage for hourly breakout trading.
Why It’s Original and Valuable:
G-Bot’s value lies in its meticulous integration of standard indicators into a non-standard, automation-focused system. Its unique features include:
Curated Signal Confluence: Unlike generic breakout scripts that rely on single-indicator triggers (e.g., EMA crossovers), G-Bot requires simultaneous alignment of trend, price action, momentum, and volume. This multi-layered approach, reduces noise and prioritizes high-conviction setups, addressing a common flaw in simpler strategies.
Proprietary Alert Deduplication: G-Bot employs a custom mechanism to prevent redundant alerts, using a 1-second minimum gap and bar-index tracking. This ensures signals are actionable and compatible with 3Commas’ high-frequency automation, a feature not found in typical Pine Scripts.
Adaptive Position Sizing: The script calculates trade sizes based on user inputs (1-5% equity risk, max USD cap, equity threshold) and ATR-derived stop distances, ensuring positions reflect both account size and market conditions. This dynamic approach enhances risk control beyond static sizing methods.
3Commas API Optimization: G-Bot generates JSON-formatted alerts with precise position sizing and exit instructions, enabling seamless integration with 3Commas bots. This level of automation, paired with detailed Telegram alerts for monitoring, streamlines the trading process.
Visual Clarity: On-chart visuals—green triangles for long entries, red triangles for shorts, orange/teal lines for swing levels, yellow circles for price crosses—provide immediate insight into signal triggers, allowing traders to validate setups without accessing the code.
G-Bot is not a repackaging of public code but a specialized tool that transforms familiar indicators into a robust, automated breakout system. Its originality lies in the synergy of its components, proprietary alert handling, and trader-centric automation, justifying its invite-only status.
How to Use:
Setup: Apply G-Bot to BITGET’s BTCUSDT.P chart on a 60-minute timeframe.
3Commas Configuration: Enter your 3Commas API Secret Key and Bot UUID in the script’s input settings to enable webhook integration.
Risk Parameters: Adjust Risk % (1-5%), Max Risk ($), and Equity Threshold ($) to align position sizing with your account and risk tolerance.
Webhook Setup: Configure 3Commas to receive JSON alerts for automated trade execution. Optionally, connect Telegram for detailed signal notifications.
Monitoring: Use on-chart visuals to track signals:
Green triangles (below bars) mark long entries; red triangles (above bars) mark shorts.
Orange lines show swing highs; teal lines show swing lows.
Yellow circles indicate price crosses; purple crosses highlight volume confirmation.
Testing: Backtest G-Bot in a demo environment to validate performance and ensure compatibility with your trading strategy.
Setup Notes : G-Bot is a single, self-contained script for BTCUSDT.P on 60-minute charts, with all features accessible via user inputs. No additional scripts or passwords are required, ensuring compliance with TradingView’s single-publication rule.
Disclaimer: Trading involves significant risks, and past performance is not indicative of future results. Thoroughly test G-Bot in a demo environment before deploying it in live markets.
Full setup support will be provided
SwingTrade VWAP Strategy[TiamatCrypto]V1.1This Pine Script® code creates a trading strategy called "SwingTrade VWAP Strategy V1.1." This strategy incorporates various trading tools, such as VWAP (Volume Weighted Average Price), ADX (Average Directional Index), and volume signals. Below is an explanation of the components and logic within the script:
### Overview of Features
- **VWAP:** A volume-weighted moving average that assesses price trends relative to the VWAP level.
- **ADX:** A trend strength indicator that helps confirm the strength of bullish or bearish trends.
- **Volume Analysis:** Leverages volume data to gauge momentum and identify volume-weighted buy/sell conditions.
- **Dynamic Entry/Exit Signals:** Combines the above indicators to produce actionable buy/sell or exit signals.
- **Customizable Inputs:** Inputs for tuning parameters like VWAP period, ADX thresholds, and volume sensitivity.
---
### **Code Breakdown**
#### **Input Parameters**
The script begins by defining several user-configurable variables under groups. These include indicators' on/off switches (`showVWAP`, `enableADX`, `enableVolume`) and input parameters for VWAP, ADX thresholds, and volume sensitivity:
- **VWAP Period and Threshold:** Controls sensitivity for VWAP signal generation.
- **ADX Settings:** Allows users to configure the ADX period and strength threshold.
- **Volume Ratio:** Detects bullish/bearish conditions based on relative volume patterns.
---
#### **VWAP Calculation**
The script calculates VWAP using the formula:
\
Where `P` is the typical price (`(high + low + close)/3`) and `V` is the volume.
- It resets cumulative values (`sumPV` and `sumV`) at the start of each day.
- Delta percentage (`deltaPercent`) is calculated as the percentage difference between the close price and the VWAP.
---
#### **Indicators and Signals**
1. **VWAP Trend Signals:**
- Identifies bullish/bearish conditions based on price movement (`aboveVWAP`, `belowVWAP`) and whether the price is crossing the VWAP level (`crossingUp`, `crossingDown`).
- Also detects rising/falling delta changes based on the VWAP threshold.
2. **ADX Calculation:**
- Calculates the directional movement (`PlusDM`, `MinusDM`) and smoothed values for `PlusDI`, `MinusDI`, and `ADX`.
- Confirms strong bullish/bearish trends when ADX crosses the defined threshold.
3. **Volume-Based Signals:**
- Evaluates the ratio of bullish volume (when `close > VWAP`) to bearish volume (when `close < VWAP`) over a specified lookback period.
---
#### **Trade Signals**
The buy and sell signals are determined by combining conditions from the VWAP, ADX, and volume signals:
- **Buy Signal:** Triggered when price upward crossover VWAP, delta rises above the threshold, ADX indicates a strong bullish trend, and volume confirms bullish momentum.
- **Sell Signal:** Triggered under inverse conditions.
- Additionally, exit conditions (`exitLong` and `exitShort`) are based on VWAP crossovers combined with the reversal of delta values.
---
#### **Plotting and Display**
The strategy plots VWAP on the chart and adds signal markers for:
- **Buy/Long Entry:** Green triangle below bars.
- **Sell/Short Entry:** Red triangle above bars.
- **Exit Signals:** Lime or orange "X" shapes for exits from long/short positions.
- Additionally, optional text labels are displayed to indicate the type of signal.
---
#### **Trading Logic**
The script's trading logic executes as follows:
- **Entries:**
- Executes long trades when the `buySignal` condition is true.
- Executes short trades when the `sellSignal` condition is true.
- **Exits:**
- Closes long positions upon `exitLong` conditions.
- Closes short positions upon `exitShort` conditions.
- The strategy calculates profits and visualizes the trade entry, exit, and running profit within the chart.
---
#### **Alerts**
Alerts are set up to notify traders via custom signals for buy and sell trades.
---
### **Use Case**
This script is suitable for day traders, swing traders, or algorithmic traders who rely on confluence signals from VWAP, ADX, and volume momentum. Its modular structure (e.g., the ability to enable/disable specific indicators) makes it highly customizable for various trading styles and financial instruments.
#### **Customizability**
- Adjust VWAP, ADX, and volume sensitivity levels to fit unique market conditions or asset classes.
- Turn off specific criteria to focus only on VWAP or ADX signals if desired.
#### **Caution**
As with all trading strategies, this script should be used for backtesting and analysis before live implementation. It's essential to validate its performance on historical data while considering factors like slippage and transaction costs.
Fusion Sniper X [ Crypto Strategy]📌 Fusion Sniper X — Description for TradingView
Overview:
Fusion Sniper X is a purpose-built algorithmic trading strategy designed for cryptocurrency markets, especially effective on the 1-hour chart. It combines advanced trend analysis, momentum filtering, volatility confirmation, and dynamic trade management to deliver a fast-reacting, high-precision trading system. This script is not a basic mashup of indicators, but a fully integrated strategy with logical synergy between components, internal equity management, and visual trade analytics via a customizable dashboard.
🔍 How It Works
🔸 Trend Detection – McGinley Dynamic + Gradient Slope
McGinley Dynamic is used as the baseline to reflect adaptive price action more responsively than standard moving averages.
A custom gradient filter, calculated using the slope of the McGinley line normalized by ATR, determines if the market is trending up or down.
trendUp when slope > 0
trendDown when slope < 0
🔸 Momentum Confirmation – ZLEMA-Smoothed CCI
CCI (Commodity Channel Index) is used to detect momentum strength and direction.
It is further smoothed with ZLEMA (Zero Lag EMA) to reduce noise while keeping lag minimal.
Entry is confirmed when:
CCI > 0 (Bullish momentum)
CCI < 0 (Bearish momentum)
🔸 Volume Confirmation – Relative Volume Spike Filter
Uses a 20-period EMA of volume to calculate the expected average.
Trades are only triggered if real-time volume exceeds this average by a user-defined multiplier (default: 1.5x), filtering out low-conviction signals.
🔸 Trap Detection – Wick-to-Body Reversal Filter
Filters out potential trap candles using wick-to-body ratio and body size compared to ATR.
Avoids entering on manipulative price spikes where:
Long traps show large lower wicks.
Short traps show large upper wicks.
🔸 Entry Conditions
A trade is only allowed when:
Within selected date range
Cooldown between trades is respected
Daily drawdown guard is not triggered
All of the following align:
Trend direction (McGinley slope)
Momentum confirmation (CCI ZLEMA)
Volume spike active
No trap candle detected
🎯 Trade Management Logic
✅ Take Profit (TP1/TP2 System)
TP1: 50% of the position is closed at a predefined % gain (default 2%).
TP2: Remaining 100% is closed at a higher profit level (default 4%).
🛑 Stop Loss
A fixed 2% stop loss is enforced per position using strategy.exit(..., stop=...) logic.
Stop loss is active for both TP2 and primary entries and updates the dashboard if triggered.
❄️ Cooldown & Equity Protection
A user-defined cooldown period (in bars) prevents overtrading.
A daily equity loss guard blocks new trades if portfolio drawdown exceeds a % threshold (default: 2.5%).
📊 Real-Time Dashboard (On-Chart Table)
Fusion Sniper X features a futuristic, color-coded dashboard with theme controls, showing:
Current position and entry price
Real-time profit/loss (%)
TP1, TP2, and SL status
Trend and momentum direction
Volume spike state and trap candle alerts
Trade statistics: total, win/loss, drawdown
Symbol and timeframe display
Themes include: Neon, Cyber, Monochrome, and Dark Techno.
📈 Visuals
McGinley baseline is plotted in orange for trend bias.
Bar colors reflect active positions (green for long, red for short).
Stop loss line plotted in red when active.
Background shading highlights active volume spikes.
✅ Why It’s Not Just a Mashup
Fusion Sniper X is an original system architecture built on:
Custom logic (gradient-based trend slope, wick trap rejection)
Synergistic indicator stacking (ZLEMA-smoothed momentum, ATR-based slope)
Position and equity tracking (not just signal-based plotting)
Intelligent risk control with take-profits, stop losses, cooldown, and max loss rules
An interactive dashboard that enhances usability and transparency
Every component has a distinct role in the system, and none are used as-is from public sources without modification or integration logic. The design follows a cohesive and rule-based structure for algorithmic execution.
⚠️ Disclaimer
This strategy is for educational and informational purposes only. It does not constitute financial advice. Trading cryptocurrencies involves substantial risk, and past performance is not indicative of future results. Always backtest and forward-test before using on a live account. Use at your own risk.
📅 Backtest Range & Market Conditions Note
The performance results displayed for Fusion Sniper X are based on a focused backtest period from December 1, 2024 to May 10, 2025. This range was chosen intentionally due to the dynamic and volatile nature of cryptocurrency markets, where structural and behavioral shifts can occur rapidly. By evaluating over a shorter, recent time window, the strategy is tuned to current market mechanics and avoids misleading results that could come from outdated market regimes. This ensures more realistic, forward-aligned performance — particularly important for high-frequency systems operating on the 1-hour timeframe.
Trend Surge Wick SniperTrend Surge Wick Sniper | Non-Repainting Trend + Momentum Strategy with TP1/TP2 & Dashboard
Trend Surge Wick Sniper is a complete crypto trading strategy designed for high-precision entries, smart exits, and non-repainting execution. It combines trend slope, wick rejection, volume confirmation, and CCI momentum filters into a seamless system that works in real-time conditions — whether you're manual trading or sending alerts to multi-exchange bots.
🧩 System Architecture Overview
This is not just a mashup of indicators — each layer is tightly integrated to filter for confirmed, high-quality setups. Here’s a detailed breakdown:
📈 Trend Logic
1. McGinley Dynamic Baseline
A responsive moving average that adapts to market speed better than EMA or SMA.
Smooths price while staying close to real action, making it ideal for basing alignment or trend context.
2. Gradient Slope Filter (ATR-normalized)
Calculates the difference between current and past McGinley values, divided by ATR for normalization.
If the slope exceeds a configurable threshold, it confirms an active uptrend or downtrend.
Optional loosened sensitivity allows for more frequent but still valid trades.
🚀 Momentum Timing
3. Smoothed CCI (ZLEMA / Hull / VWMA options)
Traditional CCI is enhanced with smoothing for stability.
Signals trades only when momentum is strong and accelerating.
Optional settings let users tune how responsive or smooth they want the CCI behavior to be.
🔒 Entry Filtering & Rejection Logic
4. Wick Trap Detection
Prevents entry during manipulated candles (e.g. stop hunts, wick traps).
Measures wick-to-body ratio against a minimum body size normalized by ATR.
Only trades when the candle shows a clean body and no manipulation.
5. Price Action Filters (Optional)
Long trades require price to break above previous high (or skip this with a toggle).
Short trades require price to break below previous low (or skip this with a toggle).
Ensures you're trading only when price structure confirms the breakout.
6. McGinley Alignment (Optional)
Price must be on the correct side of the McGinley line (above for longs, below for shorts).
Ensures that trades align with baseline trend, preventing early or fading entries.
📊 Volume Logic
7. Volume Spike Detection
Confirms that a real move is underway by requiring volume to exceed a moving average by a user-defined multiplier.
Uses SMA / EMA / VWMA for customizable behavior.
Optional relative volume mode compares volume against typical volume at that same time of day.
8. Volume Trend Filter
Compares fast vs. slow EMA of the volume spike ratio.
Ensures volume is not just spiking, but also increasing overall.
Prevents trades during volume exhaustion or fading participation.
9. Volume Strength Label
Classifies each bar’s volume as: Low, Average, High, or Very High
Shown in the dashboard for context before entries.
🎯 Entry Conditions
An entry occurs when all of the following align:
✅ Trend confirmed via gradient slope
✅ Momentum confirmed via smoothed CCI
✅ No wick trap pattern
✅ Price structure & McGinley alignment (if toggled on)
✅ Volume confirms participation
✅ 1-bar cooldown since last exit
💰 TP1 & TP2 Exit System
TP1 = 50% of position closed using a limit order at a % profit (e.g., 2%)
TP2 = remaining 50% closed at a second profit level (e.g., 4%)
These are set as limit orders at the time of entry and work even on backtest.
Alerts are sent separately for TP1 and TP2 to allow bot handling of staggered exits.
🧠 Trade Logic Controls
✅ process_orders_on_close=true ensures non-repainting behavior
✅ 1-bar cooldown after any exit prevents same-bar reversals
✅ Built-in canEnter condition ensures trades are separated and clean
✅ Alerts use customizable strings for entry/exit/TP1/TP2 — ready for webhook automation
📊 Real-Time On-Chart Dashboard
Toggleable, movable dashboard shows live trading stats:
🔵 Current Position: Long / Short / Flat
🎯 Entry Price
✅ TP1 / TP2 Hit Status
📈 Trend Direction: Up / Down / Flat
🔊 Volume Strength: Low / Average / High / Very High
🎛 Size and corner are adjustable via input settings
⚠️ Designed For:
1H / 4H Crypto Trading
Manual Traders & Webhook-Connected Bots
Scalability across volatile market conditions
Full TradingView backtest compatibility (no repainting / no fake signals)
📌 Notes
You can switch CCI smoothing type, volume MA type, and other filters via the settings panel.
Default TP1/TP2 levels are set to 2% and 4%, but fully customizable.
🛡 Disclaimer
This script is for educational purposes only and not financial advice. Use with backtesting and risk management before live deployment.