Indicador

Indicador

Estratégia

Indicador

Indicador

Indicador

ADX SuperTrend | RakoQuantADX SuperTrend by RakoQuant is a volatility-based trend system that adapts dynamically to market regime strength using ADX.
Instead of running a fixed SuperTrend multiplier across all conditions, this tool uses trend strength (ADX) to scale the ATR multiplier in real-time:
* Low trend strength → tighter bands (more responsive)
* High trend strength → wider bands (more stable, fewer whipsaws)
This makes it ideal for traders who want a SuperTrend that becomes more forgiving in real trends and more reactive in chop, without switching indicators.
RakoQuant Architecture
1. Baseline + ATR Framework (SuperTrend Core)
The system uses a clean and familiar SuperTrend foundation:
* EMA Baseline for structure
* ATR for volatility
* Classic trailing-band logic to maintain trend continuity
This ensures the indicator remains consistent, backtestable, and strategy-friendly.
2. ADX Adaptive Multiplier Engine (The Edge)
The key feature is the ADX-driven multiplier boost.
ADX is normalized into a 0..1 scale between a user-defined floor and ceiling:
* Below ADX Floor → treated as weak/no trend
* Above ADX Ceiling → treated as max trend strength
That normalized value is then transformed with a power curve and mapped into a multiplier scaling range:
Effective Multiplier = Base Multiplier × Scale(ADX)
Where Scale is capped by Max Boost and shaped by Boost Power.
This gives you a controllable “adaptive stability” system:
* Smooth and stable during real trends
* Fast and sensitive when the market is indecisive
3. Optional Momentum Confirmation
To reduce low-quality flips, the script includes an optional momentum gate:
* Baseline slope normalized by ATR
* Requires slope strength alignment before confirming a flip
This helps suppress false transitions that occur from volatility spikes without trend structure.
Signal Model (Backtest-Ready)
ADX SuperTrend uses the standard RakoQuant state logic:
* Bullish Regime when SuperTrend is in bullish mode (dir < 0)
* Bearish Regime when SuperTrend is in bearish mode (dir > 0)
Clear state flips are produced:
* Bull Flip → trend turns UP
* Bear Flip → trend turns DOWN
Signals are designed for:
* Strategy conversion
* Consistent backtests
* Alert automation
Visual System (Open-Source Friendly)
ADX SuperTrend includes a lightweight visual framework:
* Multiple palettes (RakoQuant Neon, Classic, Gold/Indigo, Ocean/Coral, Mono)
* Line style options (Line Break / Line / Step)
* Multi-layer glow (outer + inner)
* Optional fill (to mid or to price)
* Candle painting toggle
* Marker style toggle (Labels / Triangles / Off)
Everything is modular and can be disabled if you want “signals-only” behavior.
Practical Use Cases
Trend Traders
* Use adaptive widening to avoid premature exits in strong trends.
Chop Filtering
* Use ADX floor/ceiling logic to reduce whipsaws and tighten reaction.
System Builders
* Works cleanly inside larger confluence systems.
* State variable and flip signals map directly to backtest engines.
Design Philosophy (RakoQuant)
This indicator follows the RakoQuant approach:
* Adaptive behavior > static parameters
* Regime-sensitive risk control > fixed multipliers
* Trend strength drives volatility allowance
* Clean outputs built for backtesting
Chart Example
Indicador

Indicador

