CLMM Vault策略回测 (专业版) v5Explanation of the CLMM (Concentrated Liquidity - Market Maker) Strategy Backtesting Model Developed for the Sui Chain Vaults Protocol
Why Are We Doing This?
Conducting strategy backtesting is a crucial step for us to make data-driven decisions, validate the feasibility of strategies, and manage potential risks before committing real funds and significant development resources. A strategy that appears to have a high APY may perform entirely differently once real-world frictional costs (such as rebalancing fees and slippage) are deducted. The goal of this backtesting model is to quickly and cost-effectively identify which strategy parameter combinations have the potential to be profitable and which ones pose risks before formal development, thereby avoiding significant losses and providing data support for the project's direction.
Core Features of the Backtesting Model
We have built a "pro version" (v5) strategy simulator using TradingView's Pine Script. It can quickly simulate the core performance of our auto-compounding and rebalancing Vaults on historical price data, with the following main features:
Auto-Compounding: Continuously adds the generated fee income to the principal based on the set profit range (e.g., 0.01%).
Auto-Rebalancing: Simulates automatic rebalancing actions when the price exceeds the preset profit range and deducts the corresponding costs.
Smart Filtering Mechanism: To make the simulation closer to our ideal "smart" decision-making, it integrates three freely combinable filtering mechanisms:
Buffer Zone: Tolerates minor and temporary breaches of the profit range to avoid unnecessary rebalancing.
Breakout Confirmation: Requires the price to be in the trigger zone for N consecutive candles to confirm a breakout, filtering out market noise from "false breakouts."
Time Cooldown: Enforces a minimum time interval between two rebalances to prevent value-destroying high-frequency trading in extreme market conditions.
Important: Simplifications and Assumptions of the Model
To quickly prototype and iterate on the TradingView platform, we have made some key simplifications to the model.
A fully accurate backtest would require a deep simulation of on-chain liquidity pools (Pool Pair), calculating the price impact (Slippage) and impermanent loss (IL) caused by each rebalance on the pool. Since TradingView cannot access real-time on-chain liquidity data, we have made the following simplifications:
Simplified Rebalancing Costs: Instead of simulating real transaction slippage, we use a unified input parameter of single rebalance cost (%) to "bundle" and approximate the total of Gas fees, slippage, and realized impermanent loss.
Simplified Fee Income: Instead of calculating fees based on real-time trading volume, we directly input an average fee annualized return (%) as the core income assumption for our strategy.
How to Use and Test
Team members can load this script and test different strategies by adjusting the input parameters on the panel. The most critical parameters include: position profit range, average fee annualized return, single rebalance cost, and the switches and corresponding values of the above three smart filters.
Indicatori e strategie
EMA Cloud 200 High/Close с цветом трендаEMA Cloud 200 High/Close with Trend Color
Overview
This indicator creates a dynamic EMA cloud between two Exponential Moving Averages calculated from different price sources, providing clear visual trend identification and support/resistance zones.
Key Features
Dual EMA System: Upper EMA based on High prices, Lower EMA based on Close prices
Custom Timeframe: Analyze EMA on any timeframe regardless of chart timeframe
Dynamic Trend Coloring: Green for uptrend, Red for downtrend
Visual Cloud: Filled area between EMAs highlights price zones
Configurable Period: Default 200-period EMA (adjustable)
How It Works
The indicator calculates two separate 200-period EMAs:
Upper EMA: Based on High prices - shows resistance levels
Lower EMA: Based on Close prices - shows support levels
Trend Detection:
Current price above average EMA = Green (Bullish)
Current price below average EMA = Red (Bearish)
Trading Applications
Trend Identification: Color changes indicate trend shifts
Support/Resistance: Cloud boundaries act as dynamic S/R zones
Entry/Exit Points: Price interaction with cloud edges
Multi-timeframe Analysis: View higher timeframe EMAs on lower timeframe charts
Settings
EMA Period: Adjust calculation period (default: 200)
Top Source: Price source for upper EMA (default: High)
Bottom Source: Price source for lower EMA (default: Close)
Custom Timeframe: Choose analysis timeframe (default: 15min)
Best Practices
Use on trending markets for optimal results
Combine with other indicators for confirmation
Higher timeframes provide stronger signals
Cloud thickness indicates volatility levels
Perfect for swing traders and trend followers seeking clear visual trend analysis with dynamic support/resistance identification.
Support and Resistance ConnectorThis is a Support and Resistance indicator. It's best to use the combination of all three of my indicators such as the Dual RSI + the SMA Cross Candle Body Size + the Support and Resistance Connector.
Dual RSI IndicatorThis RSI indicator allows you to view an additional timeframe to help you spot better entries. For example when RSI is overbought/oversold on two timeframes may help give you additional confidence in placing the trade.
Volatility Zones (STDEV %)This indicator displays the relative volatility of an asset as a percentage, based on the standard deviation of price over a custom length.
🔍 Key features:
• Uses standard deviation (%) to reflect recent price volatility
• Classifies volatility into three zones:
Low volatility (≤2%) — highlighted in blue
Medium volatility (2–4%) — highlighted in orange
High volatility (>4%) — highlighted in red
• Supports visual background shading and colored line output
• Works on any timeframe and asset
📊 This tool is useful for identifying low-risk entry zones, periods of expansion or contraction in price behavior, and dynamic market regime changes.
You can adjust the STDEV length to suit your strategy or timeframe. Best used in combination with your entry logic or trend filters.
Rapid Candle PATTERNS V2.0Indicator Title: Rapid Candle Patterns - High-Probability Signals
Description
Tired of noisy charts filled with weak and ambiguous candlestick patterns? The Rapid Candle Patterns indicator is engineered to solve this problem by moving beyond simple textbook definitions. It identifies only high-probability reversal and continuation signals by focusing on the underlying market dynamics: momentum, liquidity, and confirmation.
This is not just another pattern indicator; it's a professional-grade tool designed to help you spot truly significant price action events.
How The Logic Works & Why It's More Accurate
Each pattern in this script has been enhanced with stricter, more intelligent rules to filter out noise and reduce false signals. Here’s what makes our logic superior:
1. The Liquidity Grab Hammer & Inverted Hammer
Standard Logic: A simple hammer shows a long lower wick, suggesting buyers pushed the price back up.
Our Enhanced Logic: We don't just look for a hammer shape. Our signal is only valid if the hammer’s low takes out the low of the previous candle (a "liquidity grab" or "stop hunt").
Why It's More Accurate: This sequence is incredibly powerful. It shows that sellers attempted to push the market lower, triggered stop-loss orders below the prior low, and then were decisively overpowered by buyers who reversed the price. This isn't just a reversal; it's a failed breakdown, often trapping sellers and fueling a stronger move in the opposite direction.
2. The "True" Bullish & Bearish Harami
Standard Logic: A small candle forms within the high-low range of the previous candle. This can often be misleading if the prior candle has long wicks and a tiny body.
Our Enhanced Logic: We enforce a "dual containment" rule. For a Harami to be valid, its body must be contained within the body of the previous candle. We also ensure the Harami candle itself is not a Doji, meaning it must show some conviction.
Why It's More Accurate: This ensures you are seeing a genuine and significant contraction in momentum. It filters out scenarios where a large-bodied candle forms inside the wicks of a doji-like candle, which is not a true Harami. Our logic captures the "pregnant" pattern as it was intended—a moment of quiet consolidation before a potential new move.
3. The "Power" Bullish & Bearish Engulfing
Standard Logic: A candle's body engulfs the body of the previous candle. This is a common signal, but it often lacks follow-through.
Our Enhanced Logic: Our "Power Engulfing" requires two conditions: (1) The body must engulf the prior candle's body, AND (2) the candle must close beyond the entire high/low range of the prior candle.
Why It's More Accurate: This is the ultimate sign of confirmation. It doesn't just show that one side has won the battle for the session; it proves they had enough force to break the entire structure of the previous candle. This signifies immense momentum and dramatically increases the probability that the trend will continue in the direction of the engulfing candle.
4. The Quantified Doji
Our Logic: Instead of being a subjective pattern, a Doji is defined quantitatively. It's a candle whose body is less than or equal to a user-defined percentage (default 9%) of its total range.
Why It's More Accurate: It provides a consistent and objective measure of market indecision. Furthermore, any candle identified as a Doji is automatically disqualified from being a Hammer, ensuring clear and distinct signals.
User Customization
Toggle Patterns On/Off: Declutter your chart by only showing the patterns you want to see.
Fine-Tune Logic: Use the "Pattern Logic" settings to adjust the sensitivity of the Doji and Harami detectors to perfectly match your trading style, asset, and timeframe.
Disclaimer: This indicator is a powerful tool for identifying high-probability price action. However, no single indicator is a complete trading system. Always use these signals as part of a comprehensive strategy, combined with analysis of market structure, support/resistance levels, and other forms of confluence.
EUR/USD & DXY StrategyTVS entry module, SMT with DXY and EUR/USD, previous candle sweeps and SELL/BUY above and below opens.
Anchored EMA with Timeframe SelectionLet's you choose a date and time to start tracking EMAs. I am attempting to use it in tandem with Wyckoff Analysis to "indicate" a BUEC or Fall through ice.... Not sure if it works but publishing for the fun of it.
Filtreli QQE Signal (RSI 354, smoothing 2, factor -1.414)I have made a special indicator for you in the overbought and oversold areas of RS. You can check it with EMA and SMA.
Trap Candle (Trend H4 + RSI Filter)🔍 Trap Candle (Trend H4 + RSI Filter)
Description:
The Trap Candle indicator is designed to identify a specific and powerful two-candle price action pattern that often signals a false breakout followed by a strong reversal. It combines pure price action with two objective filters to increase signal quality and trend alignment.
📊 Pattern Logic:
Bullish Trap: The current candle breaks the previous candle’s low, but closes above its high (and is bullish).
Bearish Trap: The current candle breaks the previous candle’s high, but closes below its low (and is bearish).
This pattern often reveals institutional traps or stop hunts before directional movement.
🧠 Trend Filter (H4):
Ensures long signals occur only when the H4 close is higher than the previous H4 close (uptrend).
Ensures short signals occur only in a H4 downtrend.
Designed to align intraday entries (M15, H1) with higher timeframe momentum.
💪 RSI Confirmation:
Includes a configurable RSI filter on the current timeframe.
Only long signals are shown when RSI is above a user-defined threshold (e.g. 55).
Only short signals are shown when RSI is below a user-defined threshold (e.g. 45).
⚙️ Key Features:
Full customization of RSI period and thresholds.
Clean, visual signal plotting on the chart (with “Trap L” or “Trap S” labels).
Built-in alerts for both long and short trap candle setups.
Perfect for traders who want to trade smart reversals with trend and momentum confirmation.
✅ Recommended Timeframes:
M15 and H1 (entry)
Uses H4 for trend bias
If you’re looking to filter out noise and spot only the highest quality reversal setups, the Trap Candle (Trend H4 + RSI Filter) is a solid tool for any price action-based strategy.
Triple Configurable VWAPTriple Configurable VWAP Indicator
This advanced VWAP (Volume Weighted Average Price) indicator displays three independently configurable VWAP lines on your chart, providing multiple timeframe perspectives for better trading decisions.
Key Features:
• Three Customizable VWAP Periods: Configure each VWAP independently with periods ranging from 1 to 365 days
Default: 10-day (Green), 30-day (Red), 365-day (Blue)
• Dynamic Visual Elements:
Color-coded lines for easy identification
Smart labels at the current price level with matching colors
Contrasting text colors for optimal readability
• Interactive Information Table:
Toggle on/off display
Repositionable to any corner or side of the chart
Shows each VWAP period with corresponding color indicators
Larger, easy-to-read font size
• Professional Calculation Method:
Uses daily timeframe data for accurate VWAP calculations
Anchored VWAP starting from your specified lookback periods
Proper volume weighting for institutional-grade accuracy
Use Cases:
Short-term Trading: 10-day VWAP for recent price action analysis
Medium-term Analysis: 30-day VWAP for monthly trend assessment
Long-term Perspective: 365-day VWAP for yearly institutional levels
Perfect for traders who need multiple VWAP timeframes simultaneously to identify key support/resistance levels, trend direction, and institutional price points across different time horizons.
Volume Trend Strategy PRO (MTF) V7| VTS Pro 📊 Volume Trend Strategy PRO (MTF) V7 | VTS Pro
By Alireza Mossaheb
Description:
This cutting-edge multi-timeframe strategy is designed to capture institutional volume surges and directional momentum with high precision. Combining CVD dynamics, ADX slope analysis, DI crossovers, Chande Momentum Oscillator (CMO), and customizable fractals, it delivers robust entry signals and confirmation logic across multiple timeframes.
Key Features:
✅ Smart Buy/Sell Signals based on volume delta + MA conditions
🧭 Multi-Timeframe Confirmation Logic for stronger, higher-conviction signals
💡 Separate alert logic for single-timeframe and MTF-confirmed signals
📶 Dynamic ADX Slope and CMO Zones detection (with emoji-enhanced alerts)
📐 Advanced Fractal Detection System with both loose and strict modes
🧩 Integrated CVD trend validation (vs EMA/WMA/SMA) per timeframe
🔔 Fully structured Telegram-Ready Alerts with Markdown formatting
🧾 Beautiful on-chart MTF information table with emoji status for:
MA trends, DI+/DI-, CMO signals, Volume power, and overall signal status
🎨 Custom background color logic for visual cueing of signal confidence
📈 EMA/WMA/SMA Ribbon with visual alignment zones
Whether you're scalping or swing trading, this tool brings clarity to volume-driven trends with visual precision and flexible multi-timeframe logic.
ETH Pro Strategy Alerts (Buy & Sell)This indicator combines four powerful tools into a single confluence-based strategy:
✅ Chandelier Exit: Identifies trend direction and trailing stop levels.
✅ Triple RSI (6/12/24): Confirms momentum alignment across short, mid, and long term.
✅ Stochastic RSI: Pinpoints early entry/exit zones using overbought/oversold signals.
✅ OBV (On-Balance Volume): Validates price action with real volume strength.
Buy/Sell alerts trigger only when all conditions align, helping you avoid false signals and trade with confidence.
Multi-Indicator Switch PanelThe Multi-Indicator Switch Panel is a powerful all-in-one TradingView toolkit that allows traders to toggle multiple popular indicators on and off from a single, intuitive control panel — without cluttering the chart or reloading scripts.
This panel gives you real-time control over the following indicators (configurable per version):
King 3EMA Trader CryptoShorter EMA Periods: The 13/55/21-period EMAs are more responsive than the original 21/89/34, better capturing the rapid price movements in BTC and ETH markets.
SUPER_STRATEGY_For_Swing 20%This indicator is designed for swing traders looking to capture quick 20% gains from stocks that show strong rise/fall patterns. It identifies significant reversal points and sets a clear entry and target level based on past price action.
How it works:
Detects strong moves (up or down) and marks potential swing trade setups.
Entry is triggered when price returns to the identified level — a proven zone for high-probability trades.
If price does not return to the entry level within 1 year, the signal is considered invalid.
Ideal for spotting repeatable swing opportunities where risk-reward is favorable.
This strategy helps you time your entries with confidence and exit at logical target zones, cutting out the noise and emotional trades.
*please explore well on stock selection and back testing.
Bollinger Bands Entry/Exit ThresholdsBollinger Bands Entry/Exit Thresholds
Author of enhancements: chuckaschultz
Inspired and adapted from the original 'Bollinger Bands Breakout Oscillator' by LuxAlgo
Overview
Pairs nicely with Contrarian 100 MA
The Bollinger Bands Entry/Exit Thresholds is a powerful momentum-based indicator designed to help traders identify potential entry and exit points in trending or breakout markets. By leveraging Bollinger Bands, this indicator quantifies price deviations from the bands to generate bullish and bearish momentum signals, displayed as an oscillator. It includes customizable entry and exit signals based on user-defined thresholds, with visual cues plotted either on the oscillator panel or directly on the price chart.
This indicator is ideal for traders looking to capture breakout opportunities or confirm trend strength, with flexible settings to adapt to various markets and trading styles.
How It Works
The Bollinger Bands Entry/Exit Thresholds calculates two key metrics:
Bullish Momentum (Bull): Measures the extent to which the price exceeds the upper Bollinger Band, expressed as a percentage (0–100).
Bearish Momentum (Bear): Measures the extent to which the price falls below the lower Bollinger Band, also expressed as a percentage (0–100).
The indicator generates:
Long Entry Signals: Triggered when the bearish momentum (bear) crosses below a user-defined Long Threshold (default: 40). This suggests weakening bearish pressure, potentially indicating a reversal or breakout to the upside.
Exit Signals: Triggered when the bullish momentum (bull) crosses below a user-defined Sell Threshold (default: 80), indicating a potential reduction in bullish momentum and a signal to exit long positions.
Signals are visualized as tiny colored dots:
Long Entry: Blue dots, plotted either at the bottom of the oscillator or below the price bar (depending on user settings).
Exit Signal: White dots, plotted either at the top of the oscillator or above the price bar.
Calculation Methodology
Bollinger Bands:
A user-defined Length (default: 14) is used to calculate an Exponential Moving Average (EMA) of the source price (default: close).
Standard deviation is computed over the same length, multiplied by a user-defined Multiplier (default: 1.0).
Upper Band = EMA + (Standard Deviation × Multiplier)
Lower Band = EMA - (Standard Deviation × Multiplier)
Bull and Bear Momentum:
For each bar in the lookback period (length), the indicator calculates:
Bullish Momentum: The sum of positive deviations of the price above the upper band, normalized by the total absolute deviation from the upper band, scaled to a 0–100 range.
Bearish Momentum: The sum of positive deviations of the price below the lower band, normalized by the total absolute deviation from the lower band, scaled to a 0–100 range.
Formula:
bull = (sum of max(price - upper, 0) / sum of abs(price - upper)) * 100
bear = (sum of max(lower - price, 0) / sum of abs(lower - price)) * 100
Signal Generation:
Long Entry: Triggered when bear crosses below the Long Threshold.
Exit: Triggered when bull crosses below the Sell Threshold.
Settings
Length: Lookback period for EMA and standard deviation (default: 14).
Multiplier: Multiplier for standard deviation to adjust Bollinger Band width (default: 1.0).
Source: Input price data (default: close).
Long Threshold: Bearish momentum level below which a long entry signal is generated (default: 40).
Sell Threshold: Bullish momentum level below which an exit signal is generated (default: 80).
Plot Signals on Main Chart: Option to display entry/exit signals on the price chart instead of the oscillator panel (default: false).
Style:
Bullish Color: Color for bullish momentum plot (default: #f23645).
Bearish Color: Color for bearish momentum plot (default: #089981).
Visual Features
Bull and Bear Plots: Displayed as colored lines with gradient fills for visual clarity.
Midline: Horizontal line at 50 for reference.
Threshold Lines: Dashed green line for Long Threshold and dashed red line for Sell Threshold.
Signal Dots:
Long Entry: Tiny blue dots (below price bar or at oscillator bottom).
Exit: Tiny white dots (above price bar or at oscillator top).
How to Use
Add to Chart: Apply the indicator to your TradingView chart.
Adjust Settings: Customize the Length, Multiplier, Long Threshold, and Sell Threshold to suit your trading strategy.
Interpret Signals:
Enter a long position when a blue dot appears, indicating bearish momentum dropping below the Long Threshold.
Exit the long position when a white dot appears, indicating bullish momentum dropping below the Sell Threshold.
Toggle Plot Location: Enable Plot Signals on Main Chart to display signals on the price chart for easier integration with price action analysis.
Combine with Other Tools: Use alongside other indicators (e.g., trendlines, support/resistance) to confirm signals.
Notes
This indicator is inspired by LuxAlgo’s Bollinger Bands Breakout Oscillator but has been enhanced with customizable entry/exit thresholds and signal plotting options.
Best used in conjunction with other technical analysis tools to filter false signals, especially in choppy or range-bound markets.
Adjust the Multiplier to make the Bollinger Bands wider or narrower, affecting the sensitivity of the momentum calculations.
Disclaimer
This indicator is provided for educational and informational purposes only.
Perfect MA Touch – Full Setup 1,3,5,7,8,9This indicator helps you track a precise candle countdown from a moving average touch, labeling key bars (1, 3, 5, 7, 8, 9) for timing entries and momentum setups — with optional coloring, alerts, and full customization.
What It Detects
1. MA Touch Trigger
The sequence starts when any selected moving average (up to 6 MAs, customizable) is touched by the candle's high/low range.
This "perfect touch" initiates the count and labels that candle as "1".
2. Candle Number Labels
After a perfect MA touch:
Candle 1 = the bar that touches the MA
Candle 3 = two bars after Candle 1
Candle 5 = the fifth bar after the touch
Candle 7 = third bar after Candle 5
Candle 8 = fourth bar after Candle 5
Candle 9 = fifth bar after Candle 5
It creates a time-based sequence you can use to anticipate reactions or momentum shifts.
3. Customization
You can:
Choose between EMA or SMA for each MA (6 total)
Set custom lengths for each MA (9, 20, 50, 100, 150, 200)
Choose which candle numbers (1, 3, 5, 7, 8, 9) to highlight
Pick font size and label color
4. Highlighting and Alerts
Highlight candles (with color) when certain bars (like 3, 5, 7) print
Alerts are available for all tracked bars (1, 3, 5, 7, 8, 9)
Use Case Example
Let’s say you want to enter trades on the 3rd candle after a perfect MA touch:
You set the script to highlight candle 3.
When a candle hits your chosen MA (say EMA 9), it’s labeled “1”.
Two bars later, bar 3 appears — giving you a timed signal to enter if price behavior aligns.
This method is especially useful when paired with:
Volume confirmation
Breakout or reversal patterns
Support/resistance or order block zones
Smart Money In-Out Radar 🔥btc ye para girişi ve cıkışını gösteren bir indi katördür diğer indikatörlerle destekleyin
EMA Crossover + RSI Confirmation (Buy/Sell)Updated version for EMA crossover stategy with RSI confirmation