DP_MoneyFlow_Osc_V4**DP_Moneyflow_Osc_V4** is a custom, volume‐weighted momentum oscillator built around the classic Money Flow Index (MFI), with a few twists to help you spot more reliable reversal points:
***Best way to use it is to take the signals as alert points, to understand when money is starting to flow in or starting to flow out. It is not intended to be a Buy or Sell signal at the point of entry where the label is printed.***
1. **Core Calculation**
* Computes the standard MFI on your chart’s native timeframe:
* Money Flow = typical price (H+L+C)/3 × volume
* Segregates positive vs. negative flow based on whether price rose or fell on each bar
* Smooths each with an N-bar SMA, forms the ratio, and maps it into a 0–100 scale
2. **Inversion & Smoothing**
* You can **invert** the oscillator around 50 (so peaks become troughs and vice versa) with the **Reverse MFI** toggle.
* Applies two layers of smoothing (one for raw noise reduction, another for longer-term trend stability).
3. **Dynamic Coloring**
* Above Overbought (OB) threshold → solid red; below Oversold (OS) → solid green.
* In between, it linearly fades from red/green toward black as it approaches the 50 midpoint.
* **Invert Colors** flips the hue logic (red ↔ green) if you prefer.
4. **Overbought/Oversold Zones**
* Plots horizontal lines at your chosen OB/OS levels.
* Optionally fills the zone between them for quick visual reference.
5. **Peak/Trough Signal Labels**
* Detects **true extremes** by finding when the oscillator reverses direction right at or beyond your OB/OS levels.
* Prints a tiny “OB” or “OS” label **exactly at that pivot bar**, so you see the high or low of the swing.
6. **Alternation Toggle**
* Prevents two consecutive “OS” or “OB” labels by enforcing strict Buy/Sell alternation—turn this on or off via **Enable Signal Alternation**.
---
**Use-Case**: This oscillator excels at pinpointing the *tops* and *bottoms* of strong volume‐backed moves, giving you clear pivot markers rather than every threshold crossover. Tweak the smoothing and threshold inputs to calibrate sensitivity to your market and timeframe.
Göstergeler ve stratejiler
Contrarian 100 MAPairs nicely with Enhanced-Stock-Ticker-with-50MA-vs-200MA located here:
Description
The Contrarian 100 MA is a sophisticated Pine Script v6 indicator designed for traders seeking to identify key market structure shifts and trend reversals using a combination of a 100-period Simple Moving Average (SMA) envelope and Inner Circle Trader (ICT) Break of Structure (BoS) and Market Structure Shift (MSS) logic. By overlaying a semi-transparent SMA-based shadow on the price chart and plotting bullish and bearish structure signals, this indicator helps traders visualize critical price levels and potential trend changes. It leverages higher timeframe (HTF) pivot points and dynamic logic to adapt to various chart timeframes, making it ideal for swing and contrarian trading strategies. Customizable colors, timeframes, and alert conditions enhance its versatility for manual and automated trading setups.
Key Features
SMA Envelope: Plots a 100-period SMA for high and low prices, creating a semi-transparent (50% opacity) purple shadow to highlight the price range and provide context for price movements.
ICT BoS/MSS Logic: Identifies Break of Structure (BoS) and Market Structure Shift (MSS) signals for both bullish and bearish conditions, based on HTF pivot points.
Dynamic Timeframe Support: Adjusts pivot detection based on user-selected HTF (default: 1D) and chart timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D), ensuring adaptability across markets.
Visual Signals: Draws dotted lines for BoS (bullish/bearish) and MSS (bullish/bearish) signals at pivot levels, with customizable colors for easy identification.
Contrarian Approach: Signals potential reversals by combining SMA context with ICT structure breaks, ideal for traders looking to capitalize on trend shifts.
Alert Conditions: Supports alerts for bullish/bearish BoS and MSS signals, enabling integration with TradingView’s alert system for automated trading.
Performance Optimization: Uses efficient pivot detection and line management to minimize resource usage while maintaining accuracy.
Technical Details
SMA Calculation:
Computes 100-period SMAs for high (smaHigh) and low (smaLow) prices.
Plots invisible SMAs (fully transparent) and fills the area between them with 50% transparent purple for visual context.
Pivot Detection:
Uses ta.pivothigh and ta.pivotlow to identify HTF swing points, with dynamic lookback periods (rlBars: 5 for daily, 2 for intraday).
Tracks pivot highs (pH, nPh) and lows (pL, nPl) using a custom piv type for price and time.
BoS/MSS Logic:
Bullish BoS: Triggered when price breaks above a pivot high in a bullish trend, drawing a line at the pivot level.
Bearish BoS: Triggered when price breaks below a pivot low in a bearish trend.
Bullish MSS: Occurs when price breaks a pivot high in a bearish trend, signaling a potential trend reversal.
Bearish MSS: Occurs when price breaks a pivot low in a bullish trend.
Lines are drawn using line.new with xloc.bar_time for precise alignment, styled as dotted with customizable colors.
HTF Integration: Fetches HTF close prices and pivot data using request.security with lookahead_on for accurate signal timing.
Line Management: Maintains an array of lines (lin), removing outdated lines when new MSS signals occur to keep the chart clean.
Pivot Reset: Clears broken pivots (e.g., when price exceeds a pivot high or falls below a pivot low) to ensure fresh signal generation.
How to Use
Add to Chart:
Copy the script into TradingView’s Pine Editor and apply it to your chart.
Configure Settings:
SMA Length: Adjust the SMA period (default: 100 bars) to suit your trading style.
Structure Timeframe: Set the HTF for pivot detection (default: 1D).
Chart Timeframe: Select the chart timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D) to adjust pivot sensitivity.
Colors: Customize bullish/bearish BoS and MSS line colors via input settings.
Interpret Signals:
Bullish BoS: White dotted line (default) at a broken pivot high in a bullish trend, indicating trend continuation.
Bearish BoS: White dotted line at a broken pivot low in a bearish trend.
Bullish MSS: White dotted line at a broken pivot high in a bearish trend, suggesting a reversal to bullish.
Bearish MSS: White dotted line at a broken pivot low in a bullish trend, suggesting a reversal to bearish.
Use the SMA shadow to gauge price position within the recent range.
Set Alerts:
Create alerts for bullish/bearish BoS and MSS signals using TradingView’s alert system.
Customize Visuals:
Adjust line colors or SMA fill transparency via TradingView’s settings for better visibility.
Example Use Cases
Swing Trading: Use MSS signals to enter trades at potential trend reversals, with the SMA envelope confirming price extremes.
Contrarian Trading: Capitalize on BoS and MSS signals to trade against prevailing trends, using the SMA shadow for context.
Automated Trading: Integrate BoS/MSS alerts with trading bots for systematic entries and exits.
Multi-Timeframe Analysis: Combine HTF signals (e.g., 1D) with lower timeframe charts (e.g., 1H) for precise entries.
Notes
Testing: Backtest the indicator on your chosen market and timeframe to validate performance.
Compatibility: Built for Pine Script v6 and tested on TradingView as of June 19, 2025.
Limitations: Signals rely on HTF pivot accuracy, which may lag in fast-moving markets. Adjust rlBars or timeframe for sensitivity.
Optional Enhancements: Consider uncommenting or adding a histogram for SMA divergence (e.g., smaHigh - smaLow) for additional insights.
Acknowledgments
This indicator combines ICT’s market structure concepts with a dynamic SMA envelope to provide a unique contrarian trading tool. Share your feedback or suggestions in the TradingView comments, and happy trading!
Modified Fractal Open/CloseModified Fractal (Open/Close Based) - Indicator
The Modified Fractal (Open/Close Based) indicator offers a new way to detect fractal patterns on your chart by analyzing the open and close prices instead of the traditional high and low values.
🧮 How it works:
The indicator evaluates a group of 5 consecutive candles.
The central candle (2 bars ago) is analyzed.
For a Bullish Fractal:
The open or close of the central candle must be lower than the open and close of the other 4 surrounding candles.
For a Bearish Fractal:
The open or close of the central candle must be higher than the open and close of the other 4 surrounding candles.
Once a valid pattern is detected, a visual symbol (triangle) is plotted directly on the chart and an alert can be triggered.
✅ Key Features:
Non-repainting signals (evaluated after candle close)
Fully mechanical detection logic
Easy-to-use visual signals
Alert conditions ready to be integrated into TradingView’s alert system
Suitable for multiple timeframes (can be used from M1 to Daily and beyond)
🎯 Use case:
This modified fractal approach can help traders:
Spot potential swing points
Identify possible reversals
Confirm price exhaustion zones
Support breakout or mean reversion strategies
⚠ Note:
This indicator does not provide trade signals by itself. It is recommended to be combined with additional tools, price action analysis, or risk management rules.
CandelaCharts - 1st Presented FVG 📝 Overview
The ICT 1st Presented Fair Value Gap refers to the first FVG that forms after the market opens at 9:30 AM New York local time. In a sideways market, it often acts as a catalyst for price movement in either direction, while in trending conditions, it tends to support and reinforce the prevailing trend.
This indicator automatically identifies the first Fair Value Gap (FVG) that forms after the New York session opens at 9:30 AM local time. Based on concepts taught by Inner Circle Trader (ICT), the 1st Presented FVG is a key institutional price imbalance that often sets the tone for the trading day.
📦 Features
Customize FVG session time (e.g. 09:30 – 10:00)
Show/hide session dividers
FVG visibility filter (e.g. Bullish / Bearish)
Advanced styling
Hide overlapping FVGs
Extend FVGs
Opening prices
⚙️ Settings
Show: Controls whether all, bullish only, or bearish only FVGs are displayed on the chart.
Session: Sets a specific time window (e.g. 09:30–10:00) to filter which FVGs are displayed.
Dividers: Toggles vertical session divider on the chart for visual separation.
Midline: Displays a midpoint (CE) line through the FVG; customizable color and thickness.
Border: Adds a border around each FVG zone.
Labels: Toggles label display for FVGs.
Hide Overlap: Hides overlapping FVGs to reduce visual clutter.
Extend: Extends each FVG forward in time.
Alerts: Enables alerts when price interacts with an FVG zone.
Opening Prices: Allows defining custom time-based levels (e.g. 00:00–00:01 and 18:00–18:01) with color and style options.
⚡️ Showcase
Simple
Labels
Bordered
Consequent Encroachment
Extended
Dividers
📒 Usage
How to Use the ICT 1st Presented Fair Value Gap in Trading
To apply the ICT 1st Presented Fair Value Gap (FVG), identify the first fair value gap of the day and extend it across the chart until 3:45 PM New York time.
You’ll often notice that some of the best trade setups form around this level. It tends to act as a key reference point for price action during the day—especially on trending days, where price frequently returns to this gap before continuing in its direction.
This level can also serve as an inverse fair value gap, offering opportunities in the opposite direction under the right conditions.
How to Disqualify the 1st Presented Fair Value Gap?
When the first fair value gap forms after 9:30 AM New York time, check the candles that came just before it.
If the candlestick that creates the FVG doesn’t break above or below the range of those previous candles, then it’s not a true inefficiency. In that case, it’s considered a disqualified 1st Presented Fair Value Gap—meaning it shouldn’t be used as a key reference level.
Refer to the example below to see what this looks like on the chart.
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is triggered when the bearish 1st P.FVG is formed in interval 09:30 - 10:00.
Bullish Signal
A bullish signal is triggered when the bullish 1st P.FVG is formed in interval 09:30 - 10:00.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
MAs w/ Locked Time FrameThis script plots multiple simple and exponential moving averages on your chart, with the ability to lock each one to a higher timeframe (HTF), such as 1-hour or 1-day. Use individual switches for fine control, or a master override to apply the same HTF across all MAs. A chart label clearly shows which HTF is in use. Perfect for multi-timeframe traders and trend-followers.
Educator Buy/Sell Signals (15m & 1h)Buy sell signal on 15 min and 1 hr timeframe to help you time the right entry for the asset you are looking to buy or sell
spx levelsThis script accommodates a 'string' using the formatting $ symbol then label (liek support for example). The string can be anything oyu want that you make up. I use it for SPX and publish a string daily for my substack subscribers. This is here for them but its free for anyone
YesmypageProfessional daily pivot point calculator using previous day's High, Low, and Close data. Displays 7 horizontal levels: R3/R2/R1 (green resistance), PP (blue pivot), S1/S2/S3 (red support) with exact price labels. Updates automatically each trading day. Perfect for Indian markets with clean visual design, customizable settings and summary table for quick reference.
GCM Price Boost📌 GCM Price Boost (GCMPB) – by
📈 Overview:
The GCM Price Boost indicator combines Volume Rate of Change (VROC) with a modified RSI Histogram to detect early momentum surges and potential reversal zones — giving you a powerful dual-momentum edge in all markets.
This tool is built for traders who want to spot strong price bursts (boosts) backed by volume and momentum, with visual clarity.
🔍 What It Includes:
✅ VROC Histogram:
Tracks how quickly volume is increasing alongside price.
Helps spot "pump" scenarios — surges in buying or selling pressure.
Color-coded for trend:
🟢 Green when price is rising
🔴 Red when price is falling
⚪ Gray when neutral
Two thresholds:
Small Pump (default 0.5)
Big Pump (default 10.0)
✅ RSI Histogram:
Based on RSI deviations from 50 (mid-level), scaled by a user-defined multiplier.
Color-coded histogram fill for momentum strength:
🟢 Positive = bullish pressure
🔴 Negative = bearish pressure
Histogram line color:
Above zero: 🟢 #2dff00 (bullish)
Below zero: 🔴 #ff0000 (bearish)
✅ Customizable Settings:
Adjustable VROC lookback and thresholds.
Custom RSI period and multiplier.
Amplify VROC histogram height visually via scaling multiplier.
✅ Alerts Built-in:
🔔 GCM Small Pump Detected
🔔 GCM Big Pump Detected
🔔 RSI Buy Signal
🔔 RSI Sell Signal
⚙️ Best Used For:
Spotting volume-backed momentum shifts
Surfing strong price waves (breakouts, pumps)
Timing buy/sell zones using RSI momentum
Combining with other confirmation tools (trend filters, S/R zones, etc.)
🚀 How to Use:
Add this indicator to your chart.
Watch for:
VROC bars crossing pump levels
RSI Histogram entering buy/sell zones
Use alerts to stay notified of key shifts.
Combine with price action or trend filters for higher confidence.
🧠 Pro Tip:
For aggressive traders: Enter when RSI crosses buy/sell level with a matching VROC boost.
For swing traders: Use this as an early warning of upcoming strength or exhaustion.
💬 Feedback & Upgrades:
If you’d like:
Buy/sell arrows
A strategy version for backtesting
Multi-timeframe enhancements
Drop a comment or message — I’m actively maintaining and improving this tool 💪
EMA Trend Screener//@version=5
indicator("EMA Trend Screener", shorttitle="ETS", format=format.inherit)
// EMA Calculations
ema10 = ta.ema(close, 10)
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema100 = ta.ema(close, 100)
ema200 = ta.ema(close, 200)
// RSI Calculations
rsi_daily = ta.rsi(close, 14)
rsi_weekly = request.security(syminfo.tickerid, "1W", ta.rsi(close, 14))
// Core Conditions with 99% thresholds
price_above_10ema = close > (ema10 * 0.99)
ema10_above_20 = ema10 > (ema20 * 0.99)
ema20_above_50 = ema20 > (ema50 * 0.99)
ema50_above_100 = ema50 > (ema100 * 0.99)
ema100_above_200 = ema100 > (ema200 * 0.99)
// RSI Conditions
rsi_daily_bullish = rsi_daily > 50
rsi_weekly_bullish = rsi_weekly > 50
// EMA Spread Calculation
ema_max = math.max(ema10, math.max(ema20, math.max(ema50, math.max(ema100, ema200))))
ema_min = math.min(ema10, math.min(ema20, math.min(ema50, math.min(ema100, ema200))))
ema_spread_pct = (ema_max / ema_min - 1) * 100
// Price to 20 EMA Distance
price_to_20ema_pct = (close / ema20 - 1) * 100
// Additional Conditions
ema_spread_ok = ema_spread_pct < 10
price_to_20ema_ok = price_to_20ema_pct < 10
ema200_positive = ema200 > 0
// Final Signal Calculation
all_conditions_met = price_above_10ema and ema10_above_20 and ema20_above_50 and
ema50_above_100 and ema100_above_200 and rsi_daily_bullish and
rsi_weekly_bullish and ema_spread_ok and price_to_20ema_ok and ema200_positive
// SCREENER OUTPUT - This is the key for premium screener
// Return 1 for stocks meeting criteria, 0 for those that don't
screener_signal = all_conditions_met ? 1 : 0
// Plot the screener signal (this will be the column value)
plot(screener_signal, title="EMA Trend Signal", display=display.none)
// Additional screener columns you can add
plot(rsi_daily, title="RSI Daily", display=display.none)
plot(rsi_weekly, title="RSI Weekly", display=display.none)
plot(ema_spread_pct, title="EMA Spread %", display=display.none)
plot(price_to_20ema_pct, title="Price to 20EMA %", display=display.none)
// Screener-friendly outputs for individual conditions
plot(price_above_10ema ? 1 : 0, title="Price > 10EMA", display=display.none)
plot(ema10_above_20 ? 1 : 0, title="10EMA > 20EMA", display=display.none)
plot(ema20_above_50 ? 1 : 0, title="20EMA > 50EMA", display=display.none)
plot(ema50_above_100 ? 1 : 0, title="50EMA > 100EMA", display=display.none)
plot(ema100_above_200 ? 1 : 0, title="100EMA > 200EMA", display=display.none)
// Market cap condition (note: market cap data may not be available in all cases)
// You'll need to set this in the main screener interface
// Performance 3Y condition
// This also needs to be set in the main screener interface as it's fundamental data
Reversal Signal using 9 EMA & 20 EMA Rajdeep MThis is a reversal strategy.
This can be used in smaller timeframes like 3 or 5 or 15 min.
One should use 1:1 RR ratio.
Best entry in trade can be defined if the "Reversal" candle is doji, hammer, engulfing or harami candle.
TRADE AS PER YOUR RISK.
Deep M
Reversal Signal using 9 EMA & 20 EMA Rajdeep MThis is a reversal strategy.
This can be used in smaller timeframes like 3 or 5 or 15 min.
One should use 1:1 RR ratio.
Best entry in trade can be defined if the "Reversal" candle is doji, hammer, engulfing or harami candle.
TRADE AS PER YOUR RISK.
Deep M
RSI Combo: Buy + Sell + COMBOONLY FOR CRYPTO ASSETS!
This script generates RSI-based Buy and Sell signals for the current asset, with optional confirmation from the USDT Dominance index (USDT.D).
🔍 Logic Overview:
A Buy signal is triggered when:
RSI is below a defined threshold (default: 21)
Price is below the EMA (default: 100)
A Sell signal is triggered when:
RSI is above a defined threshold (default: 80)
Price is above the EMA
🔁 Combo Signals:
If a signal on the main asset is confirmed by an opposite signal on USDT.D (inverse logic), the script replaces the standard signal with a "combo" version:
combo buy = Buy signal on asset + Sell signal on USDT.D
combo sell = Sell signal on asset + Buy signal on USDT.D
This confirms a risk-off to risk-on (or vice versa) shift in the market.
✅ Features:
Works on any timeframe and any ticker
Inputs for custom RSI/EMA parameters
Alerts for all signal types:
Regular buy / sell
Enhanced combo buy / combo sell
Designed for overlay on the chart
USDT.D ticker can be customized
Strategy [High-Low Cloud Trend] (v6, perf-safe)Description
High-Low Cloud Trend Strategy (Performance-Safe Edition)
Version 6 • RezzoRedPriest (based on the original logic by @rottor29)
How it works
Dynamic range ― The script tracks the highest high / lowest low over a look-back of N bars (len). When price tags one extreme, a “pivot” flips to the opposite extreme, forming the core of the cloud.
Trend filter ― If the candle closes above the pivot, trend = bullish; below it, trend = bearish. The optional “Trade only with trend” switch forces longs in bullish mode and shorts in bearish mode.
Signals
Cloud Retest – price pulls back to the inner edge (band1) and rejects it.
Cloud Cross – price breaks through the outer edge (band).
Mean Reversion – spikes beyond the inner edge and snap back (optional).
Execution model – trades are processed once per bar (process_orders_on_close = true), capped at maxTradesPerDay.
Performance guardrails
Only the most-recent visBars bars are calculated and painted.
Object limits: max_labels_count = 400, max_lines_count = 30.
Inputs
Group Name Purpose
Display Drawings: show last N bars Hard cap for calculations & drawings (default = 500).
Display Show markers / labels Toggle all arrows / diamonds.
Display Show cloud fill & background Toggle the colored cloud & background.
Strategy Look-back period (len) Width of the cloud; larger = smoother trend.
Strategy Enable trading Completely turn trade logic on/off.
Strategy Take cloud-retest / cross / mean-reversion signals Select which setups feed the engine.
Strategy Trade only with trend Filter counter-trend signals.
Risk Max trades per day Hard daily cap.
Recommended use
Works on any timeframe; common sweet spots are 5 m & 15 m for liquid futures / FX.
Increase len for higher timeframes (e.g. 55–100 on 1 H) to avoid noise.
If your chart still lags, either:
Lower Drawings: show last N bars, or
Turn Show cloud fill off – the fill is the heaviest operation.
Disclaimer
This script is for educational purposes only and does not constitute financial advice. Always test on demo data first and use proper risk management.
Etiqueta en la vela 150 desde la actualThis indicator places a label on the candle you choose, counting backward from the most recent one. For example, you can mark candle number 150 from the current candle. Its purpose is to help you display only the necessary number of candles on the chart, making it easier to visualize standardized time ranges. This is especially useful for using the Visible Range Volume Profile indicator in a more consistent and standardized way.
Mark specific candle (e.g. bar 20)This Pine Script indicator, "Mark specific candle (e.g. bar 20)" (short title "Mark candle"), is a simple yet powerful tool to visually highlight a particular candle on your chart.
What it does:
It marks a specific candle (e.g., the 20th, 10th, or any number you choose) counting backwards from the most recent candle on your chart. The marked candle will be colored in a subtle light grey and also feature a tiny, matching grey arrow pointing down from above it.
Why it's useful:
This indicator helps you quickly identify and track a consistent reference point in recent price action. It's great for strategies that depend on fixed look-back periods or for simply keeping an eye on a specific historical candle's position as new data comes in.
Key Features:
Adjustable Candle Number: Easily change which candle is marked (e.g., 20th, 10th, 5th) directly from the indicator settings using the "Candle Number to Mark (from end)" input.
Clear Visuals: Both the candle color and a small arrow provide a subtle, yet effective, visual cue.
How to use:
Simply add this script to your TradingView chart. Then, open the indicator's settings to set your desired candle number.
Heatmap Trailing Stop with Breakouts (Zeiierman)█ Overview
Heatmap Trailing Stop with Breakouts (Zeiierman) is a trend and breakout detection tool that combines dynamic trailing stop logic, Fibonacci-based levels, and a real-time market heatmap into a single, intuitive system.
This indicator is designed to help traders visualize pressure zones, manage stop placement, and identify breakout opportunities supported by contextual price–derived heat. Whether you're trailing trends, detecting reversals, or entering on explosive breakouts — this tool keeps you anchored in structure and sentiment.
It projects adaptive trailing stop levels and calculates Fibonacci extensions from swing-based extremes. These levels are then colored by a market heatmap engine that tracks price interaction intensity — showing where the market is "hot" and likely to respond.
On top of that, it includes breakout signals powered by HTF momentum conditions, trend direction, and heatmap validation — giving you signals only when the context is strong.
█ How It Works
⚪ Trailing Stop Engine
At its core, the script uses an ATR-based trailing stop with trend detection:
ATR Length – Defines volatility smoothing using EMA MA of true range.
Multiplier – Expands/retracts the trailing offset depending on market aggression.
Real-Time Extremum Tracking – Uses local highs/lows to define Fibonacci anchors.
⚪ Fibonacci Projection + Heatmap
With each trend shift, Fibonacci levels are projected from the new swing to the current trailing stop. These include:
Fib 61.8, 78.6, 88.6, and 100% (trailing stop) lines
Heatmap Coloring – Each level'slevel's color is determined by how frequently price has interacted with that level in the recent range (defined by ATR).
Strength Score (1–10) – The number of touches per level is normalized and averaged to create a heatmap ""score"" displayed as a colored bar on the chart.
⚪ Breakout Signal System
This engine detects high-confidence breakout signals using a higher timeframe candle structure:
Bullish Breakout – Strong bullish candle + momentum + trend confirmation + heatmap score threshold.
Bearish Breakout – Strong bearish candle + momentum + trend confirmation + heatmap score threshold.
Cooldown Logic – Prevents signals from clustering too frequently during volatile periods.
█ How to Use
⚪ Trend Following & Trail Stops
Use the Trailing Stop line to manage positions or time entries in line with trend direction. Trailing stop flips are highlighted with dot markers.
⚪ Fibonacci Heat Zones
The projected Fibonacci levels serve as price magnets or support/resistance zones. Watch how price reacts at Fib 61.8/78.6/88.6 levels — especially when they're glowing with high heatmap scores (more glow = more historical touches = stronger significance).
⚪ Breakout Signals
Enable breakout signals when you want to trade breakouts only under strong context. Use the "Heatmap Strength Threshold" to require a minimum score (1–10).
█ Settings
Stop Distance ATR Length – ATR period for volatility smoothing
Stop Distance Multiplier – Adjusts the trailing stop'sstop's distance from price
Heatmap Range ATR Length – Defines how far back the heatmap scans for touches
Number of Heat Levels – Total levels used in the heatmap (more = finer resolution)
Minimum Touches per Level – Defines what counts as a ""hot"" level
Heatmap Strength Threshold – Minimum average heat score (1–10) required for breakouts
Timeframe – HTF source used to evaluate breakout momentum structure
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Fib-SMAs + 23↘38 Signal🧠 Fibonacci SMAs — and the Bearish Power of the 23↘38 Cross
This script plots a ribbon of 5 Simple Moving Averages (SMAs), each derived from Fibonacci retracement ratios:
23.6%, 38.2%, 50%, 61.8%, and 78.6% — all calculated as percentages of a base length (default: 100 bars).
It transforms the classical Fibonacci concept from static price levels into a dynamic trend structure based on time.
🔍 The Pattern I Discovered
When studying the Daily BTC chart, I found a powerful recurring signal:
When the 23.6% SMA (fuchsia) crosses below the 38.2% SMA (teal),
Bitcoin tends to pull back significantly in the following weeks.
This signal, which I call the 23↘38 cross, shows up at:
Major market tops
Bull market pauses
Local overextensions during trend runs
In backtested cases since 2014, this cross preceded corrections of 8–35%, usually playing out over the following 10–40 days.
⚠️ What’s Happening Now?
A fresh 23↘38 bearish cross has just occurred on the Daily BTC chart.
Historically, these setups often result in BTC pulling back into the zone where the 61.8% and 78.6% SMAs act as mean reversion targets.
That puts the next major support zone in the range of $94.5k to $79k — highlighted automatically on the chart when the signal appears.
💡 Why Use Fibonacci for Time?
Fibonacci levels (0.236, 0.382, 0.618...) are traditionally used on the price axis.
This tool flips that idea: it applies Fibonacci ratios to the time axis — calculating SMAs that reflect natural market timing rhythms, not just support/resistance lines.
The result is a ribbon of rhythm, where each line represents a unique retracement of time-based momentum.
🧰 Features Included
Besides the core 23↘38 bearish signal, the script includes optional toggleable modules:
Name Description
Ribbon Flip-and-Go Detects full bullish or bearish alignment and trend ignition
Pinch Breakout Flags volatility compression followed by expansion
Deep-Dip Buy/Sell Finds smart pullbacks in ongoing trends using the 61.8% SMA
Each one includes alertcondition() support, so you can automate strategies or trading bots.
🧭 How to Trade It
Use the 23↘38 cross as an early warning to:
Secure profits
De-risk exposure
Watch for pullbacks to the slower SMAs (61.8% / 78.6%)
It’s not a short signal by itself, but a macro timing filter that consistently front-runs volatility drops in overheated markets.
📉 Historical Examples (BTC 1D)
Nov 2021 top → -35% drop
April 2022 rally → -28% retracement
Mid-2023 local high → -15% correction
June 2025 cross → current signal, target zone: 94.5k–79k
⚠️ Disclaimer
This is not financial advice. It’s a tool for studying probability patterns in price action.
Use it alongside proper risk management and market context.
Last Candle Std Dev BandsSTandard deviation candles, very basic not much, can build into a larger mean reversion strategy
tp_sl_styling_libTP/SL Styling Library
A professional-grade library for creating highly customizable trade management visualizations with extensive styling options and multiple display versions. Perfect for indicators and strategies that require consistent, professional-looking trade level drawings.
Key Features - Extensive Styling Options
Multiple Visual Styles
Version 1 : Traditional multi-label style with left/center/right positioning
Version 2 : Modern streamlined style with single-side labels and tooltips
Version 3 : Advanced style with directional arrows (▲/▼) and bar-level indicators
Comprehensive Customization
Line Styles : Solid, Dashed, Dotted for all levels
Line Thickness : Individual thickness control for each level
Color Schemes : Separate colors for TP1, TP2, TP3, SL, Entry, Buy/Sell signals
Label Positioning : Flexible left/center/right positioning for all information
Information Display : Configurable display of prices, R:R ratios, percentages, and position sizes
Professional Features
Memory Management : Proper cleanup functions prevent memory leaks
Dynamic Line Adjustment : Automatic line length adjustment based on chart view
Tooltip Integration : Hover information for all trade levels
Bad R/R Detection : Special visualization for poor risk/reward scenarios
What Makes This Library Unique
Unlike basic drawing functions, this library provides:
3 Different Visual Styles to match any trading strategy aesthetic
Granular Control over every visual element (colors, styles, thickness, positioning)
Professional Consistency across all your indicators and strategies
Memory-Efficient design with proper cleanup methods
Future-Proof architecture with version-based feature progression
Usage Example
//@version=5
indicator("My Strategy")
import bilsebub/tp_sl_drawing_lib/1 as tpsl
// Choose your preferred visual style
var VERSION = input.int(3, "Drawing Style", minval=1, maxval=3, options= )
// Extensive styling options
var TP1_STYLE = input.string("Solid", "TP1 Line Style", options= )
var TP1_THICKNESS = input.int(2, "TP1 Thickness", minval=1, maxval=5)
var TP1_COLOR = input.color(color.green, "TP1 Color")
var LABEL_POS = input.string("Right", "Label Position", options= )
var SHOW_PRICES = input.bool(true, "Show Prices")
var SHOW_RR = input.bool(true, "Show Risk/Reward")
// Create professional trade drawings
var drawings = tpsl.tradeDrawingsUnion.new()
if entrySignal
tpsl.remove_trade_drawings(VERSION, drawings)
drawings := tpsl.draw_trade_tp_sl(
version=VERSION,
direction=1, // 1 for buy, -1 for sell
ep=entry_price,
tp1=take_profit1,
tp2=take_profit2,
tp3=take_profit3,
sl=stop_loss,
rrr=risk_reward_ratio,
show_tp1=true,
show_tp2=true,
show_tp3=false,
show_sl=true,
show_ep=true,
tp_sl_label_pos=LABEL_POS,
tp_sl_price_pos=SHOW_PRICES ? LABEL_POS : "None",
tp_sl_rrr_pos=SHOW_RR ? LABEL_POS : "None",
tp1_style=TP1_STYLE,
tp1_thickness=TP1_THICKNESS,
tp1_color=TP1_COLOR
// ... additional styling parameters
)
Main Functions
Core Drawing Functions
draw_trade_tp_sl() - Create complete trade visualization with all styling options
draw_bad_rrr() - Special visualization for poor risk/reward scenarios
remove_trade_drawings() - Clean up all drawings to prevent memory issues
remove_trade_drawings_labels() - Remove only labels while keeping lines
shrink_lines() - Dynamically adjust line lengths based on chart view
Data Types
tradeDrawingsV1 - Traditional multi-label style
tradeDrawingsV2 - Modern streamlined style
tradeDrawingsV3 - Advanced style with directional indicators
tradeDrawingsUnion - Unified interface for all versions
Perfect For
Professional Indicators requiring consistent trade visualization
Trading Strategies with multiple take profit levels
Educational Content with clear trade management displays
Algorithmic Trading systems needing reliable drawing functions
Custom Indicators requiring extensive styling flexibility
Pro Tips
Choose the Right Version : V1 for detailed info, V2 for clean look, V3 for modern style
Memory Management : Always call remove_trade_drawings() before creating new ones
Styling Consistency : Use the same color scheme across all your indicators
Performance : Use shrink_lines() for dynamic line adjustment on large charts
Version Comparison
Label Positions:
V1 (Traditional) : Left/Center/Right positioning available
V2 (Modern) : Right-side positioning only
V3 (Advanced) : Right-side + Bar-level positioning
Directional Indicators:
V1 (Traditional) : ❌ Not available
V2 (Modern) : ❌ Not available
V3 (Advanced) : ✅ Available (▲/▼ arrows)
Tooltips:
V1 (Traditional) : ❌ Not available
V2 (Modern) : ✅ Available
V3 (Advanced) : ✅ Available
Bar-Level Markers:
V1 (Traditional) : ❌ Not available
V2 (Modern) : ❌ Not available
V3 (Advanced) : ✅ Available
Memory Efficiency:
V1 (Traditional) : Good
V2 (Modern) : Better
V3 (Advanced) : Best
Note : This library is designed for professional use and provides extensive customization options. Choose the version that best fits your visual style and requirements.
Main Functions:
shrink_lines(version, start_idx, min_bars_label_length, drawings)
Parameters:
version (int)
start_idx (int)
min_bars_label_length (int)
drawings (tradeDrawingsUnion)
draw_bad_rrr(version, ep, rrr, min_bars_label_length, ep_thickness, ep_color)
Parameters:
version (int)
ep (float)
rrr (float)
min_bars_label_length (int)
ep_thickness (int)
ep_color (color)
remove_trade_drawings(version, drawings)
Parameters:
version (int)
drawings (tradeDrawingsUnion)
remove_trade_drawings_labels(version, drawings)
Parameters:
version (int)
drawings (tradeDrawingsUnion)
draw_trade_tp_sl(version, direction, ep, tp1, tp2, tp3, sl, rrr, tp1_perc, tp2_perc, tp3_perc, sizeInfo, patternStartBarIdx, tp_sl_line_length, show_tp1, show_tp2, show_tp3, show_sl, show_ep, show_size_info, tp_sl_label_pos, tp_sl_price_pos, tp_sl_rrr_pos, tp_sl_perc_pos, tp_sl_qty_pos, tp1_style, tp2_style, tp3_style, sl_style, ep_style, tp1_thickness, tp2_thickness, tp3_thickness, sl_thickness, ep_thickness, tp1_color, tp2_color, tp3_color, sl_color, ep_color, buy_color, sell_color)
Parameters:
version (int)
direction (int)
ep (float)
tp1 (float)
tp2 (float)
tp3 (float)
sl (float)
rrr (float)
tp1_perc (float)
tp2_perc (float)
tp3_perc (float)
sizeInfo (string)
patternStartBarIdx (int)
tp_sl_line_length (int)
show_tp1 (bool)
show_tp2 (bool)
show_tp3 (bool)
show_sl (bool)
show_ep (bool)
show_size_info (bool)
tp_sl_label_pos (string)
tp_sl_price_pos (string)
tp_sl_rrr_pos (string)
tp_sl_perc_pos (string)
tp_sl_qty_pos (string)
tp1_style (string)
tp2_style (string)
tp3_style (string)
sl_style (string)
ep_style (string)
tp1_thickness (int)
tp2_thickness (int)
tp3_thickness (int)
sl_thickness (int)
ep_thickness (int)
tp1_color (color)
tp2_color (color)
tp3_color (color)
sl_color (color)
ep_color (color)
buy_color (color)
sell_color (color)
15m Breakout w/ % SL + Min HoldThis 15-minute breakout strategy identifies the prior period’s swing high and swing low over a user-defined lookback, plotting them as entry thresholds. Trades execute only within a specified session and align with the EMA trend: longs above the EMA, shorts below. Upon entry, a fixed percentage stop-loss immediately caps risk. After holding for a minimum number of bars, the strategy replaces the hard stop with an ATR-based trailing stop—triggered once the specified hold-time elapses—to lock in profits as momentum continues. By combining breakout triggers, trend filtering, hard stops, and delayed trailing exits, it provides disciplined risk management and profit capture.