Adaptive Channel Breakout [MarkitTick]💡 This script is a trend-following system designed to identify high-probability breakout opportunities while rigorously filtering out market noise. By synthesizing volatility (ATR), trend strength (ADX), and price extremes (Donchian logic), this indicator attempts to solve the classic problem of false breakouts in ranging markets. It features a regime-detection engine that dynamically adjusts the visual feedback and signal generation based on whether the market is trending or consolidating.
✨ Originality and Utility
Most breakout indicators rely solely on price crossing a fixed threshold (like a 20-day High). However, these systems often fail in "choppy" markets where price seeks liquidity above highs before reversing. This script innovates by:
Volatility-Adjusted Bounds: It does not simply track the Highest High or Lowest Low. Instead, it retracts the channel bounds by a multiple of the Average True Range (ATR). This creates a "tightened" breakout requirement—price must not only make a new high but do so with enough momentum to overcome the volatility threshold. Regime Filtering: Integrated ADX/DMI logic categorizes the market into Bull, Bear, or Range. Signals are filtered to align with the dominant regime (e.g., no Longs are permitted if the internal structure is Bearish). Logarithmic Scaling: A unique feature allowing calculations to be performed on Logarithmic price data, making it highly suitable for parabolic assets like Crypto or small-cap stocks where linear percentage moves vary drastically. Time-Based Exits: Recognizes that "stale" trades—those that do not perform immediately—often turn into losses, and provides visual cues to exit if momentum stalls.
🔬 Methodology and Concepts
The core logic operates on a three-stage pipeline:
1. Market Regime Classification The script utilizes the Directional Movement Index (DMI) and Average Directional Index (ADX) to determine the state of the market. Trending: Defined as ADX > Threshold (default 25). Range: Defined as ADX < Threshold. Direction: Determined by the relationship between DI+ and DI-.
2. Adaptive Channel Construction The channels are calculated using a modified Donchian/ATR hybrid approach: Upper Band: Highest High (N) minus (ATR × Multiplier) . Lower Band: Lowest Low (N) plus (ATR × Multiplier) . Note: By subtracting ATR from the High, the Upper Band acts as a trailing resistance level that gets closer to price as volatility decreases, allowing for earlier entries during volatility squeezes.
3. Signal Generation & Filtering Long Signal: Price crosses over the Upper Band, provided the market is in a Bull or Range regime. Short Signal: Price crosses under the Lower Band, provided the market is in a Bear or Range regime. Stale Exit: If a signal is generated but price fails to reverse or progress significantly within a user-defined bar limit (default 10), a "Time Exit" warning is triggered.
🎨 Visual Guide
The indicator is designed for immediate visual interpretation through color-coding and dashboard analytics.
● Channel Bands Upper Line: Represents the dynamic resistance/breakout level. Lower Line: Represents the dynamic support/breakout level. Color Logic: Gray: Indicates the opposing side of the trend (e.g., Upper band is gray during a downtrend). Green: Active Upper Band during a Bullish phase. Red: Active Lower Band during a Bearish phase.
● Background Fills (Market Regime) The space between the channels is filled to indicate the current market state: Green Fill: Bullish Trend (ADX High, DI+ > DI-). Red Fill: Bearish Trend (ADX High, DI- > DI+). Yellow Fill: Range/Accumulation (ADX Low). Breakouts from Yellow zones are often the most explosive.
● Signal Shapes Green Triangle (Below Bar): Valid Long Breakout Signal. Red Triangle (Above Bar): Valid Short Breakout Signal. Orange "X" (Below Bar): Time Exit/Stale Trade. Indicates the trade has not progressed after N bars.
● Dashboard (Top Right) A table displaying real-time metrics: Market Regime: Explicitly states TREND (Bull/Bear) or RANGE. Volatility: Displays the current ATR value. ADX Strength: Shows the ADX value, highlighting it in white if it is above the trending threshold.
📖 How to Use
For Trend Following Wait for the background color to transition from Yellow (Range) to Green (Bull) or Red (Bear). This signifies a volatility expansion from a consolidation period. Enter on the corresponding Triangle signal.
For Risk Management Stop Loss: The script calculates suggested Stop Losses (SL) based on the opposite channel band. Stale Exits: If you see an Orange "X" appear after entering a trade, consider closing the position or tightening stops, as the momentum impulse has faded.
For Crypto/Parabolic Assets Enable the "Use Logarithmic Scale" setting in the inputs. This normalizes the volatility calculations, preventing the bands from becoming too wide during exponential price increases.
⚙️ Inputs and Settings
Adaptive Parameters Lookback Length (20): The period for High/Low and ATR calculations. ATR Multiplier (3.2): Determines the width of the channel. Higher values reduce false signals but delay entry. (3.2 is tuned for outlier detection). Use Logarithmic Scale: Toggles math.log() calculations for High, Low, and Close.
Filters & Exits ADX Threshold (25): The level at which the market is considered "Trending." Time Exit (Bars) (10): The number of bars allowed for a trade to "work" before being flagged as stale.
UI / Dashboard Show Analytics Dashboard: Toggles the on-screen information table. Size: Adjusts the text size of the dashboard (Tiny, Small, Normal).
🔍 Deconstruction of the Underlying Scientific and Academic Framework
1. Outlier Detection Theory The script uses an ATR Multiplier of 3.2. In normal statistical distributions, 3 standard deviations cover 99.7% of data points. While financial markets are leptokurtic (fat-tailed), a multiplier of 3.2 on the ATR effectively acts as an outlier filter. A breach of this band signifies a price movement that is statistically significant relative to recent noise, suggesting a structural shift in supply/demand rather than random variance.
2. Heteroscedasticity Handling By including a Logarithmic option, the script addresses heteroscedasticity—the phenomenon where the variability of a variable is unequal across the range of values. In simpler terms, a $100 move in Bitcoin at $1,000 is different from a $100 move at $60,000. Using log-returns (math.log) ensures the channel width remains proportionally relevant regardless of the asset's absolute price level.
3. Trend Efficiency (ADX) The integration of J. Welles Wilder’s ADX serves as a filter for "Trend Efficiency." Breakout systems suffer drawdown in mean-reverting markets. By mathematically requiring ADX > 25, the model attempts to trade only when the autocorrelation of price changes is positive (trending behavior), thereby increasing the expectancy of the breakout signal.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicador

