Anchored VWAP Polyline [CHE] Anchored VWAP Polyline — Anchored VWAP drawn as a polyline from a user-defined bar count with last-bar updates and optional labels
Summary
This indicator renders an anchored Volume-Weighted Average Price as a continuous polyline starting from a user-selected anchor point a specified number of bars back. It accumulates price multiplied by volume only from the anchor forward and resets cleanly when the anchor moves. Drawing is object-based (polyline and labels) and updated on the most recent bar only, which reduces flicker and avoids excessive redraws. Optional labels mark the anchor and, conditionally, a delta label when the current close is below the historical close at the anchor offset.
Motivation: Why this design?
Anchored VWAP is often used to track fair value after a specific event such as a swing, breakout, or session start. Traditional plot-based lines can repaint during live updates or incur overhead when frequently redrawn. This implementation focuses on explicit state management, last-bar rendering, and object recycling so the line stays stable while remaining responsive when the anchor changes. The design emphasizes deterministic updates and simple session gating from the anchor.
What’s different vs. standard approaches?
Baseline: Classic VWAP lines plotted from session open or full history.
Architecture differences:
Anchor defined by a fixed bar offset rather than session or day boundaries.
Object-centric drawing via `polyline` with an array of `chart.point` objects.
Last-bar update pattern with deletion and replacement of the polyline to apply all points cleanly.
Conditional labels: an anchor marker and an optional delta label only when the current close is below the historical close at the offset.
Practical effect: You get a visually continuous anchored VWAP that resets when the anchor shifts and remains clean on chart refreshes. The labels act as lightweight diagnostics without clutter.
How it works (technical)
The anchor index is computed as the latest bar index minus the user-defined bar count.
A session flag turns true from the anchor forward; prior bars are excluded.
Two persistent accumulators track the running sum of price multiplied by volume and the running sum of volume; they reset when the session flag turns from false to true.
The anchored VWAP is the running sum divided by the running volume whenever both are valid and the volume is not zero.
Points are appended to an array only when the anchored VWAP is valid. On the most recent bar, any existing polyline is deleted and replaced with a new one built from the point array.
Labels are refreshed on the most recent bar:
A yellow warning label appears when there are not enough bars to compute the reference values.
The anchor label marks the anchor bar.
The delta label appears only when the current close is below the close at the anchor offset; otherwise it is suppressed.
No higher-timeframe requests are used; repaint is limited to normal live-bar behavior.
Parameter Guide
Bars back — Sets the anchor offset in bars; default two hundred thirty-three; minimum one. Larger values extend the anchored period and increase stability but respond more slowly to regime changes.
Labels — Toggles all labels; default enabled. Disable to keep the chart clean when using multiple instances.
Reading & Interpretation
The polyline represents the anchored VWAP from the chosen anchor to the current bar. Price above the line suggests strength relative to the anchored baseline; price below suggests weakness.
The anchor label shows where the accumulation starts.
The delta label appears only when today’s close is below the historical close at the offset; it provides a quick context for negative drift relative to that reference.
A yellow message at the current bar indicates the chart does not have enough history to compute the reference comparison yet.
Practical Workflows & Combinations
Trend following: Anchor after a breakout bar or a swing confirmation. Use the anchored VWAP as dynamic support or resistance; look for clean retests and holds for continuation.
Mean reversion: Anchor at a local extreme and watch for approaches back toward the line; require structure confirmation to avoid early entries.
Session or event studies: Re-set the anchor around earnings, macro releases, or session opens by adjusting the bar offset.
Combinations: Pair with structure tools such as swing highs and lows, or with volatility measures to filter chop. The labels can be disabled when combining multiple instances to maintain chart clarity.
Behavior, Constraints & Performance
Repaint and confirmation: The line is updated on the most recent bar only; historical values do not rely on future bars. Normal live-bar movement applies until the bar closes.
No higher timeframe: There is no `security` call; repaint paths related to higher-timeframe lookahead do not apply here.
Resources: Uses one polyline object that is rebuilt on the most recent bar, plus two labels when conditions are met. `max_bars_back` is two thousand. Arrays store points from the anchor forward; extremely long anchors or very long charts increase memory usage.
Known limits: With very thin volume, the VWAP can be unavailable for some bars. Very large anchors reduce responsiveness. Labels use ATR for vertical placement; extreme gaps can place them close to extremes.
Sensible Defaults & Quick Tuning
Starting point: Bars back two hundred thirty-three with Labels enabled works well on many assets and timeframes.
Too noisy around the line: Increase Bars back to extend the accumulation window.
Too sluggish after regime changes: Decrease Bars back to focus on a shorter anchored period.
Chart clutter with multiple instances: Disable Labels while keeping the polyline visible.
What this indicator is—and isn’t
This is a visualization of an anchored VWAP with optional diagnostics. It is not a full trading system and does not include entries, exits, or position management. Use it alongside clear market structure, risk controls, and a plan for trade management. It does not predict future prices.
Inputs with defaults
Bars back: two hundred thirty-three bars, minimum one.
Labels: enabled or disabled toggle, default enabled.
Pine version: v6
Overlay: true
Primary outputs: one polyline, optional labels (anchor, conditional delta, and a warning when insufficient bars).
Metrics and functions: volume, ATR for label offset, object drawing via polyline and chart points, last-bar update pattern.
Special techniques: session gating from the anchor, persistent state, object recycling, explicit guards against unavailable values and zero volume.
Compatibility and assets: Designed for standard candlestick or bar charts across liquid assets and common timeframes.
Diagnostics: Yellow warning label when history is insufficient.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Indikatoren und Strategien
Cluster Search This indicator highlights areas of unusually high trading volume compared to the recent average, helping to identify moments when strong activity enters the market.
Bitcoin Gold Fair Value Model | FREEBitcoin Gold Fair Value Model | FREE
This script presents a quantitative model that explores the historical relationship between Bitcoin (BTCUSD) and Gold (TVC:GOLD).
It estimates Bitcoin’s fair value projection based on the price of gold, using a rolling regression model calculated over a user-defined lookback period (default: 1000 days).
📘 How It Works
The model fits a simple linear regression of Bitcoin’s daily close price versus Gold’s daily close price.
From this relationship, it computes a projected Bitcoin price based on today’s gold value, plotted forward by a chosen number of days (default: 65).
Confidence ranges (±1 standard deviation and 95% interval) help visualize the uncertainty around the projection.
A statistical panel displays the projected price, range estimates, and R² value, indicating the strength of correlation between the two assets.
⚙️ Features
Rolling regression using historical BTC and Gold data.
Forward fair-value projection line (customizable projection period).
1σ (standard deviation) and 95% confidence bands.
On-chart statistical summary with current model values.
Real-time updates when new daily data becomes available.
📊 How to Use
Recommended for use on the daily timeframe with the INDEX:BTCUSD symbol.
The model provides a statistical estimate of Bitcoin’s price relative to gold trends, not a trading signal.
The R² value can be used to assess the current strength of correlation - higher R² suggests a more stable relationship, while lower values indicate weaker or changing dynamics.
⚠️ Important Notes
This indicator is intended for educational and analytical purposes only.
It does not predict prices or provide financial advice.
Relationships between assets can and do change over time.
Always perform your own research and use additional tools for confirmation.
[Fune]-Trend Technology🌊 - Trend Technology
“Flow with the trend — read every wave.”
🎯 Concept
Micro EMA (White) – Short-term pulse
Mid EMA (Aqua) – Medium-term direction
Macro EMA (Orange) – Long-term flow
Mid- to long-term references:
100 EMA = Yellow (trend balance)
300 EMA = Blue (structural anchor)
In addition, the PLR (Periodic Linear Regression) reveals the cyclical rhythm of the market trend — a recurring regression curve that reflects the underlying heartbeat of price movement.
📊 Trend Logic Summary
Condition Color Meaning Action
Mid > Macro 🟢 Green background Bullish trend Look for long opportunities
Mid < Macro 🔴 Red background Bearish trend Look for short opportunities
PLR slope > 0 📈 Upward bias Confirms bullish momentum
PLR slope < 0 📉 Downward bias Confirms bearish momentum
Micro EMA (White) dominant ⚪ White background Neutral / Resting phase Stand aside and wait
🧭 Trading Guidance
🟢 Long Setup: Green background + PLR slope upward + price above 100/300 EMA
🔴 Short Setup: Red background + PLR slope downward + price below 100/300 EMA
⚪ No Trade: White background, EMAs converging, or PLR slope flattening
⚓ Philosophy of
“ (The Boat) is a vessel sailing across the ocean of the market.
The EMAs are its sails, the PLR its compass.
The trader holds the helm, while the divine wind guides the waves.
Only those who move with the current — not against it —
will one day reach the state of ‘mindless clarity.’”
SFC Bollinger Band and Bandit StrategySFC Bollinger Band and Bandit Strategy
概述 (Overview)
SFC 布林通道與海盜策略 (SFC Bollinger Band and Bandit Strategy) 是一個基於 Pine Script™ v6 的技術分析指標,結合布林通道 (Bollinger Bands)、移動平均線 (Moving Averages) 以及布林海盜 (Bollinger Bandit) 交易策略,旨在為交易者提供多時間框架的趨勢分析與進出場訊號。該腳本支援風險管理功能,並提供視覺化圖表與交易訊號提示,適用於多種金融市場。
This script, written in Pine Script™ v6, combines Bollinger Bands, Moving Averages, and the Bollinger Bandit strategy to provide traders with multi-timeframe trend analysis and entry/exit signals. It includes risk management features and visualizes data through charts and trading signals, suitable for various financial markets.
Session High/LowWhat it does:
Plots the High and Low of three sessions—Asia (19:00–02:00), London (02:00–08:00), New York (09:30–16:00)—all in UTC-4. After a session closes, it draws a horizontal line starting at the bar where the level first formed, extends it live to the current bar, and shows a label at the line’s end. If price sweeps the level (by wick or close, configurable), the line stops at that bar.
Settings: show/hide sessions, sweep on close toggle, how many past sessions to keep, line style/width, colors per session, and custom label text.
Works on any timeframe. Note: session times are fixed to UTC-4 (adjust if your market uses DST).
KARAKAS
Strategy Philosophy and Objective
This strategy is a high-probability Mean Reversion system. It is based on the principle that markets behave like a stretched rubber band: when the price moves too far away from its average value (the band is stretched), it has a high tendency to eventually snap back towards its mean.
The objective of this strategy is to identify these moments of "extreme extension" and to capture the highest probability move as the price reverts to its average. Rather than acting hastily, it employs a multi-layered confirmation system to trade only on the highest quality signals.
Strategy Profile
Strategy Name: Final Optimized Strategy
Type: Mean Reversion
Recommended Timeframe: Developed on M15 (15-Minute).
Suitable Markets: High-volume, volatile assets. Ideal for Indices (US100, S&P500), Major Forex Pairs (EUR/USD, GBP/USD), and Commodities (Gold).
Core Tools:
Bollinger Bands: Period: 20, Standard Deviation: 2.2
RSI (Relative Strength Index): Period: 14, Overbought/Oversold Levels: 75 / 25
PALUMA_IQ_Bands_v1.0🔍 Script Description:
PALUMA_IQ Bands v1.0 is a dual-band system based on Exponential Moving Averages (EMA) and Standard Deviation. It is designed to detect price extremes and generate accurate BUY and SELL signals whenever the price breaks through the outer bands.
This script combines two customizable band sets (e.g., 13 and 60 periods), allowing you to analyze both short-term and long-term market behavior simultaneously. Each set plots upper and lower volatility bands, and clear signals are displayed on the chart when the price closes outside those ranges.
💡 Key Features:
Dual volatility bands for layered market analysis
Instant BUY/SELL signals on band breakouts
Visual smoothing for cleaner trend recognition
Fully adjustable settings for personalized strategies
Great for reversal trading, mean reversion, and trend shifts
📌 Use Case:
Optimized for scalping, swing trading, or intraday strategies across all markets — crypto, forex, stocks, indices, and more.
Smart EMA Cross Strategy (Free Demo)Simple EMA crossover strategy for demonstration and testing.
🧩 Logic:
- Enter LONG when the fast EMA crosses above the slow EMA.
- Enter SHORT when the fast EMA crosses below the slow EMA.
💡 Tips:
Try adjusting EMA lengths and timeframe to see how crossover systems perform.
📊 Includes basic backtest results with 0.05% commission for realism.
Multi-Stochastic Alert Indicator - INSTANTits amazing to read charts with this
you can ue it
to read
stochastic
timeframe
difference models
Sessions, Killzones & Macros🌟 A Very Special Thanks
To ChatGPT and Copilot for helping me put this together 🙏💻✨
🚀 Session Script Release by AnandaDivine
KitBashed with love & light ✨
⚠️ Disclaimer:
I take no credit for the original scripts used in this compilation, nor any responsibility for how it's used. Modify and explore at your own discretion!
💡 Inspired by Legends:
📊 Sessions on the Chart – by Aurocks_AIF
🧠 ICT KillZones Macros – by TFlab
💧 Watermark FX – by AGFXTRADING
🎯 Features Included:
🕒 Sessions:
🕒 Asia
🕒 London
🕒 New York
🔫 KillZones:
🧬 CBDR (for those who use it)
🕒 Asia
🕒 London
🕒 New York
🧩 Macros:
🕰️ London 1 & 2
🌅 NY AM1, AM2, AM3
🍽️ NY Lunch
🌆 NY PM
🕛 NY Last Hour
💦 Watermark – Clean and minimal branding
🎨 Color Palette:
Optimized for light theme users – crisp, clean, and easy on the eyes.
🔮 Future Features (if requested):
🧱 Dark theme support
🕯️ Candle coloring based on session zones
🧘 Philosophy:
I kept it fast & light – no clutter, no bloat.
Feel free to customize or extend it however you like.
If you add something cool, please share it with me! 🙌
🧪 I tried adding day-of-week and separators, but it looked messy on higher timeframes. Maybe someone else can crack that cleanly.
Combined OP Lines and Daily High/Low
This Pine Script v6 indicator for TradingView ("Combined OP Lines and Daily High/Low") overlays the chart and visualizes in UTC+02:00 (manually adjust for DST):
OP Lines: At 0:00 (new day) and 6:00 AM, draws black horizontal lines at the opening price (extend right), vertical black markers, and labels ("OP 0:00"/"OP 6:00"). Old elements are deleted.
Previous Day High/Low: Blue thick horizontal lines (extend right) with labels ("Daily High/Low: "), based on request.security (daily TF, high/low ).
Useful for day trading: Marks intraday sessions and prior-day extremes as support/resistance. Purely visual, dynamically updated, efficient (resource management). Limitations: Fixed timezone, no alerts, colors could be optimized.
2Pole Baluga Cycle With 10point SL2Pole Baluga Cycle With 10point SL See table for the results.. working to improve this all thoughts and modifications are welcome. At present I had to break down the script into two legs.. I cannot properly target my web hooks for the buy s and sells.. This strategy will fire a notification to options alpha where i intend to purchase short term spreads.. this strategy is for swing traders as you can see it is best profitable on the longer time frame I also see some short term returns on the 10 minute cycle as well
Z-Score Momentum | MisinkoMasterThe Z-Score Momentum is a new trend analysis indicator designed to catch reversals, and shifts in trends by comparing the "positive" and "negative" momentum by using the Z-Score.
This approach helps traders and investors get unique insight into the market of not just Crypto, but any market.
A deeper dive into the indicator
First, I want to cover the "Why?", as I believe it will ease of the part of the calculation to make it easier to understand, as by then you will understand how it fits the puzzle.
I had an attempt to create a momentum oscillator that would catch reversals and provide high tier accuracy while maintaining the main part => the speed.
I thought back to many concepts, divergences between averages?
- Did not work
Maybe a MACD rework?
- Did not work with what I tried :(
So I thought about statistics, Standard Deviation, Z-Score, Sharpe/Sortino/Omega ratio...
Wait, was that the Z-Score? I only tried the For Loop version of it :O
So on my way back from school I formulated a concept (originaly not like this but to that later) that would attempt to use the Z-Score as an accurate momentum oscillator.
Many ideas were falling out of the blue, but not many worked.
After almost giving up on this, and going to go back to developing my strategies, I tried one last thing:
What if we use divergences in the average, formulated like a Z-score?
Surprise-surprise, it worked!
Now to explain what I have been so passionately yapping about, and to connect the pieces of the puzzle once and for all:
The indicator compares the "strength" of the bullish/bearish factors (could be said differently, but this is my "speach bubble", and I think this describes it the best)
What could we use for the "bullish/bearish" factors?
How about high & low?
I mean, these are by definitions the highest and lowest points in price, which I decided to interpret as: The highest the bull & bear "factors" achieved that bar.
The problem here is comparison, I mean high will ALWAYS > low, unless the asset decided to unplug itself and stop moving, but otherwise that would be unfair.
Now if I use my Z-score, it will get higher while low is going up, which is the opposite of what I want, the bearish "factor" is weaker while we go up!
So I sat on my ret*rded a*s for 25 minutes, completly ignoring the fact the number "-1" exists.
Surprise surprise, multiplying the Z-Score of the low by -1 did what I wanted!
Now it reversed itself (magically). Now while the low keeps going down, the bear factor increases, and while it goes up the bear factor lowers.
This was btw still too noisy, so instead of the classic formula:
a = current value
b = average value
c = standard deviation of a
Z = (a-b)/c
I used:
a = average value over n/2 period
b = average value over n period
c = standard deviation of a
Z = (a-b)/c
And then compared the Z-Score of High to the Z-Score of Low by basic subtraction, which gives us final result and shows us the strength of trend, the direction of the trend, and possibly more, which I may have not found.
As always, this script is open source, so make sure to play around with it, you may uncover the treasure that I did not :)
Enjoy Gs!
Porsched Indicator🔧 Core Components:
1. Moving Averages with Clouds
EMA 25, 50, 75, and 150 with standard deviation bands
Visual clouds representing volatility around each EMA
Customizable colors for each average and its cloud
2. Dual Hull Bands
Two separate Hull bands with different periods (20 and 110)
Multiple variations: HMA, THMA, EHMA
Colored filling between Hull lines
Option to use higher timeframes for multi-timeframe analysis
3. Swing High/Low Detector
Identifies significant price reversal points
Configurable swing strength (default: 5 bars)
Solid lines for current swings and dotted for past ones
Alerts when swing levels are broken
4. Volume Analysis (PVSRA)
Vector Candles that change color based on volume:
Red/Green: Volume ≥ 200% of average or highest spread×volume
Blue/Violet: Volume ≥ 150% of average
Gray: Normal conditions
Vector Candle Zones (VCZ): Key areas based on volume candles
5. Daily & Weekly Levels
Previous day's high and low
Previous week's high and low
Stepline display with optional labels
6. UT Bot - Trailing Stop
Dynamic ATR-based stop loss
Bar coloring based on trend direction
Adjustable sensitivity via "Key Value"
7. Session Detector
Identifies session highs/lows (Sydney, Asia, Europe, etc.)
Visual boxes marking each trading session
⚙️ Customization Features:
Individual color schemes for all elements
Adjustable line thickness
Custom transparency settings
Flexible calculation periods
Multiple timeframe options
🎯 Trading Applications:
Trend Identification (EMAs + Hull)
Entry/Exit Points (Swings + Volume)
Risk Management (Trailing Stop)
Support/Resistance (VCZ + Highs/Lows)
Market Timing (Sessions + Volume)
💡 Key Benefits:
All-in-One Solution: Eliminates indicator clutter
Multi-Timeframe Analysis: Built-in higher timeframe data
Visual Clarity: Clean, organized display with color coding
Customizable Alerts: Swing break and trend change notifications
Professional Grade: Institutional-level volume analysis
This indicator is designed for traders who want a comprehensive market analysis tool without the complexity of managing multiple separate indicators, providing holistic market insight through different technical perspectives.
15 minute breakout strat version Breakout strategy for the 4th 15 minute candle of the US session.
Ideal for ES and GC currently.
2 Lots per trade. Stop is low of candle. Entry is close of 15 minute candle above high of candle.
TP1 is 1.5x entry - stop (1.5:1 RR on first lot). Stop is trailed below lows of subsequent candles for 2nd lot.
200 SMA % DeviationIllustrates percent deviation from 200 SMA and +/- 13% bands where historically reversals have tended to occur.
Fury by Tetrad Fury by Tetrad
What it is:
A rules-based Bollinger+RSI strategy that fades extremes: it looks for price stretching beyond Bollinger Bands while RSI confirms exhaustion, enters countertrend, then exits at predefined profit multipliers or optional stoploss. “Ultra Glow” visuals are purely cosmetic.
How it works — logic at a glance
Framework: Classic Bollinger Bands (SMA basis; configurable length & multiplier) + RSI (configurable length).
Long entries:
Price closes below the lower band and RSI < Long RSI threshold (default 28.3) → open LONG (subject to your “Market Direction” setting).
Short entries:
Price closes above the upper band and RSI > Short RSI threshold (default 88.4) → open SHORT.
Profit exits (price targets):
Uses simple multipliers of the strategy’s average entry price:
Long exit = `entry × Long Exit Multiplier` (default 1.14).
Short exit = `entry × Short Exit Multiplier` (default 0.915).
Risk controls:
Optional pricebased stoploss (disabled by default) via:
Long stop = `entry × Long Stop Factor` (default 0.73).
Short stop = `entry × Short Stop Factor` (default 1.05).
Directional filter:
“Market Direction” input lets you constrain entries to Market Neutral, Long Only, or Short Only.
Visuals:
“Ultra Glow” draws thin layered bands around upper/basis/lower; these do not affect signals.
> Note: Inputs exist for a timebased stop tracker in code, but this version exits via targets and (optional) price stop only.
Why it’s different / original
Explicit extreme + momentum pairing: Entries require simultaneous band breach and RSI exhaustion, aiming to avoid entries on gardenvariety volatility pokes.
Deterministic exits: Multiplier-based targets keep results auditable and reproducible across datasets and assets.
Minimal, unobtrusive visuals: Thin, layered glow preserves chart readability while communicating regime around the Bollinger structure.
Inputs you can tune
Bollinger: Length (default 205), Multiplier (default 2.2).
RSI: Length (default 23), Long/Short thresholds (28.3 / 88.4).
Targets: Long Exit Mult (1.14), Short Exit Mult (0.915).
Stops (optional): Enable/disable; Long/Short Stop Factors (0.73 / 1.05).
Market Direction: Market Neutral / Long Only / Short Only.
Visuals: Ultra Glow on/off, light bar tint, trade labels on/off.
How to use it
1. Timeframe & assets: Works on any symbol/timeframe; start with liquid majors and 60m–1D to establish baseline behavior, then adapt.
2. Calibrate thresholds:
Narrow/meanreverting markets often tolerate tighter RSI thresholds.
Fast/volatile markets may need wider RSI thresholds and stronger stop factors.
3. Pick realistic targets: The default multipliers are illustrative; tune them to reflect typical mean reversion distance for your instrument/timeframe (e.g., ATRinformed profiling).
4. Risk: If enabling stops, size positions so risk per trade ≤ 1–2% of equity (max 5–10% is a commonly cited upper bound).
5. Mode: Use Long Only or Short Only when your discretionary bias or higher timeframe model favors one side; otherwise Market Neutral.
Recommended publication properties (for backtests that don’t mislead)
When you publish, set your strategy’s Properties to realistic values and keep them consistent with this description:
Initial capital: 10,000 (typical retail baseline).
Commission: ≥ 0.05% (adjust for your venue).
Slippage: ≥ 2–3 ticks (or a conservative pertrade value).
Position sizing: Avoid risking > 5–10% equity per trade; fixedfractional sizing ≤ 10% or fixedcash sizing is recommended.
Dataset / sample size: Prefer symbols/timeframes yielding 100+ trades over the tested period for statistical relevance. If you deviate, say why.
> If you choose different defaults (e.g., capital, commission, slippage, sizing), explain and justify them here, and use the same settings in your publication.
Interpreting results & limitations
This is a countertrend approach; it can struggle in strong trends where band breaches compound.
Parameter sensitivity is real: thresholds and multipliers materially change trade frequency and expectancy.
No predictive claims: Past performance is not indicative of future results. The future is unknowable; treat outputs as decision support, not guarantees.
Suggested validation workflow
Try different assets. (TSLA, AAPL, BTC, SOL, XRP)
Run a walkforward across multiple years and market regimes.
Test several timeframes and multiple instruments. (30m Suggested)
Compare different commission/slippage assumptions.
Inspect distribution of returns, max drawdown, win/loss expectancy, and exposure.
Confirm behavior during trend vs. range segments.
Alerts & automation
This release focuses on chart execution and visualization. If you plan to automate, create alerts at your entry/exit conditions and ensure your broker/venue fills reflect your slippage/fees assumptions.
Disclaimer
This script is provided for educational and research purposes. It is not investment advice. Trading involves risk, including the possible loss of principal. © Tetrad Protocol.
Candle Body Break (M/W/D/4H/1H)v5# Candle Body Break (M/W/D/4H/1H) Multi-Timeframe Indicator
This indicator identifies and plots **Candle Body Breaks** across five key timeframes: Monthly (M), Weekly (W), Daily (D), 4-Hour (4H), and 1-Hour (1H).
## Core Logic: Candle Body Break
The core concept is a break in the swing high/low defined by the body of the previous counter-trend candle(s). It focuses purely on **closing price breaks** of remembered highs/lows established by full candle bodies (close > open or close < open).
1. **Remembering the Swing:**
* After a bullish break (upward trend), the indicator waits for the first **bearish (close < open) candle** to appear. This bearish candle's high (`rememberedHigh`) and low (`rememberedLow`) are saved as the **breakout level**.
* Subsequent bearish candles that make a new low update this saved level, continuously adjusting the level to the most significant recent resistance/support established by the body's range.
2. **Executing the Break:**
* **Bull Break (Long signal):** Occurs when a **bullish candle's closing price** exceeds the last remembered bearish high (`rememberedHigh`).
* **Bear Break (Short signal):** Occurs when a **bearish candle's closing price** falls below the last remembered bullish low (`rememberedLow_Bull`).
Once a break occurs, the memory is cleared, and the indicator waits for the next counter-trend candle to establish a new level.
## Features
* **Multi-Timeframe Analysis:** Displays break lines and labels for M, W, D, 4H, and 1H timeframes on any chart.
* **Timeframe Filtering:** Break lines are only shown for timeframes **equal to or higher** than the current chart timeframe (e.g., on a 4H chart, only 4H, D, W, and M breaks are displayed).
* **Candidate Lines (Dotted Green):** Plots the current potential breakout level (the remembered high/low) that must be broken to trigger the next signal.
* **Direction Table:** A table in the top right corner summarizes the latest break direction (⇧ Up / ⇩ Down) for all five timeframes. This can be optionally limited to the 4H chart only.
* **1H Alert:** Triggers an alert when a 1-Hour break is detected.
## Input Settings Translation (for Mod Compliance)
| English Input Text | Original Japanese Text |
| :--- | :--- |
| **Show Monthly Break Lines** | 月足ブレイクを描画する |
| **Show Weekly Break Lines** | 週足ブレイクを描画する |
| **Show Daily Break Lines** | 日足ブレイクを描画する |
| **Show 4-Hour Break Lines** | 4時間足ブレイクを描画する |
| **Show 1-Hour Break Lines** | 1時間足ブレイクを描画する |
| **Show Monthly Candidate Lines** | 月足ブレイク候補ラインを描画する |
| **Show Weekly Candidate Lines** | 週足ブレイク候補ラインを描画する |
| **Show Daily Candidate Lines** | 日足ブレイク候補ラインを描画する |
| **Show 4-Hour Candidate Lines** | 4時間足ブレイク候補ラインを描画する |
| **Show 1-Hour Candidate Lines** | 1時間足ブレイク候補ラインを描画する |
| **Show Only Current TF Candidate Lines** | チャート時間足の候補ラインのみ表示 |
| **Show Table Only on 4H Chart** | テーブルを4Hチャートのみ表示 |
*Please note: The default alert message "1-Hour Break Detected" is also in English.*
※日本語訳
ろうそく足実体ブレイク(M/W/D/4H/1H)マルチタイムフレーム・インジケーター(日本語訳)
このインジケーターは、月足(M)、週足(W)、日足(D)、4時間足(4H)、1時間足(1H)の5つの主要な時間足におけるろうそく足実体ブレイクを検出し、プロットします。
コアロジック:ろうそく足実体ブレイク
このロジックの中核は、直近の**逆行ろうそく足(カウンター・トレンド・キャンドル)**の実体によって定義されたスイングの高値/安値のブレイクです。終値が実体のレンジ外で確定することを純粋に追跡します。
スイングの記憶(Remembering the Swing):
強気のブレイク(上昇トレンド)の後、インジケーターは最初に現れる弱気(終値<始値)のろうそく足を待ちます。この弱気ろうそく足の高値(rememberedHigh)と安値(rememberedLow)が、ブレイクアウトレベルとして保存されます。
その後、安値を更新する弱気ろうそく足が続いた場合、この保存されたレベルが更新され、実体のレンジによって確立された最新の重要なレジスタンス/サポートにレベルが継続的に調整されます。
ブレイクの実行(Executing the Break):
ブルブレイク(買いシグナル): 最後に記憶された弱気ろうそく足の高値(rememberedHigh)を、強気ろうそく足の終値が上回ったときに発生します。
ベアブレイク(売りシグナル): 最後に記憶された強気ろうそく足の安値(rememberedLow_Bull)を、弱気ろうそく足の終値が下回ったときに発生します。
一度ブレイクが発生すると、記憶されたレベルはクリアされ、インジケーターは次の逆行ろうそく足が出現し、新しいレベルを確立するのを待ちます。
機能
マルチタイムフレーム分析: 現在のチャートの時間足に関わらず、M、W、D、4H、1Hのブレイクラインとラベルを表示します。
時間足フィルタリング: ブレイクラインは、現在のチャート時間足と同じか、それよりも上位の時間足のもののみが表示されます(例:4時間足チャートでは、4H、D、W、Mのブレイクのみが表示されます)。
候補ライン(緑の点線): 次のシグナルをトリガーするためにブレイクされる必要がある、現在の潜在的なブレイクアウトレベル(記憶された高値/安値)をプロットします。
方向テーブル: 右上隅のテーブルに、5つの全時間足の最新のブレイク方向(⇧ 上昇 / ⇩ 下降)をまとめて表示します。これは、オプションで4時間足チャートのみに表示するように制限できます。
1時間足アラート: 1時間足のブレイクが検出されたときにアラートをトリガーします。
入力設定の翻訳
コード内の入力設定(UIテキスト)の日本語訳は以下の通りです。
英語の入力テキスト 日本語訳
Show Monthly Break Lines 月足ブレイクを描画する
Show Weekly Break Lines 週足ブレイクを描画する
Show Daily Break Lines 日足ブレイクを描画する
Show 4-Hour Break Lines 4時間足ブレイクを描画する
Show 1-Hour Break Lines 1時間足ブレイクを描画する
Show Monthly Candidate Lines 月足ブレイク候補ラインを描画する
Show Weekly Candidate Lines 週足ブレイク候補ラインを描画する
Show Daily Candidate Lines 日足ブレイク候補ラインを描画する
Show 4-Hour Candidate Lines 4時間足ブレイク候補ラインを描画する
Show 1-Hour Candidate Lines 1時間足ブレイク候補ラインを描画する
Show Only Current TF Candidate Lines チャート時間足の候補ラインのみ表示
Show Table Only on 4H Chart テーブルを4Hチャートのみ表示
Alert Message: 1-Hour Break Detected アラートメッセージ: 1時間足ブレイク発生
Supply & Demand Zones with Broken Zone DetectionThis indicator automatically identifies and draws key supply and demand zones on a chart, highlighting where institutional buying or selling pressure has historically acted. It also monitors zones for breaks (i.e. when price decisively crosses through a zone) and changes their status or appearance accordingly.
Key features include:
Automatic detection of fresh zones based on consolidation + impulse patterns
Classification and visual updates when a zone is tested, used, or broken
Option to retain broken zones in the background (lighter style) for reference
Customizable visual styles (colors, transparency, labels)
Alerts when zones are broken or retested
Solana 4H RSI->MACD — Counter-Trend By TetradTetrad RSI→RSI Cross→MACD (Sequenced) — Counter-Trend (SL-Only)
Category: Market-neutral, counter-trend, sequenced entries
Timeframe default: Works on any TF; designed around 4H On Solana
Markets: Any (spot, perp, futures); parameterize to your asset
What it does
This strategy hunts reversals using a 3-step sequence on RSI and MACD, then optionally restricts entries by market regime and a price gate. It shows stop-loss lines only when hit (clean chart), and paints a Donchian glow for quick read of backdrop conditions.
Entry logic (sequenced)
1. RSI Extreme:
Long path activates when RSI < Oversold (default 27.5).
Short path activates when RSI > Overbought (default 74).
2. RSI Cross confirmation:
Long path: RSI crosses up back above the oversold level.
Short path: RSI crosses down back below the overbought level.
Each step has a max bar lookback so stale signals time out.
3. MACD Cross trigger:
Long: MACD line crosses above Signal.
Short: MACD line crosses below Signal.
→ When step 3 fires and gates are satisfied, a trade is entered.
Optional gates & filters
Regime Filter (Counter-Trend):
Longs allowed in **Range / Short Trend / Short Parabolic** regimes.
Shorts allowed in **Range / Long Trend / Long Parabolic** regimes.
Based on ADX/DI and ATR% intensity.
* Price Gate (Long Ceiling):
Toggle to **disable new longs above a chosen price (default 209.0 For SOL).
Useful for assets like SOL where you want longs only below a cap.
Exits / Risk
* Stop-Loss (% of entry):** default **14%**, toggleable.
* SL visualization:** plots a **thin dashed red line only on the bar it’s hit**.
* (No take-profit or time-based exit in this version—keep it pure to the sequence and regime. Add TP/time exits if desired.)
Visuals
* Donchian Glow (50): background band only (upper/lower lines hidden).
* Regime HUD: compact table (top-right) highlighting the active regime.
* Minimal marks: no entry/exit “arms” clutter; only SL-hit lines render.
Inputs (key)
* Core: RSI Length, Oversold/Overbought, MACD Fast/Slow/Signal.
* Sequence: Max bars from Extreme→RSI Cross and RSI Cross→MACD Cross.
* Regime: ADX Length, Trend/Parabolic thresholds, ATR length & floor.
* Stops: Enable/disable; SL %.
* Price Gate: Enable; Long ceiling price.
Alerts
Sequenced Long (CT): RSIhigh → RSI cross down → MACD bear cross.
## Notes & Tips
Designed for counter-trend fades that become trend rides. The regime filter helps avoid fading true parabolics and aligns entries with safer contexts.
The sequence is stateful (steps must occur in order). If a step times out, the path resets.
Works on lower TFs, but the 4H baseline reduces noise and over-trading.
Consider pairing with volume or structure filters if you want fewer but higher-conviction entries.
Past performance ≠ future results. **Educational use only. Not financial advice.
Daily ATR Zones
Dynamic Daily ATR Projection Zones
### **Description:**
This indicator projects potential price levels for the current trading day based on the Average True Range (ATR) of the previous day. It is designed to help intraday traders visualize daily volatility and identify key potential support, resistance, or target levels that are fixed for the entire session and do not repaint.
**How It Works**
The logic is based on two key components: a stable base price and a reliable volatility measure.
* **Base Price:** The indicator uses the **Open price of the current day** as the central anchor point for all projections.
* **Volatility Measure:** The calculation uses the final, completed **ATR value from the previous day**. This ensures that the projected zones are constant throughout the current trading day and are not subject to repainting.
The projection levels are then calculated using the formula:
`Current Day's Open + (Previous Day's ATR * Multiplier)`
**Features**
This script is fully customizable to fit your trading style:
* **Customizable ATR Multipliers:** Easily define your own price zones by entering a comma-separated list of multipliers (e.g., `0.5, 1.0, 1.5, -0.5, -1.0`).
* **Dynamic & Movable Labels:** The price labels are designed to stay on the right edge of the chart, ensuring they never obscure the current price action.
* **Adjustable Label Position:** Use the "Label Horizontal Offset" setting to control how far the labels are positioned from the current bar, keeping your chart clean.
* **Adjustable Label Size:** Choose from five different sizes (Tiny, Small, Normal, Large, Huge) to ensure the labels are perfectly readable on any device.
* **Toggle Labels:** You can turn all labels on or off with a single checkbox.
* **Full Color Customization:** Set unique colors for the positive (upper), negative (lower), and neutral projection zones.
**How to Use**
This tool can be integrated into various intraday trading strategies:
* **Intraday Targets:** The projected levels can serve as potential take-profit or stop-loss targets for scalpers and day traders.
* **Support & Resistance:** Watch for price reactions, such as bounces or rejections, at these ATR levels, as they often act as dynamic support and resistance zones.
* **Volatility Gauge:** The zones provide a quick visual reference for how far the price has moved relative to its recent average daily range. For example, if the price reaches the `1.0 ATR` level, it has completed an "average" day's move.