Triple Moving Averages Daily on Timeframe (10/20/50 with LabelsUnlike other MA's this give me on daily time frame irrespective of chart time
อินดิเคเตอร์และกลยุทธ์
Ichimoku Green BG by Pranojit DeyThis indicator shows ichimoku bulliush trend background so that the option buyers can understand bullish trend easily.
Fair Value Gaps (FVG)This indicator automatically detects Fair Value Gaps (FVGs) using the classic 3-candle structure (ICT-style).
It is designed for traders who want clean charts and relevant FVGs only, without the usual clutter from past sessions or tiny, meaningless gaps.
Key Features
• Bullish & Bearish FVG detection
Identifies imbalances where price fails to trade efficiently between candles.
• Automatic FVG removal when filled
As soon as price trades back into the gap, the box is deleted in real time – no more outdated zones on the chart.
• Only shows FVGs from the current session
At the start of each new session, all previous FVGs are cleared.
Perfect for intraday traders who only care about today’s liquidity map.
• Flexible minimum gap size filter
Avoid noise by filtering FVGs using one of three modes:
Ticks (based on market tick size)
Percent (relative to current price)
Points (absolute price distance)
• Right-extension option
Keep gaps extended forward in time or limit them to the candles that created them.
Why This Indicator?
Many FVG indicators overwhelm the chart with zones from previous days or tiny imbalances that don’t matter.
This version keeps things clean, meaningful, and real-time accurate, ideal for day traders who rely on market structure and liquidity.
Pin Bar Highlighter//@version=5
indicator("Pin Bar Highlighter", overlay=true)
body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
bullPin = (lowerWick >= body * 2) and (close > open)
bearPin = (upperWick >= body * 2) and (close < open)
bullColor = color.rgb(10, 20, 80)
bearColor = color.rgb(255, 20, 150)
barcolor(bullPin ? bullColor : bearPin ? bearColor : na)
EMA Stack Background HighlighterThis is a simple script that highlights my backround when my criteria for my context timeframe is met, specifically, price is above the 10 EMA, the 10 is above the 20, and the 20 is above the 50 for green and vice versa for red. I use this in a multi timeframe approach similar to mentfx's EVC criteria
US100 M5 - ESTRATEGIA GANADORA (Usuario) martinec130103jucale
"Use indicators, closed time window, no more than two trades per day, 45-minute cooldown between trades, strict stop loss."
Long-Term Strategy: 1-Year Breakout + 6-Month ExitDescripción (Description): (Copia y pega todo lo que está dentro del recuadro de abajo)
Description
This is a long-term trend-following strategy designed to capture major market moves while filtering out short-term noise. It is based on the classic principle of "buying strength" (Breakouts) and allowing profits to run, while cutting losses when the medium-term trend reverses.
How it Works (Logic)
1. Entry Condition (Long Only): The strategy looks for a significant display of strength. It enters a Long position only when two conditions are met simultaneously:
Price Breakout: The closing price exceeds the highest high of the last 252 trading days (approximately 1 year). This ensures we are entering during a strong momentum phase.
Trend Filter: The SuperTrend indicator (Settings: ATR 10, Factor 3.0) must be bullish. This acts as a confirmation filter to avoid false breakouts in choppy markets.
2. Exit Condition: The strategy uses a trailing stop based on price action, not a fixed percentage.
It closes the position when the price closes below the lowest low of the last 126 trading days (approximately 6 months).
This wide exit allows the trade to "breathe" during normal market corrections without exiting the position prematurely.
Settings & Risk Management
Capital Usage: The script is configured to use 10% of equity per trade to reflect realistic risk management (compounding).
Commissions: Included at 0.1% to simulate real trading costs.
Slippage: Included (3 ticks) to account for market execution variability.
Best Use: This strategy is intended for higher timeframes (Daily or Weekly) on trending assets like Indices, Crypto, or Commodities.
EMA 7/21 + SuperTrend INDICADOR CREADO PARA MI ESTRATEGIA That sounds like a complex and multi-layered trading indicator you've developed! Combining an Exponential Moving Average (EMA) crossover with an Average Directional Index (ADX) filter, a Volume filter, and a Supertrend for overall trend confirmation can certainly help to filter out false signals and potentially increase the reliability of your entry and exit points.Here's a breakdown of the components you're using and why this combination can be powerful:📊 Indicator Components and Their Roles1. 7/21 EMA Crossover (Signal Generator)The $7$-period EMA and $21$-period EMA crossover is a common strategy used to generate initial buy or sell signals.Buy Signal: The short-term EMA (7) crosses above the long-term EMA (21).Sell Signal: The short-term EMA (7) crosses below the long-term EMA (21).2. ADX DI Filter (Momentum and Direction)The Average Directional Index (ADX) and its directional indicators ($+DI$ and $-DI$) are key to confirming the strength and direction of the move.Directional Confirmation: The EMA crossover must be confirmed by the appropriate directional index. For a buy, the $+DI$ should be above the $-DI$. For a sell, the $-DI$ should be above the $+DI$.Trend Strength ( NYSE:ADX $): A rising NYSE:ADX $ (typically above 20 or 25) suggests the current trend has sufficient momentum, making the signal more reliable.3. Volume Filter (Conviction)Adding a Volume filter ensures that the price movement accompanying the EMA crossover is supported by significant trading activity.Confirmation: A strong signal (buy or sell) is often accompanied by above-average volume. This suggests that market participants are actively supporting the move, adding conviction to the trade.4. Supertrend (Overall Trend Confirmation)The Supertrend indicator is based on the Average True Range (ATR) and is excellent for identifying the dominant market trend.Trend Alignment: The EMA crossover signal should align with the Supertrend's current signal. For a buy signal, the price should be above the Supertrend line (green). For a sell signal, the price should be below the Supertrend line (red). This helps ensure you are trading with the prevailing trend.📈 Why This is a Powerful CombinationYour indicator is essentially a multi-stage confirmation system:Speed (7/21 EMA): Generates a fast, responsive signal.Momentum (ADX DI): Confirms the direction and strength of the signal.Conviction (Volume): Validates the signal with market participation.Safety/Trend (Supertrend): Ensures the trade is in the direction of the long-term trend.The Informative Panel is a great feature, as it simplifies the decision-making process by summarizing the findings of all these components—e.g., "BUY: EMA Crossover $\checkmark$, +DI > -DI $\checkmark$, High Volume $\checkmark$, Supertrend Green $\checkmark$."💡 Next Steps for RefinementTo finalize and test this indicator, you may want to consider:Parameter Optimization: The best settings for the ADX level (e.g., 20 vs. 25) and the Supertrend ATR parameters may need to be optimized for the specific asset (e.g., stocks, forex) and timeframe you are using.Exit Strategy: Since this primarily focuses on entries, define clear Stop-Loss (perhaps based on the Supertrend line or a recent swing low/high) and Take-Profit (e.g., a fixed Risk/Reward ratio or previous resistance/support levels) rules.Would you like to explore specific parameters for any of these components or look into ways to backtest your strategy?
Elite Correlation Matrix AIThe Elite Correlation Matrix AI indicator provides comprehensive real-time correlation analysis across multiple asset classes, displaying the interrelationships between equities, bonds, commodities, currencies, and volatility instruments.
The indicator calculates and displays correlation coefficients between a predefined set of major market indices and instruments, including:
• Major equity indices (SPY, QQQ, IWM)
• Long-term Treasury bonds (TLT)
• Gold (GLD)
• Crude oil (USO)
• Volatility (VIX)
• US Dollar Index (DXY)
• Bitcoin (BTCUSD)
Key features include:
• Rolling correlation calculations across user-defined periods to identify both short-term and longer-term relationships
• Visual correlation heat map showing the strength and direction of relationships between all tracked instruments
• Detection of correlation breakdowns, which often precede significant market regime shifts
• Dashboard display providing summary metrics of prevailing correlation patterns
The indicator enables users to monitor the current state of market relationships and identify when traditional correlations begin to break down, which frequently serves as an early warning of impending changes in market behavior. By tracking the degree of connectedness between different asset classes, the indicator provides insight into the current risk environment and the potential for diversification effectiveness.
This analysis is particularly valuable for understanding periods of market stress when asset relationships deviate from their normal patterns, as well as identifying environments where traditional correlations hold and where they are undergoing structural changes.
Trend Breakout & Ratchet Stop System [Market Filter]Description:
This strategy implements a robust trend-following system designed to capture momentum moves while strictly managing downside risk through a multi-stage "Ratchet" exit mechanism and broad market filters.
It is designed for swing traders who want to align individual stock entries with the overall market direction.
How it works:
1. Market Regime Filters (The "Safety Check") Before taking any position, the strategy checks the health of the broader market to avoid "catching falling knives."
Broad Market Filter: By default, it checks NASDAQ:QQQ (adjustable). If the benchmark is trading below its SMA 200, the strategy assumes a Bear Market and suppresses all new long entries.
Volatility Filter (VIX): Uses CBOE:VIX to gauge fear. If the VIX is above a specific threshold (Default: 32), entries are paused, and existing positions can optionally be closed to preserve capital.
2. Entry Logic Entries are based on Momentum and Trend confirmation. A position is opened if filters are clear AND one of the following occurs:
Golden Cross: SMA 25 crosses over SMA 50.
SMA Breakouts: A "Three-Bar-Break" logic confirms a breakout above the SMA 50, 100, or 200 (price must establish itself above the moving average).
3. The "Ratchet" Exit System The exit logic evolves as the trade progresses, tightening risk like a ratchet:
Stage 0 (Initial Risk): Starts with a standard percentage Stop Loss from the entry price.
Stage 1 (Breakeven/Lock): Once the price rises by Profit Step 1 (e.g., +10%), the Stop Loss jumps to a tighter level and locks there. This secures the initial move.
Stage 2 (Trailing Mode): If the price continues to rise to Profit Step 2 (e.g., +15%), the Stop Loss converts into a dynamic Trailing Stop relative to the Highest High. This allows the trade to run as long as the trend persists.
Additional Exits:
Dead Cross: Closes position if SMA 25 crosses under SMA 50.
VIX Panic: Emergency exit if volatility spikes above the threshold.
Settings & Customization:
SMAs: Adjustable lengths for all Moving Averages.
Filters: Toggle Market/VIX filters on/off and choose your benchmark ticker (e.g., SPY or QQQ).
Risk Management: Fully customizable percentages for the Ratchet steps (Initial SL, Stage 1 Trigger, Trailing distance).
Elite Commodities AIThe Elite Commodities AI indicator provides a comprehensive analytical framework designed specifically for commodities trading. It combines multiple technical components to assess price action within the unique characteristics of commodity markets.
The indicator incorporates the following key elements:
Multi-timeframe RSI analysis across the primary timeframe, 4-hour, and daily periods
Multiple exponential moving averages (fast, slow, and trend) to establish directional context
Volume rate analysis measuring current volume relative to recent average volume
Bollinger Band width analysis to identify periods of volatility contraction
True Range volatility expressed as a percentage of price
The indicator evaluates the interaction between momentum, trend structure, volume participation, and volatility dynamics, which are particularly significant in commodities markets due to their sensitivity to changes in supply-demand fundamentals and large institutional order flow.
By combining these analytical components, the indicator provides a layered assessment of price behavior that captures the interplay between trend development, momentum characteristics, participation levels, and volatility compression—key factors that drive commodity market movements.
This approach enables traders to identify significant price action within the context of prevailing market structure, making it suitable for analyzing both directional trends and consolidation periods that are common in commodity price behavior.2.2s
Elite Bond Market AIDescription:
The Elite Bond Market AI indicator provides a comprehensive analytical framework specifically designed for bond market price action. The indicator combines multiple technical components including multi-timeframe RSI analysis, moving average relationships, volume dynamics, and volatility measurements to identify significant price behavior within the unique characteristics of bond market trading.
The indicator incorporates:
Multi-timeframe RSI evaluation across primary, 4-hour, and daily timeframes
Fast, slow, and trend exponential moving averages for directional context
Volume rate analysis relative to recent average volume
Bollinger Band width measurement for volatility contraction assessment
True Range volatility normalized as a percentage of price
This combination provides a layered analytical approach that captures the interplay between momentum, trend structure, participation levels, and volatility compression—key factors in bond market price discovery and directional moves.
Kira EMA9 EMA21 VWAP ZONES//@version=5
indicator("Kira EMA9 EMA21 VWAP ZONES", overlay=true)
// === EMAs ===
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)
// === VWAP ===
vwapLine = ta.vwap(hlc3)
// === CONDITIONS ===
isBuy = ema9 > ema21 and close > vwapLine
isSell = ema9 < ema21 and close < vwapLine
noTrade = not isBuy and not isSell
// === PLOTS ===
plot(ema9, color=color.green, linewidth=2)
plot(ema21, color=color.red, linewidth=2)
plot(vwapLine, color=color.blue, linewidth=2)
// === BACKGROUND ZONES ===
bgcolor(isBuy ? color.new(color.green, 85) :
isSell ? color.new(color.red, 85) :
color.new(color.gray, 85))
// === BUY / SELL ARROWS EVERY BAR ===
plotshape(isBuy, title="BUY", style=shape.triangleup,
location=location.belowbar,
color=color.green, size=size.tiny)
plotshape(isSell, title="SELL", style=shape.triangledown,
location=location.abovebar,
color=color.red, size=size.tiny)
// === ALERTS ===
alertcondition(isBuy, title="BUY ZONE ACTIVE",
message="BUY zone active on {{ticker}}")
alertcondition(isSell, title="SELL ZONE ACTIVE",
message="SELL zone active on {{ticker}}")
Zone Levels (Range + ZoneHeight)This is a Template for drawing out zones from one ankerpoint zone.Just mark out the distance from one leveledge to the next and it will give you infinte more zoneedges in the same distance. You can also adjust the zone height if wanted (i used 10 as example).
I hope youll enjoy it
AJ
Local Watchlist Gauge v6The Local Watchlist Gauge displays a compact monitoring table for a user-defined list of symbols, showing their current trend status and performance relative to their 52-week high.
The indicator presents a table that simultaneously tracks multiple symbols and displays:
• Trend direction for each symbol, determined by whether the closing price is above or below a user-defined moving average
• Percentage distance from the 52-week high, providing a clear measure of recent performance relative to the yearly peak
Each symbol is displayed with:
Trend indicator showing whether the symbol is in an uptrend (above moving average) or downtrend (below moving average)
Distance from 52-week high expressed as a percentage, with color coding to indicate proximity to recent highs
Green indicates symbols trading within 5% of their 52-week high, orange indicates symbols between 5% and 20% below their 52-week high, and red indicates symbols trading more than 20% below their 52-week high.
The table provides an at-a-glance summary of the trend status and relative performance of all symbols in the specified watchlist, allowing users to quickly identify which instruments are maintaining trend strength near their recent highs and which have experienced significant pullbacks from their yearly peaks.
Dynamic Ratchet Trend Strategy [VIX Filter]Overview This strategy is a long-only trend-following system designed to capture major market moves while strictly managing downside risk through a state-machine based "Ratchet" exit logic. It incorporates a volatility filter using the CBOE VIX index to stay out of (or exit) the market during high-stress environments.
Key Features
1. Multi-Condition Entries The strategy looks for momentum shifts and trend breakouts using four Simple Moving Averages (25, 50, 100, 200).
Momentum Cross: SMA 25 crossover above SMA 50.
Trend Breakouts: A specific "3-Bar Breakout" logic above the SMA 50, 100, or 200. This requires the price to hold above the SMA for 3 consecutive bars after being below it, reducing false signals compared to simple closes.
2. VIX Volatility Filter Before entering any trade, the script checks the CBOE:VIX.
Filter: If VIX is above the threshold (default 32), new entries are blocked.
Panic Exit: If you are in a position and the VIX spikes above the threshold, the strategy executes an immediate "Panic Exit" to preserve capital during market crashes.
3. The "Ratchet" Exit System (3 Stages) Unlike a standard trailing stop, this strategy uses a 3-stage dynamic exit mechanism that tightens as profits grow:
Stage 0 (Initial Risk): Standard percentage-based Stop Loss from the entry price.
Stage 1 (The Lock-In): Triggered when profit hits 10% (configurable).
Unique Logic: Instead of trailing from the highest high, the stop is calculated based on the price at the exact moment this stage was triggered. It "steps up" once and holds, securing the initial move without being prematurely stopped out by normal volatility.
Stage 2 (Trailing Mode): Triggered when profit hits 15% (configurable).
The strategy switches to a classic Trailing Stop, following the percentage distance from the Highest High.
4. Emergency Backup A "Dead Cross" (SMA 25 crossing under SMA 50) acts as a final fail-safe to close positions if the trend reverses completely before hitting a stop.
Settings & Inputs
SMAs: Customize the lengths for all four moving averages.
VIX Filter: Toggle the filter on/off and set the panic threshold.
Exit Logic: Fully customizable percentages for Initial SL, Stage 1 Trigger/Distance, and Stage 2 Trigger/Trailing Distance.
Disclaimer This script is for educational purposes only. Past performance is not indicative of future results. Always manage your risk appropriately.
Granville 8-Rule Engine — v6Description:
The Granville 8-Rule Engine systematically implements Joseph Granville's eight original trading rules, which provide a comprehensive framework for interpreting price action relative to a moving average to identify genuine trend changes and avoid false signals.
Granville's methodology focuses on the critical relationship between price movement and the direction of the moving average, recognizing that valid trend changes and continuations exhibit specific behavioral patterns while false breakouts and reversals show characteristic divergences.
The indicator evaluates all eight of Granville's rules and assigns a composite score based on their fulfillment:
Bullish Rules:
Rule 1: Price crosses above a rising moving average (+3 points)
Rule 2: Price remains above a rising moving average after testing support (+2 points)
Rule 3: Price remains above a rising moving average after penetrating below it (+1 point)
Rule 4: Moving average changes from declining to rising (+1 point)
Bearish Rules:
Rule 5: Price crosses below a declining moving average (-3 points)
Rule 6: Price remains below a declining moving average after testing resistance (-2 points)
Rule 7: Price remains below a declining moving average after penetrating above it (-1 point)
The indicator incorporates volume confirmation by adding or subtracting additional points when significant volume accompanies the fulfillment of bullish or bearish rules, respectively.
A buy signal is generated when the composite score reaches +4 or higher, indicating multiple bullish rules are simultaneously satisfied. A sell signal is generated when the score reaches -4 or lower, indicating multiple bearish rules are in effect.
This systematic approach filters out many false breakout and whipsaw signals by requiring multiple confirmatory conditions rather than relying on simple moving average crossovers. The scoring mechanism provides a quantitative measure of the strength of the prevailing trend relationship, enabling traders to distinguish between genuine trend development and deceptive price movements that fail to confirm with the moving average direction.
The Granville 8-Rule Engine provides a disciplined, rule-based method for determining whether price movements represent valid trend continuation, genuine trend reversal, or potentially misleading counter-trend activity that is likely to fail. By requiring multiple confirmatory conditions from Granville's established rules, the indicator helps traders avoid premature entries and provides higher-probability signals for participating in sustained trend movements.
Moving Average 13 Exponential//@version=6
indicator(title="Moving Average 13 Exponential", shorttitle="EMA", overlay=true, timeframe="", timeframe_gaps=true)
len = input.int(9, minval=1, title="Length")
src = input(close, title="Source")
offset = input.int(title="Offset", defval=0, minval=-500, maxval=500, display = display.data_window)
out = ta.ema(src, len)
plot(out, title="EMA", color=color.yellow, offset=offset)
// Smoothing MA inputs
GRP = "Smoothing"
TT_BB = "Only applies when 'SMA + Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maTypeInput = input.string("None", "Type", options = , group = GRP, display = display.data_window)
var isBB = maTypeInput == "SMA + Bollinger Bands"
maLengthInput = input.int(14, "Length", group = GRP, display = display.data_window, active = maTypeInput != "None")
bbMultInput = input.float(2.0, "BB StdDev", minval = 0.001, maxval = 50, step = 0.5, tooltip = TT_BB, group = GRP, display = display.data_window, active = isBB)
var enableMA = maTypeInput != "None"
// Smoothing MA Calculation
ma(source, length, MAtype) =>
switch MAtype
"SMA" => ta.sma(source, length)
"SMA + Bollinger Bands" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
// Smoothing MA plots
smoothingMA = enableMA ? ma(out, maLengthInput, maTypeInput) : na
smoothingStDev = isBB ? ta.stdev(out, maLengthInput) * bbMultInput : na
plot(smoothingMA, "EMA-based MA", color=color.yellow, display = enableMA ? display.all : display.none, editable = enableMA)
bbUpperBand = plot(smoothingMA + smoothingStDev, title = "Upper Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
bbLowerBand = plot(smoothingMA - smoothingStDev, title = "Lower Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
fill(bbUpperBand, bbLowerBand, color= isBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display = isBB ? display.all : display.none, editable = isBB)
Volumen con línea promedio//@version=6
indicator("Volumen con línea promedio", overlay=false)
periodo = input.int(20, title="Período de media")
volumen = volume
mediaVolumen = ta.sma(volumen, periodo)
colorBarra = volumen > mediaVolumen ? color.green : color.red
plot(volumen, title="Volumen", style=plot.style_columns, color=colorBarra)
plot(mediaVolumen, title="Línea promedio", color=color.orange, linewidth=2, style=plot.style_line)
Smart Money Toolkit - PD Engine Bias Map [KedArc Quant]Description
Smart Money is an advanced multi-layer Smart Money Concepts framework that automatically detects structure shifts, premium-discount zones, and institutional order flow.
It is built around the PD Engine, which calculates the midpoint of the most recent market swing and dynamically determines BUY or SELL bias based on where current price trades relative to that equilibrium. This toolkit visualizes structure, order blocks, and bias context in one clean map, giving traders an institutional-grade view without unnecessary signal clutter.
Why It Is Unique
- All CHoCH, BOS, Order Block, FVG, and PD logic are coded from scratch.
- Uses true equilibrium (50 percent PD midpoint) for dynamic bias.
- Optimized for stability and non-repainting behavior.
- Designed for clarity with minimal, performance-safe visuals.
Entry and Exit Logic (Discretionary Framework)
- This toolkit is not a signal generator. It provides market context that guides discretionary trading.
BUY Bias (Discount Zone)
- Price trades below PD Mid: the market is in discount.
- Wait for a bullish CHoCH or reaction from a demand OB or FVG before buying.
- Target 1 = PD Mid. Target 2 = next opposite OB or FVG.
SELL Bias (Premium Zone)
- Price trades above PD Mid: the market is in premium.
- Wait for a bearish CHoCH or reaction from a supply OB or FVG before shorting.
- Target 1 = PD Mid. Target 2 = next opposite OB or FVG.
Institutional concept sequence: Bias → Structure Shift → Confirmation → Execution.
Input Configuration
Swing Sensitivity - Determines how far back to identify HH and LL pivots.
OB / FVG Detection - Toggles visual Order Block or Fair Value Gap zones.
PD Engine - Shows PD midpoint line, zone shading, and bias table.
Multi-TF Bias Sync - Optionally reads a higher timeframe bias for confirmation.
Color Themes - Switch between light, dark, or institutional palettes.
Formula / Logic Summary
Concept Formula
PD Mid (Equilibrium) (Recent Swing High + Recent Swing Low) / 2
BUY Bias close < PD Mid
SELL Bias close > PD Mid
CHoCH / BOS Pivot-based structure reversal: HH→LL or LL→HH
Order Block Last bullish or bearish candle before displacement.
FVG Gap between prior candle high/low and next candle range.
These formulas follow the structure used in institutional Smart Money Concepts.
How It Helps Traders
- Shows institutional premium and discount zones visually.
- Defines clear directional bias before entry.
- Combines structure, order blocks, FVG, and equilibrium in one layout.
- Works on any timeframe or asset.
- Prevents emotional trades by giving objective bias context.
Glossary
PD Mid Midpoint between recent swing high and low (market fair value).
Premium Zone Price above PD Mid; sellers control.
Discount Zone Price below PD Mid; buyers control.
CHoCH Change of Character, first reversal signal.
BOS Break of Structure, trend continuation confirmation.
OB Order Block, last institutional candle before move.
FVG Fair Value Gap, price imbalance often revisited.
FAQ
Q: Is this a signal indicator?
A: No. It is a contextual framework that supports manual decision-making.
Q: Does it repaint?
A: No. All structure logic is confirmed on bar close.
Q: Does it work on all markets?
A: Yes. It is purely price-based and timeframe independent.
Q: When does bias change?
A: Only after a new confirmed swing high or low.
Q: Can it be backtested?
A: You can build strategies on top of this context using your own entry and exit rules.
Disclaimer
This script is provided for educational purposes only.
It is not financial advice.
Trading carries risk. Past performance does not guarantee future results.
Use proper risk management and test on demo accounts before applying to live markets.
Ratchet Exit Trend Strategy with VIX FilterThis strategy is a trend-following system designed specifically for volatile markets. Instead of focusing solely on the "perfect entry," this script emphasizes intelligent trade management using a custom **"Ratchet Exit System."**
Additionally, it integrates a volatility filter based on the CBOE Volatility Index (VIX) to minimize risk during extreme market phases.
### 🎯 The Concept: Ratchet Exit
The "Ratchet" system operates like a mechanical ratchet tool: the Stop Loss can only move in one direction (up, for long trades) and "locks" into specific stages. The goal is to give the trade "room to breathe" initially to avoid being stopped out by noise, then aggressively reduce risk as the trade moves into profit.
The exit logic moves through 3 distinct phases:
1. **Phase 0 (Initial Risk):** At the start of the trade, a wide Stop Loss is set (Default: 10%) to tolerate normal market volatility.
2. **Phase 1 (Risk Reduction):** Once the trade reaches a specific floating profit (Default: +10%), the Stop Loss is raised and "pinned" to a fixed value (Default: -8% from entry). This drastically reduces risk while keeping the trade alive.
3. **Phase 2 (Trailing Mode):** If the trend extends to a higher profit zone (Default: +15%), the Stop switches to a dynamic Trailing Mode. It follows the **Highest High** at a fixed percentage distance (Default: 8%).
### 🛡️ VIX Filter & Panic Exit
High volatility is often the enemy of trend-following strategies.
* **Entry Filter:** The system will not enter new positions if the VIX is above a user-defined threshold (Default: 32). This helps avoid entering "falling knife" markets.
* **Panic Exit:** If the VIX spikes above the threshold (32) while a trade is open, the position is closed immediately to protect capital (Emergency Exit).
### 📈 Entry Signals
The strategy trades **LONG only** and uses Simple Moving Averages (SMAs) to identify trends:
* **Golden Cross:** SMA 25 crosses over SMA 50.
* **3-Bar Breakouts:** A confirmation logic where the price must close above the SMA 50, 100, or 200 for 3 consecutive bars.
### ⚙️ Settings (Inputs)
All parameters are fully customizable via the settings menu:
* **SMAs:** Lengths for the trend indicators (Default: 25, 50, 100, 200).
* **VIX Filter:** Toggle the filter on/off and adjust the panic threshold.
* **Ratchet Settings:** Percentages for Initial Stop, Trigger Levels for Stages 1 & 2, and the Trailing Distance.
### ⚠️ Technical Note & Risk Warning
This script uses `request.security` to fetch VIX data. Please ensure you understand the risks associated with trading leveraged or volatile assets. Past performance is not indicative of future results.
Best Entry Swing MASTER v3 PUBLIC (S.S)Strategy Description (English)
Best Entry Swing MASTER v3 – Quality Mode
The Best Entry Swing MASTER v3 is a structured swing trading and trend-following strategy designed to identify high-probability long and short entries during directional markets.
It combines three core setup types commonly used by momentum and breakout traders:
Breakout (BO)
Pullback Reversal (PB)
Volatility Contraction Pattern (VCP)
The strategy applies multiple layers of confirmation, including multi-EMA trend structure, volatility contraction, volume filters, and an optional market regime filter.
It is suitable for swing trading on higher timeframes (4H, Daily), as well as medium-term trend continuation setups.
Core Concepts
1. Trend Structure
A trend is considered valid when:
Uptrend: Price > EMA20 > EMA50 > EMA100
Downtrend: Price < EMA20 < EMA50 < EMA100
In addition, a simple but effective trend-strength metric is calculated using the percentage spread between EMA20 and EMA100.
This helps avoid signals during sideways or low-volatility environments.
2. Market Regime Filter
The market environment is determined using a higher timeframe benchmark (default: SPY on Daily).
Only long trades are allowed in bullish market conditions
Only short trades in bearish conditions
This significantly reduces false signals in counter-trend conditions.
Entry Logic
Breakout (BO)
A long breakout triggers when:
Price closes above the highest high of the lookback period
Volume exceeds its 20-period average
Trend and market regime confirm
(Optional A+ mode): true volatility contraction is required
Similar logic applies for short breakdowns.
Pullback (PB)
A pullback entry triggers after:
At least two corrective candles
A strong reversal candle (close above previous high for long)
Volume confirmation
Price interacts with EMA20
This structure models classical trend-reentry conditions.
Volatility Contraction Pattern (VCP)
A VCP entry triggers when:
True range contracts over multiple bars
Price holds near the breakout zone
Volume contracts
Trend and market regime are aligned
This setup aims to capture explosive continuation moves.
Quality Modes
The strategy offers two modes:
Balanced Mode
Moderate signal frequency
Broader trend-strength allowance
Suitable for more active traders
A+ Only Mode
Strict confirmation requirements
Only high-quality setups with multiple confluences
Designed to avoid low-probability trades entirely
Risk Management
Risk is managed using an ATR-based stop and target:
Long SL = Close − ATR × 1.5
Long TP = Close + ATR × 3
(Equivalent logic for short positions)
This provides a balanced reward-to-risk profile and avoids overly tight stops.
Early Entry Signals (Optional)
The script offers optional “Early Entry” markers that highlight when a setup is forming but not yet confirmed.
These are not entry signals and are disabled by default for public use.
Intended Use
This strategy is designed for:
Swing trading
Momentum continuation
Trend-following
Multi-day to multi-week trades
It performs best on:
4H
Daily
High-liquidity equities, indices, and futures
Disclaimer
This script is intended for educational and research purposes.
Past performance does not guarantee future results.
Always backtest thoroughly and use appropriate risk management.






