Momentum ChecklistMomentum Checklist - Visual Trading Dashboard
A clean, easy-to-read dashboard that displays key momentum indicators in one convenient table. This indicator helps traders quickly determine the directional bias of price action by combining ADX, Directional Movement Index (DMI), and Money Flow Index (MFI).
What It Shows:
ADX (Average Directional Index): Measures trend strength. Green checkmark appears when ADX ≥ 20, indicating a strong trending market
DI+ (Positive Directional Indicator): Tracks upward price movement
DI- (Negative Directional Indicator): Tracks downward price movement
MFI (Money Flow Index): Volume-weighted momentum indicator. When > 50 indicates bullish money flow
Bias: Automatically calculates directional bias:
LONG: When DI+ > 25 and DI- < 20
SHORT: When DI- > 25 and DI+ < 20
NEUTRAL: When conditions are mixed
Trading Strategy:
This indicator helps determine the bias of price movement in a certain direction. When coupled with Bollinger Bands, it becomes a very powerful combination to catch those big explosive moves up or down. The momentum confirmation from this checklist combined with Bollinger Band squeezes or breakouts can significantly improve entry timing.
Recommended Usage:
Timeframes: 5-minute to 15-minute charts for optimal performance
Best Assets: US30, XAUUSD (Gold), BTCUSD, and most major indices
Works exceptionally well on volatile instruments with strong directional moves
Features:
Color-coded cells for instant visual confirmation
Customizable position (Top Right, Top Left, Bottom Right, Bottom Left)
Adjustable text size (Tiny, Small, Normal)
Configurable ADX, DMI, and MFI period settings
Perfect for day traders and scalpers looking for quick momentum confirmation before entering trades! Feel free to adjust any part of this description to match your style! 🎯 Indicador

Adaptive Buy Sell Signal [AvantCoin]
A comprehensive customized indicator for different markets
🔴Before you start🔴:
Please note that this tool is designed to assist you in analyzing the market, and NOT to make buy/sell decisions for you. You should combine its data with your own strategies and indicators before making any trading choices
====================
Market-Specific Optimizations
Auto-Detection (or Manual Selection)
It automatically detects which market you're trading:
Forex (EUR/USD, GBP/USD, etc.)
Stocks (AAPL, TSLA, etc.)
Indices (NAS100, SPX, etc.)
Commodities (Gold, Silver, Oil)
Crypto (BTC, ETH, etc.)
avantcoin.com
Forex-Specific Features:
✅ Session Filters: Avoids low-liquidity Asian session
✅ Session backgrounds: Green for London/NY overlap (best trading time)
✅ Tighter ADX threshold (20) - good for Forex trends
✅ Lower volatility filter - skips dead zones
⚙️ Min Confluence: 5 (balanced)
⚙️ Cooldown: 5 bars
⚙️ Volume threshold: 1.3x (Forex has consistent volume)
avantcoin.com
Stocks-Specific Features:
✅ Market hours filter: Only signals during NYSE hours.
✅ Gap detection: Avoids trading immediately after large gaps up/down
✅ Higher ADX threshold (22) - Stocks trend differently
✅ Stricter volume requirement (1.5x) - Stocks vary more
⚙️ Min Confluence: 6 (higher quality)
⚙️ Cooldown: 3 bars (stocks move faster)
Indices (Nasdaq, S&P; 500):
✅ Similar to stocks but slightly more lenient
✅ Lower ADX (18) - Indices are smoother
⚙️ Min Confluence: 5
⚙️ Cooldown: 4 bars
Commodities (Gold, Silver, Oil):
✅ Highest ADX requirement (23) - Only trade strong trends
✅ Higher volatility filter (1.6x) - Commodities can be wild
⚙️ Min Confluence: 6
⚙️ Cooldown: 6 bars (avoid whipsaws)
Crypto:
✅ 24/7 trading (no session restrictions)
✅ Lower ADX (15) - Crypto is always volatile
✅ Much higher volume threshold (2.0x) - Crypto volume spikes
⚙️ Min Confluence: 4 (crypto moves fast)
⚙️ Cooldown: 3 bars
📊 Visual Enhancements:
Market Type Badge at top of table (Forex, Stocks, etc.)
Session Status:
Forex: Shows 🟢 LDN/NY, 🔵 London, 🟠 NY, 🔴 Asian
Stocks: Shows 🟢 Open or 🔴 Closed
Session Background Colors on chart (optional)
Current Settings Display: Shows your Min score, ADX threshold, Cooldown
⚙️ How to Use:
For Forex:
Enable "Avoid Asian Session"
Best signals during London/NY overlap
For Stocks:
Enable "Trade Stock Hours Only"
Watch for gap warnings
avantcoin.com Indicador

