FX-CLINIC MARKET STRUCTUREThis indicator help the treaders by SMC/ICt to mark the structure MSS/BOS automatically, and you can choose the length of the structure as 5 for fractal, 10 for internal and 15 for external
use it free
note: check your information and correct the structure as you know,
it is first edition and go to upgrade and correct
feel free to sent any note in telegram
privet: @DRALIAWWAD
and the public channel: @ictdrawwad
Indikator dan strategi
Hookes Kinetics | IkkeOmarHooke's Kinetics: A Physics-Based Volatility System
This indicator applies the principles of Hooke's Law to financial time series data to model market volatility as a system of potential and kinetic energy.
Theoretical Foundation: Hooke's Law In physics, Hooke's Law states that the force (F) needed to extend or compress a spring by some distance (x) scales linearly with respect to that distance: F = -kx, where k is the spring constant.
Potential Energy (PE): PE = 0.5 * k * x^2 Kinetic Energy (KE): Energy possessed due to motion.
In this system, we treat Price Action as a spring. Compression (Potential Energy): When price consolidates, volatility compresses. The "spring" is being wound up. Energy is accumulated, not released. Release (Kinetic Energy): When price breaks out of compression, potential energy transforms into kinetic energy. The spring snaps back, driving price motion.
Indicator Mechanics The Hooke's Kinetics oscillator visualizes this energy transfer cycle to identify trend origins and exhaustion points.
Accumulating Energy (Potential): The Blue Area represents the buildup of Potential Energy. This occurs during periods of low volatility (consolidation). The algorithm detects when price variance drops below a threshold (representing spring compression) and aggregates this "stored force" over time. As long as the price remains compressed, the Blue potential energy grows.
Energy Conversion (Kinetic Release): The Red Histogram represents Kinetic Energy. When volatility expands significantly (a breakout), the system triggers a release event. The accumulated Blue potential energy is discharged and converted into the Red kinetic spike. This marks the moment the "spring" is released.
Trend Direction & Decay: Once the Kinetic Energy (Red spike) appears, the "explosive" phase is active. As the Red histogram decays (lowers back to zero), the market enters a coasting phase. The trend direction is established by the price movement during the initial Kinetic release. Traders observe the price vector as the Red energy dissipates to confirm the prevailing trend.
Reversion Signals (Bonus): Extreme peaks in Kinetic Energy (exceptionally high Red spikes) indicate a maximum extension of the spring. Just as a physical spring oscillates, extreme kinetic release often precedes a mean reversion. If price action opposes the direction of the Kinetic decay, it signals a likely reversal.
Visual Reference Referencing the chart above: Blue Ramp: Note the linear buildup of the blue area during sideways price action. This is the "loading" phase. Red Spike: Note the immediate drop in Blue and spike in Red coinciding with the green highlight circles on the chart. These are the breakout points. Green Circles: These highlight the specific candles where Potential converted to Kinetic, marking the optimal entry or decision points.
Code Description
The system defines market state using a composite variable "k" (Stiffness), which combines Price Volatility (NATR) and Relative Volume (RVOL).
k_price = range_natr != 0 ? 1.0 - ((natr - lowest_natr) / range_natr) : 0 k = (k_price * price_weight) + (k_vol * vol_weight) Here, we normalize volatility relative to a historical lookback. High values of "k" indicate high compression—this is the "winding" of the spring.
if is_compressed potential_energy := potential_energy + k kinetic_energy := kinetic_energy * DECAY_RATE When the market is tighter than the user-defined "stiff_thresh", the system accumulates Potential Energy. Note that Kinetic Energy actively decays during this phase, simulating friction or inertia slowing down price movement.
else drain_factor = (1.0 - k) transfer = potential_energy * drain_factor potential_energy := potential_energy - transfer kinetic_energy := (kinetic_energy * DECAY_RATE) + (transfer * ENERGY_MULT) This acts as the conservation of energy. We do not reset Potential to zero instantly; we drain it. The "drain_factor" ensures that a violent expansion (low k) drains potential energy faster than a mild move. This transferred energy is scaled up and added to the Kinetic state.
Note - AMPLITUDE MATTERS!
Observe the amplitude of the Kinetic Energy - higher peaks are more significant. Lower values are usually artifacts, but they can indicate mean reversion on a smaller scale while price remains within a range.
DAILY INTRADAY KEY LEVELS by TenAMTrader📌 DAILY INTRADAY KEY LEVELS — by TenAMTrader
DAILY INTRADAY KEY LEVELS is a precision-built intraday mapping tool designed to keep traders aligned with the most important price references used by institutions and active day traders.
This indicator automatically plots Previous Day RTH levels, Overnight levels, and the Opening Range (ORB) using New York session timing, so your levels remain consistent and reliable across all intraday timeframes.
🔑 Levels Included
Previous Day (RTH)
PDH – Previous Day Regular Trading Hours High
PDL – Previous Day Regular Trading Hours Low
(Locked at the RTH close for accuracy)
Overnight Session (16:00–09:30 NY)
ONH – Overnight High
ONL – Overnight Low
(Tracks live overnight and finalizes at the cash open)
Opening Range (09:30–09:45 NY)
ORBH – Opening Range High
ORBM – Opening Range Midpoint
ORBL – Opening Range Low
🎯 Why These Levels Matter
These price levels frequently act as:
Liquidity targets
Support & resistance
Decision points for continuation vs. rejection
Bias filters for trend days vs. range days
The Opening Range, in particular, is a cornerstone of many institutional and professional trading models.
⚙️ Customization & Controls
Toggle each level on/off independently
Choose solid lines or line-with-breaks
Adjustable line width and colors
Optional future-extending rays
Clean single-label system (no clutter)
Text-only or boxed labels
Configurable label side, size, and offsets
Optional current-day-only view to keep charts clean
All values remain timeframe-independent, meaning your levels will not change when switching chart intervals.
📈 Best Use Cases
Futures, Index, and Equity day trading
Opening drive & ORB strategies
Fade vs. continuation decision-making
Level confluence with VWAP, trend, or volume tools
⚠️ Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice or trade recommendations. Trading involves risk, and past performance is not indicative of future results. Always manage risk and trade according to your own plan.
Built for traders who plan first, execute second, and respect key levels.
— TenAMTrader
Breakout Liquidity Strategy//@version=5
indicator("Breakout Liquidity Strategy", overlay=true)
// ===== Inputs =====
lenVol = input.int(20, "Volume MA")
lenMFI = input.int(14, "MFI Length")
// ===== Indicators =====
volMA = ta.sma(volume, lenVol)
mfi = ta.mfi(hlc3, lenMFI)
vwap = ta.vwap(close)
// ===== Conditions =====
liquidityIn = mfi > 50 and volume > volMA
priceBreak = close > ta.highest(high, 20)
aboveVWAP = close > vwap
breakout = liquidityIn and priceBreak and aboveVWAP
// ===== Plot =====
plotshape(breakout, title="BREAKOUT", style=shape.labelup,
location=location.belowbar, color=color.new(color.green, 0), text="🚀")
plot(vwap, color=color.orange, linewidth=2, title="VWAP")
Dynamic Support Resistance Zones======================================================================
TRADINGVIEW PUBLICATION - DYNAMIC SUPPORT RESISTANCE ZONES
======================================================================
TITLE: Dynamic Support Resistance Zones
SHORT TITLE: SR Zones
--------------------------------------------------------------------------------
DESCRIPTION (Copy below for TradingView publication)
--------------------------------------------------------------------------------
The Dynamic Support Resistance Zones indicator identifies key price levels where potential reversals may occur by analyzing candlestick behavior and volume dynamics together.
▶ CONCEPT AND METHODOLOGY
This indicator detects support and resistance levels through a specific combination of three market conditions occurring simultaneously:
1. Candlestick Body Expansion: The current candle's body (distance between open and close) must be larger than the previous candle's body. This signals increased price commitment from market participants.
2. Direction Reversal: The current candle must close in the opposite direction of the previous candle. A bullish candle following a bearish candle suggests potential support formation, while a bearish candle following a bullish candle suggests potential resistance formation.
3. Volume Contraction: The current candle must have lower volume than the previous candle. This condition filters out high-volume breakout moves and focuses on exhaustion patterns where price reverses on decreasing participation.
When all three conditions align, the indicator marks the opening price of the previous candle as a significant level.
▶ HOW LEVELS ARE CLASSIFIED
Support Zones (Green Lines): Form when a bullish reversal candle appears with an expanded body on declining volume. These represent areas where buying pressure overcame selling pressure.
Resistance Zones (Red Lines): Form when a bearish reversal candle appears with an expanded body on declining volume. These represent areas where selling pressure overcame buying pressure.
▶ DYNAMIC LEVEL MANAGEMENT
The indicator continuously monitors each level and updates its status:
- Active Levels (Solid Lines): Levels that have not been broken by a closing price. These extend forward automatically as new bars form.
- Broken Levels (Dashed Lines): When price closes beyond a level, it converts to a dashed line. These broken levels remain visible for potential retest scenarios.
- Level Removal: Broken support levels are removed if price closes back above them. Broken resistance levels are removed if price closes back below them. This keeps the chart clean and focused on relevant levels.
▶ TRADING APPLICATIONS
Reversal Trading: Look for price approaching active support or resistance levels for potential bounce trades.
Breakout Confirmation: When a solid level converts to dashed, it confirms a breakout. The dashed level then becomes a potential retest zone.
Trend Analysis: Multiple support levels stacking below price suggests bullish structure. Multiple resistance levels above price suggests bearish structure.
Risk Management: Active levels provide logical areas for stop-loss placement just beyond the identified zones.
▶ WHY THIS COMBINATION WORKS
The three-filter approach (body expansion + direction change + volume decline) identifies exhaustion reversals rather than continuation patterns. Large body candles show conviction, direction change shows momentum shift, and lower volume suggests the prior move is losing steam rather than breaking out with strength.
▶ SETTINGS
This indicator uses fixed detection logic with no adjustable parameters to maintain consistency. The colors are preset: green for support zones and red for resistance zones.
▶ BEST PRACTICES
- Works on all timeframes but higher timeframes typically produce more reliable levels
- Combine with trend analysis for directional bias
- Not all levels will hold; use proper risk management
- More effective in ranging or mean-reverting conditions than strong trending markets
--------------------------------------------------------------------------------
TAGS (for TradingView)
--------------------------------------------------------------------------------
support, resistance, reversal, volume, candlestick, levels, zones, price-action
--------------------------------------------------------------------------------
CATEGORY
--------------------------------------------------------------------------------
Support and Resistance
======================================================================
Multi-Mode Adaptive Strategy [MMAS]This Pine Script strategy dynamically adapts to different market conditions. Users can switch between trend‑following, mean‑reversion, and breakout modes, making it versatile across assets and timeframes.
Key Metrics:
- BTCUSDT / 1D → Return: +42.5%, Sharpe: 1.8, Max Drawdown: -12.3%, Win Rate: 61%
- XAGUSD / 1H → Return: +18.7%, Sharpe: 1.4, Max Drawdown: -8.5%, Win Rate: 58%
- EURUSD / 4H → Return: +25.2%, Sharpe: 1.6, Max Drawdown: -10.1%, Win Rate: 60%
Key Features:
- Modular design: switch between trend, mean‑reversion, breakout
- Works across crypto, forex, commodities
- Clear visualization with signals and metrics
• Global Note
"Universal strategy design for cross‑asset adaptability."
• Tags
trend, mean‑reversion, breakout, multi‑asset, adaptive strategy, pine script
Liquidity Retest Strategy (Apicode) - TP/SL Lines FixedTechnical Documentation:
1. Purpose and underlying concept
This strategy targets a common behavior in liquid markets: liquidity sweeps around meaningful support/resistance levels, followed by a retest and rejection (reversal) with confirmation.
The core thesis is that many initial “breaks” are not continuation moves, but rather stop-runs and order harvesting. After the sweep, price reclaims the level and closes back on the opposite side, offering a structured entry with defined risk.
The strategy includes:
Support/Resistance detection via pivots
Dynamic selection of the “working” level using an ATR-based proximity window
Rejection validation via candle structure (wick + close)
Optional filters: volume, VWAP-like bias, and EMA trend
Risk management with static TP/SL (ATR-based or %), plus trailing stop (ATR-based or %), with per-trade lines plotted
2. Main components
2.1. Volatility metric: ATR
atr = ta.atr(atrLength) is used in two essential places:
Level selection (proximity to S/R): prevents trading levels that are too far from current price.
Sweep validation (minimum wick size): requires the wick to extend beyond the level by a volatility-relative amount.
Optionally, ATR can also be used for:
Static TP/SL (when usePercent = false)
Trailing stop (when useTrailPercent = false)
2.2. Building S/R levels with pivots
Pivots are detected using:
pivotHigh = ta.pivothigh(pivotLookback, rightBars)
pivotLow = ta.pivotlow(pivotLookback, rightBars)
Each confirmed pivot is stored in arrays:
resistanceLevels for resistance
supportLevels for support
The array size is capped by maxLevels, which reduces noise and manages chart resource usage (lines).
2.3. Selecting the “best” level each bar
On each bar, a single support S and/or resistance R candidate is chosen:
Support: nearest level below price (L < price)
Resistance: nearest level above price (L > price)
Only levels within atr * maxDistATR are considered
This produces dynamic “working levels” that adapt to price location and volatility.
2.4. Rejection pattern (retest + sweep)
After selecting the working level:
Support rejection (long setup)
Conditions:
Low touches/crosses support: low <= S
Close reclaims above: close > S
Bullish candle: close > open
Sufficient wick below the level (liquidity sweep): (S - low) >= atr * minWickATR
This aims to capture a stop sweep below support followed by immediate recovery.
Resistance rejection (short setup)
Symmetric conditions:
High touches/crosses resistance: high >= R
Close rejects back below: close < R
Bearish candle: close < open
Sufficient wick above the level: (high - R) >= atr * minWickATR
2.5. Optional filters
Final signals are the rejection pattern AND enabled filters:
1.- Volume filter
High volume is defined as: volume > SMA(volume, 20) * volMult
When useVolFilter = true, setups require relatively elevated participation
2.- VWAP-like bias filter
A VWAP-like series is computed over vwapLength (typical price weighted by volume)
When useVWAPFilter = true:
- Longs only if close > vwap
- Shorts only if close < vwap
3.- EMA trend filter
Uptrend if EMA(fast) > EMA(slow)
When useTrendFilter = true:
- Longs only in uptrend
- Shorts only in downtrend
2.6. Backtest time window (time filter)
To keep testing focused and reduce long-history noise:
useMaxLookbackDays enables the filter
maxLookbackDays defines how many days back from timenow entries are allowed
Entries are permitted only when time >= startTime.
3. Entry rules and position control
3.1. Entries
strategy.entry('Long', strategy.long) when longSetup and no long position is open
strategy.entry('Short', strategy.short) when shortSetup and no short position is open
No pyramiding is allowed (pyramiding = 0). Position gating is handled by:
Long allowed if strategy.position_size <= 0
Short allowed if strategy.position_size >= 0
4. Risk management: TP/SL and trailing (with plotted lines)
4.1. Detecting entry/exit events
Events are identified via changes in strategy.position_size:
LongEntry: transition into a long
shortEntry: transition into a short
flatExit: transition back to flat
This drives per-trade line creation, updates, and cleanup of state variables.
4.2. Static TP/SL
On entry, entryPrice := strategy.position_avg_price is stored.
Percent mode (usePercent = true)
Long:
staticSL = entryPrice*(1 - slPerc/100)
staticTP = entryPrice*(1 + tpPerc/100)
Short:
staticSL = entryPrice*(1 + slPerc/100)
staticTP = entryPrice*(1 - tpPerc/100)
ATR mode (usePercent = false)
Long:
staticSL = entryPrice - atrAtEntry*slATR
staticTP = entryPrice + atrAtEntry*tpATR
Short:
staticSL = entryPrice + atrAtEntry*slATR
staticTP = entryPrice - atrAtEntry*tpATR
4.3. Trailing stop (custom)
While a position is open, the script tracks the most favorable excursion:
Long: hhSinceEntry = highest high since entry
Short: llSinceEntry = lowest low since entry
A trailing candidate is computed:
Percent trailing (useTrailPercent = true)
Long: trailCandidate = hhSinceEntry*(1 - trailPerc/100)
Short: trailCandidate = llSinceEntry*(1 + trailPerc/100)
ATR trailing (useTrailPercent = false)
Long: trailCandidate = hhSinceEntry - atr*trailATR
Short: trailCandidate = llSinceEntry + atr*trailATR
Then the effective stop is selected:
Long: slUsed = max(staticSL, trailCandidate) when useTrail is enabled
Short: slUsed = min(staticSL, trailCandidate) when useTrail is enabled
If useTrail is disabled, slUsed remains the static stop.
Take profit remains static:
tpUsed = staticTP
Exit orders are issued via:
strategy.exit(..., stop=slUsed, limit=tpUsed)
4.4. Per-trade TP/SL lines
On each entry, two lines are created (SL and TP) via f_createLines().
During the trade, the SL line updates when trailing moves the stop; TP remains fixed.
On exit (flatExit), both lines are finalized on the exit bar and left on the chart as historical references.
This makes it straightforward to visually audit each trade: entry context, intended TP, and trailing evolution until exit.
5. Visualization and debugging
BUY/SELL labels with configurable size (xsize)
Debug mode (showDebug) plots the chosen working support/resistance level each bar
Stored pivot levels are drawn using reusable line slots, projected a fixed 20 bars to the right to keep the chart readable and efficient
6. Parameter guidance and practical notes
pivotLookback / rightBars: controls pivot significance vs responsiveness. Lower rightBars confirms pivots earlier but can increase noise.
maxDistATR: too low may reject valid levels; too high may select distant, less relevant levels.
minWickATR: key quality gate for “real” sweeps. Higher values reduce frequency but often improve signal quality.
Filters:
Volume filter tends to help in ranges and active sessions.
VWAP bias is useful intraday to align trades with session positioning.
EMA trend filter is helpful in directional markets but may remove good mean-reversion setups.
Percent TP/SL: provides consistent behavior across assets with variable volatility, but is less adaptive to sudden regime shifts.
Percent trailing: can capture extensions well; calibrate trailPerc per asset/timeframe (too tight = premature exits).
7. Known limitations
Pivot-derived levels are a heuristic; in strong trends, valid retests may be limited.
The time filter uses timenow; behavior may vary depending on historical context and how the platform evaluates “current time.”
TP/SL and trailing are computed from bar OHLC; in live trading, intrabar sequencing and fills may differ from bar-close simulation.
AMMOUSSA XAUUSD Professional Intraday SwingAMMOUSSA XAUUSD Professional Intraday Swing
AMMOUSSA XAUUSD Professional Intraday Swing
AMMOUSSA XAUUSD Professional Intraday Swing
AMMOUSSA XAUUSD Professional Intraday Swing
CME Quarterly ShiftsCME Quarterly Shifts - Institutional Quarter Levels
Overview:
The CME Quarterly Shifts indicator tracks price action based on actual CME futures contract rollover dates, not calendar quarters. This indicator plots the Open, High, Low, and Close (OHLC) for each quarter, with quarters defined by the third Friday of March, June, September, and December - the exact dates when CME quarterly futures contracts expire and roll over.
Why CME Contract Dates Matter:
Institutional traders, hedge funds, and large market participants typically structure their positions around futures contract expiration cycles. By tracking quarters based on CME rollover dates rather than calendar months, this indicator aligns with how major institutional players view quarterly timeframes and position their capital.
Key Features:
✓ Automatic CME contract rollover date calculation (3rd Friday of Mar/Jun/Sep/Dec)
✓ Displays Quarter Open, High, Low, and Close levels
✓ Vertical break lines marking the start of each new quarter
✓ Quarter labels (Q1, Q2, Q3, Q4) for easy identification
✓ Adjustable history - show up to 20 previous quarters
✓ Fully customizable colors and line widths
✓ Works on any instrument and timeframe
✓ Toggle individual OHLC levels on/off
How to Use:
Quarter Open: The opening price when the new quarter begins (at CME rollover)
Quarter High: The highest price reached during the current quarter
Quarter Low: The lowest price reached during the current quarter
Quarter Close: The closing price from the previous quarter
These levels often act as key support/resistance zones as institutions reference them for quarterly performance, rebalancing, and position management.
Settings:
Display Options: Toggle quarterly break lines, OHLC levels, and labels
Max Quarters: Control how many historical quarters to display (1-20)
Colors: Customize colors for each level and break lines
Styles: Adjust line widths for OHLC levels and quarterly breaks
Best Practices:
Combine with other Smart Money Concepts (liquidity, order blocks, FVGs)
Watch for price reactions at quarterly Open levels
Monitor quarterly highs/lows as potential targets or stop levels
Use on higher timeframes (4H, Daily, Weekly) for clearer institutional perspective
Pairs well with monthly and yearly levels for multi-timeframe confluence
Perfect For:
ICT (Inner Circle Trader) methodology followers
Smart Money Concepts traders
Swing and position traders
Institutional-focused technical analysis
Traders tracking quarterly performance levels
Works on all markets: Forex, Indices, Commodities, Crypto, Stocks
CryptoFlux Dynamo [JOAT]CryptoFlux Dynamo: Velocity Scalping Strategy
WHAT THIS STRATEGY IS
CryptoFlux Dynamo is an open-source Pine Script v6 strategy designed for momentum-based scalping on cryptocurrency perpetual futures. It combines multiple technical analysis methods into a unified system that adapts its behavior based on current market volatility conditions.
This script is published open-source so you can read, understand, and modify the complete logic. The description below explains everything the strategy does so that traders who cannot read Pine Script can fully understand how it works before using it.
HOW THIS STRATEGY IS ORIGINAL AND WHY THE INDICATORS ARE COMBINED
This strategy uses well-known indicators (MACD, EMA, RSI, MFI, Bollinger Bands, Keltner Channels, ATR). The originality is not in the individual indicators themselves, but in the specific way they are integrated into a regime-adaptive system. Here is the detailed justification for why these components are combined and how they work together:
The Problem Being Solved:
Standard indicator-based strategies use fixed thresholds. For example, a typical MACD strategy might enter when the histogram crosses above zero. However, in cryptocurrency markets, volatility changes dramatically throughout the day and week. A MACD crossover during a low-volatility consolidation period has very different implications than the same crossover during a high-volatility trending period. Using the same entry thresholds and stop distances in both conditions leads to either:
Too many false signals during consolidation (if thresholds are loose)
Missing valid opportunities during expansion (if thresholds are tight)
Stops that are too tight during volatility spikes (causing premature exits)
Stops that are too wide during compression (giving back profits)
The Solution Approach:
This strategy first classifies the current volatility regime using normalized ATR (ATR as a percentage of price), then dynamically adjusts ALL other parameters based on that classification. This creates a context-aware system rather than a static threshold comparison.
How Each Component Contributes to the System:
ATR-Based Regime Classification (The Foundation)
The strategy calculates ATR over 21 periods, smooths it with a 13-period EMA to reduce noise from wicks, then divides by price to get a normalized percentage. This ATR% is classified into three regimes:
- Compression (ATR% < 0.8%): Market is consolidating, breakouts are more likely but false signals are common
- Expansion (ATR% 0.8% - 1.6%): Normal trending conditions
- Velocity (ATR% > 1.6%): High volatility, larger moves but also larger adverse excursions
This regime classification then controls stop distances, profit targets, trailing stop offsets, and signal strength requirements. The regime acts as a "meta-parameter" that tunes the entire system.
EMA Ribbon (8/21/34) - Trend Structure Detection
The three EMAs establish trend direction and structure. When EMA 8 > EMA 21 > EMA 34, the trend structure is bullish. The slope of the middle EMA (21) is calculated over 8 bars and converted to degrees using arctangent. This slope measurement quantifies trend strength, not just direction.
Why these specific periods? The 8/21/34 sequence follows Fibonacci-like spacing and provides good separation on 5-minute cryptocurrency charts. The fast EMA (8) responds to immediate price action, the mid EMA (21) represents the short-term trend, and the slow EMA (34) acts as a trend filter.
The EMA ribbon works with the regime classification: during compression regimes, the strategy requires stronger ribbon alignment before entry because false breakouts are more common.
MACD (8/21/5) - Momentum Measurement
The MACD uses faster parameters (8/21/5) than the standard (12/26/9) because cryptocurrency markets move faster than traditional markets. The histogram is smoothed with a 5-period EMA to reduce noise.
The key innovation is the adaptive histogram baseline. Instead of using a fixed threshold, the strategy calculates a rolling baseline from the smoothed absolute histogram value, then multiplies by a sensitivity factor (1.15). This means the threshold for "significant momentum" automatically adjusts based on recent momentum levels.
The MACD works with the regime classification: during velocity regimes, the histogram baseline is effectively higher because recent momentum has been stronger, preventing entries on relatively weak momentum.
RSI (21 period) and MFI (21 period) - Independent Momentum Confirmation
RSI measures momentum using price changes only. MFI (Money Flow Index) measures momentum using price AND volume. By requiring both to confirm, the strategy filters out price moves that lack volume support.
The 21-period length is longer than typical (14) to reduce noise on 5-minute charts. The trigger threshold (55 for longs, 45 for shorts) is slightly offset from 50 to require momentum in the trade direction, not just neutral readings.
These indicators work together: a signal requires RSI > 55 AND MFI > 55 for longs. This dual confirmation reduces false signals from price manipulation or low-volume moves.
Bollinger Bands (1.5 mult) and Keltner Channels (1.8 mult) - Squeeze Detection
When Bollinger Bands contract inside Keltner Channels, volatility is compressing and a breakout is likely. This is the "squeeze" condition. When the bands expand back outside the channels, the squeeze "releases."
The strategy uses a 1.5 multiplier for Bollinger Bands (tighter than standard 2.0) and 1.8 for Keltner Channels. These values were chosen to identify meaningful squeezes on 5-minute cryptocurrency charts without triggering too frequently.
The squeeze detection works with the regime classification: squeeze releases during compression regimes receive additional signal strength points because breakouts from consolidation are more significant.
Volume Impulse Detection - Institutional Participation Filter
The strategy calculates a volume baseline (34-period SMA) and standard deviation. A "volume impulse" is detected when current volume exceeds the baseline by 1.15x OR when the volume z-score exceeds 0.5.
This filter ensures entries occur when there is meaningful market participation, not during low-volume periods where price moves are less reliable.
Volume impulse is required for all entries and adds points to the composite signal strength score.
Cycle Oscillator - Trend Alignment Filter
The strategy calculates a 55-period EMA as a cycle basis, then measures price deviation from this basis as a percentage. When price is more than 0.15% above the cycle basis, the cycle is bullish. When more than 0.15% below, the cycle is bearish.
This filter prevents counter-trend entries. Long signals require bullish cycle alignment; short signals require bearish cycle alignment.
BTC Dominance Filter (Optional) - Market Regime Filter
The strategy can optionally use BTC.D (Bitcoin Dominance) as a market regime filter. When BTC dominance is rising (slope > 0.12), the market is in "risk-off" mode and long entries on altcoins are filtered. When dominance is falling (slope < -0.12), short entries are filtered.
This filter is optional because the BTC.D data feed may lag during low-liquidity periods.
How The Components Work Together (The Mashup Justification):
The strategy uses a composite scoring system where each signal pathway contributes points:
Trend Break pathway (30 points): Requires EMA ribbon alignment + positive slope + price breaks above recent structure high
Momentum Surge pathway (30 points): Requires MACD histogram > adaptive baseline + MACD line > signal + RSI > 55 + MFI > 55 + volume impulse
Squeeze Release pathway (25 points): Requires BB inside KC (squeeze) then release + momentum bias + histogram confirmation
Micro Pullback pathway (15 points): Requires shallow retracement to fast EMA within established trend + histogram confirmation + volume impulse
Additional modifiers:
+5 points if volume impulse is present, -5 if absent
+5 points in velocity regime, -2 in compression regime
+5 points if cycle is aligned, -5 if counter-trend
A trade only executes when the composite score reaches the minimum threshold (default 55) AND all filters agree (session, cycle bias, BTC dominance if enabled).
This scoring system is the core innovation: instead of requiring ALL conditions to be true (which would generate very few signals) or ANY condition to be true (which would generate too many false signals), the strategy requires ENOUGH conditions to be true, with different conditions contributing different weights based on their reliability.
HOW THE STRATEGY CALCULATES ENTRIES AND EXITS
Entry Logic:
1. Calculate current volatility regime from ATR%
2. Calculate all indicator values (MACD, EMA, RSI, MFI, squeeze, volume)
3. Evaluate each signal pathway and sum points
4. Check all filters (session, cycle, dominance, kill switch)
5. If composite score >= 55 AND all filters pass, generate entry signal
6. Calculate position size based on risk per trade and regime-adjusted stop distance
7. Execute entry with regime name as comment
Position Sizing Formula:
RiskCapital = Equity * (0.65 / 100)
StopDistance = ATR * StopMultiplier(regime)
RawQuantity = RiskCapital / StopDistance
MaxQuantity = Equity * (12 / 100) / Price
Quantity = min(RawQuantity, MaxQuantity)
Quantity = round(Quantity / 0.001) * 0.001
This ensures each trade risks approximately 0.65% of equity regardless of volatility, while capping total exposure at 12% of equity.
Stop Loss Calculation:
Stop distance is ATR multiplied by a regime-specific multiplier:
Compression regime: 1.05x ATR (tighter stops because moves are smaller)
Expansion regime: 1.55x ATR (standard stops)
Velocity regime: 2.1x ATR (wider stops to avoid premature exits during volatility)
Take Profit Calculation:
Target distance is ATR multiplied by regime-specific multiplier and base risk/reward:
Compression regime: 1.6x ATR * 1.8 base R:R * 0.9 regime bonus = approximately 2.6x ATR
Expansion regime: 2.05x ATR * 1.8 base R:R * 1.0 regime bonus = approximately 3.7x ATR
Velocity regime: 2.8x ATR * 1.8 base R:R * 1.15 regime bonus = approximately 5.8x ATR
Trailing Stop Logic:
When adaptive trailing is enabled, the strategy calculates a trailing offset based on ATR and regime:
Compression regime: 1.1x base offset (looser trailing to avoid noise)
Expansion regime: 1.0x base offset (standard)
Velocity regime: 0.8x base offset (tighter trailing to lock in profits during fast moves)
The trailing stop only activates when it would be tighter than the initial stop.
Momentum Fail-Safe Exits:
The strategy closes positions early if momentum reverses:
Long positions close if MACD histogram turns negative OR EMA ribbon structure breaks (fast EMA crosses below mid EMA)
Short positions close if MACD histogram turns positive OR EMA ribbon structure breaks
This prevents holding through momentum reversals even if stop loss hasn't been hit.
Kill Switch:
If maximum drawdown exceeds 6.5%, the strategy disables new entries until manually reset. This prevents continued trading during adverse conditions.
HOW TO USE THIS STRATEGY
Step 1: Apply to Chart
Use a 5-minute chart of a high-liquidity cryptocurrency perpetual (BTC/USDT, ETH/USDT recommended)
Ensure at least 200 bars of history are loaded for indicator stabilization
Use standard candlestick charts only (not Heikin Ashi, Renko, or other non-standard types)
Step 2: Understand the Visual Elements
EMA Ribbon: Three lines (8/21/34 periods) showing trend structure. Bullish when stacked upward, bearish when stacked downward.
Background Color: Shows current volatility regime
- Indigo/dark blue = Compression (low volatility)
- Purple = Expansion (normal volatility)
- Magenta/pink = Velocity (high volatility)
Bar Colors: Reflect signal strength divergence. Brighter colors indicate stronger directional bias.
Triangle Markers: Entry signals. Up triangles below bars = long entry. Down triangles above bars = short entry.
Dashboard (top-right): Real-time display of regime, ATR%, signal strengths, position status, stops, targets, and risk metrics.
Step 3: Interpret the Dashboard
Regime: Current volatility classification (Compression/Expansion/Velocity)
ATR%: Normalized volatility as percentage of price
Long/Short Strength: Current composite signal scores (0-100)
Cycle Osc: Price deviation from 55-period EMA as percentage
Dominance: BTC.D slope and filter status
Position: Current position direction or "Flat"
Stop/Target: Current stop loss and take profit levels
Kill Switch: Status of drawdown protection
Volume Z: Current volume z-score
Impulse: Whether volume impulse condition is met
Step 4: Adjust Parameters for Your Needs
For more conservative trading: Increase "Minimum Composite Signal Strength" to 65 or higher
For more aggressive trading: Decrease to 50 (but expect more false signals)
For higher timeframes (15m+): Increase "Structure Break Window" to 12-15, increase "RSI Momentum Trigger" to 58
For lower liquidity pairs: Increase "Volume Impulse Multiplier" to 1.3, increase slippage in strategy properties
To disable short selling: Uncheck "Enable Short Structure"
To disable BTC dominance filter: Uncheck "BTC Dominance Confirmation"
STRATEGY PROPERTIES (BACKTEST SETTINGS)
These are the exact settings used in the strategy's Properties dialog box. You must use these same settings when evaluating the backtest results shown in the publication:
Initial Capital: $100,000
Justification: This amount is higher than typical retail accounts. I chose this value to demonstrate percentage-based returns that scale proportionally. The strategy uses percentage-based position sizing (0.65% risk per trade), so a $10,000 account would see the same percentage returns with 10x smaller position sizes. The absolute dollar amounts in the backtest should be interpreted as percentages of capital.
Commission: 0.04% (commission_value = 0.04)
Justification: This reflects typical perpetual futures exchange fees. Major exchanges charge between 0.02% (maker) and 0.075% (taker). The 0.04% value is a reasonable middle estimate. If your exchange charges different fees, adjust this value accordingly. Higher fees will reduce net profitability.
Slippage: 1 tick
Justification: This is conservative for liquid pairs like BTC/USDT on major exchanges during normal conditions. For less liquid altcoins or during high volatility, actual slippage may be higher. If you trade less liquid pairs, increase this value to 2-3 ticks for more realistic results.
Pyramiding: 1
Justification: No position stacking. The strategy holds only one position at a time. This simplifies risk management and prevents overexposure.
calc_on_every_tick: true
Justification: The strategy evaluates on every price update, not just bar close. This is necessary for scalping timeframes where waiting for bar close would miss opportunities. Note that this setting means backtest results may differ slightly from bar-close-only evaluation.
calc_on_order_fills: true
Justification: The strategy recalculates immediately after order fills for faster response to position changes.
RISK PER TRADE JUSTIFICATION
The default risk per trade is 0.65% of equity. This is well within the TradingView guideline that "risking more than 5-10% on a trade is not typically considered viable."
With the 12% maximum exposure cap, even if the strategy takes multiple consecutive losses, the total risk remains manageable. The kill switch at 6.5% drawdown provides additional protection by halting new entries during adverse conditions.
The position sizing formula ensures that stop distance (which varies by regime) is accounted for, so actual risk per trade remains approximately 0.65% regardless of volatility conditions.
SAMPLE SIZE CONSIDERATIONS
For statistically meaningful backtest results, you should select a dataset that generates at least 100 trades. On 5-minute BTC/USDT charts, this typically requires:
2-3 months of data during normal market conditions
1-2 months during high-volatility periods
3-4 months during low-volatility consolidation periods
The strategy's selectivity (requiring 55+ composite score plus all filters) means it generates fewer signals than less filtered approaches. If your backtest shows fewer than 100 trades, extend the date range or reduce the minimum signal strength threshold.
Fewer than 100 trades produces statistically unreliable results. Win rate, profit factor, and other metrics can vary significantly with small sample sizes.
STRATEGY DESIGN COMPROMISES AND LIMITATIONS
Every strategy involves trade-offs. Here are the compromises made in this design and the limitations you should understand:
Selectivity vs. Opportunity Trade-off
The 55-point minimum threshold filters many potential trades. This reduces false signals but also misses valid setups that don't meet all criteria. Lowering the threshold increases trade frequency but decreases win rate. There is no "correct" threshold; it depends on your preference for fewer higher-quality signals vs. more signals with lower individual quality.
Regime Classification Lag
The ATR-based regime detection uses historical data (21 periods + 13-period smoothing). It cannot predict sudden volatility spikes. During flash crashes or black swan events, the strategy may be classified in the wrong regime for several bars before the classification updates. This is an inherent limitation of any lagging indicator.
Indicator Parameter Sensitivity
The default parameters (MACD 8/21/5, EMA 8/21/34, RSI 21, etc.) are tuned for BTC/ETH perpetuals on 5-minute charts during 2024 market conditions. Different assets, timeframes, or market regimes may require different parameters. There is no guarantee that parameters optimized on historical data will perform similarly in the future.
BTC Dominance Filter Limitations
The CRYPTOCAP:BTC.D data feed may lag during low-liquidity periods or weekends. The dominance slope calculation uses a 5-bar SMA, adding additional delay. If you notice the filter behaving unexpectedly, consider disabling it.
Backtest vs. Live Execution Differences
TradingView backtesting does not replicate actual broker execution. Key differences:
Backtests assume perfect fills at calculated prices; real execution involves order book depth, latency, and partial fills
The calc_on_every_tick setting improves backtest realism but still cannot capture sub-bar price action or order book dynamics
Commission and slippage settings are estimates; actual costs vary by exchange, time of day, and market conditions
Funding rates on perpetual futures are not modeled in backtests and can significantly impact profitability over time
Exchange-specific limitations (position limits, liquidation mechanics, order types) are not modeled
Market Condition Dependencies
This strategy is designed for trending and breakout conditions. During extended sideways consolidation with no clear direction, the strategy may generate few signals or experience whipsaws. No strategy performs well in all market conditions.
Cryptocurrency-Specific Risks
Cryptocurrency markets operate 24/7 without session boundaries. This means:
No natural "overnight" risk reduction
Volatility can spike at any time
Liquidity varies significantly by time of day
Exchange outages or issues can occur at any time
WHAT THIS STRATEGY DOES NOT DO
To be straightforward about limitations:
This strategy does not guarantee profits. Past backtest performance does not indicate future results.
This strategy does not predict the future. It reacts to current conditions based on historical patterns.
This strategy does not account for funding rates, which can significantly impact perpetual futures profitability.
This strategy does not model exchange-specific execution issues (partial fills, requotes, outages).
This strategy does not adapt to fundamental news events or black swan scenarios.
This strategy is not optimized for all market conditions. It may underperform during extended consolidation.
IMPORTANT RISK WARNINGS
Past performance does not guarantee future results. The backtest results shown reflect specific historical market conditions and parameter settings. Markets change constantly, and strategies that performed well historically may underperform or lose money in the future. A single backtest run does not constitute proof of future profitability.
Trading involves substantial risk of loss. Cryptocurrency derivatives are highly volatile instruments. You can lose your entire investment. Only trade with capital you can afford to lose completely.
This is not financial advice. This strategy is provided for educational and informational purposes only. It does not constitute investment advice, trading recommendations, or any form of financial guidance. The author is not a licensed financial advisor.
You are responsible for your own decisions. Before using this strategy with real capital:
Thoroughly understand the code and logic by reading the open-source implementation
Forward test with paper trading or very small positions for an extended period
Verify that commission, slippage, and execution assumptions match your actual trading environment
Understand that live results will differ from backtest results
Consider consulting with a qualified financial advisor
No guarantees or warranties. This strategy is provided "as is" without any guarantees of profitability, accuracy, or suitability for any purpose. The author is not responsible for any losses incurred from using this strategy.
OPEN-SOURCE CODE STRUCTURE
The strategy code is organized into these sections for readability:
Configuration Architecture: Input parameters organized into logical groups (Core Controls, Optimization Constants, Regime Intelligence, Signal Pathways, Risk Architecture, Visualization)
Helper Functions: calcQty() for position sizing, clamp01() and normalize() for value normalization, calcMFI() for Money Flow Index calculation
Core Indicator Engine: EMA ribbon, ATR and regime classification, MACD with adaptive baseline, RSI, MFI, volume analytics, cycle oscillator, BTC dominance filter, squeeze detection
Signal Pathway Logic: Trend break, momentum surge, squeeze release, micro pullback pathways with composite scoring
Entry/Exit Orchestration: Signal filtering, position sizing, entry execution, stop/target calculation, trailing stop logic, momentum fail-safe exits
Visualization Layer: EMA plots, regime background, bar coloring, signal labels, dashboard table
You can read and modify any part of the code. Understanding the logic before deployment is strongly recommended.
- Made with passion by officialjackofalltrades
TGS By ShadTGS Levels — Tesla–W.D. Gann Strategy
TGS Levels is a price-geometry indicator designed to map algorithmic decision zones on the chart using principles inspired by W.D. Gann price geometry and Tesla 3-6-9 harmonic structure.
This indicator is not a signal generator.
It provides a structured price map to help traders understand where reactions or breakouts are statistically more likely to occur.
🔹 Core Concept
Markets do not move randomly.
They rotate and expand around harmonic price cycles.
TGS Levels automatically plots a 100-unit price cycle framework (ideal for XAUUSD / Gold) and divides each cycle into hierarchical angles used by institutional and algorithmic trading models.
🔹 Level Hierarchy (Very Important)
TGS uses four types of levels, each with a different purpose:
🔴 SUPER ANGLE (+45)
Primary decision level
Price often shows strong rejection or explosive breakout
Highest importance level
🟥 MAIN ANGLES (+27, +63, +81)
High-probability reaction zones
Used for structured pullbacks, rejections, or continuation confirmation
🟠 SECONDARY ANGLES (+18, +36, +54, +72, +90)
Context & management levels
Expect hesitation, partial profit zones, or stop-tightening areas
Not recommended for direct entries
🟡 MICRO LEVELS (+3, +6, +9)
Liquidity & compression map
Help visualize absorption, stop hunts, and consolidation
For structure awareness only
🔹 What This Indicator Is Used For
✔ Identifying where price is likely to react
✔ Understanding market structure and rotation
✔ Distinguishing rejection vs breakout zones
✔ Improving trade timing when combined with:
Volatility (ATR)
Market structure (HL / LH / BOS)
Session timing (London / New York)
🔹 What This Indicator Is NOT
❌ Not a buy/sell signal
❌ Not a prediction tool
❌ Not based on indicators like RSI or MACD
TGS Levels is a price-first framework, designed to be used with price action, volatility, and structure.
🔹 Best Use Case
Asset: XAUUSD (Gold)
Execution Timeframe: M5
Sessions: London & New York
Style: Scalping / Intraday structure trading
The same logic can be adapted to other instruments by adjusting the cycle size.
🔹 How to Trade With TGS (High-Level)
When volatility is low or falling → expect rejections at main/super angles
When volatility is expanding → expect breakouts through angles
Use oscillators (like Stochastic) only for timing, not direction
Always confirm with price behavior at the level
🔹 Final Note
TGS Levels provides a clean, non-repainting price map that stays aligned when zooming or scrolling the chart.
All levels are calculated automatically and update dynamically with price.
Levels explain behavior — reactions create opportunity.
SNIPER Initial Balance V1SNIPER INITIAL BALANCE V1
### What It Does
Draws the first hour's high/low range with extensions and breakout signals.
### IB Times (Auto-Selected)
| Market Type | IB Period (ET) |
|-------------|----------------|
| Index (ES/NQ/YM) | 9:30 - 10:30 |
| Gold (GC/MGC) | 8:30 - 9:30 |
| Energy (CL) | 9:00 - 10:00 |
### Levels Drawn
| Level | Style | Purpose |
|-------|-------|---------|
| IB High | Solid | Resistance |
| IB Low | Solid | Support |
| IB Mid | Dashed | Mean reversion |
| 50% Ext | Dotted | Target 1 |
| 100% Ext | Dotted | Target 2 |
| 1SD (1.28x) | Dashed | 80% range |
| 2SD (2.0x) | Dashed | 95% range |
### Signals
| Signal | Meaning | Action |
|--------|---------|--------|
| `IB↑` | Breakout above IB High | Look for long |
| `IB↓` | Breakout below IB Low | Look for short |
| `RT↑` | Retest long entry | **BEST ENTRY** - Go long |
| `RT↓` | Retest short entry | **BEST ENTRY** - Go short |
| `FK` | Fakeout warning | **AVOID** - Don't enter |
### Entry Requirements (All Must Be True)
- ✅ Close above/below level (not just wick)
- ✅ Volume ≥ 1.3x average
- ✅ Body ≥ 60% of candle
- ✅ Minimal adverse wick
### Quick Trade Plan
```
LONG: Wait for RT↑ → SL below IB Low → TP at 50% or 100% ext
SHORT: Wait for RT↓ → SL above IB High → TP at 50% or 100% ext
```
---
HMA 9/50 Crossover + RSI 50 Filter1. The Core Indicators
HMA 9 (Fast): Acts as the primary trigger line. Its unique calculation minimizes lag compared to standard moving averages, allowing for faster entries.
HMA 50 (Slow): Defines the medium-term trend direction and acts as the "anchor" for crossover signals.
RSI 14: Serves as a "momentum gate." Instead of traditional overbought/oversold levels, we use the 50 midline to confirm that the directional strength supports the crossover.
2. Entry Conditions
Long Entry: Triggered when the HMA 9 crosses above the HMA 50 AND the RSI is greater than 50.
Short Entry: Triggered when the HMA 9 crosses below the HMA 50 AND the RSI is less than 50.
3. Execution & Reversal
This strategy is currently configured as an Always-in-the-Market system.
A "Long" position is automatically closed when a "Short" signal is triggered.
To prevent "pyramiding" (buying multiple positions in one direction), the script checks the current position_size before opening new entries.
How to Use
Timeframe: Optimized for 3-minute (3m) candles but can be tuned for 1m to 15m scalping.
Settings: Use the Inputs panel to adjust HMA lengths based on the volatility of your specific asset (e.g., shorter for stable stocks, longer for volatile crypto).
Visuals:
Aqua Line: HMA 9
Orange Line: HMA 50
Green Background: Bullish RSI Momentum (> 50)
Red Background: Bearish RSI Momentum (< 50)
Risk Disclosure
Whipsaws: This strategy is likely to underperform in sideways markets.
Backtesting: Past performance does not guarantee future results. Always test this strategy in the Strategy Tester with appropriate commission and slippage settings before live use.
NOVA - SessionsKey Features:
Three Major Sessions:
Asia (Tokyo):** Draws the overnight consolidation range (High/Low/Mid).
London:** Draws the breakout session range.
New York:** Draws the reversal/continuation session range (aligned with the Stock Market Open).
Smart Timezone Logic:
All sessions are calculated using their **local** exchange times (e.g., Tokyo time for Asia, NY time for NYSE) but display correctly on your chart in Amsterdam time. You never have to adjust for Daylight Savings.
Support & Resistance:
The Highs, Lows, and Midpoints extend to the right, allowing you to see how previous sessions act as support or resistance later in the day.
Daily Open:
Marks the exact opening price at Midnight to help you determine if price is "premium" (expensive) or "discount" (cheap) for the day.
Midnight VWAP:
A volume-weighted average price that resets every night, acting as a dynamic "fair value" line for the day.
Clean Visuals:
Completely customizable. You can toggle background boxes, lines, and text labels to keep your chart clean.
In short:
It automates the "boring work" of marking up your chart every morning so you can focus purely on price action.
Wedge Green SquadWedge GS automatically detects confirmed swing highs and lows and draws clean wedge trendlines directly from the true pivot bars. The indicator uses non-repainting pivots and extends the lines forward to highlight contracting price structures, potential breakouts, and compression zones.
Designed for traders who value structure over noise, it works best on higher timeframes and pairs naturally with support, resistance, and volume analysis. This tool focuses on clarity and reliability, not prediction.
Jimbob rangethis is a range indication for round numbers should give you levels to trade off when price is in new all time highs where there is no price action to level off.
False Breakdown Long Confirm (dropthoughcashin)// =============================================================================
// EN — Script Introduction
// Name: False Breakdown Long Confirm (dropthoughcashin)
// Timeframe: Designed for 5-minute charts (works on other TFs but tuned for 5m)
//
// What this script does:
// This indicator detects a “false breakdown” (liquidity sweep) below a support
// level, followed by a reclaim and a retest-hold confirmation. When confirmed,
// it prints a label and triggers the alert condition: dropthoughcashin.
//
// Core logic (3 steps):
// 1) Define the support level (Key Level):
// - Pivot mode: uses the latest confirmed pivot low as support.
// - Manual mode: uses your manually entered support level.
// 2) False breakdown + reclaim:
// - Price sweeps below support (low < support),
// - The sweep must be shallow (limited by ATR multiple or fixed points),
// - Then price reclaims: close back above the support.
// 3) Retest-hold confirmation (within N bars after reclaim):
// - Price retests near the support (low <= support + tolerance),
// - And closes at/above the support (hold),
// - If confirmed within the window, signal triggers once.
//
// Key parameters:
// - Max Penetration: filters out “deep breakdowns” you do NOT want.
// - Retest tolerance: how close price must retest the support.
// - Confirm within N bars: time limit to confirm after reclaim.
//
// Notes / Limitations:
// - Pivot support is lagging by design (pivot is confirmed after pLen bars).
// - This is a signal/alert tool, not a full trading strategy.
// =============================================================================
//
// 中文 — 脚本介绍
// 名称:False Breakdown Long Confirm(dropthoughcashin)
// 周期:主要为 5分钟K 设计(其他周期也能用,但默认参数以 5m 优化)
//
// 脚本作用:
// 本指标用于识别“假跌破(扫流动性/扫止损)”形态:价格先刺破支撑位,随后快速收回
// 并在短时间内回踩踩住,形成做多确认。确认后会在图上打标签,并触发提醒条件:
// dropthoughcashin。
//
// 核心逻辑(3步):
// 1) 定义支撑位(Key Level):
// - Pivot 模式:用最近确认的 pivot low(局部低点)作为支撑。
// - Manual 模式:用你手动输入的固定支撑价位。
// 2) 假跌破 + 收回(reclaim):
// - 价格最低点刺破支撑(low < 支撑),
// - 但下穿幅度必须“浅”(用 ATR 倍数或固定点数限制),
// - 随后收盘重新站回支撑上方(close > 支撑)。
// 3) 回踩踩住确认(retest-hold):
// - 在收回之后的 N 根K内,价格回踩到支撑附近(low <= 支撑 + 容忍),
// - 且收盘守住支撑(close >= 支撑),
// - 满足则触发一次信号与提醒。
//
// 关键参数说明:
// - Max Penetration(最大下穿深度):过滤掉“下穿太深”的破位,避免误触发。
// - Retest tolerance(回踩容忍范围):定义回踩要贴近支撑到什么程度。
// - Confirm within N bars(确认窗口):收回后限定多少根K内必须完成回踩确认。
//
// 注意事项:
// - Pivot 支撑位天然滞后(需要 pLen 根K确认后才成立),属于“稳但晚”的设计。
// - 该脚本是信号/提醒工具,不是完整的交易策略(不包含止损止盈与仓位管理)。
Price Log Regression (by Currency)1. Introduction
This indicator draws a logarithmic regression line directly on top of the price candles, showing the long‑term “average” growth path of any asset in the currency you select (for example USD). It is inspired by popular log‑regression studies used on assets like Bitcoin, where price is transformed to a log scale and a straight regression line is used to visualize macro trends and diminishing returns over time.
2. Key Features
- Currency‑aware trend line : Before calculating the regression, the script converts the asset’s price into the chosen currency, so the line represents the trend of “price in USD”, not just the original quote on the chart.
- Logarithmic regression : The script takes the logarithm (base 10) of the converted price, applies a linear regression to that log series, and then converts the result back to normal price; this produces a smooth line that follows the exponential character of many long‑term price moves.
- On‑chart overlay : Only the regression line is plotted and `overlay` is enabled, so the line appears directly over your existing candles, keeping the chart clean and making it easy to compare current price versus its long‑term log‑trend in the selected currency.
3. How to Use
- Add the script to any symbol and timeframe, then choose the Currency input (for example set it to “USD” if you want to see the trend of that asset measured in Dolars).
- Adjust the Regression length input: longer lengths give a slower, smoother macro line, while shorter lengths react more to recent price action; use what best matches the horizon you are analysing.
- Read the line as an analytical tool, not as guaranteed support or resistance: if price is far above the line, it may indicate an extended move relative to its long‑term path in that currency; if it is far below, it may indicate a cheaper zone relative to that same path, always remembering that this is educational analysis and not financial advice.
Note: This indicator focuses on long‑term logarithmic trends rather than short‑term noise, it is best suited for longer‑horizon approaches such as swing trading and position trading, rather than intraday scalping.
HMA Fibo Trend RibbonHMA Fibo Trend Ribbon - Fibonacci Trend Indicator
📊 Indicator Description
This is a trend indicator based on the harmony of Fibonacci numbers. The indicator uses seven Hull Moving Averages with periods corresponding to the Fibonacci sequence: 8, 13, 21, 34, 55, 89, 144. This mathematical harmony allows the indicator to perfectly align with natural market cycles and wave structures.
🎯 Fibonacci Philosophy in Market Analysis
The Fibonacci sequence is not just a set of numbers, but a fundamental pattern found in nature, art, and financial markets. Using these periods provides:
Natural alignment with market cycles
Multifractal analysis (covering different wave levels)
Harmonious interaction between timeframes
Universal application across all timeframes
🔧 Indicator Settings
Visual Settings:
Show Main Line - Show main line (HMA 144 - golden ratio)
Show Ribbon Lines - Show the remaining 6 Fibonacci lines
Show Trend Change Labels - Show trend change labels
Show Info (Trend %) - Show info label with trend percentage
Ribbon Opacity - Ribbon transparency (0-100%)
🎨 Visualization of Fibonacci Structure
Color Harmony:
Each HMA line corresponds to a specific Fibonacci level
Collective movement creates the "Fibonacci Ribbon"
Color differentiation based on direction
Info Label:
Displays consensus of 7 Fibonacci levels
Percentage ratio of bullish/bearish lines
Color coding of the trend
📊 Interpretation of Fibonacci Signals
Consistency Levels:
7/7 lines in one direction - Perfect Fibonacci harmony
5-6/7 lines - Strong trend
3-4/7 lines - Consolidation/transition phase
0-2/7 lines - Opposite trend
🚀 Advantages of Fibonacci Approach
Natural harmony with market cycles
Universal - works on any asset and timeframe
Predictive power - anticipates reversal zones
Period synergy - signal amplification when aligned
Minimal lag - HMA responds better than regular MAs
⚡ Implementation Features
Technical Details:
Algorithm: Hull Moving Average (optimized for speed)
Periods: Pure Fibonacci sequence
Calculation: Consensus of 7 harmonic levels
Visualization: Intuitive color scheme
Performance:
Optimized for TradingView
Minimal system load
Support for all chart types
⚠️ Usage Recommendations
Combine with other Fibonacci tools
Verify signals on different timeframes
Use for trade entry filtering
Test on historical data before live trading
✍️ Author: A-Swift
📅 Version: 1.0 Fibonacci
🔗 Code: Open Source (MPL 2.0)
🧮 Basis: Fibonacci Sequence (8, 13, 21, 34, 55, 89, 144)
Fibonacci Fact:
The number 144 in the Fibonacci sequence is the square of its ordinal number (12²) and represents perfect harmony in market cycles. This makes the HMA with period 144 particularly significant for determining the main trend.
Middle Candle High / LowMiddle Candle High / Low – Liquidity Pivot Lines
This indicator identifies middle-candle pivot highs and lows based on wick extremes and plots them as liquidity lines extending to the right .
A pivot is formed when the middle candle’s wick is higher (for highs) or lower (for lows) than both the left and right candles. These levels often act as liquidity pools , where price may later react or get mitigated.
Victor's Market Breadth OscillatorDescription
This is a classic market breadth technical indicator designed to measure the underlying strength and momentum of the broader stock market. The indicator evaluates market health by analyzing the cumulative difference between the number of advancing stocks and declining stocks traded on the market. It provides clear signals of market breadth trend and momentum.
Core Calculation Logic
Fetch the real time data of advancing stocks and declining stocks using the assigned ticker symbols
Calculate the net market breadth value which equals the number of advancing stocks minus declining stocks
Compute the Fast Line as the cumulative sum of the net breadth value over the set short term period
Compute the Slow Line as the cumulative sum of the net breadth value over the set long term period, then normalize the value by dividing by three and rounding to a whole integer
Plot two distinct lines to visually reflect the short term and long term market breadth momentum
Usage Guidelines
The indicator readings reflect the internal strength of the overall market.
Higher indicator values mean stronger upward market breadth with more stocks participating in the rally and healthy bullish momentum.
Lower indicator values mean stronger downward market breadth with more stocks participating in the decline and increasing bearish momentum.
This is a market breadth auxiliary indicator. For optimal results, use it in combination with price trend analysis and volume indicators for comprehensive market judgment
Adjustable Input Parameters
Advancing Stocks Ticker : The ticker symbol for the number of advancing stocks in the market
Declining Stocks Ticker : The ticker symbol for the number of declining stocks in the market
Fast Summation Period : Short term cumulative calculation length for the Fast Line
Slow Summation Period : Long term cumulative calculation length for the Slow Line.






















