Quality-Controlled Trend StrategyOverview
This strategy demonstrates a clean, execution-aware trend framework with fully isolated risk management.
Entry conditions and risk logic are intentionally separated so risk parameters can be adjusted without altering signal behavior.
All calculations are evaluated on confirmed bars to ensure backtest behavior reflects real-time execution.
Design intent
Many scripts mix entries and exits in ways that make results fragile or misleading.
This strategy focuses on structural clarity by enforcing:
confirmed-bar logic only
fixed and transparent risk handling
consistent indicator calculations
one position at a time
It is intended as a baseline framework rather than an optimized system.
Trading logic (high level)
Trend context
EMA 50 vs EMA 200 defines directional bias
Entry
Price alignment with EMA 50
RSI used as a momentum confirmation, not as an overbought/oversold signal
Risk management
Stop-loss based on ATR
Fixed risk–reward structure
Risk logic is isolated from entry logic
Editing risk without affecting signals
All stop-loss and take-profit calculations are handled in a dedicated block.
Users can adjust:
ATR length
stop-loss multiplier
risk–reward ratio
without modifying entry conditions.
This allows controlled experimentation while preserving signal integrity.
Usage notes
Results vary by market, timeframe, and volatility conditions.
This script is provided for testing and educational purposes and should be validated across multiple symbols and forward-tested before use in live environments.
Risk
Axiom Flow: Donsma NQ/MNQ - 5 Min TFThis is a proprietary algorithmic trading framework engineered specifically for the Mini and
Micro Nasdaq (MNQ) futures market on the 5-minute timeframe. Designed for the modern quantitative trader, this system filters market noise to identify high-probability momentum expansions during key liquidity windows.
Unlike standard indicators that repaint or lag, this framework utilizes a "Confirmed Close" logic engine, meaning it waits for structural validation before signaling an entry. It is designed to be a complete decision-support system, automating the complex analysis of trend alignment, volatility, and momentum.
How It Works (The Logic) The system relies on a 4-Stage Verification Protocol:
Structural Trend Validation: Uses a proprietary dual-layer breakout logic to ensure price is not just fluctuating within a range but has broken significant structural resistance or support levels.
Volatility Compression Filter: Entries are restricted to periods of specific volatility conditions. The system identifies "energy build-up" phases and triggers only when statistical probability favors an expansion (breakout), avoiding over-extended markets.
The "Anti-Chop" Protocol: A custom-built filter measures the efficiency of price movement. If the market is "chopping" sideways with low directional energy, the system remains neutral, protecting capital from false signals common in range-bound environments.
Velocity Override: A secondary high-impact logic layer detects institutional volume flow and rapid price displacement, allowing the strategy to capture fast-moving news events that standard trend filters might miss.
Risk Management (Automated)
Fixed Risk Sizing: The logic is calibrated for 1-Contract fixed sizing to demonstrate raw performance consistency.
Adaptive Profit Targets: Unlike static targets, this system uses Dynamic Volatility Scoring to calculate profit objectives. It aims for larger runners during high-volatility sessions and banks tighter profits during slower sessions.
Liquidity Window Lock: Execution is hardcoded to the New York Session (Open to Lunch) to ensure maximum liquidity and reduce slippage risks.
Disclaimer This script is for educational and backtesting purposes only. Past performance in the strategy tester is not indicative of future results. Trading futures and derivatives involves substantial risk of loss and is not suitable for every investor. This tool is designed to assist your own technical analysis, not to replace independent judgment.
Z Score FilterComposite Risk Filter
This indicator works because it aggregates several independent but structurally important stress channels (currency strength, rates, equity volatility, bond volatility, and credit conditions) into a single normalized measure. Each input is transformed into a z-score, meaning the composite does not care about absolute levels, narratives, or regimes; it only measures whether conditions are tightening or easing relative to what has been normal recently. That makes the output robust to inflation, secular trends, and structural shifts that break simpler correlations.
What the indicator captures is not direction but constraint. Markets do not move because risk is “on” or “off”; they move because certain behaviors are more or less permitted under prevailing financial conditions. By identifying when systemic pressure is elevated, relaxed, or neutral, the indicator helps align trade expectations with the environment price is operating in. When used as a filter — not a signal — it reduces false confidence, improves expectancy selection, and keeps price in the primary role where it belongs.
Risk Filter Composite (DXY + US10Y + VIX + MOVE + Credit)Risk Filter Composite Indicator
This indicator is a contextual risk filter, not a trading signal. It combines five macro-market inputs — U.S. Dollar (DXY), U.S. 10-Year Yield, Equity Volatility (VIX), Bond Volatility (MOVE), and Credit Conditions — into a single composite value using standardized (z-score) normalization. The result is a continuous measure of risk pressure, where higher values indicate tightening / risk-off conditions and lower values indicate easing / risk-on conditions. The indicator is designed to be computed on a higher timeframe (recommended: 1-hour) and used as background context while executing trades on lower timeframes. It does not predict direction and does not “override” price; it provides regime awareness only.
Key Inputs
• Compute on timeframe: Sets the timeframe used to calculate the composite (default and recommended: 1H).
• Z-score lookback length: Number of bars used to define “normal” conditions for each component (default: 200 bars). Larger values produce slower, more regime-level behavior; smaller values are more reactive.
• Credit source: Choose between HYG/LQD (intraday credit proxy) or High-Yield OAS (daily, FRED). HYG/LQD is recommended for intraday trading; OAS is better suited for swing or macro analysis.
• Component weights: Allows relative emphasis on DXY, rates, volatility, or credit without changing the structure of the indicator.
• Risk-on / Risk-off thresholds: Define when the background shading changes state; defaults are ±0.75 standard deviations.
Interpretation
The indicator defines environmental state, not trade entries. Risk-off readings do not require price to fall, and risk-on readings do not require price to rise. The tool is best used to set expectations for trend quality, breakout reliability, and mean-reversion risk, not to time trades.
QSS v18.3 Institutional Quant EngineQSS v18.3 | Institutional Quant Engine
💎 The Ultimate Algorithmic Trading Suite
QSS (Quantitative Signal System) v18.3 is a complete institutional-grade trading engine designed to replace the noise of multiple indicators with a single, high-probability decision model.
This is not just a "Buy/Sell" indicator. It is a "Fortress" of filters, combining Trend, Momentum, Volume, Volatility, Market Cycles, and Support/Resistance into one unified system.
🚀 What is New in v18.3 ?
1. Dynamic Support & Resistance Engine: The system now automatically detects and draws Support (Green) and Resistance (Red) lines based on pivot points.
The "Fortress" Filter: QSS intelligently scans these lines. If a trade setup appears right below a resistance wall or right above a support floor, the system BLOCKS the signal to prevent buying the top or selling the bottom.
Breakout Logic: The system is smart enough to detect a true Breakout. If a candle closes through a resistance line, the filter is overridden, allowing you to catch the explosion.
2. Visual Clarity:
S/R Labels: Horizontal lines are now clearly labelled "RES" (Resistance) and "SUP" (Support).
Entry/Exit Dots: Stop Loss lines now use distinct dotted styling for better visibility.
⚔️ Core Features
1. Dual-Core Signal Engine
Choose the engine that fits your asset class:
Engine A: OTT (Optimized Trend Tracker): Default. A next-gen algorithm based on VIDYA (Variable Index Dynamic Average). It is volatility-adaptive and reacts faster than traditional tools. Perfect for Crypto & Scalping.
Engine B: SuperTrend (Classic): The industry standard for trend following. Slower, steadier, and reliable. Best for Stocks & Swing Trading.
2. Institutional Intelligence (Smart Money)
Koncorde Logic (The Sharks): Analyzing NVI (Negative Volume Index) vs. PVI (Positive Volume Index). Logic: It tracks "Sharks" (Institutions) vs. "Minnows" (Retail). Signals are BLOCKED if Sharks are selling into a pump.
Order Block Filter (SMC): Automatically detects Supply (Red Zones) and Demand (Green Zones). Logic: The system will refuse to Buy if price is hitting a Bearish Order Block (Resistance).
3. The "Cycle Hunter" Filter
Schaff Trend Cycle (STC): A cyclical momentum filter that replaces MACD/Stochastic. Logic: Signals are only valid if the market cycle is turning in your direction. This prevents getting trapped in "fake outs" where price moves slightly but the cycle is actually exhausted.
4. Advanced Noise Cancellation
ADX Trend Strength: Blocks trades during "dead" markets (Chopping/Sideways) where trend followers usually lose money.
Candle Stability Index: Ignores "wicky" candles and dojis. If the market is undecided, QSS waits for a solid candle before firing.
Trend Ribbon: A dual-SMA cloud (21/34) acting as a macro-trend governor.
5. Pro Dashboard & Risk Management
Dynamic Panel: Displays Trend Status, Smart Money Flow (Accumulation/Distribution), Cycle State, and Volatility %.
Live Trade Monitor: When a signal fires, the dashboard expands to show your exact Entry Price, Stop Loss, and TP1/TP2/TP3 targets.
Status Monitor: When waiting for a trade, the dashboard tells you exactly what it is waiting for (e.g., "Wait: Money Flow" or "Wait: S/R Wall").
🛠️ Settings Guide
🔥 SIGNAL ENGINE
Strategy Engine: Choose between OTT (Fast/Crypto) or SuperTrend (Safe/Stocks).
🏰 SUPPORT & RESISTANCE
Filter: S/R Proximity: Enables the "Fortress" logic. Blocks trades too close to walls unless they are breakouts.
Show S/R Lines: Toggles the visible horizontal lines.
🧱 ORDER BLOCK FILTER
Respect Order Blocks: Highly recommended. Prevents buying into institutional supply zones.
📊 QUANT FILTERS
Smart Money (Sharks): Essential for avoiding retail traps. Read more info below on how the filter protects you
ADX Threshold: Default 20. Increase to 25 for safer entries.
Candle Stability: Filters out high-volatility wicks.
🛡️ RISK MANAGEMENT
SL Multiplier: Distance of Stop Loss (Default 2.0x ATR).
TP Multipliers: Adjust your Risk:Reward ratios. (Default is 1:1, 1:2, and 1:3).
💡 How to Trade with QSS v18
The Signal:
Wait for a "BUY" or "SELL" label. Note if it says "OTT" or "ST".
The Confluence:
Check the Ribbon: Is it the right color?
Check the Dashboard: Is Smart Money "ACCUM" (for buys)? Is the Cycle "BULL"?
The Execution:
Enter at the Entry Price displayed on the chart/dashboard.
Set Stop Loss at the Red Dotted Line.
Take Profit at the Blue Dotted Lines.
Troubleshooting:
I see the trend change colour, but no Buy/Sell label?
Turn on "🔧 Debug Mode" in the settings. Grey labels will appear on the chart explaining exactly why the trade was rejected (e.g., "⛔ REJECTED: Hitting S/R Wall" or "⛔ REJECTED: Low ADX").
The Smart Money (Sharks) Filter Explained
The "Smart Money" filter in QSS v16.0 is based on the famous "Koncorde" indicator logic developed by Blai5. It is designed to reveal what "Institutional Investors (Sharks)" are doing, as opposed to "Retail Traders (Minnows)".
It solves the classic problem: "Why is the price going up, but the volume looks weak?"
---
1. How it Works (The Logic)
The filter uses volume analysis to separate money flow into two categories:
The Sharks (Institutions): Calculated using the NVI (Negative Volume Index). Theory: Institutions accumulate positions quietly on low volume days to avoid spiking the price and alerting the market.
The Minnows (Retail): Calculated using the PVI (Positive Volume Index). Theory: Retail traders tend to chase price on high volume days (FOMO/Panic).
The Calculation in QSS:
The system takes the NVI, smooths it with an EMA, and normalizes it into a specific range.
Blue Area (Sharks) > 0: Institutions are BUYING (Accumulation).
Blue Area (Sharks) < 0: Institutions are SELLING (Distribution).
---
2. How the Filter Protects You
When you enable **"Filter: Smart Money (Sharks)"** in the settings, the system enforces the following strict rules:
Buying Rule: QSS will BLOCK a Buy signal if the Sharks are selling (Value < 0). Scenario: Price is pumping due to retail FOMO, but institutions are selling into the pump. This is a "Bull Trap." QSS saves you from buying the top.
Selling Rule: QSS will BLOCK a Sell signal if the Sharks are buying (Value > 0). Scenario: Price is dropping due to retail panic, but institutions are scooping up cheap coins. This is a "Bear Trap." QSS saves you from selling the bottom.
---
3. How to Set It Up
This filter is Pre-Calibrated inside the code, so you do not need to adjust the math. You only need to toggle it.
In the Indicator Settings:
1. Scroll down to the **"Quant Filters"** section.
2. Look for the checkbox: **"Filter: Smart Money (Sharks)"**.
✅ Checked (Default): The safety guard is ON. You will receive fewer signals, but they will have institutional backing.
⬜ Unchecked: The safety guard is OFF. You will get more signals, catching raw price moves, but you risk getting trapped by fake-outs.
In the Dashboard:
Look at the row labelled "Smart Money".
ACCUM (Green): Sharks are buying. Safe to Long.
DIST (Red): Sharks are selling. Safe to Short.
Summary
Think of this filter as an "Institutional Background Check." Before the system lets you enter a trade, it asks: "Are the whales coming with us?" If the answer is No, the trade is rejected.
Disclaimer: Trading involves high risk. This indicator is a tool for analysis and confirmation, not financial advice. No algorithm is 100% accurate; always use stop losses.
Credits:
OTT Logic adapted from Anıl Özekşi.
Koncorde Logic adapted from Blai5.
STC Logic adapted from Doug Schaff.
SMC logic adapted from FluxCharts concepts.
ML-Inspired Adaptive Momentum Strategy (TradingView v6)This strategy demonstrates an adaptive momentum approach using volatility-normalized trend strength. It is designed for educational and analytical purposes and uses deterministic, fully transparent logic compatible with Pine Script v6.
ML-Inspired Concept (Educational Context)
Pine Script cannot train or execute real machine-learning models.
Instead, this strategy demonstrates ML-style thinking by:
Converting price data into features
Normalizing features to account for volatility differences
Producing a bounded confidence score
Applying thresholds for decision making
This is not predictive AI and does not claim forecasting capability.
Strategy Logic
EMA is used to measure directional bias
EMA slope represents momentum change
ATR normalizes the slope (feature scaling)
A clamped score between −1 and +1 is generated
Trades trigger only when the score exceeds defined thresholds
Risk & Execution
Position size capped at 5% equity
Commission and slippage included for realistic testing
Signals are calculated on closed bars only
Purpose
This script is intended to help traders explore adaptive momentum concepts and understand how feature normalization can be applied in systematic trading strategies.
QSS v15.0 [Omni-Engine]# **QSS v15.0 | Institutional Quant System**
### **💎 The Only Indicator You Will Ever Need**
**QSS (Quantitative Signal System) v15.0** is an all-in-one algorithmic trading engine designed to solve the biggest problem in trading: **fragmentation.** Instead of cluttering your chart with 10 different indicators (RSI, MACD, Bollinger Bands, Order Blocks, SuperTrend, etc.), QSS synthesizes them all into a single, high-probability decision engine.
This is not just a "Buy/Sell" indicator. It is a complete **Institutional Trading Suite** that combines "Smart Money Concepts" (SMC) with quantitative trend analysis and dynamic risk management.
---
### **🚀 Key Features**
#### **1. Dual-Core Signal Engine**
Choose your weapon based on the asset class and volatility:
* **Engine A: SuperTrend (Classic):** The industry standard for capturing major trends. Best for Swing Trading and Stocks.
* **Engine B: OTT (Optimized Trend Tracker):** A faster, volatility-adaptive engine derived from VIDYA (Variable Index Dynamic Average). Best for Crypto and Scalping.
#### **2. Institutional Intelligence (SMC)**
* **Volumized Order Blocks (SMC):** Automatically detects Supply (Red Box) and Demand (Green Box) zones based on pivot volume.
* *Smart Filter:* The system will **BLOCK** Buy signals if price is running straight into a Bearish Order Block (Resistance).
* **Koncorde (Smart Money Flow):** Analyzes PVI (Positive Volume Index) vs. NVI (Negative Volume Index) to track "Sharks" (Institutions) vs. "Minnows" (Retail).
* *Smart Filter:* Signals are only generated if Institutional Money Flow supports the direction.
#### **3. The "Power 3" Confirmation Suite**
Includes optional filters for the classic trinity of technical analysis:
* **MACD:** Ensures momentum alignment.
* **Stochastic:** Prevents buying at overbought peaks.
* **Bollinger Bands:** Ensures trades only occur during volatility expansion (Squeeze breakout).
#### **4. Advanced Noise Filtering**
* **ADX Trend Strength:** Blocks signals during "dead" or choppy markets (ADX < 20).
* **Candle Stability Index:** Ignores "wicky" candles and indecision dojis, preventing fake-outs.
* **Trend Ribbon:** A dual-SMA cloud (21/34) that ensures you are always on the right side of the macro trend.
#### **5. Dynamic Risk Management (R:R)**
* Automatically calculates **Stop Loss** and **Take Profit** targets based on market volatility (ATR).
* **TP1 (1:1):** Secure profit / Move stops to breakeven.
* **TP2 (1:2):** Standard target.
* **TP3 (1:3):** Trend runner.
* *Visuals:* Draws clear entry, stop, and target lines on the chart when a trade is active.
#### **6. Pro Dashboard**
A dynamic panel that monitors:
* **Trend Status:** (Bullish/Bearish)
* **Market State:** (Trending/Parabolic/Ranging)
* **Smart Money:** (Accumulating/Distributing)
* **Live Trade Data:** Real-time entry price and targets when a position is open.
---
### **🛠️ Settings Guide**
**🔥 SIGNAL ENGINE**
* **Strategy Engine:** Toggle between `SuperTrend` (Safe) or `OTT` (Fast).
**🧱 ORDER BLOCK FILTER**
* **Respect Order Blocks:** If checked, the system will not Buy into Resistance or Sell into Support.
* **Show OB Zones:** Toggles the visible Red/Green boxes on the chart.
**📊 QUANT FILTERS**
* **Smart Money (Sharks):** Requires Volume data. Filters out "Retail Traps."
* **ADX (Trend Strength):** Set to `20` for standard filtering. Set to `15` for aggressive scalping.
* **Candle Stability:** Filters out candles with long wicks. Essential for volatile Altcoins.
**📈 CLASSIC INDICATORS**
* **MACD / Stoch / BB:** Enable these if you want strict confluence. (Note: Enabling all will result in fewer, but higher precision signals).
**🛡️ RISK MANAGEMENT**
* **ATR Length:** Sensitivity of the volatility calculation.
* **SL Multiplier:** Distance of Stop Loss (Default 2.0x ATR for Crypto).
* **TP Multipliers:** Adjust your Risk:Reward ratios here.
---
### **💡 How to Trade with QSS v15**
1. **The Setup:**
* Wait for a **"BUY"** or **"SELL"** label to appear.
* Ensure the **Trend Ribbon** (Cloud) matches the signal color.
* Check the **Dashboard**: Ensure "Smart Money" is in your favor (Accumulation for Buys).
2. **The Execution:**
* Enter at the **Entry Price** shown on the chart.
* Place your Stop Loss at the **Red Line**.
* Take partial profits at the **Blue Dotted Lines** (TP1/TP2).
3. **Troubleshooting (Debug Mode):**
* If you see the SuperTrend/OTT flip colors but **NO signal** appears, turn on **"🔧 Debug Mode"** in the settings.
* Grey labels will appear on the chart explaining exactly *why* the trade was rejected (e.g., "⛔ REJECTED: Hitting OB Resistance" or "⛔ REJECTED: Low ADX").
---
**Disclaimer:**
*This indicator is a tool for analysis, not financial advice. It combines multiple quantitative metrics to provide high-probability setups, but no system is 100% accurate. Always use proper risk management.*
**Credits:**
* OTT Logic based on Anıl Özekşi.
* Koncorde Logic based on Blai5.
* SMC Order Block logic adapted from FluxCharts concepts.
* Synthesized and Optimized by rayu8.
Live Position Sizer (LPS)Description (EN)
(Magyar leíráshoz görgess lejjebb!)
Live Position Sizer (LPS) is a discretionary trading utility designed to visualize risk, reward, and position size directly on the chart in real time.
The indicator draws a TradingView-style long or short position box and calculates the required position size based on your defined capital, maximum risk, stop-loss distance, and a user-defined lot conversion factor.
LPS is intended strictly as a decision-support and risk management tool. It does not place trades or generate automated signals.
Core features:
Automatic Long / Short position visualization
Dynamic Entry, Stop Loss, and Take Profit levels
Real-time position size calculation
Configurable Risk/Reward ratio
Fully customizable colors, transparency, and line styles
Clean, minimal on-chart labels showing direction, RR, and lot size
Only one active position box at a time for a clutter-free chart
Position sizing logic:
TradingView internally calculates position size in units, not broker-specific lots.
To bridge this difference, LPS uses a user-defined “Units per 1 Lot” multiplier.
Examples:
Forex (standard lot): 100000
Gold (XAUUSD): 1 or 100 (broker dependent)
Indices (e.g. NAS100): 1
The indicator first calculates the position size in TradingView units and then converts it to lots using this multiplier.
The displayed lot size is rounded to 0.01 lots.
Stop Loss logic:
The Stop Loss level is derived from the High or Low of a selectable previous candle.
Increasing the bar-back value places the Stop Loss further away, which:
increases stop distance
reduces position size for the same risk
Intended use:
Manual / discretionary trading
Risk management and position sizing
Trade planning and visualization
Educational purposes
Important notes:
This indicator does not execute trades
No alerts or automation by default
Lot size and contract specifications vary by broker
Always verify the exact lot or contract size with your broker before trading
------------------------------------
Description (HU)
A Live Position Sizer (LPS) egy diszkrecionális kereskedést támogató segédindikátor, amely valós időben jeleníti meg a kockázatot, a célárat és a pozícióméretet közvetlenül a charton.
Az indikátor TradingView-stílusú long vagy short pozíció boxot rajzol, és kiszámolja a szükséges pozícióméretet a megadott tőke, maximális kockázat, stop-loss távolság és egy felhasználó által definiált LOT szorzó alapján.
Az LPS nem stratégia, kizárólag döntéstámogató és kockázatkezelési eszköz.
Fő funkciók:
Automatikus Long / Short pozíció megjelenítés
Entry, Stop Loss és Take Profit szintek vizuális ábrázolása
Valós idejű pozícióméret számítás
Állítható Risk/Reward arány
Teljesen testreszabható színek, átlátszóság és vonalstílus
Letisztult chart label (irány, RR, lot méret)
Egyszerre csak egy aktív pozíció box
Pozícióméretezési logika:
A TradingView belsőleg egységekben (units) számol, nem bróker-specifikus LOT-okban.
Ennek kezelésére az LPS egy „Units per 1 Lot” beállítást használ.
Példák:
Forex standard lot: 100000
Arany (XAUUSD): 1 vagy 100 (brókertől függ)
Indexek (pl. NAS100): 1
Az indikátor először TradingView egységekben számol, majd ezt átváltja LOT-ra a megadott szorzó segítségével.
A kijelzett LOT méret 0.01-re van kerekítve.
Stop Loss logika:
A Stop Loss szint a kiválasztott korábbi gyertya high vagy low értékéből kerül meghatározásra.
Nagyobb bar-back érték:
távolabb helyezi a stopot
azonos kockázat mellett kisebb pozícióméretet eredményez
Ajánlott felhasználás:
Manuális, diszkrecionális kereskedés
Kockázatkezelés és pozícióméretezés
Trade tervezés
Oktatási célok
Fontos megjegyzések:
Az indikátor nem köt automatikusan
Alapértelmezetten nincs alert vagy automatizmus
A LOT és contract méret brókerenként eltérhet
Kereskedés előtt mindig ellenőrizd a pontos LOT / contract specifikációt a brókerednél
15M Breakout Strategy [1M Structure] V1Description
Overview This indicator is a custom 15-minute breakout structure visualizer designed specifically for the 1-minute timeframe. It identifies the start of every new 15-minute block and marks the structure of the very first 1-minute candle within that block to define an immediate Scalping setup.
How it Works
Vertical Separators: Automatically draws vertical lines marking every 15-minute interval, helping traders visualize higher timeframe sessions on lower timeframe charts.
Entry & Risk Model:
Green Candle Start: Sets a Long Entry at the Close and Stop Loss (SL) at the Low of the first 1M candle.
Red Candle Start: Sets a Short Entry at the Close and Stop Loss (SL) at the High of the first 1M candle.
Target Calculation: Automatically projects a Take Profit (TP) level based on a 1:2 Risk-to-Reward Ratio.
Live Tracking: Lines extend dynamically bar-by-bar until price hits either the TP or SL, or until the next 15-minute block begins.
Smart Labels: Displays "TP Hit" or "SL Hit" labels with the exact pip count (based on a standard 1 Point = 10 Pips calculation) at the moment the trade concludes.
Features
History Control: Users can define how many past setups remain visible to keep the chart clean (Default: 20).
Custom Styling: Fully customizable colors, line widths, and text sizes for labels.
Clean Visuals: Labels are designed without background boxes to minimize chart clutter.
Use Case Ideal for scalpers looking to catch the initial momentum of a new 15-minute candle using tight 1-minute entries.
Reversal Radar - Sensitive Mode - SZ AlphaSensitive Mode is the early detection layer within the Reversal Radar framework.
It is designed to highlight areas where market reversals may begin to emerge, not to generate trade entries.
The radar is built on:
Structural turns (pivot-based)
Behavioral shifts (strength / weakness)
Volatility & participation filters (ATR / Volume)
Trend context via EMA
Core thresholds are intentionally encapsulated into Sensitivity Tiers (Low / Medium / High) to preserve structural consistency and avoid overfitting.
This tool is for risk awareness and context detection,
not for trade execution or signal chasing.
-----------------------------------------------------------------
Sensitive Mode 是 Reversal Radar 体系中的早期反转探测层,用于在市场结构出现变化时,提前标记潜在的反转关注区域。
它并非交易信号,也不用于给出买卖指令,而是通过:
结构拐点(Pivot)
行为变化(强弱转折)
波动与参与度过滤(ATR / Volume)
趋势环境参考(EMA)
来探测“反转开始被观察到的时刻”。
为避免误用,核心阈值已被收口为灵敏度档位(Low / Medium / High),用户只需选择观察节奏,而无需调参。
本工具用于风险识别与情境判断,
不是交易建议,也不是信号生成器。
Free structure.
Decisions remain yours.
— SZ Alpha
Easy Risk Calculator with FeesThis Pine Script creates a position sizing calculator for TradingView that helps traders understand the true cost and risk of a trade when accounting for exchange fees. Here's what it does:
Core Purpose
The script calculates the actual position size, costs, and risk for a trade based on a minimum position value in USDT, while factoring in trading fees that affect both entry and exit prices.
Key Calculations
Position Size Determination:
Takes a desired position value in USDT and adjusts for fees
For longs: divides by entry price × (1 + fee) since you pay fees when buying
For shorts: divides by entry price × (1 - fee) since you receive less when shorting
Risk Analysis:
Calculates the reverse risk - determining how much you'd actually lose based on your position size, rather than starting with a target risk amount
Computes effective entry/exit values - the true USDT value after accounting for fees on both sides of the trade
Expected loss shows the actual dollar amount you'd lose if your stop loss is hit
Risk deviation reveals the percentage difference between your expected loss and calculated risk amount
Visual Output
The script displays a table on the chart showing:
Trade direction (LONG/SHORT with color coding)
Entry price and stop loss levels
Fee percentage used
Position size in both USDT and units of the asset
Effective entry and exit values (after fees)
Expected loss if stopped out
Deviation from target risk
Calculated risk amount in USDT
This tool is particularly useful for traders who need to work with minimum position sizes on exchanges and want to understand exactly how fees impact their actual risk exposure.Claude is AI and can make mistakes. Please double-check responses. Sonnet 4.5Claude is AI and can make mistakes. Please double-check responses.
ATR Tick Targets (Daily + Intraday)ATR Tick Targets (Daily + Intraday)
This indicator calculates ATR-based tick targets and stops using both intraday ATR and daily ATR, then converts the result directly into tick distances relative to the current price.
It’s designed for traders who think in ticks rather than raw price units, especially futures traders (e.g., MGC, ES, NQ, CL, etc.).
🔍 What it does
✔️ Calculates:
Intraday ATR
Daily ATR
A combined ATR value (user-selectable)
✔️ Converts ATR → ticks using the symbol’s minimum tick size
✔️ Plots:
ATR-based long TP / SL
ATR-based short TP / SL
✔️ Displays:
tick distances for TP and SL
ATR values used in calculation
optional label shifted to the right of price
⚙️ ATR combination methods
You can choose how ATR is derived:
Intraday only
Daily only
Average (default)
Max (more conservative stops / larger targets)
This allows you to match your volatility model to your trading style.
🎯 Typical use cases
This tool is useful if you:
set fixed tick SL/TP from ATR
scale target size with volatility
trade futures or tick-based markets
want a volatility-aware RR framework
want targets that expand in trends and contract in chop
It does not generate trade signals. It simply provides objective ATR-based distances that you can plug into your own strategy.
👁️ Visual control
Options include:
show/hide lines
show only current + previous bar
show full historical levels
toggle long/short model independently
offset info label to avoid covering candles
⚠️ Notes
Works on any timeframe
Tick values depend on the symbol’s minimum tick size
Intended for analysis, not guaranteed execution distances
ETH Dynamic Risk Strategy# ETH Dynamic Risk Strategy - Publication Description
## Overview
The ETH Dynamic Risk Strategy is a systematic approach to accumulating Ethereum during bear markets and distributing during bull markets. It combines multiple risk indicators into a single composite metric (0-1 scale) that identifies optimal buying and selling zones based on market conditions.
## Key Features
• **Multi-Component Risk Metric**: Combines 4 weighted indicators to assess market conditions
• **Tiered Buy/Sell System**: 3 levels of buy signals (L1, L2, L3) and 3 levels of sell signals based on risk thresholds
• **Configurable Filters**: Optional buy filters to reduce signal frequency by 30-50%
• **Visual Risk Zones**: Color-coded risk metric plot with clear threshold lines
• **Comprehensive Dashboard**: Real-time statistics including position size, P/L, and component scores
## How It Works
### Risk Components (Configurable Weights)
1. **Log Return from ATH** (Default: 35%)
- Tracks drawdown from all-time high over lookback period
- Deep drawdowns (-70% to -90%) = low risk / buying opportunity
- Near ATH (0% to -20%) = high risk / selling opportunity
2. **ETH/BTC Ratio** (Default: 25%)
- Measures ETH strength relative to Bitcoin
- Below historical average = ETH undervalued = low risk
- Above historical average = ETH overvalued = high risk
3. **Volatility Regime** (Default: 20%)
- Compares current volatility to long-term average
- Compressed volatility at lows = opportunity
- Expanded volatility at highs = danger
4. **Trend Strength** (Default: 20%)
- Uses multiple EMA alignment and slope analysis
- Strong downtrends = low risk scores
- Strong uptrends = high risk scores
### Trading Logic
**Buy Signals:**
- L1: Risk ≤ 0.30 → Buy $100 (default)
- L2: Risk ≤ 0.20 → Buy $250 total
- L3: Risk ≤ 0.10 → Buy $450 total
**Sell Signals (Sequential):**
- L1: Risk ≥ 0.75 → Sell 25% of position
- L2: Risk ≥ 0.85 → Sell 35% of remaining
- L3: Risk ≥ 0.95 → Sell 40% of remaining
**Buy Filters (Optional):**
- Minimum days between buys (prevents clustering)
- Minimum risk drop required (ensures falling risk)
- Toggle on/off to compare performance
## Settings Guide
### Risk Components
Toggle individual components on/off and adjust their weights. Total weight is automatically normalized. Experiment with different combinations to match your market view.
### Advanced Settings
- ATH Lookback: How far back to look for all-time highs (500-2000 recommended)
- Volatility Period: Window for volatility calculations (40-100 recommended)
- ETH/BTC MA Period: Moving average for ratio comparison (100-300 recommended)
- Trend Period: Base period for trend calculations (50-150 recommended)
### Trading Thresholds
Customize buy/sell trigger points and position sizes. Lower buy thresholds = more aggressive accumulation. Higher sell thresholds = holding longer into bull markets.
### Buy Filters
- Enable/disable filtering system
- Min Days Between Buys: Spacing between purchases (1-3 recommended)
- Min Risk Drop: How much risk must fall (-0.001 to -0.01 range)
## Best Practices
• **Timeframe**: Works best on daily (1D) and 3-day (3D) charts
• **Initial Capital**: Set based on your DCA budget (default $10,000)
• **Backtest First**: Test different parameter combinations on historical data
• **Position Sizing**: Adjust buy amounts to match your risk tolerance
• **Monitor Filters**: Check "Filtered Buys" stat to ensure filter isn't too strict
## Use Cases
- Long-term ETH accumulation strategy
- Systematic DCA with market-adaptive buying
- Risk-based portfolio rebalancing
- Educational tool for understanding crypto market cycles
## Disclaimer
This strategy is for educational purposes only. Past performance does not guarantee future results. Cryptocurrency trading involves substantial risk. The strategy uses historical price action and technical indicators which may not predict future movements. Always do your own research and never invest more than you can afford to lose.
## Credits
Strategy concept and development by nakphanan with assistance from Claude AI (Anthropic). Built using Pine Script v5....Mostly from Claude AI!!!
## Version History
v7.0 - Initial release with 4-component risk metric, tiered trading system, and optional buy filters
Account GuardianAccount Guardian: Dynamic Risk/Reward Overlay
Introduction
Account Guardian is an open-source indicator for TradingView designed to help traders evaluate trade setups before entering positions. It automatically calculates Risk-to-Reward ratios based on market structure, displays visual Stop Loss and Take Profit zones, and provides real-time position sizing recommendations.
The indicator addresses a fundamental question every trader should ask before entering a trade: "Does this setup make mathematical sense?" Account Guardian answers this question visually and numerically, helping traders avoid impulsive entries with poor risk profiles.
Core Functionality
Account Guardian performs four primary functions:
Detects swing highs and swing lows to identify logical stop loss placement levels
Calculates Risk-to-Reward ratios for both long and short setups in real-time
Displays visual SL/TP zones on the chart for immediate trade planning
Computes position sizing based on your account size and risk tolerance
The goal is to provide traders with instant feedback on whether a potential trade meets their minimum risk/reward criteria before committing capital.
How It Works
Swing Detection
The indicator uses pivot point detection to identify recent swing highs and swing lows on the chart. These swing points serve as logical areas for stop loss placement:
For Long Trades: The most recent swing low becomes the stop loss level. Price breaking below this level would invalidate the bullish thesis.
For Short Trades: The most recent swing high becomes the stop loss level. Price breaking above this level would invalidate the bearish thesis.
The swing detection lookback period is configurable, allowing you to adjust sensitivity based on your trading timeframe and style.
It automatically adjusts the tp and sl when it is applied to your chart so it is always moving up and down!
Risk/Reward Calculation
Once swing levels are identified, the indicator calculates:
Entry Price: Current close price (where you would enter)
Stop Loss: Recent swing low (for longs) or swing high (for shorts)
Risk: Distance from entry to stop loss
Take Profit: Entry plus (Risk × Target Multiplier)
R:R Ratio: Reward divided by Risk
The R:R ratio is then evaluated against your configured thresholds to determine if the setup is valid, marginal, or poor.
Visual Elements
SL/TP Zones
When enabled, the indicator draws colored boxes on the chart showing:
Red Zone: Stop Loss area - the region between your entry and stop loss
Green/Gold/Red Zone: Take Profit area - colored based on R:R quality
The color coding provides instant visual feedback:
Green: R:R meets or exceeds your "Good R:R" threshold (default 3:1)
Gold: R:R meets minimum threshold but below "Good" (between 2:1 and 3:1)
Red: R:R below minimum threshold - setup should be avoided
Swing Point Markers
Small circles mark detected swing points on the chart:
Green circles: Swing lows (potential support / long SL levels)
Red circles: Swing highs (potential resistance / short SL levels)
Dashboard Panel
The dashboard in the top-right corner displays comprehensive trade planning information:
R:R Row: Current Risk-to-Reward ratio for long and short setups
Status Row: VALID, OK, BAD, or N/A based on R:R thresholds
Stop Loss Row: Exact price level for stop loss placement
Take Profit Row: Exact price level for take profit placement
Pos Size Row: Recommended position size based on your risk parameters
Risk $ Row: Dollar amount at risk per trade
Position Sizing Logic
The indicator calculates position size using the formula:
Position Size = Risk Amount / Risk per Unit
Where:
Risk Amount = Account Size × (Risk Percentage / 100)
Risk per Unit = Entry Price - Stop Loss Price
For example, with a $10,000 account risking 1% per trade ($100), if your entry is at 100 and stop loss at 98 (risk of 2 per unit), your position size would be 50 units.
Input Parameters
Swing Detection:
Swing Lookback: Number of bars to look back for pivot detection (default: 10). Higher values find more significant swing points but may be slower to update.
Target Multiplier: Multiplier applied to risk to calculate take profit distance (default: 2). A value of 2 means TP is 2× the distance of SL from entry.
Risk/Reward Thresholds:
Minimum R:R: Minimum acceptable Risk-to-Reward ratio (default: 2.0). Setups below this show as "BAD" in red.
Good R:R: Threshold for excellent setups (default: 3.0). Setups at or above this show as "VALID" in green.
Account Settings:
Account Size ($): Your trading account size in dollars (default: 10,000). Used for position sizing calculations.
Risk Per Trade (%): Percentage of account to risk per trade (default: 1.0%). Professional traders typically risk 0.5-2% per trade.
Display:
Show SL/TP Zones: Toggle visibility of the colored zone boxes on chart (default: enabled)
Show Dashboard: Toggle visibility of the information panel (default: enabled)
Analyze Direction: Choose to analyze Long only, Short only, or Both directions (default: Both)
How to Use This Indicator
Basic Workflow:
Add the indicator to your chart
Configure your account size and risk percentage in the settings
Set your minimum and good R:R thresholds based on your trading rules
Look at the dashboard to see current R:R for potential long and short entries
Only consider trades where the status shows "VALID" or at minimum "OK"
Use the displayed SL and TP levels for your order placement
Use the position size recommendation to determine lot/contract size
Interpreting the Dashboard:
VALID (Green): Excellent setup - R:R meets your "Good" threshold. This is the ideal scenario for taking a trade.
OK (Gold): Acceptable setup - R:R meets minimum but isn't optimal. Consider taking if other confluence factors align.
BAD (Red): Poor setup - R:R below minimum threshold. Avoid this trade or wait for better entry.
N/A (Gray): Cannot calculate - usually means no valid swing point detected yet.
Best Practices:
Use this indicator as a filter, not a signal generator. It tells you IF a trade makes sense, not WHEN to enter.
Combine with your existing entry strategy - use Account Guardian to validate setups from other analysis.
Adjust the swing lookback based on your timeframe. Lower timeframes may need smaller lookback values.
Be honest with your account size input - accurate position sizing requires accurate inputs.
Consider the target multiplier carefully. Higher multipliers mean larger potential reward but lower probability of hitting TP.
Alerts
The indicator includes four alert conditions:
Good Long Setup: Triggers when long R:R reaches or exceeds your "Good R:R" threshold
Good Short Setup: Triggers when short R:R reaches or exceeds your "Good R:R" threshold
Bad Long Setup: Triggers when long R:R falls below your minimum threshold
Bad Short Setup: Triggers when short R:R falls below your minimum threshold
These alerts can help you monitor multiple charts and get notified when favorable setups appear.
Technical Implementation
The indicator is built using Pine Script v6 and includes:
Pivot-based swing detection using ta.pivothigh() and ta.pivotlow()
Dynamic box drawing for visual SL/TP zones
Table-based dashboard for clean information display
Color-coded visual feedback system
Persistent variable tracking for swing levels
Code Structure:
// Swing Detection
float swingHi = ta.pivothigh(high, swingLen, swingLen)
float swingLo = ta.pivotlow(low, swingLen, swingLen)
// R:R Calculation for Long
float longSL = recentSwingLo
float longRisk = entry - longSL
float longTP = entry + (longRisk * targetMult)
float longRR = (longTP - entry) / longRisk
// Position Sizing
float riskAmount = accountSize * (riskPct / 100)
float posSize = riskAmount / longRisk
Limitations
The indicator uses historical swing points which may not always represent optimal SL placement for your specific strategy
Position sizing assumes you can trade fractional units - adjust accordingly for instruments with minimum lot sizes
R:R calculations assume linear price movement and don't account for gaps or slippage
The indicator doesn't predict price direction - it only evaluates the mathematical viability of a setup
Swing detection has inherent lag due to the lookback period required for pivot confirmation
Recommended Settings by Trading Style
Scalping (1-5 minute charts):
Swing Lookback: 5-8
Target Multiplier: 1-2
Minimum R:R: 1.5
Good R:R: 2.0
Day Trading (15-60 minute charts):
Swing Lookback: 8-12
Target Multiplier: 2
Minimum R:R: 2.0
Good R:R: 3.0
Swing Trading (4H-Daily charts):
Swing Lookback: 10-20
Target Multiplier: 2-3
Minimum R:R: 2.5
Good R:R: 4.0
Why Risk/Reward Matters
Many traders focus solely on win rate, but profitability depends on the combination of win rate AND risk/reward ratio. Consider these scenarios:
50% win rate with 1:1 R:R = Breakeven (before costs)
50% win rate with 2:1 R:R = Profitable
40% win rate with 3:1 R:R = Profitable
60% win rate with 1:2 R:R = Losing money
Account Guardian helps ensure you only take trades where the math works in your favor, even if you're wrong more often than you're right.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not intended as financial, investment, trading, or any other type of advice or recommendation.
Trading involves substantial risk of loss and is not suitable for all investors. The calculations provided by this indicator are based on historical price data and mathematical formulas that may not accurately predict future price movements.
Position sizing recommendations are estimates based on user inputs and should be verified before placing actual trades. Always consider factors such as leverage, margin requirements, and broker-specific rules when determining actual position sizes.
The Risk-to-Reward ratios displayed are theoretical calculations based on swing point detection. Actual trade outcomes will vary based on market conditions, execution quality, and other factors not captured by this indicator.
Past performance does not guarantee future results. Users should thoroughly test any trading approach in a demo environment before risking real capital. The authors and publishers of this indicator are not responsible for any losses or damages arising from its use.
Always consult with a qualified financial advisor before making investment decisions.
MarketMind PRO+M🜁rketMind PRO+ ────────────────────
Advanced Market Interpretation & Conviction Context
M🜁rketMind PRO+ is an advanced market interpretation system designed for traders who require structured insight into alignment, stability, and contextual agreement — without alerts, signals, or hindsight-based indicators.
Rather than issuing instructions or trade direction, M🜁rketMind PRO+ focuses on interpreting how market conditions relate to one another , whether internal agreement is present, and whether the environment supports conviction or restraint.
This script is designed as a standalone interpretive analysis tool. It does not provide execution guidance or predictive guarantees.
WHAT IT DOES ────────────────────
M🜁rketMind PRO+ evaluates current market conditions across multiple analytical dimensions — including macro environment, sector behavior, momentum, structure, liquidity, stability, and session dynamics — and synthesizes them into a structured, human-readable HUD.
In addition to describing what is happening, the system interprets internal agreement and contextual coherence , helping traders understand whether conditions appear supportive, fragile, or transitional.
The script provides insight into:
Market bias and directional alignment
Regime and phase behavior across sessions
Momentum quality, degradation, and stall dynamics
Internal agreement and alignment consistency
Structural stability and transition risk
Contextual factors that may support or undermine conviction
The goal is to clarify how well conditions agree internally , not to tell traders what action to take.
HOW TO USE IT ────────────────────
M🜁rketMind PRO+ is not a signal generator.
It is designed to complement discretionary price action, rule-based systems, or systematic strategies by helping traders evaluate higher-order context, such as:
How aligned are current conditions, and how broad is that agreement?
Is momentum supported, fragile, or deteriorating?
Does the environment appear stable, transitional, or deceptive?
Does this context justify conviction, or suggest restraint?
M🜁rketMind PRO+ emphasizes synthesis over reaction, preserving chart clarity while providing interpretive depth.
DESIGN PHILOSOPHY ────────────────────
M🜁rketMind PRO+ is intentionally interpretive.
It focuses on contextual agreement and stability , rather than isolated signals or prescriptive outputs:
Multi-dimensional context and alignment interpretation
Internal agreement and coherence awareness
Stability and transition sensitivity
Session-aware interpretive framing
No alerts, entries, or execution logic
No forward performance claims or guarantees
Nothing is instructed.
Nothing is promised.
This script explains how conditions relate , not what to trade.
WHO IT IS FOR ────────────────────
M🜁rketMind PRO+ is suited for traders who:
Require interpretive context beyond surface-level awareness
Manage exposure across changing regimes
Value understanding alignment, stability, and agreement
Prefer synthesis over single-indicator workflows
It is not designed for:
Buy or sell alerts
Automated execution systems
Traders seeking prescriptive instructions
IMPORTANT NOTES ────────────────────
M🜁rketMind PRO+ does not provide financial advice
No system can predict future price behavior with certainty
This tool is designed to support judgment, not replace it
Used appropriately, M🜁rketMind PRO+ helps traders operate with greater selectivity, contextual clarity, and risk awareness
MarketMind PROM🜁rketMind PRO ────────────────────
Descriptive Market Context & Risk Awareness
M🜁rketMind PRO is a professional-grade market context system designed to help traders maintain situational clarity and explicit risk awareness — without signals, confidence scoring, or forward-looking interpretation.
Rather than telling traders what to trade or how confident to be, M🜁rketMind PRO focuses on describing what is happening in the market and where caution may be warranted.
This script is designed as a standalone descriptive tool. It does not provide execution guidance, trade signals, or predictive insight.
WHAT IT DOES ────────────────────
M🜁rketMind PRO evaluates current market conditions across multiple dimensions — including session context, regime state, momentum direction, volatility, liquidity, and structural behavior — and presents them in a clean, human-readable HUD.
The system emphasizes description over interpretation.
It highlights conditions that may elevate or reduce risk without assessing alignment strength, assigning confidence, or projecting outcomes.
The script provides visibility into:
Market context and session awareness
Basic regime states and transitions
Momentum direction (up, down, neutral)
Volatility, liquidity, and structural caution conditions
Environmental factors that may influence risk
The goal is to make risk visible — without telling traders what to do with it.
HOW TO USE IT ────────────────────
M🜁rketMind PRO is not a signal generator.
It is designed to be used alongside discretionary price action, rule-based entries, or systematic strategies, helping traders stay aware of context and potential risk while executing their own process.
Common questions it can help inform include:
What type of market environment is currently present?
Is momentum developing, stalling, or absent?
Are volatility or liquidity conditions elevated?
Does the environment appear clean or structurally fragile?
M🜁rketMind PRO describes conditions as they are.
Interpretation and decision-making remain entirely with the trader.
DESIGN PHILOSOPHY ────────────────────
M🜁rketMind PRO is intentionally descriptive.
It includes context and caution layers without interpretive or evaluative frameworks:
Market context, momentum, and risk visibility
Volatility, liquidity, and structural awareness
Session awareness without gating or execution logic
A single, consistent HUD perspective
No confidence scoring or conviction grading
No predictive or forward-looking language
Nothing is implied.
Nothing is projected.
This script shows what is happening and where risk may exist — nothing more.
WHO IT IS FOR ────────────────────
M🜁rketMind PRO is suited for traders who:
Prefer structured context over signals
Manage their own execution and risk decisions
Value awareness of environmental and structural conditions
Want clarity without interpretive bias
It is not designed for:
Buy or sell alerts
Execution guidance
Predictive or outcome-based analysis
IMPORTANT NOTES ────────────────────
M🜁rketMind PRO does not provide financial advice
No system can predict future price behavior
This tool is designed to inform awareness, not decisions
Used appropriately, M🜁rketMind PRO supports disciplined, context-aware trading
Short-Term Bubble Risk [Phantom] Short-Term Bubble Risk
Concept
This indicator visualizes short-term market risk by measuring how far price is stretched relative to its recent weekly trend.
Instead of focusing on absolute price levels, it looks at price behavior.
A similar reading means similar market conditions, whether price is high or low.
The goal is to help identify areas of potential accumulation and potential distribution in a clear, visual way.
How It Works
The indicator compares the weekly closing price to a weekly moving average and displays the deviation as a histogram.
When price is far below its average, risk is considered lower
When price is far above its average, risk is considered higher
The zero line represents fair value, where price equals its weekly average.
Features
Color-coded histogram showing short-term risk levels
Designed to work across different assets and price ranges
Optional bar coloring on the main chart using weekly risk data
Safe to use on any timeframe (risk is calculated on weekly data)
Settings
# Moving Average Length (Weeks):
Adjusts how sensitive the indicator is to price changes
# Color Visibility Toggles:
Allows hiding or showing specific risk zones
# Bar Coloring:
Option to color chart candles based on weekly risk levels
Usage
This indicator is best used as a risk lens, not a timing tool.
Common uses include:
Identifying potential accumulation zones during weakness
Spotting overextended conditions during strong moves
Comparing short-term risk across different assets
Adding context to trend-following or DCA strategies
Trade Ideas
# Lower-risk zones (cool colors):
Can support accumulation or patience during downtrends
# Higher-risk zones (warm colors):
Can signal caution, reduced exposure, or profit-taking
Always combine with:
Trend direction
Market structure
Higher-timeframe context
Limitations
This indicator does not predict tops or bottoms
High risk can remain high during strong trends
Low risk does not guarantee immediate reversals
It should not be used as a standalone trading system.
Disclaimer
This indicator is for educational and informational purposes only.
It is not financial advice.
Always do your own research and manage risk appropriately.
IV vs Realised Volatility (VIX/HV Comparator)VIX / HV Comparator – Implied vs Realised Volatility
This indicator compares Implied Volatility (IV) from a volatility index (VIX, India VIX, etc.) with the Realised / Historical Volatility (HV) of the current chart symbol.
It helps you see whether options are pricing volatility as rich or cheap relative to what the underlying is actually doing.
What it does
Pulls IV from any user-selected vol index symbol (e.g. CBOE:VIX for SPX, NSEINDIA:INDIAVIX for Nifty).
Calculates realised volatility from the chart’s price data using returns over a user-defined lookback.
Annualises HV so IV and HV are displayed on the same percentage scale, on any timeframe (intraday or higher).
Optionally shows an IV/HV ratio in a separate pane to highlight when options are rich or cheap relative to realised volatility.
How to read it
Main panel:
Orange line – Implied Volatility (IV) from your chosen vol index.
Aqua line – Realised / Historical Volatility (HV) of the current chart symbol.
Fill between lines:
Green shading -> IV > HV -> options are priced richer than what the underlying is currently realising.
Red shading -> HV > IV -> realised vol is higher than the options market is implying.
Sub-panel (optional):
IV / HV ratio
- Above 1 -> IV > HV (vol rich).
- Below 1 -> IV < HV (vol cheap).
- Horizontal guides (for example 1.2 / 0.8) help frame “significantly rich/cheap” zones.
A small label on the latest bar displays the current IV, HV and their difference in vol points.
Inputs (key ones)
IV Index Symbol – choose the volatility index that corresponds to your underlying (VIX, India VIX, etc.).
Realised Vol Lookback – number of bars used to compute HV (for example 20).
Trading Days per Year and Active Hours per Day – used for annualising HV so it stays consistent across timeframes.
IV Scale Factor – adjust if your IV index is quoted in decimals (0.15) instead of points (15).
Practical uses
Context for options trades – Quickly see if current IV is high or low relative to realised volatility when deciding on strategies (premium selling vs buying, spreads, hedges).
Vol regime analysis – Track shifts where HV starts to rise above IV (real stress building) or IV spikes far above HV (fear premium / insurance bid).
Cross-timeframe checks – Use on intraday charts for short-term trading context, or on daily/weekly charts for bigger picture vol regimes.
This tool is not a stand-alone signal generator. It is meant to be a volatility dashboard you combine with your usual price action, trend, and options strategy rules to understand how the options market is pricing risk vs what the underlying is actually delivering.
ALT Risk Metric StrategyHere's a professional write-up for your ALT Risk Strategy script:
ALT/BTC Risk Strategy - Multi-Crypto DCA with Bitcoin Correlation Analysis
Overview
This strategy uses Bitcoin correlation as a risk indicator to time entries and exits for altcoins. By analyzing how your chosen altcoin performs relative to Bitcoin, the strategy identifies optimal accumulation periods (when alt/BTC is oversold) and profit-taking opportunities (when alt/BTC is overbought). Perfect for traders who want to outperform Bitcoin by strategically timing altcoin positions.
Key Innovation: Why Alt/BTC Matters
Most traders focus solely on USD price, but Alt/BTC ratios reveal true altcoin strength:
When Alt/BTC is low → Altcoin is undervalued relative to Bitcoin (buy opportunity)
When Alt/BTC is high → Altcoin has outperformed Bitcoin (take profits)
This approach captures the rotation between BTC and alts that drives crypto cycles
Key Features
📊 Advanced Technical Analysis
RSI (60% weight): Primary momentum indicator on weekly timeframe
Long-term MA Deviation (35% weight): Measures distance from 150-period baseline
MACD (5% weight): Minor confirmation signal
EMA Smoothing: Filters noise while maintaining responsiveness
All calculations performed on Alt/BTC pairs for superior market timing
💰 3-Tier DCA System
Level 1 (Risk ≤ 70): Conservative entry, base allocation
Level 2 (Risk ≤ 50): Increased allocation, strong opportunity
Level 3 (Risk ≤ 30): Maximum allocation, extreme undervaluation
Continuous buying: Executes every bar while below threshold for true DCA behavior
Cumulative sizing: L3 triggers = L1 + L2 + L3 amounts combined
📈 Smart Profit Management
Sequential selling: Must complete L1 before L2, L2 before L3
Percentage-based exits: Sell portions of position, not fixed amounts
Auto-reset on re-entry: New buy signals reset sell progression
Prevents premature full exits during volatile conditions
🤖 3Commas Automation
Pre-configured JSON webhooks for Custom Signal Bots
Multi-exchange support: Binance, Coinbase, Kraken, Bitfinex, Bybit
Flexible quote currency: USD, USDT, or BUSD
Dynamic order sizing: Automatically adjusts to your tier thresholds
Full webhook documentation compliance
🎨 Multi-Asset Support
Pre-configured for popular altcoins:
ETH (Ethereum)
SOL (Solana)
ADA (Cardano)
LINK (Chainlink)
UNI (Uniswap)
XRP (Ripple)
DOGE
RENDER
Custom option for any other crypto
How It Works
Risk Metric Calculation (0-100 scale):
Fetches weekly Alt/BTC price data for stability
Calculates RSI, MACD, and deviation from 150-period MA
Normalizes MACD to 0-100 range using 500-bar lookback
Combines weighted components: (MACD × 0.05) + (RSI × 0.60) + (Deviation × 0.35)
Applies 5-period EMA smoothing for cleaner signals
Color-Coded Risk Zones:
Green (0-30): Extreme buying opportunity - Alt heavily oversold vs BTC
Lime/Yellow (30-70): Accumulation range - favorable risk/reward
Orange (70-85): Caution zone - consider taking initial profits
Red/Maroon (85-100+): Euphoria zone - aggressive profit-taking
Entry Logic:
Buys execute every candle when risk is below threshold
As risk decreases, position sizing automatically scales up
Example: If risk drops from 60→25, you'll be buying at L1 rate until it hits 50, then L2 rate, then L3 rate
Exit Logic:
Sells only trigger when in profit AND risk exceeds thresholds
Sequential execution ensures partial profit-taking
If new buy signal occurs before all sells complete, sell levels reset to L1
Configuration Guide
Choosing Your Altcoin:
Select crypto from dropdown (or use CUSTOM for unlisted coins)
Pick your exchange
Choose quote currency (USD, USDT, BUSD)
Risk Metric Tuning:
Long Term MA (default 150): Higher = more extreme signals, Lower = more frequent
RSI Length (default 10): Lower = more volatile, Higher = smoother
Smoothing (default 5): Increase for less noise, decrease for faster reaction
Buy Settings (Aggressive DCA Example):
L1 Threshold: 70 | Amount: $5
L2 Threshold: 50 | Amount: $6
L3 Threshold: 30 | Amount: $7
Total L3 buy = $18 per candle when deeply oversold
Sell Settings (Balanced Exit Example):
L1: 70 threshold, 25% position
L2: 85 threshold, 35% position
L3: 100 threshold, 40% position (final exit)
3Commas Setup
Bot Configuration:
Create Custom Signal Bot in 3Commas
Set trading pair to your altcoin/USD (e.g., ETH/USD, SOL/USDT)
Order size: Select "Send in webhook, quote" to use strategy's dollar amounts
Copy Bot UUID and Secret Token
Script Configuration:
Paste credentials into 3Commas section inputs
Check "Enable 3Commas Alerts"
Save and apply to chart
TradingView Alert:
Create Alert → Condition: "alert() function calls only"
Webhook URL: api.3commas.io
Enable "Webhook URL" checkbox
Expiration: Open-ended
Strategy Advantages
✅ Outperform Bitcoin: Designed specifically to beat BTC by timing alt rotations
✅ Capture Alt Seasons: Automatically accumulates when alts lag, sells when they pump
✅ Risk-Adjusted Sizing: Buys more when cheaper (better risk/reward)
✅ Emotional Discipline: Systematic approach removes fear and FOMO
✅ Multi-Asset: Run same strategy across multiple altcoins simultaneously
✅ Proven Indicators: Combines RSI, MACD, and MA deviation - battle-tested tools
Backtesting Insights
Optimal Timeframes:
Daily chart: Best for backtesting and signal generation
Weekly data is fetched internally regardless of display timeframe
Historical Performance Characteristics:
Accumulates heavily during bear markets and BTC dominance periods
Captures explosive altcoin rallies when BTC stagnates
Sequential selling preserves capital during extended downtrends
Works best on established altcoins with multi-year history
Risk Considerations:
Requires capital reserves for extended accumulation periods
Some altcoins may never recover if fundamentals deteriorate
Past correlation patterns may not predict future performance
Always size positions according to personal risk tolerance
Visual Interface
Indicator Panel Displays:
Dynamic color line: Green→Lime→Yellow→Orange→Red as risk increases
Horizontal threshold lines: Dashed lines mark your buy/sell levels
Entry/Exit labels: Green labels for buys, Orange/Red/Maroon for sells
Real-time risk value: Numerical display on price scale
Customization:
All threshold lines are adjustable via inputs
Color scheme clearly differentiates buy zones (green spectrum) from sell zones (red spectrum)
Line weights emphasize most extreme thresholds (L3 buy and L3 sell)
Strategy Philosophy
This strategy is built on the principle that altcoins move in cycles relative to Bitcoin. During Bitcoin rallies, alts often bleed against BTC (high sell, accumulate). When Bitcoin consolidates, alts pump (take profits). By measuring risk on the Alt/BTC chart instead of USD price, we time these rotations with precision.
The 3-tier system ensures you're always averaging in at better prices and scaling out at better prices, maximizing your Bitcoin-denominated returns.
Advanced Tips
Multi-Bot Strategy:
Run this on 5-10 different altcoins simultaneously to:
Diversify correlation risk
Capture whichever alt is pumping
Smooth equity curve through rotation
Pairing with BTC Strategy:
Use alongside the BTC DCA Risk Strategy for complete portfolio coverage:
BTC strategy for core holdings
ALT strategies for alpha generation
Rebalance between them based on BTC dominance
Threshold Calibration:
Check 2-3 years of historical data for your chosen alt
Note where risk metric sat during major bottoms (set buy thresholds)
Note where it peaked during euphoria (set sell thresholds)
Adjust for your risk tolerance and holding period
Credits
Strategy Development & 3Commas Integration: Claude AI (Anthropic)
Technical Analysis Framework: RSI, MACD, Moving Average theory
Implementation: pommesUNDwurst
Disclaimer
This strategy is for educational purposes only. Cryptocurrency trading involves substantial risk of loss. Altcoins are especially volatile and many fail completely. The strategy assumes liquid markets and reliable Alt/BTC price data. Always do your own research, understand the fundamentals of any asset you trade, and never risk more than you can afford to lose. Past performance does not guarantee future results. The authors are not financial advisors and assume no liability for trading decisions.
Additional Warning: Using leverage or trading illiquid altcoins amplifies risk significantly. This strategy is designed for spot trading of established cryptocurrencies with deep liquidity.
Tags: Altcoin, Alt/BTC, DCA, Risk Metric, Dollar Cost Averaging, 3Commas, ETH, SOL, Crypto Rotation, Bitcoin Correlation, Automated Trading, Alt Season
Feel free to modify any sections to better match your style or add specific backtesting results you've observed! 🚀Claude is AI and can make mistakes. Please double-check responses. Sonnet 4.5
BTC DCA Risk Metric StrategyBTC DCA Risk Strategy - Automated Dollar Cost Averaging with 3Commas Integration
Overview
This strategy combines the proven Oakley Wood Risk Metric with an intelligent tiered Dollar Cost Averaging (DCA) system, designed to help traders systematically accumulate Bitcoin during periods of low risk and take profits during high-risk conditions.
Key Features
📊 Multi-Component Risk Assessment
4-Year SMA Deviation: Measures Bitcoin's distance from its long-term mean
20-Week MA Analysis: Tracks medium-term momentum shifts
50-Day/50-Week MA Ratio: Captures short-to-medium term trend strength
All metrics are normalized by time to account for Bitcoin's maturing market dynamics
💰 3-Tier DCA Buy System
Level 1 (Low Risk): Conservative entry with base allocation
Level 2 (Lower Risk): Increased allocation as opportunity improves
Level 3 (Extreme Low Risk): Maximum allocation during rare buying opportunities
Buys execute every bar while risk remains below thresholds, enabling true DCA accumulation
📈 Progressive Profit Taking
Sell Level 1: Take initial profits as risk increases
Sell Level 2: Scale out further positions during elevated risk
Sell Level 3: Final exit during extreme market conditions
Sell levels automatically reset when new buy signals occur, allowing flexible re-entry
🤖 3Commas Integration
Fully automated webhook alerts for Custom Signal Bots
JSON payloads formatted per 3Commas API specifications
Supports multiple exchanges (Binance, Coinbase, Kraken, Gemini, Bybit)
Configurable quote currency (USD, USDT, BUSD)
How It Works
The strategy calculates a composite risk metric (0-1 scale):
0.0-0.2: Extreme buying opportunity (green zone)
0.2-0.5: Favorable accumulation range (yellow zone)
0.5-0.8: Neutral to cautious territory (orange zone)
0.8-1.0+: High risk, profit-taking zone (red zone)
Buy Logic: As risk decreases, position sizes increase automatically. If risk drops from L1 to L3 threshold, the strategy combines all three tier allocations for maximum exposure.
Sell Logic: Sequential profit-taking ensures you capture gains progressively. The system won't advance to Sell L2 until L1 completes, preventing premature full exits.
Configuration
Risk Metric Parameters:
All calculations use Bitcoin price data (any BTC chart works)
Time-normalized formulas adapt to market maturity
No manual parameter tuning required
Buy Settings:
Set risk thresholds for each tier (default: 0.20, 0.10, 0.00)
Define dollar amounts per tier (default: $10, $15, $20)
Fully customizable to your risk tolerance and capital
Sell Settings:
Configure risk thresholds for profit-taking (default: 1.00, 1.50, 2.00)
Set percentage of position to sell at each level (default: 25%, 35%, 40%)
3Commas Setup:
Create a Custom Signal Bot in 3Commas
Copy Bot UUID and Secret Token into strategy inputs
Enable 3Commas Alerts checkbox
Create TradingView alert: Condition → "alert() function calls only", Webhook → api.3commas.io
Backtesting Results
Strengths:
Systematically buys dips without emotion
Averages down during extended bear markets
Captures explosive bull run profits through tiered exits
Pyramiding (1000 max orders) allows true DCA behavior
Considerations:
Requires sufficient capital for multiple buys during prolonged downtrends
Backtest on Daily timeframe for most reliable signals
Past performance does not guarantee future results
Visual Design
The indicator pane displays:
Color-coded risk metric line: Changes from white→red→orange→yellow→green as risk decreases
Background zones: Green (buy), yellow (hold), red (sell) areas
Dashed threshold lines: Clear visual markers for each buy/sell level
Entry/Exit labels: Green buy labels and orange/red sell labels mark all trades
Credits
Original Risk Metric: Oakley Wood
Strategy Development & 3Commas Integration: Claude AI (Anthropic)
Modifications: pommesUNDwurst
Disclaimer
This strategy is for educational and informational purposes only. Cryptocurrency trading carries substantial risk of loss. Always conduct your own research and never invest more than you can afford to lose. The authors are not financial advisors and assume no responsibility for trading decisions made using this tool.
Volatility-Dynamic Risk Manager MNQ [HERMAN]Title: Volatility-Dynamic Risk Manager MNQ
Description:
The Volatility-Dynamic Risk Manager is a dedicated risk management utility designed specifically for traders of Micro Nasdaq 100 Futures (MNQ).
Many traders struggle with position sizing because they use a fixed Stop Loss size regardless of market conditions. A 10-point stop might be safe in a slow market but easily stopped out in a high-volatility environment. This indicator solves that problem by monitoring real-time volatility (using ATR) and automatically suggesting the appropriate Stop Loss size and Position Size (Contracts) to keep your dollar risk constant.
Note: This tool is hardcoded for MNQ (Micro Nasdaq) with a tick value calculation of $2 per point.
📈 How It Works
-This script operates on a logical flow that adapts to market behavior:
-Volatility Measurement: It calculates the Average True Range (ATR) over a user-defined length (Default: 14) to gauge the current "speed" of the market.
-State Detection: Based on the current ATR, the script classifies the market into one of three states:
Low Volatility: The market is chopping or moving slowly.
Normal Volatility: Standard trading conditions.
High Volatility: The market is moving aggressively.
Dynamic Stop Loss Selection: Depending on the detected state, the script selects a pre-defined Stop Loss (in points) that you have configured for that specific environment.
Position Sizing Calculation: Finally, it calculates how many MNQ contracts you can trade so that if your Stop Loss is hit, you do not lose more than your defined "Max Risk per Trade."
🧮 Methodology & Calculations
Since this script handles risk management, transparency in calculation is vital.
Here is the exact math used:
ATR Calculation: Contracts = Max Risk / Risk Per Contract
⚙️ Settings
You can fully customize the behavior of the risk manager via the settings panel:
Risk Management
-Max Risk per Trade ($): The maximum amount of USD you are willing to lose on a single trade.
Volatility Thresholds (ATR)
-ATR Length: The lookback period for volatility calculation.
-Upper Limit for LOW Volatility: If ATR is below this number, the market is "Low Volatility."
-Lower Limit for HIGH Volatility: If ATR is above this number, the market is "High Volatility." (Anything between Low and High is considered "Normal").
Stop Loss Settings (Points)
-SL for Low/Normal/High: Define how wide your stop loss should be in points for each of the three market states.
Visual Settings
-Color Theme: Switch between Light and Dark modes.
-Panel Position: Move the dashboard to any corner or center of your chart.
-Panel Size: Adjust the scale (Tiny to Large) to fit your screen resolution.
📊 Dashboard Overview
-The on-screen panel provides a quick-glance summary for live execution:
-Market State: Color-coded status (Green = Low Vol, Orange = Normal, Red = High Vol).
-Current ATR: The live volatility reading.
-Suggested SL: The Stop Loss size you should enter in your execution platform.
-CONTRACTS: The calculated position size.
-Est. Loss: The actual dollar amount you will lose if the stop is hit (usually slightly less than your Max Risk due to rounding down).
Who is this for?
-Discretionary and systematic futures traders on MNQ (/MNQ or MES also works with small adjustments)
-Anyone who wants perfect risk consistency regardless of whether the market is asleep or exploding
-Traders who hate manual position-size calculations on every trade
No repainting
Works on any timeframe
Real-time updates on every bar
Overlay indicator (no signals, pure risk-management tool)
⚠️ Disclaimer
This tool is for informational and educational purposes only. It calculates mathematical position sizes based on user inputs. It does not execute trades, nor does it guarantee profits. Past performance (volatility) is not indicative of future results. Always manually verify your order size before executing trades on your broker platform.
Nq/ES daily CME risk intervalNQ/ES Daily CME Range Indicator: Description and Usage
What the Indicator Does
Reverse engineering the risk interval for CME (Chicago Mercantile Exchange) products based on margin requirements involves understanding the relationship between margin requirements, volatility, and the risk interval (price movement assumed for margin calculation)
The CME uses a methodology called SPAN (Standard Portfolio Analysis of Risk) to calculate margins. At a high level, the initial margin is derived from:
Initial Margin = Risk Interval × Contract Size × Volatility Adjustment Factor
This indicator creates daily risk intervals for NQ/ES futures contracts based on volatility measurements given the fact that the CME volatility adjustment factor is not public.
The indicator draws horizontal lines on your chart that represent expected price movement ranges based on:
Your specified maintenance margin requirements
Current and historical volatility calculations
Contract lifecycle and rollover detection
The indicator automatically detects when futures contracts roll over to a new contract month, dynamically adjusts volatility calculations throughout the contract lifecycle, and displays the intervals as horizontal lines that extend from the previous day's close. These intervals give you a visual representation of likely price ranges for the current trading session.
How to Use the Indicator
To use this indicator effectively:
Add it to your NQ or ES futures chart (works on continuous contracts or individual contract months)
Set your maintenance margin amount in the risk interval settings (product margins page from the CME website. I tend to use the maintenance short margin)
The indicator will automatically draw horizontal lines at 18:00 ET each day
Use these lines as potential profit targets in volatile days
Monitor the information table for details on volatility, risk interval size, and contract lifecycle
The indicator helps you visualize expected price movement based on market volatility and your specified risk parameters, allowing you to make more informed trading decisions about position sizing and potential profit targets.
Additionally, when the market moves on news/events you will notice it will most often move exactly the risk interval value.
Why These Settings Work as Defaults
First Month Vol Period (30): The first 30 days after contract rollover typically have different volatility characteristics. This setting ensures accurate volatility measurements during this period when contract behaviour may be less stable.
Enable Volatility Floor (Checked): This prevents volatility from falling below historical levels, ensuring your risk intervals don't become too narrow during artificially calm periods. Research shows that protracted low volatility can lead to a build-up of leverage and risk, making the system vulnerable.
Volatility Floor % (0.7): The 0.7 setting works better than higher values because it better accounts for how equity volatility behaves at lower bounds. It allows for natural mean reversion while still providing protection against underestimating risk during low volatility periods.
Transition Period (30 days): This creates a smooth transition from the first month volatility period to the actual days since rollover calculation, preventing abrupt changes in your risk intervals.
Annual Trading Days (252): 252 is the standard number of trading days in a year used in financial calculations. This value is used for properly annualizing volatility measurements.
Long-Term Volatility Period (504): A 504-day period (approximately 2 years of trading days) provides several advantages over the standard 252-day setting. It better captures full market cycles including both bull and bear markets, provides more stable volatility estimates across regime changes, and results in more reliable risk intervals. Research shows this longer timeframe produces better volatility forecasts for futures markets, as it captures a more comprehensive range of market conditions while smoothing out anomalous periods.
The combination of these settings—particularly the 504-day long-term period with the 0.7 volatility floor—creates more stable and reliable risk intervals that adapt appropriately to changing market conditions without becoming overly sensitive to short-term fluctuations or too sluggish during genuine market shifts.
XAU BUY/SELL Scalping Strategy M5 PROFX:XAUUSD
This XAU/USD Pro Scalping Strategy is tailored specifically for the M5 timeframe , designed to capture rapid Gold price movements. Instead of relying on lagging indicators, this system utilizes advanced Price Action and Market Structure analysis to identify high-probability entry zones.
The core strength of this strategy lies in its built-in Money Management engine and Multi-threaded Trailing Stop system, ensuring capital preservation and profit maximization.
🚀 Key Features:
1. Smart Price Action Recognition:
The algorithm scans for specific market scenarios to apply dynamic Risk:Reward ratios (ranging from 1:1 to 1:3).
Filters out noise and false breakouts using multi-candle analysis.
Auto Position Sizing:
Calculates trade quantity automatically based on your defined Risk % per Trade .
Ensures consistent risk management regardless of the Stop Loss distance.
Intelligent Trailing Stop:
Uses a dynamic trailing mechanism based on "R" multiples (Risk Units).
Automatically secures profits by moving SL based on the specific setup type ("Case") of each trade.
Safety Filters:
Min SL and Max SL inputs prevent trades during periods of extremely low volatility or excessive risk.
⚙️ Settings:
Risk % per Trade: The percentage of equity to risk per trade (Recommended: 1.0% - 2.0%).
Min/Max SL Points: Dynamic boundaries for Stop Loss to adapt to current market volatility.
💡 Recommendations:
Symbol: XAUUSD / Gold - FXCM.
Timeframe: M5.
Best performance during London and New York sessions.






