Filtered Percentile OscillatorFiltered Percentile Oscillator (FPO | MisinkoMaster)
The Filtered Percentile Oscillator is a modern trend-following tool designed to combine the power of percentile ranking with adaptive trend strength filtering. By integrating a filter based on ADX strength, this oscillator aims to reduce noise and improve signal quality, helping traders identify more reliable bullish and bearish momentum zones.
This indicator works well across different markets, especially where volatility and trend clarity fluctuate. Although it can be noisy at times, the intelligent filtering mechanism provides strong potential for spotting actionable trend signals.
🔍 Concept & Idea
The idea behind the Filtered Percentile Oscillator is to use the percentile rank of price changes as a normalized measure of momentum, then apply an adaptive filter based on the Average Directional Index (ADX) to adjust sensitivity dynamically.
By combining these two concepts:
The Percentile Oscillator captures how extreme the current price is relative to recent price history.
The ADX-based filter adjusts threshold levels and confirms if the market is trending strongly enough to trust these percentile signals.
This dual-filtering mechanism improves the indicator’s ability to avoid false signals caused by noisy or non-trending environments.
⚙️ How It Works
The indicator calculates the Percentile Rank of the user-selected price source over a defined length (len). This percentile oscillator oscillates between -100% and +100%, reflecting relative price positioning.
It calculates the ADX and its percentile rank over a separate filter length (adx_len and ap_len) to estimate trend strength and market activity.
A combined potential filter checks if the sum of the absolute percentile oscillator and ADX percentile exceeds a user-defined threshold (pot_t). This filter controls whether signals are considered valid.
Thresholds for long and short signals dynamically adapt based on whether the ADX percentile exceeds the filter threshold (adx_t):
When strong trend strength is detected (ADX percentile > threshold), tighter upper and lower thresholds (ut and lt) apply to capture sharper trend signals.
When trend strength is weaker, wider thresholds (utm and ltm) are used to filter noise and reduce false signals.
Trend states are determined by comparing the percentile oscillator to these adaptive thresholds and validating the potential filter condition.
Overbought and oversold zones are also plotted for identifying potential reversal or exhaustion areas.
🧩 Inputs Overview
Length – Controls the lookback period for the Percentile Oscillator calculation (default 29).
Source – The price data source used for oscillator calculation (default: close).
Filter Length – Lookback period for ADX calculation used as a filter (default 12).
Filter % Length – Length used to calculate the percentile rank of the ADX filter (default 8).
Trending Upper Threshold – Upper bound for bullish signals when trend strength is strong (default 10).
Trending Lower Threshold – Lower bound for bearish signals when trend strength is strong (default -10).
Ranging Upper Threshold – Upper bound for bullish signals when trend strength is weak (default 15).
Ranging Lower Threshold – Lower bound for bearish signals when trend strength is weak (default -15).
Sum Filter Threshold – Minimum combined percentile value required to validate signals (default 100).
Filter Threshold – Minimum ADX percentile value required to switch to tighter thresholds (default 50).
Overbought – Level indicating overbought conditions for the oscillator (default 80).
Oversold – Level indicating oversold conditions for the oscillator (default -80).
📌 Usage Notes
Adaptive Filtering: The indicator dynamically adjusts sensitivity to market trend strength, reducing false signals during ranging or low-activity periods.
Normalized Momentum: Using percentile ranks allows comparison across different instruments and timeframes on a consistent scale.
Trend Confirmation: The ADX percentile filter ensures signals are stronger and more reliable when the market is trending.
Visual Guidance: Colored plots, threshold lines, and background fills improve signal interpretation and decision-making.
Customization: Thresholds and lengths can be fine-tuned for different markets or trading styles.
Complementary Use: Best combined with volume analysis, price action, or other indicators for comprehensive trade confirmation.
Backtest First: Always validate settings on historical data to match your preferred instrument and timeframe before live trading.
⚠️ Disclaimer
This indicator is provided solely for educational and analytical use. It is not financial advice. Trading involves risk, and users should perform their own due diligence before making trading decisions.
Enjoy improved trend filtering with the Filtered Percentile Oscillator! Indicador

