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.
Análisis de tendencia
Professional Breakout ChecklistThe " Professional Breakout Checklist Indicator " designed to automate and visually represent the stringent criteria for high-probability breakout trade entries. This indicator transforms a manual checklist into a dynamic, chart-based system, leveraging TradingView's robust charting and custom indicator capabilities .
At its core, the indicator systematically identifies consolidation phases, which are crucial precursors to genuine breakouts. It achieves this by calculating the range of price action over a user-defined lookback period and comparing it to a multiple of the Average True Range (ATR), a measure of market volatility. When price tightens within this calculated range, the indicator visually shades the consolidation zone on the chart, signaling potential accumulation or distribution.
For a breakout to be considered valid, the indicator demands specific volume and volatility confirmation. It calculates the average volume over a set period and only triggers a signal if the breakout candle's volume significantly exceeds this average—specifically, 1.5 times the mean volume. This ensures that the price movement has strong conviction and institutional interest behind it, filtering out weak or false breakouts.
The breakout trigger mechanism is precise, requiring the breakout candle to close not just beyond the detected support or resistance, but by a user-specified number of "clearance ticks." This addresses the need to avoid noise and confirm the true breach of a level. Upon a confirmed breakout, the indicator immediately calculates and plots a suggested risk-reward setup. This includes a stop-loss level, derived from the ATR, and a take-profit target that adheres to a minimum 2:1 reward-to-risk ratio. These visual cues assist traders in defining their risk exposure and potential gains before entry.
Furthermore, the indicator integrates crucial market context by offering an optional trend filter, typically a 50-period Exponential Moving Average (EMA). This ensures that breakout signals align with the broader market direction, enhancing probability.
Beyond these core checklist items, the indicator incorporates professional enhancements. It provides an option to wait for retest confirmation, a strategy often employed by seasoned traders where price retests the breakout level before continuing its move, offering a potentially safer entry point. Additionally, a false breakout filter assesses the quality of the breakout candle, prioritizing those with strong bodies and minimal wicks, which are less likely to be "trap" moves.
The indicator is displayed directly on the chart, using visual cues such as shaded consolidation boxes, distinct shapes for bullish/bearish entry signals, and plotted lines for stop-loss and take-profit targets. Its design enables traders to efficiently analyze setups, confirm adherence to their trading plan, and receive timely alerts for potential opportunities, streamlining the decision-making process within the dynamic trading environment of TradingView
Bitcoin Power Law [LuxAlgo]The Bitcoin Power Law tool is a representation of Bitcoin prices first proposed by Giovanni Santostasi, Ph.D. It plots BTCUSD daily closes on a log10-log10 scale, and fits a linear regression channel to the data.
This channel helps traders visualise when the price is historically in a zone prone to tops or located within a discounted zone subject to future growth.
🔶 USAGE
Giovanni Santostasi, Ph.D. originated the Bitcoin Power-Law Theory; this implementation places it directly on a TradingView chart. The white line shows the daily closing price, while the cyan line is the best-fit regression.
A channel is constructed from the linear fit root mean squared error (RMSE), we can observe how price has repeatedly oscillated between each channel areas through every bull-bear cycle.
Excursions into the upper channel area can be followed by price surges and finishing on a top, whereas price touching the lower channel area coincides with a cycle low.
Users can change the channel areas multipliers, helping capture moves more precisely depending on the intended usage.
This tool only works on the daily BTCUSD chart. Ticker and timeframe must match exactly for the calculations to remain valid.
🔹 Linear Scale
Users can toggle on a linear scale for the time axis, in order to obtain a higher resolution of the price, (this will affect the linear regression channel fit, making it look poorer).
🔶 DETAILS
One of the advantages of the Power Law Theory proposed by Giovanni Santostasi is its ability to explain multiple behaviors of Bitcoin. We describe some key points below.
🔹 Power-Law Overview
A power law has the form y = A·xⁿ , and Bitcoin’s key variables follow this pattern across many orders of magnitude. Empirically, price rises roughly with t⁶, hash-rate with t¹² and the number of active addresses with t³.
When we plot these on log-log axes they appear as straight lines, revealing a scale-invariant system whose behaviour repeats proportionally as it grows.
🔹 Feedback-Loop Dynamics
Growth begins with new users, whose presence pushes the price higher via a Metcalfe-style square-law. A richer price pool funds more mining hardware; the Difficulty Adjustment immediately raises the hash-rate requirement, keeping profit margins razor-thin.
A higher hash rate secures the network, which in turn attracts the next wave of users. Because risk and Difficulty act as braking forces, user adoption advances as a power of three in time rather than an unchecked S-curve. This circular causality repeats without end, producing the familiar boom-and-bust cadence around the long-term power-law channel.
🔹 Scale Invariance & Predictions
Scale invariance means that enlarging the timeline in log-log space leaves the trajectory unchanged.
The same geometric proportions that described the first dollar of value can therefore extend to a projected million-dollar bitcoin, provided no catastrophic break occurs. Institutional ETF inflows supply fresh capital but do not bend the underlying slope; only a persistent deviation from the line would falsify the current model.
🔹 Implications
The theory assigns scarcity no direct role; iterative feedback and the Difficulty Adjustment are sufficient to govern Bitcoin’s expansion. Long-term valuation should focus on position within the power-law channel, while bubbles—sharp departures above trend that later revert—are expected punctuations of an otherwise steady climb.
Beyond about 2040, disruptive technological shifts could alter the parameters, but for the next order of magnitude the present slope remains the simplest, most robust guide.
Bitcoin behaves less like a traditional asset and more like a self-organising digital organism whose value, security, and adoption co-evolve according to immutable power-law rules.
🔶 SETTINGS
🔹 General
Start Calculation: Determine the start date used by the calculation, with any prior prices being ignored. (default - 15 Jul 2010)
Use Linear Scale for X-Axis: Convert the horizontal axis from log(time) to linear calendar time
🔹 Linear Regression
Show Regression Line: Enable/disable the central power-law trend line
Regression Line Color: Choose the colour of the regression line
Mult 1: Toggle line & fill, set multiplier (default +1), pick line colour and area fill colour
Mult 2: Toggle line & fill, set multiplier (default +0.5), pick line colour and area fill colour
Mult 3: Toggle line & fill, set multiplier (default -0.5), pick line colour and area fill colour
Mult 4: Toggle line & fill, set multiplier (default -1), pick line colour and area fill colour
🔹 Style
Price Line Color: Select the colour of the BTC price plot
Auto Color: Automatically choose the best contrast colour for the price line
Price Line Width: Set the thickness of the price line (1 – 5 px)
Show Halvings: Enable/disable dotted vertical lines at each Bitcoin halving
Halvings Color: Choose the colour of the halving lines
Trend Gauge [BullByte]Trend Gauge
Summary
A multi-factor trend detection indicator that aggregates EMA alignment, VWMA momentum scaling, volume spikes, ATR breakout strength, higher-timeframe confirmation, ADX-based regime filtering, and RSI pivot-divergence penalty into one normalized trend score. It also provides a confidence meter, a Δ Score momentum histogram, divergence highlights, and a compact, scalable dashboard for at-a-glance status.
________________________________________
## 1. Purpose of the Indicator
Why this was built
Traders often monitor several indicators in parallel - EMAs, volume signals, volatility breakouts, higher-timeframe trends, ADX readings, divergence alerts, etc., which can be cumbersome and sometimes contradictory. The “Trend Gauge” indicator was created to consolidate these complementary checks into a single, normalized score that reflects the prevailing market bias (bullish, bearish, or neutral) and its strength. By combining multiple inputs with an adaptive regime filter, scaling contributions by magnitude, and penalizing weakening signals (divergence), this tool aims to reduce noise, highlight genuine trend opportunities, and warn when momentum fades.
Key Design Goals
Signal Aggregation
Merged trend-following signals (EMA crossover, ATR breakout, higher-timeframe confirmation) and momentum signals (VWMA thrust, volume spikes) into a unified score that reflects directional bias more holistically.
Market Regime Awareness
Implemented an ADX-style filter to distinguish between trending and ranging markets, reducing the influence of trend signals during sideways phases to avoid false breakouts.
Magnitude-Based Scaling
Replaced binary contributions with scaled inputs: VWMA thrust and ATR breakout are weighted relative to recent averages, allowing for more nuanced score adjustments based on signal strength.
Momentum Divergence Penalty
Integrated pivot-based RSI divergence detection to slightly reduce the overall score when early signs of momentum weakening are detected, improving risk-awareness in entries.
Confidence Transparency
Added a live confidence metric that shows what percentage of enabled sub-indicators currently agree with the overall bias, making the scoring system more interpretable.
Momentum Acceleration Visualization
Plotted the change in score (Δ Score) as a histogram bar-to-bar, highlighting whether momentum is increasing, flattening, or reversing, aiding in more timely decision-making.
Compact Informational Dashboard
Presented a clean, scalable dashboard that displays each component’s status, the final score, confidence %, detected regime (Trending/Ranging), and a labeled strength gauge for quick visual assessment.
________________________________________
## 2. Why a Trader Should Use It
Main benefits and use cases
1. Unified View: Rather than juggling multiple windows or panels, this indicator delivers a single score synthesizing diverse signals.
2. Regime Filtering: In ranging markets, trend signals often generate false entries. The ADX-based regime filter automatically down-weights trend-following components, helping you avoid chasing false breakouts.
3. Nuanced Momentum & Volatility: VWMA and ATR breakout contributions are normalized by recent averages, so strong moves register strongly while smaller fluctuations are de-emphasized.
4. Early Warning of Weakening: Pivot-based RSI divergence is detected and used to slightly reduce the score when price/momentum diverges, giving a cautionary signal before a full reversal.
5. Confidence Meter: See at a glance how many sub-indicators align with the aggregated bias (e.g., “80% confidence” means 4 out of 5 components agree ). This transparency avoids black-box decisions.
6. Trend Acceleration/Deceleration View: The Δ Score histogram visualizes whether the aggregated score is rising (accelerating trend) or falling (momentum fading), supplementing the main oscillator.
7. Compact Dashboard: A corner table lists each check’s status (“Bull”, “Bear”, “Flat” or “Disabled”), plus overall Score, Confidence %, Regime, Trend Strength label, and a gauge bar. Users can scale text size (Normal, Small, Tiny) without removing elements, so the full picture remains visible even in compact layouts.
8. Customizable & Transparent: All components can be enabled/disabled and parameterized (lengths, thresholds, weights). The full Pine code is open and well-commented, letting users inspect or adapt the logic.
9. Alert-ready: Built-in alert conditions fire when the score crosses weak thresholds to bullish/bearish or returns to neutral, enabling timely notifications.
________________________________________
## 3. Component Rationale (“Why These Specific Indicators?”)
Each sub-component was chosen because it adds complementary information about trend or momentum:
1. EMA Cross
o Basic trend measure: compares a faster EMA vs. a slower EMA. Quickly reflects trend shifts but by itself can whipsaw in sideways markets.
2. VWMA Momentum
o Volume-weighted moving average change indicates momentum with volume context. By normalizing (dividing by a recent average absolute change), we capture the strength of momentum relative to recent history. This scaling prevents tiny moves from dominating and highlights genuinely strong momentum.
3. Volume Spikes
o Sudden jumps in volume combined with price movement often accompany stronger moves or reversals. A binary detection (+1 for bullish spike, -1 for bearish spike) flags high-conviction bars.
4. ATR Breakout
o Detects price breaking beyond recent highs/lows by a multiple of ATR. Measures breakout strength by how far beyond the threshold price moves relative to ATR, capped to avoid extreme outliers. This gives a volatility-contextual trend signal.
5. Higher-Timeframe EMA Alignment
o Confirms whether the shorter-term trend aligns with a higher timeframe trend. Uses request.security with lookahead_off to avoid future data. When multiple timeframes agree, confidence in direction increases.
6. ADX Regime Filter (Manual Calculation)
o Computes directional movement (+DM/–DM), smoothes via RMA, computes DI+ and DI–, then a DX and ADX-like value. If ADX ≥ threshold, market is “Trending” and trend components carry full weight; if ADX < threshold, “Ranging” mode applies a configurable weight multiplier (e.g., 0.5) to trend-based contributions, reducing false signals in sideways conditions. Volume spikes remain binary (optional behavior; can be adjusted if desired).
7. RSI Pivot-Divergence Penalty
o Uses ta.pivothigh / ta.pivotlow with a lookback to detect pivot highs/lows on price and corresponding RSI values. When price makes a higher high but RSI makes a lower high (bearish divergence), or price makes a lower low but RSI makes a higher low (bullish divergence), a divergence signal is set. Rather than flipping the trend outright, the indicator subtracts (or adds) a small penalty (configurable) from the aggregated score if it would weaken the current bias. This subtle adjustment warns of weakening momentum without overreacting to noise.
8. Confidence Meter
o Counts how many enabled components currently agree in direction with the aggregated score (i.e., component sign × score sign > 0). Displays this as a percentage. A high percentage indicates strong corroboration; a low percentage warns of mixed signals.
9. Δ Score Momentum View
o Plots the bar-to-bar change in the aggregated score (delta_score = score - score ) as a histogram. When positive, bars are drawn in green above zero; when negative, bars are drawn in red below zero. This reveals acceleration (rising Δ) or deceleration (falling Δ), supplementing the main oscillator.
10. Dashboard
• A table in the indicator pane’s top-right with 11 rows:
1. EMA Cross status
2. VWMA Momentum status
3. Volume Spike status
4. ATR Breakout status
5. Higher-Timeframe Trend status
6. Score (numeric)
7. Confidence %
8. Regime (“Trending” or “Ranging”)
9. Trend Strength label (e.g., “Weak Bullish Trend”, “Strong Bearish Trend”)
10. Gauge bar visually representing score magnitude
• All rows always present; size_opt (Normal, Small, Tiny) only changes text size via text_size, not which elements appear. This ensures full transparency.
________________________________________
## 4. What Makes This Indicator Stand Out
• Regime-Weighted Multi-Factor Score: Trend and momentum signals are adaptively weighted by market regime (trending vs. ranging) , reducing false signals.
• Magnitude Scaling: VWMA and ATR breakout contributions are normalized by recent average momentum or ATR, giving finer gradation compared to simple ±1.
• Integrated Divergence Penalty: Divergence directly adjusts the aggregated score rather than appearing as a separate subplot; this influences alerts and trend labeling in real time.
• Confidence Meter: Shows the percentage of sub-signals in agreement, providing transparency and preventing blind trust in a single metric.
• Δ Score Histogram Momentum View: A histogram highlights acceleration or deceleration of the aggregated trend score, helping detect shifts early.
• Flexible Dashboard: Always-visible component statuses and summary metrics in one place; text size scaling keeps the full picture available in cramped layouts.
• Lookahead-Safe HTF Confirmation: Uses lookahead_off so no future data is accessed from higher timeframes, avoiding repaint bias.
• Repaint Transparency: Divergence detection uses pivot functions that inherently confirm only after lookback bars; description documents this lag so users understand how and when divergence labels appear.
• Open-Source & Educational: Full, well-commented Pine v6 code is provided; users can learn from its structure: manual ADX computation, conditional plotting with series = show ? value : na, efficient use of table.new in barstate.islast, and grouped inputs with tooltips.
• Compliance-Conscious: All plots have descriptive titles; inputs use clear names; no unnamed generic “Plot” entries; manual ADX uses RMA; all request.security calls use lookahead_off. Code comments mention repaint behavior and limitations.
________________________________________
## 5. Recommended Timeframes & Tuning
• Any Timeframe: The indicator works on small (e.g., 1m) to large (daily, weekly) timeframes. However:
o On very low timeframes (<1m or tick charts), noise may produce frequent whipsaws. Consider increasing smoothing lengths, disabling certain components (e.g., volume spike if volume data noisy), or using a larger pivot lookback for divergence.
o On higher timeframes (daily, weekly), consider longer lookbacks for ATR breakout or divergence, and set Higher-Timeframe trend appropriately (e.g., 4H HTF when on 5 Min chart).
• Defaults & Experimentation: Default input values are chosen to be balanced for many liquid markets. Users should test with replay or historical analysis on their symbol/timeframe and adjust:
o ADX threshold (e.g., 20–30) based on instrument volatility.
o VWMA and ATR scaling lengths to match average volatility cycles.
o Pivot lookback for divergence: shorter for faster markets, longer for slower ones.
• Combining with Other Analysis: Use in conjunction with price action, support/resistance, candlestick patterns, order flow, or other tools as desired. The aggregated score and alerts can guide attention but should not be the sole decision-factor.
________________________________________
## 6. How Scoring and Logic Works (Step-by-Step)
1. Compute Sub-Scores
o EMA Cross: Evaluate fast EMA > slow EMA ? +1 : fast EMA < slow EMA ? -1 : 0.
o VWMA Momentum: Calculate vwma = ta.vwma(close, length), then vwma_mom = vwma - vwma . Normalize: divide by recent average absolute momentum (e.g., ta.sma(abs(vwma_mom), lookback)), clip to .
o Volume Spike: Compute vol_SMA = ta.sma(volume, len). If volume > vol_SMA * multiplier AND price moved up ≥ threshold%, assign +1; if moved down ≥ threshold%, assign -1; else 0.
o ATR Breakout: Determine recent high/low over lookback. If close > high + ATR*mult, compute distance = close - (high + ATR*mult), normalize by ATR, cap at a configured maximum. Assign positive contribution. Similarly for bearish breakout below low.
o Higher-Timeframe Trend: Use request.security(..., lookahead=barmerge.lookahead_off) to fetch HTF EMAs; assign +1 or -1 based on alignment.
2. ADX Regime Weighting
o Compute manual ADX: directional movements (+DM, –DM), smoothed via RMA, DI+ and DI–, then DX and ADX via RMA. If ADX ≥ threshold, market is considered “Trending”; otherwise “Ranging.”
o If trending, trend-based contributions (EMA, VWMA, ATR, HTF) use full weight = 1.0. If ranging, use weight = ranging_weight (e.g., 0.5) to down-weight them. Volume spike stays binary ±1 (optional to change if desired).
3. Aggregate Raw Score
o Sum weighted contributions of all enabled components. Count the number of enabled components; if zero, default count = 1 to avoid division by zero.
4. Divergence Penalty
o Detect pivot highs/lows on price and corresponding RSI values, using a lookback. When price and RSI diverge (bearish or bullish divergence), check if current raw score is in the opposing direction:
If bearish divergence (price higher high, RSI lower high) and raw score currently positive, subtract a penalty (e.g., 0.5).
If bullish divergence (price lower low, RSI higher low) and raw score currently negative, add a penalty.
o This reduces score magnitude to reflect weakening momentum, without flipping the trend outright.
5. Normalize and Smooth
o Normalized score = (raw_score / number_of_enabled_components) * 100. This yields a roughly range.
o Optional EMA smoothing of this normalized score to reduce noise.
6. Interpretation
o Sign: >0 = net bullish bias; <0 = net bearish bias; near zero = neutral.
o Magnitude Zones: Compare |score| to thresholds (Weak, Medium, Strong) to label trend strength (e.g., “Weak Bullish Trend”, “Medium Bearish Trend”, “Strong Bullish Trend”).
o Δ Score Histogram: The histogram bars from zero show change from previous bar’s score; positive bars indicate acceleration, negative bars indicate deceleration.
o Confidence: Percentage of sub-indicators aligned with the score’s sign.
o Regime: Indicates whether trend-based signals are fully weighted or down-weighted.
________________________________________
## 7. Oscillator Plot & Visualization: How to Read It
Main Score Line & Area
The oscillator plots the aggregated score as a line, with colored fill: green above zero for bullish area, red below zero for bearish area. Horizontal reference lines at ±Weak, ±Medium, and ±Strong thresholds mark zones: crossing above +Weak suggests beginning of bullish bias, above +Medium for moderate strength, above +Strong for strong trend; similarly for bearish below negative thresholds.
Δ Score Histogram
If enabled, a histogram shows score - score . When positive, bars appear in green above zero, indicating accelerating bullish momentum; when negative, bars appear in red below zero, indicating decelerating or reversing momentum. The height of each bar reflects the magnitude of change in the aggregated score from the prior bar.
Divergence Highlight Fill
If enabled, when a pivot-based divergence is confirmed:
• Bullish Divergence : fill the area below zero down to –Weak threshold in green, signaling potential reversal from bearish to bullish.
• Bearish Divergence : fill the area above zero up to +Weak threshold in red, signaling potential reversal from bullish to bearish.
These fills appear with a lag equal to pivot lookback (the number of bars needed to confirm the pivot). They do not repaint after confirmation, but users must understand this lag.
Trend Direction Label
When score crosses above or below the Weak threshold, a small label appears near the score line reading “Bullish” or “Bearish.” If the score returns within ±Weak, the label “Neutral” appears. This helps quickly identify shifts at the moment they occur.
Dashboard Panel
In the indicator pane’s top-right, a table shows:
1. EMA Cross status: “Bull”, “Bear”, “Flat”, or “Disabled”
2. VWMA Momentum status: similarly
3. Volume Spike status: “Bull”, “Bear”, “No”, or “Disabled”
4. ATR Breakout status: “Bull”, “Bear”, “No”, or “Disabled”
5. Higher-Timeframe Trend status: “Bull”, “Bear”, “Flat”, or “Disabled”
6. Score: numeric value (rounded)
7. Confidence: e.g., “80%” (colored: green for high, amber for medium, red for low)
8. Regime: “Trending” or “Ranging” (colored accordingly)
9. Trend Strength: textual label based on magnitude (e.g., “Medium Bullish Trend”)
10. Gauge: a bar of blocks representing |score|/100
All rows remain visible at all times; changing Dashboard Size only scales text size (Normal, Small, Tiny).
________________________________________
## 8. Example Usage (Illustrative Scenario)
Example: BTCUSD 5 Min
1. Setup: Add “Trend Gauge ” to your BTCUSD 5 Min chart. Defaults: EMAs (8/21), VWMA 14 with lookback 3, volume spike settings, ATR breakout 14/5, HTF = 5m (or adjust to 4H if preferred), ADX threshold 25, ranging weight 0.5, divergence RSI length 14 pivot lookback 5, penalty 0.5, smoothing length 3, thresholds Weak=20, Medium=50, Strong=80. Dashboard Size = Small.
2. Trend Onset: At some point, price breaks above recent high by ATR multiple, volume spikes upward, faster EMA crosses above slower EMA, HTF EMA also bullish, and ADX (manual) ≥ threshold → aggregated score rises above +20 (Weak threshold) into +Medium zone. Dashboard shows “Bull” for EMA, VWMA, Vol Spike, ATR, HTF; Score ~+60–+70; Confidence ~100%; Regime “Trending”; Trend Strength “Medium Bullish Trend”; Gauge ~6–7 blocks. Δ Score histogram bars are green and rising, indicating accelerating bullish momentum. Trader notes the alignment.
3. Divergence Warning: Later, price makes a slightly higher high but RSI fails to confirm (lower RSI high). Pivot lookback completes; the indicator highlights a bearish divergence fill above zero and subtracts a small penalty from the score, causing score to stall or retrace slightly. Dashboard still bullish but score dips toward +Weak. This warns the trader to tighten stops or take partial profits.
4. Trend Weakens: Score eventually crosses below +Weak back into neutral; a “Neutral” label appears, and a “Neutral Trend” alert fires if enabled. Trader exits or avoids new long entries. If score subsequently crosses below –Weak, a “Bearish” label and alert occur.
5. Customization: If the trader finds VWMA noise too frequent on this instrument, they may disable VWMA or increase lookback. If ATR breakouts are too rare, adjust ATR length or multiplier. If ADX threshold seems off, tune threshold. All these adjustments are explained in Inputs section.
6. Visualization: The screenshot shows the main score oscillator with colored areas, reference lines at ±20/50/80, Δ Score histogram bars below/above zero, divergence fill highlighting potential reversal, and the dashboard table in the top-right.
________________________________________
## 9. Inputs Explanation
A concise yet clear summary of inputs helps users understand and adjust:
1. General Settings
• Theme (Dark/Light): Choose background-appropriate colors for the indicator pane.
• Dashboard Size (Normal/Small/Tiny): Scales text size only; all dashboard elements remain visible.
2. Indicator Settings
• Enable EMA Cross: Toggle on/off basic EMA alignment check.
o Fast EMA Length and Slow EMA Length: Periods for EMAs.
• Enable VWMA Momentum: Toggle VWMA momentum check.
o VWMA Length: Period for VWMA.
o VWMA Momentum Lookback: Bars to compare VWMA to measure momentum.
• Enable Volume Spike: Toggle volume spike detection.
o Volume SMA Length: Period to compute average volume.
o Volume Spike Multiplier: How many times above average volume qualifies as spike.
o Min Price Move (%): Minimum percent change in price during spike to qualify as bullish or bearish.
• Enable ATR Breakout: Toggle ATR breakout detection.
o ATR Length: Period for ATR.
o Breakout Lookback: Bars to look back for recent highs/lows.
o ATR Multiplier: Multiplier for breakout threshold.
• Enable Higher Timeframe Trend: Toggle HTF EMA alignment.
o Higher Timeframe: E.g., “5” for 5-minute when on 1-minute chart, or “60” for 5 Min when on 15m, etc. Uses lookahead_off.
• Enable ADX Regime Filter: Toggles regime-based weighting.
o ADX Length: Period for manual ADX calculation.
o ADX Threshold: Value above which market considered trending.
o Ranging Weight Multiplier: Weight applied to trend components when ADX < threshold (e.g., 0.5).
• Scale VWMA Momentum: Toggle normalization of VWMA momentum magnitude.
o VWMA Mom Scale Lookback: Period for average absolute VWMA momentum.
• Scale ATR Breakout Strength: Toggle normalization of breakout distance by ATR.
o ATR Scale Cap: Maximum multiple of ATR used for breakout strength.
• Enable Price-RSI Divergence: Toggle divergence detection.
o RSI Length for Divergence: Period for RSI.
o Pivot Lookback for Divergence: Bars on each side to identify pivot high/low.
o Divergence Penalty: Amount to subtract/add to score when divergence detected (e.g., 0.5).
3. Score Settings
• Smooth Score: Toggle EMA smoothing of normalized score.
• Score Smoothing Length: Period for smoothing EMA.
• Weak Threshold: Absolute score value under which trend is considered weak or neutral.
• Medium Threshold: Score above Weak but below Medium is moderate.
• Strong Threshold: Score above this indicates strong trend.
4. Visualization Settings
• Show Δ Score Histogram: Toggle display of the bar-to-bar change in score as a histogram. Default true.
• Show Divergence Fill: Toggle background fill highlighting confirmed divergences. Default true.
Each input has a tooltip in the code.
________________________________________
## 10. Limitations, Repaint Notes, and Disclaimers
10.1. Repaint & Lag Considerations
• Pivot-Based Divergence Lag: The divergence detection uses ta.pivothigh / ta.pivotlow with a specified lookback. By design, a pivot is only confirmed after the lookback number of bars. As a result:
o Divergence labels or fills appear with a delay equal to the pivot lookback.
o Once the pivot is confirmed and the divergence is detected, the fill/label does not repaint thereafter, but you must understand and accept this lag.
o Users should not treat divergence highlights as predictive signals without additional confirmation, because they appear after the pivot has fully formed.
• Higher-Timeframe EMA Alignment: Uses request.security(..., lookahead=barmerge.lookahead_off), so no future data from the higher timeframe is used. This avoids lookahead bias and ensures signals are based only on completed higher-timeframe bars.
• No Future Data: All calculations are designed to avoid using future information. For example, manual ADX uses RMA on past data; security calls use lookahead_off.
10.2. Market & Noise Considerations
• In very choppy or low-liquidity markets, some components (e.g., volume spikes or VWMA momentum) may be noisy. Users can disable or adjust those components’ parameters.
• On extremely low timeframes, noise may dominate; consider smoothing lengths or disabling certain features.
• On very high timeframes, pivots and breakouts occur less frequently; adjust lookbacks accordingly to avoid sparse signals.
10.3. Not a Standalone Trading System
• This is an indicator, not a complete trading strategy. It provides signals and context but does not manage entries, exits, position sizing, or risk management.
• Users must combine it with their own analysis, money management, and confirmations (e.g., price patterns, support/resistance, fundamental context).
• No guarantees: past behavior does not guarantee future performance.
10.4. Disclaimers
• Educational Purposes Only: The script is provided as-is for educational and informational purposes. It does not constitute financial, investment, or trading advice.
• Use at Your Own Risk: Trading involves risk of loss. Users should thoroughly test and use proper risk management.
• No Guarantees: The author is not responsible for trading outcomes based on this indicator.
• License: Published under Mozilla Public License 2.0; code is open for viewing and modification under MPL terms.
________________________________________
## 11. Alerts
• The indicator defines three alert conditions:
1. Bullish Trend: when the aggregated score crosses above the Weak threshold.
2. Bearish Trend: when the score crosses below the negative Weak threshold.
3. Neutral Trend: when the score returns within ±Weak after being outside.
Good luck
– BullByte
Support & Resistance External/Internal & BoS [sgbpulse]Market Structure Support & Resistance External/Internal & BoS
Overview: Smart & Fast Market Structure Analysis
The Market Structure "Support & Resistance External/Internal & BoS " indicator is designed to empower your technical analysis by automatically and precisely identifying significant support and resistance levels. It achieves this by pinpointing high and low Pivot Points, plus key Pre-Market High/Low levels.
Its unique strength lies in its dynamic adaptability to any timeframe and any asset you choose. This tool analyzes the relevant market structure for the current timeframe and asset, providing you with accurate and relevant levels in real-time. The indicator maintains a clean chart and swiftly displays all support, resistance, and Pre-Market levels for any asset, saving valuable analysis time and enabling you to get a clear and quick snapshot of the market.
How the Indicator Works
The indicator identifies and displays three critical types of key levels:
External Pivots: These are more significant pivot points, indicating important reversal points across a broader range of price movement, considering the current timeframe. The indicator draws dark green support lines (for low pivots) and dark red resistance lines (for high pivots) from these points.
Internal Pivots: These are shorter-term pivot points, signifying smaller corrections or reversals within the overall structure of the current timeframe. These lines provide additional areas of interest within the ranges of the External Pivots.
Pre-Market High/Low Levels: The indicator displays the High and Low reached during pre-market hours as distinct lines on the chart. Please note: These levels will only appear when the selected timeframe is lower than one day (e.g., 1-hour, 15-minute) and provided that the "Session extended trading hours" option is enabled in your TradingView chart settings. These levels are crucial for identifying potential opening ranges and critical support/resistance areas upon regular market open, especially for intraday trading.
Break of Structure (BoS) Identification
A key feature of this indicator is its ability to identify Break of Structure (BoS). When a support or resistance line is breached, the indicator changes the line's color to gray and displays a "Break of Structure" label, indicating a potential trend change or continuation:
External BoS: When an external support/resistance line is broken, a "BoS" label in red will appear. This is a strong signal for a potential shift in the primary market structure or a strong trend continuation.
Internal BoS: When an internal support/resistance line is broken, an "iBoS" label in green will appear. This indicates a break within the existing market structure, which can be used to confirm direction or identify shorter-term entry/exit opportunities.
Full Indicator Customization
The indicator provides maximum flexibility to suit any trading style and timeframe:
Number of Lines Displayed: You can choose how many support and resistance lines you want to see on your chart. The default is 15 lines, but you can increase or decrease this number according to your needs and desired level of detail.
External Pivot Settings: Define the number of bars before and after a pivot point required for External Pivot identification.
Internal Pivot Settings: Define the number of bars before and after a pivot point required for Internal Pivot identification.
Color Customization: Full control over colors! You can change the colors of the support and resistance lines, the colors of the Pre-Market levels, and also the colors of the BoS and iBoS labels to create a visual appearance that perfectly matches your personal preferences.
This flexibility allows you to adapt the indicator to your trading style and any timeframe you operate in, without needing to manually change settings each time.
Recommended Uses
Clean Chart & Quick Analysis: The indicator displays important levels clearly, enabling quick identification of areas of interest without visual clutter on the chart. This significantly saves analysis time and allows you to make faster decisions.
Critical Levels for Any Timeframe & Asset: Get precise and adaptive support and resistance, plus essential Pre-Market levels (in relevant timeframes), for any timeframe and on any asset you choose.
Trend Direction Identification: Clear support and resistance lines help understand market structure.
Breakout Confirmation: The BoS label provides visual confirmation of key level breaches, helping to confirm potential trend changes.
Locating Entry & Exit Points: Use these levels as potential areas of interest for trades, after confirming a breakout or reversal.
Finding Stop-Loss & Take-Profit Points: Strategically place protective stops and profit targets around these support and resistance levels.
Important Note
Like any technical indicator, Market Structure "Support & Resistance External/Internal & BoS " is a supplementary tool. It's highly recommended to use it in conjunction with additional analysis methods (such as price action analysis, other indicators, and fundamental analysis) for informed trading decisions. Financial markets are dynamic, and trading always carries inherent risk.
Math by Thomas - SMC Structure ToolkitMath by Thomas – SMC Structure Toolkit is a purely visual educational tool based on Smart Money Concepts.
✅ Order Blocks: Marked using confirmed fractal swing highs/lows, optional displacement candle, and high volume filter.
✅ Fair Value Gaps (FVGs): Detected using a 3-bar gap logic, based on price imbalance.
✅ Fractals: Configurable between 3 or 5-bar logic to detect swing highs/lows.
✅ BoS / CHoCH: Labels are drawn comparing previous swing structures.
✅ Premium / Discount Zones: Based on the midpoint of the last confirmed swing high/low.
❌ This script does not generate alerts, signals, or entries.
✅ Meant only for educational visual analysis, not for auto trading or financial advice.
1x RVOL Bull/Bear Painter REVERSAL CATCHThis powerful Indicator Paints the candle if there is a Relative Volume of 1.5 or higher.
Notice that if you mark the high of the last Bullish RVOL candle (blue candle) a power reversal begins at that same price.
This does the same thing for the Bearish RVOL Candle. If you mark the low of that candle (purple), a reversal begins at that price.
This can be used on any time frame, but using it on higher time frames catches you HUGE SWINGS
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.
Auto Trend ChannelAuto Trend Channel
This indicator automatically draws a dynamic trend channel based on the 2 most recent swing highs and 2 most recent swing lows. It supports multi-timeframe (MTF) analysis and intelligently refreshes the channel when new pivot points are formed.
It’s designed to help traders visualize dynamic price channels in real time, making it useful for trend-following, breakout detection, and support/resistance analysis.
🛠️ Features:
🔍 Auto-detects pivot highs and lows using customizable sensitivity
📅 Works on any timeframe, with optional higher-timeframe input
➡️ Extends trendlines forward into the future by a defined number of bars
🔁 Automatically replaces old channels with new ones as new pivots form
🌈 Optional channel fill between upper and lower trendlines for better visualization
💡 Usage Tips:
Use higher sensitivity (e.g., 15–30) on higher timeframes like Daily or Weekly
Use lower sensitivity (e.g., 5–10) for intraday trading on 15m–1h charts
Combine with volume or price action for entry confirmation at channel boundaries
AlphaTradeAlphaTrade - Smart Trend & Volume Signal Indicator
AlphaTrade is a powerful combination of Zero Lag Trend and Volumatic VIDYA to help traders make smarter entries and exits.
This script provides:
Accurate Buy/Sell Labels: Based on Zero Lag Trend crossover logic with adaptive volatility bands.
Volume-Based Zones: Highlights key liquidity areas with real-time volume annotations.
VIDYA Trend Shading: Adaptive VIDYA-based cloud colored by volume momentum and trend direction.
Multi-Timeframe Table: Displays the trend status on 5, 15, 60, 240 minutes and 1D timeframes.
Delta Volume Label: Live buy/sell volume comparison and percentage delta.
Auto Liquidity Lines: Automatically draws recent high/low levels with volume at that level.
Alerts Ready: Receive "ALIM" (Buy) and "SATIM" (Sell) alerts instantly.
Ideal for traders who want trend precision, volume confirmation, and visual clarity — all in one tool.
For best results, apply on high-liquidity assets and adjust ZLEMA/VIDYA settings to your strategy.
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.
Timeframe LoopThe Timeframe Loop publication aims to visualize intrabar price progression in a new, different way.
🔶 CONCEPTS and USAGE
I got inspiration from the Pressure/Volume loop, which is used in Mechanical Ventilation with Critical Care patients to visualize pressure/volume evolution during inhalation/exhalation.
The main idea is that intrabar prices are visualized by a loop, going to the right during the first half and returning to the left towards its closing point. Here, the main chart timeframe (CTF) is 4 hours, and we see the movements of eight 30-minute lower timeframe (LTF) periods, highlighted by four yellow dots/lines (first 2 hours -> "Right") and four blue dots/lines (last 2 hours <- "Left"):
🔹 BTF
If "Show Lowest TF" is enabled, the LTF is split into another lower TF (BTF - "Base TF"); in this case, the 30-minute LTF is split into 10 parts of 3 minutes (BTF):
Enabling "Loop Lowest TF" will enable the BTF to react similarly to the largest loop; from halfway, it will return to its startpoint:
Here is a more detailed example:
🔹 Mini-Candles
The included option "Mini-Candles" will bring even more detail, showing the LTF as Japanese candlesticks with user-defined colors and adjustable body width; in this example, the mini-candles associated with the first half (yellow lines/dots) are green/red, while blue/fuchsia in the second half (blue lines/dots):
CTF 10 minutes, LTF 1 minute, BTF 5 seconds
One can see the detailed intrabar price progression in one glance.
CTF 5 minutes, LTF 1 minute, BTF 5 seconds
If the LTF/BTF ratio, divided by two, results in a non-integer number, the right side will be a vertical line instead of just a turning point. In that case, the smaller, most right blue loop will be situated at the right of that line.
10 minutes / 1 minute = 10 -> 10 / 2 = 5 parts
5 minutes / 1 minute = 5 -> 5 / 2 = 2.5 parts
🔶 SETTINGS
🔹 Timeframes
Lower Timeframe 1
Lower Timeframe 2
No need to worry about the order of both timeframes; BTF will be the lowest TF of the 2, LTF the highest; both have to be lower than the main chart TF (CTF); otherwise, it will result in the error: "`Lower Timeframes` should be lower than current chart timeframe".
The ratio LTF / BTF should be equal or higher than 2; otherwise, this error will show: "`Lower Timeframe` should minimally be twice the `Base (smallest) Timeframe`"
Lastly, the ratio CTF / BTF should be lower than 500; otherwise, this error will pop up: "`Current Chart timeframe` / `Lower Timeframe` should be less than 500."
I have tried to capture runtime errors as best I could. If one should be triggered (red exclamation mark next to the title), it is best to increase the lowest TF.
🔹 Options
Show Lowest TF: Show BTF progression.
Loop Lowest TF: Enabling will let the BTF line return halfway.
Show Mini-Candles
Show Steps
"Show Steps" can be useful to see how the script works, where the location of the current price is compared against the position of the left (L) and right (R) labels:
🔹 Style
Supply/Demand Zones (Synthetic SMA Candles)Supply/Demand Zones (Synthetic SMA Candles)
Created by The_Forex_Steward
This indicator highlights institutional-style supply and demand zones using synthetic SMA-based candles rather than raw price data. It provides a smoother, more refined view of price action to help identify key imbalance areas where price is likely to react.
Features:
- Uses SMA-smoothed synthetic candles to detect bullish and bearish engulfing structures
- Draws demand zones after bullish breakouts and supply zones after bearish breakouts
- Zones are persistent for a customizable number of bars
- Mitigated zones can optionally be removed from the chart
- Includes alerts for breakout and mitigation events
- Optional plotting of synthetic candles over price for visual clarity
How It Works:
When a synthetic candle closes above the high of a previous bearish candle, a bullish engulfing is detected, and a demand zone is created from that bearish candle’s high and low. Conversely, when price closes below the low of a previous bullish candle, a supply zone is formed. These zones stay on the chart for the user-defined duration or until they are mitigated by price, at which point they can be removed automatically.
How to Use:
- Adjust the SMA Length to control how smooth the synthetic candles appear
- Enable or disable Show Supply Zones and Show Demand Zones as needed
- Set the Zone Duration to control how long each zone persists
- Use Delete Mitigated Zones to automatically remove zones when price returns to them
- Optionally enable Show Synthetic SMA Candles to see the candle logic used in detection
- Use the built-in alerts to stay notified of new zone creation or mitigation
Note: This tool is most effective when combined with structure or trend-based strategies for confirmation.
Bias Bar Coloring + Multi-Timeframe Bias Table + AlertsMulti-Timeframe Bias Bar Coloring with Alerts & Table
This indicator provides a powerful, visual way to assess price action bias across multiple timeframes—Monthly, Weekly, and Daily—while also coloring each bar based on the current chart’s bias.
Features:
Persistent Bar Coloring: Bars are colored green for bullish bias (close above previous high), red for bearish bias (close below previous low), and persist the last color if neither condition is met. This makes trend shifts and momentum easy to spot at a glance.
Bias Change Alerts: Get notified instantly when the bias flips from bullish to bearish or vice versa, helping you stay on top of potential trade setups or risk management decisions.
Multi-Timeframe Bias Table: A table anchored in the top right corner displays the current bias for the Monthly, Weekly, and Daily charts, color-coded for quick reference. This gives you a clear view of higher timeframe context while trading any chart.
Consistent Logic: The same objective bias logic is used for all timeframes, ensuring clarity and reliability in your analysis.
How to Use:
Use the bar colors for instant visual feedback on trend and momentum shifts.
Watch the top-right table to align your trades with higher timeframe bias, improving your edge and filtering out lower-probability setups.
Set alerts to be notified of bias changes, so you never miss a potential opportunity.
This tool is ideal for traders who value multi-timeframe analysis, want clear visual cues for trend direction, and appreciate having actionable alerts and context at their fingertips.
Triple MA RS ConfluenceThis script evaluates relative strength confluence by comparing the ratio of an asset to a benchmark (e.g., Asset/SPY) against three configurable moving averages (MA #1, MA #2, MA #3).
Each bar is color-coded based on RS position relative to the MAs:
Lime Green — RS > all three MAs (full confluence)
Yellow — RS > MA #2 and MA #3, but ≤ MA #1 (partial confluence)
Red — RS ≤ MA #2 (no confluence)
Designed for systematic trend identification, this tool helps visually confirm RS alignment across short-, medium-, and long-term conditions. Inputs include adjustable MA lengths and types (EMA/SMA), benchmark symbol, and visual toggles for confluence state changes.
Pairs well with multi-timeframe RS strategies or clustered MA compression filters.
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.
CANX Rules© CanxStix
A simple table that can be customized to have your trading rules/plan on screen at all times.
This should help you stick to your trading plan and have no excuse for not following your own set of rules.
Like always, Keep it simple!
© CanxStix
📈 Pro BUY/SELL Optimized v1.1 (SMC + Divergence + Trend Slope)đây là cách mới tôi thử nghiệm hãy thử cùng trải nghiệm với tối nhé, rsi, macd, ema, smc
NA GPT - TTM Squeeze Strategy**NA GPT - TTM Squeeze Strategy**” transforms the well-known TTM Squeeze indicator into a back-testable, long-only strategy.
It combines **volatility compression** (Bollinger Bands inside Keltner Channels) with **momentum confirmation** to catch powerful bullish breakouts and then trails positions with a simple 21-period moving-average stop.
---
## 1. Core Concepts & Calculations
| Component | What it measures | How it works |
| ---------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Squeeze State** | Volatility contraction vs. expansion | • Calculate a 20-period Bollinger Band (BB). • Calculate a 20-period Keltner Channel (KC). • **Squeeze ON** when the entire BB is *inside* the KC (narrow volatility). |
| **Momentum Histogram** | Direction & strength of pressure building inside the squeeze | • Compute the midpoint of the recent high/low range and the 20-period SMA of close. • Take the price’s deviation from that blended average. • Fit a **20-period linear regression** to that deviation to produce the histogram. • Color logic: ↗ increasing green/lime for strengthening bulls, ↘ red/maroon for bears. |
| **Blue-Dot Theme** | Visual cue of squeeze state | • **Navy-blue dot** = Squeeze ON (ready to pop). • **Steel-blue dot** = Squeeze just released. • **Sky-blue dot** = Neutral (no squeeze). |
---
## 2. Trade Logic
| Step | Condition | Rationale |
| ---------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **Entry (Long)** | Three consecutive navy-blue dots (i.e., **3 bars with Squeeze ON in a row**) *inside the user-defined date window*. | Requires sustained volatility compression before committing capital, filtering out one-bar “fake” squeezes. |
| **Exit (Flat)** | Close price **crosses below** the 21-period Simple Moving Average. | A classic trailing stop that lets profits run while cutting momentum failures. |
| **Positioning** | Long-only, one trade at a time. No short sales. | Focuses on bullish breakouts, keeps strategy simple and margin-friendly. |
---
## 3. Inputs & Customisation
| Input | Default | Purpose |
| -------------------------- | ------------------------ | ---------------------------------------------- |
| **BB Length / Multiplier** | 20 / 2.0 | Adjust sensitivity of Bollinger Bands. |
| **KC Length / Multiplier** | 20 / 1.5 | Adjust Keltner Channel width. |
| **Use True Range (KC)** | ✔ | Pick *True Range* vs. *High-Low* for KC width. |
| **Trade Window** | 1 Jan 2022 → 31 Dec 2069 | Back-test only the period you care about. |
| **Commission** | 0.01 % | Embedded in `strategy()` header. |
| **Slippage (Ticks)** | 3 | Models real-world order fill uncertainty. |
---
## 4. Visual Outputs
* **Momentum Histogram** (green / lime / red / maroon).
* **Zero Line** colored by squeeze state (blue / dark navy / grey).
* **Blue-Dot Row** at the chart bottom showing squeeze timing.
The visuals are **identical** to the original indicator, letting you correlate back-test trades with familiar chart cues.
---
## 5. How to Use
1. **Add to chart**, choose your symbol & timeframe (works on anything from 1-minute to weekly).
2. **Tune the BB/KC/ATR settings** to match instrument volatility.
3. **Adjust the date window** for focused walk-forward testing.
4. Run the “**Strategy Tester**” to inspect historical performance, P\&L; curves, drawdowns, and trade list.
5. Use the plotted dots & histogram to visually validate why each trade fired.
6. Combine with your own risk-management (position sizing, portfolio filters, etc.) before going live.
---
## 6. Practical Notes
* Designed for educational/back-testing purposes—**not financial advice**.
* Long-only by design; add your own short logic if desired.
* Because exits rely on the 21-SMA, extremely low-volume instruments or illiquid intraday timeframes may experience wider drawdowns.
* Commission/slippage values are easily editable in the first line of the script.
Percent Change of Range Candles - FullPercent Change of Range Candles – Full (PCR Full)
Description:
PCR Full is a custom momentum indicator that measures the percentage price change relative to a defined range, offering traders a unique way to evaluate strength, direction, and potential reversals in price movement.
How it works:
The main value (PCR) is calculated by comparing the price change over a selected number of candles (length) to the range between the highest high and lowest low in the same period.
This percentage change is normalized and visualized with dynamic candles on the subgraph.
Reference levels at +100, +50, 0, -50, and -100 serve as key zones to indicate potential overbought/oversold conditions, continuation, or neutrality.
How to read the indicator:
1. Trend continuation:
When PCR breaks above +50 and holds, it often confirms a strong bullish move.
Similarly, values below -50 and staying low signal a bearish continuation.
2. Wick behavior (volatility insight):
Long wicks on PCR candles suggest uncertainty or failed breakout attempts.
Short or no wicks with strong body color show stable momentum and conviction.
On the chart, multiple long wicks near -50 suggest bulls are attempting to push price upward, but lack the strength — until a confirmed breakout.
3. Polarity transition (Bearish to Bullish or vice versa):
A transition from negative PCR values to above zero shows that the market is possibly turning.
Especially if PCR climbs gradually and stabilizes above zero, it indicates a developing bullish phase.
Components:
Main PCR line: Color-coded (green for rising, red for falling).
Open Average (gray line): Smooths recent PCR values, indicating balance.
High/Low adaptive bands: Adjust dynamically to PCR polarity.
PCR Candles: Visualize OHLC of PCR data for enhanced interpretation.
Suggested use cases:
Enter trend trades when PCR crosses +50 or -50 with volume or price confirmation.
Watch for reversal signs near ±100 if PCR fails to break further.
Use 0 line as a neutral zone — markets hovering near 0 are often in consolidation.
Combine with price action or oscillators like RSI/MACD for additional signals.
Customization:
The length input allows users to define the range for PCR calculations, making it adjustable to various timeframes and strategies (scalping, intraday, swing).
MM + MACD [RSI Filter]MM + MACD Trend Follower with RSI Filter
Pedro Canto - Portfolio Manager | CGA/CGE
OVERVIEW
The MM + MACD Trend Follower with RSI Filter is a multi-layered trend-following indicator designed to help traders identify high-probability trend continuation setups while avoiding low-quality entries caused by overbought or oversold market conditions.
This tool combines the power of Moving Averages (MA), the MACD Histogram, and a visual RSI-based filter to validate both trend direction and timing for entries. Its goal is simple: filter out noise and highlight only the most technically relevant buy and sell signals based on objective momentum and trend criteria.
USE CASES
- Identifying trend continuation setups
- Filtering false signals during consolidation phases
- Avoiding trades in overbought or oversold zones
- Enhancing entry timing for both swing and intraday strategies
- Providing visual confirmation of trend strength and momentum alignment
KEY FEATURES
1. Dual Moving Average Setup
The indicator allows full customization of two moving averages (MA1 and MA2), supporting both EMA and SMA types. The slope of the longer MA (MA2) acts as an essential trend filter, ensuring signals are only generated when the market shows clear directional bias.
2. MACD Histogram Trend Confirmation
A classic MACD Histogram calculation is used to validate the momentum of the prevailing trend.
- Bullish Trend: Histogram > 0
- Bearish Trend: Histogram < 0
This step filters out counter-trend signals and ensures trades are aligned with momentum.
3. Intrabar Price Trigger
Unlike standard crossover systems, this indicator waits for intrabar price action to trigger entries:
- Buy Signal: Price crosses below one of the MAs during an uptrend (dip-buy logic)
- Sell Signal: Price crosses above one of the MAs during a downtrend (rally-sell logic)
This intrabar trigger improves entry timing and helps capture retracement-based opportunities.
4. RSI Visual Filter
A short-term RSI is plotted and color-coded to visually highlight overbought and oversold conditions, acting as a discretionary filter for users to avoid low-probability trades during exhaustion points.
5. Dynamic Coloring System
Bar Colors:
- Blue: Bullish trend
- Red: Bearish trend
- Orange: RSI Overbought/Oversold zones
MA Colors:
- Blue for bullish conditions
- Red for bearish conditions
- Gray for neutral/no-trend phases
6. Signal Markers and Alerts
Clear visual buy and sell markers are plotted directly on the chart.
Additionally, the indicator includes real-time alerts for both Buy and Sell signals, helping traders stay informed even when away from the screen.
INPUTS AND CUSTOMIZATION OPTIONS
- Moving Average Types: EMA or SMA for both MA1 and MA2.
- MACD Settings: Customizable fast, slow, and signal periods.
- RSI Settings: Source, length, and overbought/oversold levels fully adjustable.
- Color Customization: Adjust RSI zone colors to suit your chart theme.
---
DISCLAIMER
This indicator is a technical analysis tool designed for educational and informational purposes only. It should not be used as a standalone trading system. Always combine it with sound risk management, price action analysis, and, where applicable, fundamental context.
Past performance does not guarantee future results.
Multiple timeframe SMAThe goal of this script is to give a quick overview of the SMA line in multiple timeframes.
Default SMA length is 200 but can be changed.
The 6 timeframes can also be adapted.
The result is shown in the bottom left corner as a table with red (bearish SMA) or green (bullish SMA) cells for each timeframe.
The SMA of the current timeframe is also plotted for your convenience.