ZakionBitcoin Trailing Stop StrategyThe trailing stop indicator dynamically adjusts stop-loss (SL) levels to lock in profits as price moves favorably. It uses pivot levels and ATR to set optimal SL points, balancing risk and reward.
Trade confirmation filters, a key feature, ensure entries align with market conditions, reducing false signals. In 2023 a study showed filtered entries improve win rates by 15% in forex. This enhances trade precision.
SL settings, ranging from very tight to very wide, adapt to volatility via ATR calculations. These settings anchor SL to previous pivot levels, ensuring alignment with market structure. This caters to diverse trading styles, from scalping to swing trading.
The indicator colors the profit zone between the entry point (EP) and SL, using light green for buy trades and light red for sell trades. This visual cue highlights profit potential. It’s ideal for traders seeking dynamic risk management.
A table displays real-time trade details, including EP, SL, and profit/loss (PNL). Backtests show trailing stops cut losses by 20% in trending markets. This transparency aids decision-making.
Indicators and strategies
CM_VixFix_RSI_HMA200_TrailStop_vFinal📌 CM_VixFix_RSI_HMA200_TrailStop – vFinal | BTC 30-Minute Strategy (Long & Short)
This strategy combines volatility-based market shock detection (Williams Vix Fix), trend confirmation (HMA200), and momentum filtering (RSI) to generate high-probability trade entries. It is engineered for BTC/USDT on the 30-minute timeframe, with carefully tuned parameters through extensive backtesting.
🎯 Core Components:
WVF (Williams Vix Fix): Identifies volatility spikes, acting as a proxy for oversold conditions or panic drops.
RSI (Relative Strength Index): Generates directional momentum signals, with separate thresholds for long and short entries.
HMA200: Filters trades based on the prevailing market trend. Trades are only allowed in the direction of HMA slope and position.
ATR-Based Trailing Stop Engine: Activates after a minimum profit threshold is hit. Combines dynamic trailing logic with a Hard Stop (maximum loss limit) to mitigate risk.
⚠️ Short-Side Challenges & Solutions
During development, the short-side trades exhibited a lower win rate, a common behavior in crypto bull-biased markets. To address this, we implemented:
RSI trigger reduced to 20 to capture only high-momentum sell-offs.
Dual confirmation: RSI must also be below its EMA(21) and price below EMA(100).
MaxBars filter (10 candles): Prevents multiple short entries in tight ranges or low-volatility zones.
As a result:
Short trades now yield a Risk/Reward ratio above 3.4
Average short trade profit is ~3x the average loss, making short entries valuable despite lower hit rate.
📊 Performance Summary (Backtest: BTCUSDT, 30-Min, July 2024–July 2025)
Metric Long Short Overall
Total Trades 401 50 451
Win Rate 49.6% 30.0% 47.4%
Avg PnL 311 USDT 1,229 USDT 413 USDT
Risk/Reward (Avg K/L) 1.05 3.48 1.16
🚨 Disclaimer
This strategy is not a plug-and-play black box. While signals are statistically validated, we strongly recommend using this tool in conjunction with:
Volume and time-of-day filters
Fundamental/macro overlays (especially around Fed announcements or CPI data)
A broader risk management framework
Note: This strategy has been optimized exclusively for BTC/USDT on the 30-minute timeframe. If applied to other assets or timeframes, recalibration is necessary.
Auto-AVWAP from Recent High/Low + MidlineAutomatically takes AVWAP from recent high/lows and helps in trading
HSHS Volume Divergence MTF v6 (Final Fix)HSHS Volume Divergence MTF v6
Zmienność
Dywergencja
Momentum
RSI
Reverscope 5M🚀 Reverscope 5M – Precision Reversal Engine for BTC Futures
Reverscope 5M is a high-frequency trend reversal strategy, purpose-built for BTC/USDT futures trading on the 5-minute chart.
Rather than following the trend, this system specializes in identifying turning points using a combination of WMA crossovers, 3-bar ATR decline filtering, and a dynamic trailing stop mechanism. It’s designed for traders seeking to exploit short-term overextensions and reversal setups — especially in high-volatility conditions.
⚙️ Technical Features:
WMA8 crossing WMA21: Primary entry trigger
Trigger Threshold: 1.2%: Activates trailing logic after initial profit
Pullback Ratio: 0.6%: Defines trailing stop distance after trigger
Max Loss: 5%: Capital protection on each trade
ATR 3-bar decline filter: Blocks signals during weak or collapsing price structures
Supports both Long and Short positions (with reversal bias)
Compatible with TradingView alerts
(📌 Note: Alert logic and messages will be updated in future versions.)
⚠️ Critical Warnings:
This is a reversal-based strategy, not a trend-following one.
It is optimized to enter against the prevailing trend, so using it in strong trend conditions may lead to consecutive losses.
Designed for futures and leveraged instruments — significant risk is involved.
Always backtest thoroughly with Strategy Tester before using in live markets.
Understand the signal logic, trailing mechanism, and filtering behavior before deploying.
Capital Risk OptimizerCapital Risk Optimizer 🛡️
The Capital Risk Optimizer is an educational tool designed to help traders study capital efficiency, risk management, and scaling strategies when using leverage.
This script calculates and visualizes essential metrics for managing leveraged positions, including:
Entry Price – The current market price.
Stop Loss Level – Automatically derived using the 30-bar lowest low minus 1 ATR (default: 14-period ATR), an approach designed to create a dynamic, volatility-adjusted stop loss.
Stop Loss Distance (%) – The percentage distance between entry and stop.
Maximum Safe Leverage – The highest leverage allowable without risking liquidation before your stop is reached.
Margin Required – The amount of collateral necessary to support the desired position size at the calculated leverage.
Position Size – The configurable notional value of your trade.
These outputs are presented in a clean, customizable table overlay so you can quickly understand how position sizing, volatility, and leverage interact.
By default, the script uses a 14-period ATR combined with the lowest low of the past 30 bars, providing an optimal balance between sensitivity and noise for defining stop placement. This methodology helps traders account for market volatility in a systematic way.
The Capital Risk Optimizer is particularly useful as a portfolio management tool, supporting traders who want to study how to scale into positions using risk-adjusted sizing and capital efficiency principles. It pairs best with backtested strategies, and does not directly produce signals of any kind.
How to Use:
Set your desired position size.
Adjust the ATR and lookback settings to fine-tune stop loss placement.
Study the resulting leverage and margin requirements in real time.
Use this information to simulate and visualize potential trade scenarios and capital allocation models.
Disclaimer:
This script is provided for educational and informational purposes only. It does not constitute financial advice and should not be relied upon for live trading decisions. Always do your own research and consult with a qualified professional before making any trading or investment decisions.
Smooth MTF CloudsThe smoothness of the "clouds" in the script you provided comes from the combination of plotting moving averages (typically EMA or SMA) and using the fill() function to visually create smooth, overlapping areas between two lines. Additionally, EMAs naturally create smoother curves as they respond to price changes in a lagged, less abrupt way compared to traditional plots.
DIP BUYING by HAZEREAL BUY THE DIP - Educational Price Movement Indicator
This technical indicator is designed for educational purposes to help traders identify potential price reversal opportunities in equity markets, particularly focusing on NASDAQ-100 index tracking instruments and technology sector ETFs.
Key Features:
Monitors price movements relative to recent highs over customizable lookback periods
Identifies two distinct price decline thresholds: standard (5%+) and extreme (12.3%+)
Visual signals with triangular markers and background color zones
Real-time data table showing current metrics and status
Customizable alert system with webhook-ready JSON formatting
Clean overlay design that doesn't obstruct price action
How It Works:
The indicator tracks the highest price within a specified lookback period and calculates the percentage decline from that high. When price drops below the minimum threshold, it generates visual buy signals. The extreme threshold triggers enhanced alerts for more significant market movements.
Best Use Cases:
Educational analysis of market volatility patterns
Identifying potential support levels during market corrections
Studying historical price behavior around significant declines
Risk management and position sizing education
Important Note: This is a technical analysis tool for educational purposes only. All trading decisions should be based on comprehensive analysis and appropriate risk management. Past performance does not guarantee future results.
High/Low de la Bougie Daily d'Hier🧩 General Description
This indicator plots two horizontal lines on your chart every day:
One line at the High of yesterday’s daily candle
One line at the Low of yesterday’s daily candle
It is designed to help you quickly identify key market levels based on the previous day’s range — often used as:
Support/resistance zones
Breakout or rejection areas
Reference points for intraday strategies (e.g. New York session trading)
⚙️ How It Works
The indicator uses request.security to fetch data from the daily timeframe, regardless of the chart timeframe you're trading on (e.g. M15, H1).
It captures the high and low from yesterday’s daily candle.
These levels are displayed on your current chart using horizontal lines extended to the right, which automatically update every day.
🎨 Visual Style
High of yesterday: green, dashed line
Low of yesterday: red, dashed line
Lines are refreshed on every new bar to stay clean and updated
YAS GROUPFOR ALL YAS GROUP MEMBERS
🔥 مؤشر متكامل يجمع بين عدة تقنيات احترافية لتحديد أفضل مناطق الدخول والخروج بدقة عالية:
✅ مناطق الـ Order Blocks القوية (15m, 1H, 4H)
✅ نسب الفيبوناتشي داخل الـ OB لتأكيد نقاط الانعكاس
✅ إشارات شراء وبيع دقيقة مع إمكانية تفعيل فلتر RSI و EMA/SMA
✅ خطوط دعم ومقاومة ديناميكية مبنية على آخر Pivot Highs & Lows
✅ مناسب للسكالبينج، التداول اليومي، وحتى الصفقات المتوسطة والطويلة
🎯 يمكنك التحكم في شروط الفلاتر وتخصيص الفريمات التي تهمك بسهولة من الإعدادات.
💡 هدف المؤشر: مساعدة المتداول في اتخاذ قرارات مدروسة ومبنية على مناطق سيولة وتجمع أوامر حقيقية، وليس فقط إشارات عشوائية.
---
⚠️ ملاحظة:
- لا يعتبر هذا المؤشر نصيحة مالية مباشرة.
- يفضل استخدامه مع إدارة رأس المال ومراعاة الأخبار والتحليل الأساسي.
🔔 لا تنسَ تفعيل التنبيهات للإشارات المهمة!
🔥 A complete all-in-one indicator combining multiple professional techniques to accurately detect the best entry and exit zones:
✅ Strong Order Blocks zones (15m, 1H, 4H)
✅ Fibonacci levels inside OBs to confirm reversal points
✅ Highly precise Buy/Sell signals with optional RSI and EMA/SMA filters
✅ Dynamic Support & Resistance lines based on latest pivot highs & lows
✅ Perfect for scalping, day trading, and swing trading
🎯 Easily customize filters and timeframes directly from the settings.
💡 Goal: Help traders make more confident, well-informed decisions based on real liquidity and order flow zones rather than random signals.
---
⚠️ Disclaimer:
- This indicator is not financial advice.
- Always combine it with proper risk management, fundamental analysis, and market context.
🔔 Don’t forget to set alerts to stay on top of key signals!
مع تحيات محمد الابرزي وقروب ابو سلطان
Siyonacci-powerWith this indicator:
Volume momentum volume line filters the trend.
ATR bands control volatility.
You get alerts for volume mismatch.
MSB peak-bottom breakouts are visible.
MACD momentum histogram in the bottom panel confirms the strength of the signal.
SMA Pullback Strategy with Swing SL20 and 200 SMA Pullback Strategy with Swing SL and buy sell signal
Retracement Bar🔍 Retracement Bar – RB
The Retracement Bar (RB) indicator is designed to highlight potential reversal zones by identifying candles where price shows a clear rejection from the extremes. It helps traders spot moments where institutional inventory rebalancing may be occurring — often a precursor to a strong move in the opposite direction.
RB highlights bars that:
Have a relatively small real body compared to the total candle range.
Show a long wick (upper or lower) that exceeds a user-defined percentage of the candle range.
Suggest a potential rejection of price — upward or downward — based on candle structure.
When these conditions are met, a triangle symbol is plotted:
🔻 Red triangle above a candle suggests a possible short opportunity.
🔺 Green triangle below a candle suggests a possible long opportunity.
This indicator does not repaint and triggers only at candle close.
📈 Example – Long Entry
Signal: A green triangle appears below a candle (suggesting rejection of lower prices).
Steps:
Wait for the current RB candle to close.
On the next candle:
Enter long if price breaks above the high of the RB candle.
Alternatively, wait for a pullback and enter based on confirmation (e.g., bullish engulfing, hammer, trendline bounce).
Place a stop-loss just below the low of the RB candle.
Set a target:
Based on a 2:1 risk-reward ratio.
Or use the next resistance/Fibonacci level.
📉 Example – Short Entry
Signal: A red triangle appears above a candle (suggesting rejection of higher prices).
Steps:
Wait for the current RB candle to close.
On the next candle:
Enter short if price breaks below the low of the RB candle.
Or wait for confirmation (e.g., bearish engulfing, shooting star, breakdown from a level).
Place a stop-loss just above the high of the RB candle.
Set a target:
2:1 risk-reward ratio.
Or the next support/Fibonacci zone.
✅ Recommended Filters for Better Results:
Confluence with support/resistance zones.
Trend alignment or reversal context.
Additional confirmation from price action patterns or oscillators.
Volume analysis for entry strength.
🙏 Acknowledgment
Special thanks to Rob Hoffman for inspiring this concept through his original Inventory Retracement Bar (IRB) idea — this indicator is a reinterpretation meant to visually and practically support discretionary price action traders.
ETH Mean Reversion Strategy [VWAP + EMA + Bollinger]Mean Reversion Strategy using VWAP, EMA, and Bollinger Bands, with entry signals and target lines:
9 EMA Angle + Price % Filter//@version=5
indicator("9 EMA Angle + Price % Filter", overlay=true)
length = 9
emaLine = ta.ema(close, length)
// === INPUTS ===
angleThreshold = input.float(20, "EMA Angle Threshold (°)")
pricePercentThreshold = input.float(80, "Price % Above/Below EMA")
// === PRICE DISTANCE FROM EMA IN % ===
percentAbove = close >= emaLine ? ((close - emaLine) / emaLine) * 100 : 0
percentBelow = close < emaLine ? ((emaLine - close) / emaLine) * 100 : 0
// === ANGLE CALCULATION ===
lookbackBars = input.int(5, "Bars for Angle Calculation")
p1 = emaLine
p2 = emaLine
deltaY = p1 - p2
deltaX = lookbackBars
angleRadians = math.atan(deltaY / deltaX)
angleDegrees = angleRadians * 180 / math.pi
// === CONDITIONS ===
isFlat = percentAbove < pricePercentThreshold and percentBelow < pricePercentThreshold and angleDegrees > -angleThreshold and angleDegrees < angleThreshold
isPriceAbove = percentAbove >= pricePercentThreshold
isPriceBelow = percentBelow >= pricePercentThreshold
isAngleUp = angleDegrees >= angleThreshold
isAngleDown = angleDegrees <= -angleThreshold
// === EMA COLOR LOGIC ===
emaColor = isFlat ? color.black :
isAngleUp or isPriceAbove ? color.green :
isAngleDown or isPriceBelow ? color.red : color.gray
// === PLOT EMA ===
plot(emaLine, "9 EMA", color=emaColor, linewidth=2)
Short-Term Holder MVRVThis script calculates and visualizes the Market Value to Realized Value (MVRV) ratio for Bitcoin, specifically focusing on short-term holders (STH). The MVRV ratio is a key on-chain metric that compares Bitcoin's market cap to its realized cap (the aggregate cost basis of all coins). It helps traders identify overbought and oversold conditions in the market.
Key Features
1. Moving Averages (Customizable)
The script allows users to apply different moving averages to smooth the MVRV data:
EMA (Exponential Moving Average)
SMA (Simple Moving Average)
SMMA/RMA (Smoothed/Rolling Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume-Weighted Moving Average)
HMA (Hull Moving Average)
2. Core Calculation
Fetches BTC_MVRV data from TradingView's security function.
Computes a moving average (default: 238-period WMA) of the MVRV values.
Calculates the Ratio_MVRV as:
text
Ratio_MVRV = Current MVRV / Moving Average of MVRV
A bullish signal is generated when Ratio_MVRV > 1 (market is heating up).
A bearish signal is generated when Ratio_MVRV < 1 (market is cooling down).
3. Visual Output
Main Plot:
A line chart showing Ratio_MVRV.
Orange when bullish (Ratio_MVRV > 1).
Purple when bearish (Ratio_MVRV < 1).
Horizontal Line:
A dotted white line at 1.0, acting as a threshold.
Table Display:
A small table in the top-right corner showing "↑ Bull" (green) or "↓ Bear" (red) based on the current market state.
4. Alerts
Triggers TradingView alerts when the market state changes between bullish and bearish.
Interpretation & Trading Signals
When Ratio_MVRV > 1 (Bullish):
Suggests Bitcoin is gaining momentum, possibly entering an overbought phase.
Could indicate a good time to hold or accumulate, but extreme highs may signal a potential top.
When Ratio_MVRV < 1 (Bearish):
Suggests Bitcoin is undervalued, possibly in an oversold phase.
Could indicate a buying opportunity, but prolonged lows may signal further downside.
Default Settings & Customization
Length: 238 (adjustable, default based on common long-term trend analysis).
Moving Average Type: WMA (Weighted Moving Average).
Users can modify these settings in the Inputs menu in TradingView.
Use Case
Helps traders identify market cycles by tracking short-term holder behavior.
Works best as a confirmation tool alongside other indicators (e.g., RSI, MACD).
Useful for swing traders and long-term investors looking for trend reversals.
Overlapping FVG - [Fandesoft Trading Academy]🧠 Overview
This script plots Higher Timeframe Fair Value Gaps (FVGs) with full visibility and precise placement on lower timeframe charts. Each timeframe (30s–15m) has its own independent toggle, custom label, and box styling, allowing traders to analyze market structures in detail.
🎯 Features
✅ Identifies Fair Value Gaps using a 3-candle logic (candle 1 high vs candle 3 low, and vice versa).
✅ Plots HTF FVG boxes aligned to lower timeframes for intraday analysis.
✅ Supports custom timeframes: 30s to 15m, with individual toggles.
✅ Full visual customization: border color, bullish/bearish box opacity, label font size and color.
✅ Modular inputs to enable or disable specific timeframes for performance.
✅ Uses barstate.isconfirmed logic for stable, non-repainting plots.
⚙️ How It Works
The script requests higher timeframe data via request.security. For each confirmed bar, it checks for FVGs based on:
Bullish FVG: low >= high
Bearish FVG: low >= high
If a gap is detected, a box is plotted between candle 1 and candle 3 using box.new().
Timeframe toggles ensure calculations remain within the limit of 40 request.security calls.
📈 Use Cases
Scalpers and intraday traders analyzing microstructure.
ICT methodology practitioners visualizing displacement and inefficiencies.
Traders layering multiple FVG timeframes for confluence.
doublepattern_dachengLibrary "doublepattern_dacheng"
f_detect_top_bottom(x, sig, color_green, color_red, var_sequence, state)
Parameters:
x (int)
sig (bool)
color_green (color)
color_red (color)
var_sequence (array)
state (TopBottomState)
store
Fields:
dir (series int)
n (series int)
y (series float)
TopBottomState
Fields:
lpt (series int)
prev_lpt (series int)
pph (series float)
ppl (series float)
cpph (series float)
cppl (series float)
ln (series int)
hn (series int)
awaiting_DBC (series int)
awaiting_DTC (series int)
tthresh (series float)
bthresh (series float)
自定义类型定义说明(Type Definitions)
该库定义了三个核心类型(type),用于结构化处理双顶双底形态识别逻辑:
This library defines three custom types to structurally manage double top/bottom pattern detection logic:
store
TopBottomState
f_detect_top_bottom() 函数
// 引入库(请将 {version_code} 替换为具体版本号)
// Import the library (replace {version_code} with the actual version code)
import dachengsuper/doublepattern_dacheng/{version_code} as dp
// ====================== 以下为 M 顶 和 W 底 的检测 开始 ====================
// ====================== Start of M Top and W Bottom Detection ====================
// 用一个 store 类型的动态数组 sequence 保存最近的枢轴点(最多 3 个)
// A dynamic array of type `store` to store recent pivot points (up to 3 points)
var dp.store sequence = array.new()
// 初始化状态对象,用于跟踪当前和历史的顶部/底部状态
// Initialize a TopBottomState object to track current and historical top/bottom state
var dp.TopBottomState state = dp.TopBottomState.new(0, 0, na, na, na, na, na, na, 0, 0, 0.0, 0.0)
// 调用检测函数:检测是否形成了 M 顶 或 W 底
// Call the detection function to check for M Top or W Bottom patterns
= dp.f_detect_top_bottom(x, sig, green, red, sequence, state)
// ====================== M 顶 和 W 底 的检测 结束 ====================
// ====================== End of M Top and W Bottom Detection ====================
// 当 DTC 为 true 时,表示检测到双顶形态
// When DTC is true, it indicates a double top pattern is detected
// 当 DBC 为 true 时,表示检测到双底形态
// When DBC is true, it indicates a double bottom pattern is detected
// 示例:如果需要发送 webhook 信号,请加上 `barstate.isconfirmed` 判断,这样就不会重绘
// Example: To send a webhook signal, use `DTC and barstate.isconfirmed` to avoid repainting
Siyonacci-CheapResult:
Single line %K → colors change depending on the signal
Overbought and oversold zones are indicated by levels 80–20
Orange color appears in indecisive signals
Session Visualizer by Timezone (Fixed)Session Visualizer by Timezone (Asia, London, New York)
This indicator highlights the Asian, London, and New York trading sessions directly on your chart — adjusted to your local timezone (via UTC offset).
🔧 Key Features:
Session times automatically adjust based on your chosen UTC offset
Toggle each session on/off individually
Custom background colors for each session
Designed for all intraday timeframes (1m – 4H)
📍 Sessions Covered:
Asian Session – Generally lower volatility and slower price movement; ideal for range traders and pre-positioning
London Session – Marked increase in volatility as European markets open
New York Session – Highest volume and volatility, especially during the London-New York overlap
🕓 Time Offset Setting:
Input your local UTC offset (e.g., UTC+10 for Sydney, UTC+1 for Berlin, UTC-5 for New York). The indicator adjusts session display accordingly.
Customizable EMA & SMA ComboThis script includes both EMA and SMA into a single customizable indicatior.
BTC Breakout Bot (TP/SL + Alerts)📈 BTC Breakout Bot (TP/SL + Alerts)
This strategy is designed for Bitcoin (BTC/USDT) on breakout trades. It detects price breakouts using recent highs and lows, and automatically handles:
✅ Long and short entries
✅ Take Profit and Stop Loss levels
✅ Built-in alert system (compatible with Telegram/webhook)
✅ Customizable lookback, TP, and SL settings
Strategy logic:
Enters a long position when price breaks above the highest high of the last N candles.
Enters a short position when price breaks below the lowest low of the last N candles.
Each trade includes a dynamic Take Profit and Stop Loss based on a % of entry price.
Alerts are triggered for every breakout trade (long or short).
Parameters:
Breakout Lookback: Number of candles to check for breakouts (default: 20)
Take Profit (%): TP level based on percentage from entry (default: 5%)
Stop Loss (%): SL level based on percentage from entry (default: 2%)