Indicador

Indicador

Hull DMI - MattesHull DMI - Mattes
A Directional Movement Index enhanced with Hull Moving Average smoothing for refined trend detection.
This indicator reimagines the classic Directional Movement Index (DMI) by incorporating Hull Moving Average (HMA) smoothing on high and low prices. It calculates the +DI and -DI components based on changes in these hulled values, then derives the ADX for trend strength. The core plot displays the difference between +DI and -DI, colored to indicate bullish (blue) or bearish (purple) dominance when ADX is rising. Additionally, it overlays colored candles on the price chart to visually represent the prevailing trend direction.
Key Features:
Hull-Smoothed Inputs: Applies HMA to highs and lows before computing directional changes, reducing noise and lag compared to standard DMI.
Customizable Lengths: Adjustable periods for HMA, DI, and ADX smoothing to suit various timeframes and assets.
Trend Visualization: Plots DI difference with dynamic coloring and overlays trend-colored candles for at-a-glance analysis.
Alert Conditions: Built-in alerts for long (bullish) and short (bearish) signals when conditions shift.
How It Differs from Standard DMI/ADX:
Unlike the traditional DMI, which uses raw price changes and true range, this version employs Hull Moving Averages on highs and lows for smoother, more responsive directional calculations. This minimizes whipsaws in choppy markets while preserving sensitivity to genuine trends. The ADX is integrated to filter signals, ensuring color changes and alerts only occur during strengthening trends, setting it apart from basic oscillator-based indicators. Why It's Useful:
Enhanced Trend Identification: The HMA smoothing provides clearer signals in volatile environments, helping traders spot emerging trends earlier.
Visual Clarity: Colored DI plot and candle overlays make it easy to interpret market bias without cluttering the chart.
Versatility: Suitable for stocks, forex, crypto, and more; excels in trend-following strategies or as a filter for other systems.
Risk Management Aid: By focusing on ADX-confirmed moves, it reduces false signals, potentially improving win rates in systematic trading.
This Hull DMI variant offers several practical advantages that can directly improve trading decisions and performance:
Reduced Lag with Smoother Signals: By applying Hull Moving Average smoothing to highs and lows, the indicator responds faster to genuine trend changes than the standard DMI while filtering out much of the noise that causes false signals in ranging or choppy markets. Traders get earlier entries into trending moves without excessive whipsaws.
Built-in Trend Strength Filter: The optional ADX confirmation (enabled by default) ensures bullish signals and blue coloring only activate when trend strength is increasing (ADX rising). This helps traders avoid entering long positions during weakening or sideways trends, focusing capital on higher-probability setups.
Clear Visual Bias at a Glance: The single oscillator line (+DI – -DI) centered on zero, combined with dynamic blue/purple coloring and full candle overlay on the price chart, instantly shows the dominant trend direction. No need to interpret multiple lines—traders can quickly assess market bias across multiple charts or timeframes.
Versatile Across Markets and Styles: Works effectively on stocks, forex, futures, and cryptocurrencies. Trend-following traders can use it standalone for entries/exits, swing traders can use it for bias confirmation, and scalpers/day traders benefit on lower timeframes due to the reduced lag.
Improved Risk Management: By prioritizing ADX-confirmed directional moves, the indicator naturally filters low-conviction setups. This can lead to higher win rates and better risk-reward ratios when used systematically, especially when combined with proper stop-loss placement below/above recent swings.
Easy Integration: Built-in alert conditions and simple long/short logic make it straightforward to incorporate into automated strategies, watchlists, or as a confirming filter alongside other indicators (e.g., moving averages, RSI, volume profile).
Customizable Sensitivity: Separate inputs for Hull length, DI period, and ADX smoothing allow traders to optimize the indicator for specific assets, volatility regimes, or personal trading horizons—making it adaptable rather than one-size-fits-all.
Signals & Interpretation
The oscillator plots the difference between +DI and -DI (positive = bullish dominance, negative = bearish).
Bullish Signal (Long): +DI crosses above -DI, and (if ADX confirmation enabled) ADX is rising — triggers blue coloring, candle overlay, and long alert.
Bearish Signal (Short): -DI crosses above +DI — triggers purple coloring, candle overlay, and short alert.
Zero line acts as neutrality; crossings indicate potential trend shifts.
Best used in trending markets; ADX rising filter helps avoid whipsaws.
// Example Usage in Strategy
strategy("Hull DMI Strategy Example", overlay=true)
if L
strategy.entry("Long", strategy.long)
if S
strategy.entry("Short", strategy.short)
Great Inventions Require great care
Disclaimer: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Past performance is not indicative of future results. Always backtest thoroughly on your specific assets and timeframes, and consult a qualified financial advisor before making trading decisions. The author assumes no responsibility for any losses incurred from its use. Indicador

Indicador

Adaptive Trend Mapper-ATM [Arjo]Adaptive Trend Mapper (ATM) is a directional pressure indicator designed to visualize how buying and selling commitment evolves during market trends.
Instead of focusing on price direction alone, ATM maps who is exerting stronger pressure —buyers or sellers—and how that pressure expands, weakens, or compresses over time.
Idea
ATM is built around a single concept:
Directional pressure is best understood by weighting trend strength against directional imbalance .
To achieve this, the indicator transforms trend strength into two opposing pressure measures:
Bull Pressure Index
Bear Pressure Index
These indices expand, contract, and converge based on how strongly buyers or sellers are committing, rather than simply tracking momentum or price changes.
How It Works
1. Bull & Bear Pressure Indices
ATM derives two pressure curves by weighting trend strength against directional imbalance:
The Bull Pressure Index increases when upward pressure strengthens.
The Bear Pressure Index increases when downward pressure strengthens.
Both indices operate on a 0–100 scale and are designed to diverge during strong trends and converge during non-directional or compressed phases.
Optional smoothing can be applied to reduce noise and improve readability.
2. Compression / Squeeze Detection
When:
Trend strength weakens,
Bull and Bear pressure converge,
And convergence continues over time,
ATM highlights a compression zone, signaling reduced directional conviction.
These zones often precede directional expansion once pressure rebuilds.
3. Adaptive Trend Context
An adaptive smoothed price curve is displayed on the chart to provide trend context.
Color changes reflect short-term directional shifts, helping align pressure signals with price structure.
This component is contextual only and does not generate signals by itself.
4. Optional Trend Bias Reference
An optional EMA-50 can be enabled to help identify broader directional bias and align pressure behavior with the prevailing trend.
5. Step-Based Visualization
The pressure indices can be optionally step-compressed, improving clarity on fast or noisy charts by reducing minor fluctuations.
How to Use ATM
Rising Bull Pressure → strengthening buyer commitment
Rising Bear Pressure → strengthening seller commitment
Wide separation between indices → strong directional trend
Convergence with compression highlight → range or pre-breakout environment
Notes
ATM uses widely known market concepts such as trend strength, directional imbalance, and adaptive smoothing as conceptual inputs.
All calculations, pressure mapping logic, and compression detection are original implementations developed specifically for this script.
ATM is effective when used to assess participation quality, not as a standalone signal generator.
Disclaimer
This indicator is intended for analysis and educational purposes only.
It does not generate buy or sell signals.
Always apply proper risk management.
Happy Trading. Indicador

VIOP Scalping - OriginalVIOP Scalping – Original is a rule-based scalping strategy ported from an original C# logic set. It aims to trade only when trend direction, momentum, and trend strength align, then manages the position using fixed take-profit/stop-loss percentages with an optional trailing mechanism to protect gains during favorable moves.
This strategy is provided for educational and backtesting purposes only. It is not financial advice and does not guarantee profitability. Always test thoroughly before any live usage.
Core Concept
Follow the dominant WMA trend, confirm momentum with EMA separation, filter conditions with RSI + ADX, then exit using fixed TP/SL with trailing behavior after a defined profit threshold.
How the Strategy Works
Trend Direction is defined by WMA: above WMA = long bias, below WMA = short bias.
Momentum is measured via Fast EMA vs Slow EMA and the EMA difference.
Trend Strength is confirmed using ADX (must exceed a threshold).
RSI filters trades to avoid entering when momentum is likely overextended or weak.
A no-trade session blocks entries during a predefined time window (default 09:30–10:05).
Exit logic uses fixed percent TP/SL, with an optional trailing mechanism that activates after a profit threshold.
Inputs and Settings
Trend and Indicator Settings
Main Trend WMA: Determines directional bias (price above = long, price below = short).
Fast EMA / Slow EMA: Used to measure momentum and directional separation.
RSI Period: Filters entries based on RSI range constraints.
ADX Period: Measures trend strength (must exceed threshold to allow entries).
Threshold Settings
EMA Difference Threshold: Minimum EMA separation required to validate momentum.
ADX Threshold: Minimum ADX required to confirm trend strength.
RSI Long Ceiling: RSI must remain below this value for long entries.
RSI Short Floor: RSI must remain above this value for short entries.
Risk Management Settings
Take Profit %: Default TP distance in percent.
Strong Trend Take Profit %: Higher TP used when a “strong trend” condition is detected.
Stop Loss %: Fixed SL distance in percent.
Trailing Activation %: Profit threshold at which trailing starts.
Trailing Distance %: Trailing offset distance used once trailing is active.
Time Filter
No-Trade Hours: Default session is 09:30–10:05. During this window, the strategy does not open new trades.
Entry Logic
No-Trade Time Filter
If the current bar falls inside the no-trade session, entries are blocked.
Long Entry Conditions
Price is above the WMA trend line.
EMA difference is positive and greater than the EMA Difference Threshold.
EMA momentum is increasing (current EMA diff > previous EMA diff).
RSI is within the defined range (RSI > 48 and RSI < RSI Long Ceiling).
Close is higher than the previous close.
ADX is above the ADX Threshold.
Short Entry Conditions
Price is below the WMA trend line.
EMA difference is negative and lower than -EMA Difference Threshold.
Bearish momentum is increasing (current EMA diff < previous EMA diff).
RSI is within the defined range (RSI < 52 and RSI > RSI Short Floor).
Close is lower than the previous close.
ADX is above the ADX Threshold.
Strong Trend Logic (Dynamic TP Selection)
If price is far from the WMA (absolute distance > 20 points) AND EMA separation is strong (absolute EMA diff > 1.5 points), the strategy treats the environment as a strong trend.
In strong trend mode, the strategy uses “Strong Trend Take Profit %” instead of the default “Take Profit %”.
Exit Management (TP/SL + Trailing)
The strategy uses fixed percentage-based TP and SL levels.
Trailing logic is enabled via strategy.exit and activates only after price moves in profit by the defined Trailing Activation %.
Once activated, trailing follows price using the defined Trailing Distance % offset.
This is designed to secure partial gains during extended moves while still allowing room for continuation.
What You See on the Chart
WMA Trend Line (Main Trend Filter).
Fast EMA and Slow EMA (Momentum Confirmation).
Strategy entry/exit markers generated by TradingView.
Recommended Use
Scalping systems that rely on trend-following and momentum confirmation.
Markets where ADX filtering helps avoid choppy conditions.
Traders who want a simple, parameter-driven TP/SL system with trailing after confirmation.
Important Notes
The no-trade session depends on your chart/session settings. Ensure your symbol/session configuration matches your intended market hours.
Percent-based exits scale with price; results will vary across instruments and volatility regimes.
Always validate behavior using bar replay, forward testing, and realistic commission/slippage assumptions.
Estratégia

Estratégia

Indicador

Relative Strength Index_YJ//@version=5
indicator(title="MACD_YJ", shorttitle="MACD_YJ",format=format.price, precision=2)
source = close
useCurrentRes = input.bool(true, title="Use Current Chart Resolution?")
resCustom = input.timeframe("60", title="Use Different Timeframe? Uncheck Box Above")
smd = input.bool(true, title="Show MacD & Signal Line? Also Turn Off Dots Below")
sd = input.bool(false, title="Show Dots When MacD Crosses Signal Line?")
sh = input.bool(true, title="Show Histogram?")
macd_colorChange = input.bool(true, title="Change MacD Line Color-Signal Line Cross?")
hist_colorChange = input.bool(true, title="MacD Histogram 4 Colors?")
// === Divergence inputs ===
grpDiv = "Divergence"
calculateDivergence = input.bool(true, title="Calculate Divergence", group=grpDiv, tooltip="피벗 기반 정/역배 다이버전스 탐지 및 알람 사용")
lookbackRight = input.int(5, "Lookback Right", group=grpDiv, minval=1)
lookbackLeft = input.int(5, "Lookback Left", group=grpDiv, minval=1)
rangeUpper = input.int(60, "Bars Range Upper", group=grpDiv, minval=1)
rangeLower = input.int(5, "Bars Range Lower", group=grpDiv, minval=1)
bullColor = input.color(color.new(#4CAF50, 0), "Bull Color", group=grpDiv)
bearColor = input.color(color.new(#F23645, 0), "Bear Color", group=grpDiv)
textColor = color.white
noneColor = color.new(color.white, 100)
res = useCurrentRes ? timeframe.period : resCustom
fastLength = input.int(12, minval=1)
slowLength = input.int(26, minval=1)
signalLength= input.int(9, minval=1)
fastMA = ta.ema(source, fastLength)
slowMA = ta.ema(source, slowLength)
macd = fastMA - slowMA
signal = ta.sma(macd, signalLength)
hist = macd - signal
outMacD = request.security(syminfo.tickerid, res, macd)
outSignal = request.security(syminfo.tickerid, res, signal)
outHist = request.security(syminfo.tickerid, res, hist)
// 가격도 같은 res로
hi_res = request.security(syminfo.tickerid, res, high)
lo_res = request.security(syminfo.tickerid, res, low)
// ── Histogram 색
histA_IsUp = outHist > outHist and outHist > 0
histA_IsDown = outHist < outHist and outHist > 0
histB_IsDown = outHist < outHist and outHist <= 0
histB_IsUp = outHist > outHist and outHist <= 0
macd_IsAbove = outMacD >= outSignal
plot_color = hist_colorChange ? (histA_IsUp ? color.new(#00FF00, 0) :
histA_IsDown ? color.new(#006900, 0) :
histB_IsDown ? color.new(#FF0000, 0) :
histB_IsUp ? color.new(#670000, 0) : color.yellow) : color.gray
macd_color = macd_colorChange ? color.new(#00ffff, 0) : color.new(#00ffff, 0)
signal_color = color.rgb(240, 232, 166)
circleYPosition = outSignal
// 골든/데드 크로스 (경고 해결: 먼저 계산)
isBullCross = ta.crossover(outMacD, outSignal)
isBearCross = ta.crossunder(outMacD, outSignal)
cross_color = isBullCross ? color.new(#00FF00, 0) : isBearCross ? color.new(#FF0000, 0) : na
// ── 플롯
plot(sh and outHist ? outHist : na, title="Histogram", color=plot_color, style=plot.style_histogram, linewidth=5)
plot(smd and outMacD ? outMacD : na, title="MACD", color=macd_color, linewidth=1)
plot(smd and outSignal? outSignal: na, title="Signal Line", color=signal_color, style=plot.style_line, linewidth=1)
plot(sd and (isBullCross or isBearCross) ? circleYPosition : na,
title="Cross", style=plot.style_circles, linewidth=3, color=cross_color)
hline(0, "0 Line", linestyle=hline.style_dotted, color=color.white)
// =====================
// Divergence (정배/역배) - 피벗 비교
// =====================
_inRange(cond) =>
bars = ta.barssince(cond)
rangeLower <= bars and bars <= rangeUpper
plFound = false
phFound = false
bullCond = false
bearCond = false
macdLBR = outMacD
if calculateDivergence
// 정배: 가격 LL, MACD HL
plFound := not na(ta.pivotlow(outMacD, lookbackLeft, lookbackRight))
macdHL = macdLBR > ta.valuewhen(plFound, macdLBR, 1) and _inRange(plFound )
lowLBR = lo_res
priceLL = lowLBR < ta.valuewhen(plFound, lowLBR, 1)
bullCond := priceLL and macdHL and plFound
// 역배: 가격 HH, MACD LH
phFound := not na(ta.pivothigh(outMacD, lookbackLeft, lookbackRight))
macdLH = macdLBR < ta.valuewhen(phFound, macdLBR, 1) and _inRange(phFound )
highLBR = hi_res
priceHH = highLBR > ta.valuewhen(phFound, highLBR, 1)
bearCond := priceHH and macdLH and phFound
// 시각화 (editable 파라미터 삭제)
plot(plFound ? macdLBR : na, offset=-lookbackRight, title="Regular Bullish (MACD)",
linewidth=2, color=(bullCond ? bullColor : noneColor), display=display.pane)
plotshape(bullCond ? macdLBR : na, offset=-lookbackRight, title="Bullish Label",
text=" Bull ", style=shape.labelup, location=location.absolute, color=bullColor, textcolor=textColor, display=display.pane)
plot(phFound ? macdLBR : na, offset=-lookbackRight, title="Regular Bearish (MACD)",
linewidth=2, color=(bearCond ? bearColor : noneColor), display=display.pane)
plotshape(bearCond ? macdLBR : na, offset=-lookbackRight, title="Bearish Label",
text=" Bear ", style=shape.labeldown, location=location.absolute, color=bearColor, textcolor=textColor, display=display.pane)
// 알람
alertcondition(bullCond, title="MACD Regular Bullish Divergence",
message="MACD 정배 다이버전스 발견: 현재 봉에서 lookbackRight 만큼 좌측.")
alertcondition(bearCond, title="MACD Regular Bearish Divergence",
message="MACD 역배 다이버전스 발견: 현재 봉에서 lookbackRight 만큼 좌측.")
Indicador

Estratégia

Indicador
