Performance (Improved + Position & Size) This indicator displays a performance heat-table on the chart, showing percentage returns for multiple timeframes such as 1W, 1M, 3M, 6M, 9M, 1Y and To-Date periods (MTD / QTD / YTD style).
The goal is to quickly visualize how the current symbol has performed across different timeframes in a compact and readable format.
المؤشرات والاستراتيجيات
Direction LineThis is a simplified indicator for the TradingView platform, intended for beginner traders. It draws a line that follows the candle's closing price, coloring it green on an uptick (close > open) and red on a downtick. The indicator helps visualize the market impulse direction based on the basic concept of pivot levels, without unnecessary elements such as labels, alerts, or additional levels. Ideal for those who want to quickly understand the trend without data overload.
Moving Averages DTMoving Averages Combo: SMA 30-50-100-200 + EMA 5-8-21 (Golden & Death Cross Ready)
This clean and lightweight indicator plots the most used simple and exponential moving averages in one single script — perfect for swing traders, position traders, and scalpers.
— Simple Moving Averages (Daily timeframe focus):
• SMA 30 (Red) — Early trend detection
• SMA 50 (Blue) — Classic medium-term trend
• SMA 100 (Green) — Institutional reference
• SMA 200 (Orange) — The legendary Golden/Death Cross line
— Fast Exponential Moving Averages (Perfect for pullbacks & entries):
• EMA 5 (Purple) — Ultra-fast reaction
• EMA 8 (Yellow) — Fibonacci-based favorite
• EMA 21 (Black) — 21-day cycle + Fibonacci
Why this combination works so well:
• EMA 8 + EMA 21 = Powerful short-term trend filter (used by thousands of crypto & forex traders)
• SMA 50/200 = Classic Golden & Death Cross signals
• SMA 30/100 = Extra confirmation layers used by banks and funds
Features:
✓ All MAs on a single indicator (no chart clutter)
✓ Clean colors with perfect contrast on light/dark themes
✓ Ready for alerts: set alert on EMA 8 crossing EMA 21 or SMA 50 crossing SMA 200
✓ Works on all markets & timeframes (stocks, forex, crypto, futures)
How to use:
• Bullish signal: Price above SMA 200 + EMA 8 > EMA 21 + SMA 50 > SMA 200
• Bearish signal: Price below SMA 200 + EMA 8 < EMA 21
• Pullback entries: Wait for price to touch EMA 21 in uptrend
Heikin Ashi Candle Color Change AlertThis is Heikin Ashi Candle Color Change Alert. Add it to your chart then create an Alert with your preferences. It indicates when a candle color change occurs.
Daily MA — Higher-Timeframe Daily Moving Average OverlayThis indicator plots a clean, higher-timeframe daily moving average directly on any chart, so you can always see where price sits relative to the daily trend — even while trading on lower timeframes (1m, 5m, etc.).
It’s designed to be:
Simple – a single, configurable daily MA line
Consistent – always anchored to the 1D timeframe
Flexible – choose EMA or SMA and customize line width/color
⸻
What This Indicator Does
Pulls the 1-Day (1D) moving average of the current symbol, regardless of your chart timeframe.
Lets you choose between EMA (Exponential Moving Average) or SMA (Simple Moving Average).
Plots that daily MA as a smooth overlay on your current chart.
Keeps the line visually clean and continuous, making it easy to see daily trend and dynamic support/resistance.
This is not a signals/strategy script. It doesn’t generate buy/sell arrows or backtest logic. It’s a context tool for visualizing the daily trend while you execute your own strategy.
⸻
Why a Daily MA Overlay Is Useful
Traders commonly use a daily moving average to:
Anchor intraday trades to the higher-timeframe trend
Longs when price is holding above the Daily MA
Shorts or caution when price is rejecting from the Daily MA
Identify dynamic support/resistance
Price often reacts around well-watched daily MAs (e.g., 50, 100, 200)
Filter setups
Only take long setups when price is above the daily trend line
Avoid counter-trend trades when price is extended far from the Daily MA
Because this script forces the MA to always be computed on 1D, you don’t have to switch back and forth between intraday and daily charts to keep track of the bigger picture.
⸻
Inputs & Settings
MA Length
Default: 200
Any positive integer (min 1)
Common examples: 50, 100, 200 for trend structure
MA Type
EMA – reacts faster to recent price (default)
SMA – smoother, slower, more “classic” feel
Line Width
Default: 2
Range: 1 to 10
Increase if you want the Daily MA to stand out clearly against other indicators
Color
Default: Purple tone
Fully customizable – pick any color that works with your chart theme
⸻
How to Use It in Your Workflow
Intraday traders (scalpers/day-traders):
Apply the indicator to your 1m/5m/15m charts.
Use the Daily MA as a trend filter :
Only look for long scalps when price is above the Daily MA.
Be more cautious with longs or consider shorts when price is below it.
Swing traders :
Use it on 1H/4H charts to see where price sits relative to a longer-term daily trend.
Watch for:
Pullbacks to the Daily MA in an uptrend as potential demand zones.
Rejections at the Daily MA in a downtrend as potential supply zones.
Risk management & context :
Avoid chasing extended moves far from the Daily MA.
Mark confluence with other tools (support/resistance, volume profile, etc.) around the Daily MA.
⸻
Notes & Limitations
The moving average itself is calculated from daily candles , then displayed on your current timeframe.
This is a visual aid only . It does not guarantee future performance or provide financial advice.
Always combine this indicator with your own analysis, risk management, and trading plan.
⸻
Disclaimer :
This script is provided for educational and informational purposes only. It is not financial advice and does not constitute a recommendation to buy or sell any financial instrument. Always do your own research and trade at your own risk.
Seasonality Forecast Line (White BG • Stable)Seasonality Forecast Line (White BG • Stable)
Seasonality Forecast Line (White BG • Stable)
Seasonality Forecast Line (White BG • Stable)
Session High and Lowmarks out previous NY session high/low, asian and london session high/low and updates automatically. Perfect indicator for overnight liquidity.
Trend Engine [MMT]The Trend Engine is a versatile Pine Script indicator designed to identify trend direction, potential reversals, and key price levels using a combination of Exponential Moving Averages (EMAs), and Anchored Volume-Weighted Average Price (VWAP). This indicator provides traders with a clear visual representation of market bias, momentum, and key support/resistance levels, making it suitable for both trend-following and pullback trading strategies.
Key Features:
1. EMA Cloud System:
- Displays three customizable EMAs (Fast, Pullback, and Slow) with configurable lengths and visibility.
- Creates two cloud fills:
- Fast Cloud : Between the Fast EMA (default: 8) and Pullback EMA (default: 13).
- Slow Cloud : Between the Pullback EMA and Slow EMA (default: 21).
- Clouds are color-coded (green for bullish, red for bearish) based on EMA alignment, with adjustable transparency for clarity.
2. Bias EMA:
- A longer-term EMA (default: 35) indicates the overall market bias.
- Changes color based on whether the regular candle close is above (green) or below (red) the Bias EMA, providing a clear trend direction signal.
3. Heikin Ashi Signals:
- Utilizes Heikin Ashi candles to detect strong bullish or bearish momentum.
- Generates buy/sell signals when a Heikin Ashi candle confirms a trend (bullish HA candle closing above Bias EMA for buy, bearish HA candle closing below for sell).
- Signal arrows are currently disabled but can be enabled via settings for visual confirmation.
4. Anchored VWAP and Standard VWAP:
- Plots both a standard VWAP and an Anchored VWAP (anchored to the US RTH session, 09:30–16:00 EST).
- Customizable line styles (solid, cross, or circles) and colors for both VWAPs, aiding in identifying dynamic support/resistance levels.
5. Background and Candle Coloring:
- Optional background coloring reflects the market bias (green for bullish, red for bearish) based on the regular close relative to the Bias EMA.
- Optional Heikin Ashi candle coloring to visually distinguish bullish and bearish market conditions.
6. Regular Candle Close:
- Option to plot the regular (non-Heikin Ashi) close price with customizable styles (line, circles, or cross) for reference.
7. Alerts:
- Built-in alert conditions for bullish and bearish signals, allowing traders to receive notifications when a Heikin Ashi candle confirms a trend relative to the Bias EMA.
How to Use:
- Trend Identification : Use the Bias EMA and background color to determine the overall market direction.
- Pullback Trading : Monitor the EMA clouds for alignment (bullish or bearish) and use the Pullback EMA for entries during retracements.
- Support/Resistance : Leverage the VWAP and Anchored VWAP as dynamic levels for trade entries or exits.
- Signal Confirmation : Enable signal arrows (when fixed) to spot high-probability trend continuation or reversal setups.
- Customization : Adjust EMA lengths, colors, transparency, and visibility to suit your trading style and timeframe.
Settings:
- EMA Cloud : Customize lengths (default: 8, 13, 21), visibility, and cloud colors/transparency.
- Bias EMA : Adjust length (default: 35) and colors for above/below states.
- VWAP : Toggle standard and Anchored VWAP, with customizable styles and colors.
- Background/Candles : Enable/disable background and candle coloring for visual clarity.
- Regular Close : Show/hide the regular close price with style options.
Notes:
- Designed for use on any timeframe, but most effective on intraday (e.g., 5m, 15m) or daily charts.
- Best used in conjunction with other technical analysis tools for confirmation.
- Anchored VWAP is tailored for US markets (RTH session) but can be adjusted for other sessions by modifying the anchor time in the code.
Ideal For:
- Day traders and swing traders looking for trend direction and pullback opportunities.
- Traders using VWAP-based strategies for intraday support/resistance.
- Those seeking a clean, customizable visual aid for market bias and momentum.
This indicator is a powerful tool for traders aiming to capture trends and manage risk effectively, with extensive customization to adapt to various markets and trading styles.
50 Week MAThis script plots the true 50-week simple moving average (SMA) derived directly from the weekly timeframe, ensuring accuracy across all chart intervals.
It allows you to visualise the long-term trend regardless of whether you’re viewing a 1-day, 4-hour, or 1-minute chart.
Commonly used by swing traders and long-term investors, the 50-week MA helps identify macro trend direction, dynamic support and resistance zones, and major cycle shifts in price behaviour.
TMA Dual BandsTMA Dual Bands - Adaptive Channel Indicator with Crossover Signals
TMA Dual Bands represents my interpretation of the classic Triangular Moving Average methodology, specifically designed to identify high-probability trading setups through the interaction of two adaptive channel systems. Unlike traditional channel indicators that rely on static calculations, this tool dynamically adjusts to market volatility while maintaining the smooth, reliable characteristics that make TMA-based systems so effective.
The indicator combines a MAIN channel (slow-moving, representing the broader trend) with a FAST channel (responsive, capturing momentum shifts). When these two systems interact in specific ways, they generate clear trading signals that can be used across multiple timeframes and market conditions.
The Mathematics Behind the Indicator
At its core, this indicator uses a sophisticated approach to calculating Triangular Moving Averages. Rather than using the traditional double Simple Moving Average method, I've implemented a double Weighted Moving Average calculation. This means the TMA is computed by taking a WMA of another WMA, which provides better responsiveness to recent price action while maintaining the smooth, triangular weighting distribution that gives this indicator its name.
The weighted approach significantly reduces lag compared to double-smoothed simple moving averages, allowing the indicator to catch trend changes earlier without sacrificing reliability. This is particularly important for the FAST channel, where responsiveness is crucial for signal generation.
Adaptive Volatility Bands
What makes this indicator truly unique is its adaptive band calculation system. Instead of using a single standard deviation like traditional Bollinger Bands, the indicator maintains separate variance calculations for upward and downward price movements. When price rises above the TMA centerline, the upper band variance increases while the lower band variance decreases proportionally. The opposite occurs when price falls below the centerline.
This asymmetric approach allows the bands to better reflect actual market conditions. During uptrends, the upper band expands to accommodate bullish volatility while the lower band contracts, creating a channel that naturally "leans" in the direction of the trend. The same principle applies in reverse during downtrends.
The full calculation uses a smoothed variance over approximately four times the base period, ensuring that band adjustments are gradual rather than erratic. The multiplier parameter allows you to adjust the sensitivity of the bands to volatility, with higher values creating wider channels that generate fewer but higher-quality signals.
Understanding the Signals
The signal generation mechanism is elegantly simple yet remarkably effective. A bullish signal occurs when the lower FAST band crosses above the lower MAIN band. This crossover indicates that short-term momentum has shifted decisively upward, strong enough to break through the slower-moving baseline channel. These signals typically appear after consolidation periods or healthy pullbacks in uptrends, making them excellent continuation entry points.
Conversely, bearish signals trigger when the upper FAST band crosses below the upper MAIN band. This pattern suggests that upward momentum has exhausted itself and that sellers are beginning to dominate. These signals often appear near resistance levels or at the culmination of extended rallies, providing excellent risk-reward opportunities for counter-trend or trend-reversal trades.
The visual representation enhances signal clarity. The MAIN TMA centerline changes color dynamically based on its slope, displaying green during upward movement and red during downward movement. This gives you instant visual confirmation of the prevailing trend direction. The signal markers themselves appear as diamond shapes positioned just outside the MAIN channel bands, with cyan diamonds indicating buy opportunities below the lower band and blue diamonds marking sell opportunities above the upper band. You could consider taking bull signals only on long trend, and vice versa for the sell signals.
Practical Application
The indicator works across multiple trading approaches and timeframes. For trend-following strategies, the most reliable signals occur when they align with the MAIN TMA color. Taking only green-colored uptrend signals and red-colored downtrend signals significantly improves win rates by ensuring you're always trading with the dominant momentum.
For breakout traders, the most powerful setups occur after periods of compression when the FAST bands squeeze inside the MAIN bands. This compression indicates low volatility and tight consolidation. When a signal finally triggers after such compression, it often leads to explosive moves as the market breaks out of its range.
Mean reversion traders can also benefit from this indicator by taking counter-trend signals when price reaches extreme band levels. However, this approach requires careful risk management and works best in clearly ranging market conditions.
Configuration and Customization
The default parameters have been carefully selected through extensive testing, with the MAIN period set to 133 bars and the FAST period at 19 bars. These values create an effective balance between trend identification and momentum responsiveness. However, the indicator is fully customizable to suit different trading styles and market conditions.
Traders focusing on longer-term positions might increase both periods proportionally, while scalpers and day traders might reduce them. The price type parameter allows you to choose how price is calculated for the TMA, with the weighted option providing the most responsive results. The band multiplier controls how wide the channels expand, with values between 2.5 and 4.0 being most common depending on your preferred signal frequency.
Technical Integrity
A critical feature of this indicator is its complete absence of repainting. All signals are generated and confirmed on closed bars, meaning that once a signal appears in historical data, it will remain exactly where it appeared regardless of subsequent price action. This makes the indicator equally reliable for backtesting historical data and trading live markets, a characteristic that many "magic indicator" systems cannot claim.
The calculation methodology ensures that what you see on your chart is exactly what you would have seen in real-time when that bar closed. There are no retrospective adjustments, no future-peeking calculations, and no algorithmic tricks that make historical performance look better than actual trading results would have been.
Conclusion
TMA Dual Bands offers a sophisticated yet user-friendly approach to technical analysis, combining time-tested TMA methodology with modern adaptive volatility concepts. The dual-channel system provides clear visual representation of market structure while the crossover signals offer objective entry points that remove much of the guesswork from trading decisions.
Whether you're a discretionary trader looking for high-probability setups or a systematic trader seeking reliable signals for automated strategies, this indicator provides the clarity and consistency needed for confident decision-making in dynamic market conditions.
---
**Developed by AlgoAlex81**
*Disclaimer: This indicator is provided for educational and informational purposes only. Past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose.*
1H Early Pivot (arrows + stem) by Pastor CarrThis indicator helps to find early pivot points on the IH chart.
Exhaustion Reversal Signals - ENHANCEDOverview
This is a reversal detection indicator that combines multiple technical analysis components to identify potential market turning points.
Core Components
1. Range Oscillator
Measures price deviation from a moving average (EMA/SMA) normalized by ATR
Values above +100 = bullish exhaustion zone
Values below -100 = bearish exhaustion zone
Detects momentum flattening (slope deceleration)
2. Stochastic Oscillator
Standard %K and %D with customizable parameters
Crossover detection (K crossing above/below D)
Oversold (<20) and Overbought (>80) zones
Momentum calculation (rate of change in K)
3. 🚀 Advanced Features
Early Detection System:
Identifies momentum exhaustion before confirmed crossovers
Detects when oscillator slope flattens (approaching zero)
Provides "advance warning" signals with relaxed thresholds
............................................................................................
Trend Filter:
50-period EMA for trend context
Three strength modes:
Soft: Allow all signals
Medium: Prefer trend-aligned signals
Strict: Only counter-trend reversals
Confidence Scoring (0-100%):
Oscillator extremity (30 pts)
Stochastic position (25 pts)
K-D divergence strength (20 pts)
Momentum alignment (15 pts)
Trend alignment (10 pts)
Minimum confidence threshold filtering
Visual Enhancements:
Dynamic background gradient (red→green based on oscillator)
Momentum bar coloring when slope flattens
Transparency adjustments based on momentum
RSI MTF Table - 12 Pairs (1,5,15)
The relative strength index measures the speed and magnitude of an asset's recent price changes. Therefore, it is considered a momentum indicator in technical analysis. Essentially, the RSI is the ratio of the days an asset's value increases to decreases over a given period.
Generally speaking, if the RSI is around 50, we do not expect strong movements. RSI above 65 or below 35 are areas we expect. In this context, this chart and the general momentum in 1-5-15 minutes allow us to quickly determine the parity we will trade. It is useful for intraday trading and scalping.
ES on MNQES on MNQ — ES percent-move overlay on the MNQ price scale.
Overview
This indicator projects the ES’s intraday percent change since session open onto the MNQ price scale. At the session start (18:00 chart time), it stores the ES open and the MNQ open, tracks ES’s percentage move from that anchor, and applies the same percent move to the MNQ open. The result is a single line that behaves like ES but is plotted in MNQ points—useful for spotting convergence/divergence, failed breaks, and mean-reversion setups between ES and MNQ.
How it works
1. Detects session open (18:00 on your chart).
2. Saves ES_open and MNQ_open.
3. Computes pct = (ES_close - ES_open) / ES_open.
4. Plots MNQ_open * (1 + pct) as the ES-on-MNQ line.
A label on the last bar shows the current ES value for quick reference.
Inputs
• ES Symbol: default ES1! (change if you use a different continuous).
• Line Color: color of the overlaid ES-on-MNQ line.
Works best on intraday timeframes and when your chart’s session aligns with ES.
Why it’s useful
• Highlights divergences (MNQ decoupling from ES baseline).
• Aids confirmation on pullbacks/breakouts when MNQ’s move disagrees with the ES-based projection.
• Helps risk control by flagging stretches likely to revert toward the ES-anchored path.
Notes & limitations
• This is a percent-rebasing overlay, not a hedge ratio, fair value, or spread model.
• Session/timezone settings matter; if your feed doesn’t print exactly at 18:00 on a higher timeframe, use a smaller TF or adjust session settings.
• Minor differences between ES (full) and MNQ (micro) and data latency can create small offsets.
Disclaimer
For educational use only. Not financial advice. Use proper risk management.
VIX on MNQVIX on MNQ — VIX percent-move overlay on the MNQ price scale (daily-open anchor, optional inversion)
Overview
This indicator projects the VIX’s intraday percent change from the daily open onto the MNQ price scale. It takes today’s open for both VIX and MNQ, measures the VIX’s percentage move since that open, optionally inverts it (given the typical inverse relationship), and applies a scale factor to fit that move onto MNQ’s price axis. The result is a single line that reflects VIX dynamics but is plotted in MNQ points—great for reading risk-on/risk-off tone, spotting divergences, and timing mean-reversion around volatility spikes.
How it works
• Fetches VIX close on your chart timeframe and today’s open for VIX and MNQ.
• Computes pct = (VIX_close − VIX_open) / VIX_open.
• Optionally multiplies by −1 (invert) and then by a Scale Factor to compress amplitude.
• Plots MNQ_open * (1 + pct * (invert? −1 : 1) * scaleFactor) as the VIX-on-MNQ line.
• Adds a last-bar label with the current VIX value and a small info panel (VIX, % change, scaled level).
Inputs
• VIX Symbol: VIX, CBOE:VIX, or TVC:VIX (pick the one that matches your data feed).
• VIX Line Color: color of the overlay line.
• Invert VIX: flip the sign to reflect inverse correlation with MNQ.
• Scale Factor (default 0.05): tune how much of the VIX move is mapped onto MNQ points.
Why it’s useful
• Surfaces volatility-led divergences: when MNQ’s path disagrees with VIX’s risk signal.
• Helps confirm/fade breakouts and pullbacks during volatility expansions/compressions.
• Provides a quick, visual “volatility baseline” directly on the MNQ chart without juggling two panes.
Notes & limitations
• This is a percent-rebased overlay, not a hedge ratio, fair value, or spread model.
• It anchors to the current day’s open; session/timezone settings and your VIX symbol choice (CBOE:VIX vs TVC:VIX) can affect exact prints.
• The scale factor is intentionally manual—adjust until the overlay’s swings are visually informative for your setup.
Disclaimer
For educational use only. Not financial advice. Always manage risk.
Nifty 50 - Close 90+ Points Above Open1 hr candle move more than 90 points.
I have created this to short or long nifty future keeping the low of the bullish candle and high of the bearish candle as SL
ES on MNQES on MNQ — ES percent-move overlay on the MNQ price scale
Overview
This indicator projects the ES’s intraday percent change since session open onto the MNQ price scale. At the session start (18:00 global chart time), it stores the ES open and the MNQ open, tracks ES’s percentage move from that anchor, and applies the same percent move to the MNQ open. The result is a single line that behaves like ES but is plotted in MNQ points—useful for spotting convergence/divergence, failed breaks, and mean-reversion setups between ES and MNQ.
How it works
1. Detects session open (18:00 on your chart).
2. Saves ES_open and MNQ_open.
3. Computes pct = (ES_close - ES_open) / ES_open.
4. Plots MNQ_open * (1 + pct) as the ES-on-MNQ line.
A label on the last bar shows the current ES value for quick reference.
Inputs
• ES Symbol: default ES1! (change if you use a different continuous).
• Line Color: color of the overlaid ES-on-MNQ line.
Works best on intraday timeframes and when your chart’s session aligns with ES.
Why it’s useful
• Highlights divergences (MNQ decoupling from ES baseline).
• Aids confirmation on pullbacks/breakouts when MNQ’s move disagrees with the ES-based projection.
• Helps risk control by flagging stretches likely to revert toward the ES-anchored path.
Notes & limitations
• This is a percent-rebasing overlay, not a hedge ratio, fair value, or spread model.
• Session/timezone settings matter; if your feed doesn’t print exactly at 18:00 on a higher timeframe, use a smaller TF or adjust session settings.
• Minor differences between ES (full) and MNQ (micro) and data latency can create small offsets.
Disclaimer
For educational use only. Not financial advice. Use proper risk management.
Multi-Layer Pin Zone AnalyzerAnalyzes LOW (bottom wicks) and HIGH (top wicks) to detect repeated touches within a defined tolerance.
Clusters nearby pin levels and, when the number of touches exceeds a threshold, draws infinite horizontal rectangles (zones) to highlight key areas.
LOW (teal): Support zones
HIGH (red): Resistance zones
COMBINED (orange): Mixed zones using both highs and lows
Each type has independent settings for tolerance (%), minimum touches, and maximum zones.
Automatically visualizes strong support, resistance, and consolidation areas across the chart.
Order Block Zones (Multi, Retest Highlight & Invalidation)A easy OB identificator with the conditon that it should be followed with at-least three strong/weak candles. Highlighted when re-tested (search for entry) and unvalidated once the "opposite" candle closes above/under the zone. Zones valid for 5 days then deleted.
V0.1
PE Fair ValueIn short, it’s an automated fair value estimator based on the price-to-earnings model, with full manual control if TradingView’s fundamental data is missing.
Summary:
1. Lets the user choose the EPS source – either automatically from TradingView fundamentals (EPS TTM) or a manual value.
2. Attempts to fetch the stock’s P/E ratio (TTM) automatically; if unavailable, it uses a manual fallback P/E.
3. Calculates:
Actual P/E = current price ÷ EPS
Fair Value = EPS × chosen (auto/manual) P/E
Percentage difference between market price and fair value
4. Plots the fair-value line on the chart for visual comparison.
5. Displays a table in the top-right corner showing:
EPS used
Target P/E
Actual P/E
Fair value
Current price
Difference vs fair value (colored green or red)
6. Creates alerts when the stock is trading above or below the calculated fair value.
7. Also plots the current closing price for reference.
EMA 9/15/45 + MACD Confirm + SupertrendThis indicator uses EMA 9, 15, 45 days along with combination of MACD and Supertrend
EMA Wick A+ Retest StrategyThe EMA Wick A+ Retest Strategy is a precision pullback system built for high-probability trend entries. It uses a combination of:
EMA 21 dynamic trend filtering
ATR-based stop-loss and reward targeting (1:1.5 RR)
Wick retest logic, where the lower wick must touch the EMA and represent at least 50% of the candle's range
Optional filter: RSI > 50 for bullish momentum confirmation
This strategy is designed to capture institutional-style entries after a clean pullback in an uptrend.
✅ Clean signals
✅ High risk-to-reward setups
✅ Built for swing trading or intraday with strong trend bias
Ideal for Forex, Crypto, and Indices.
Use responsibly. Backtest before live trading.
Hedge Simulation Martingale v1
1. Overview & Strategy Logic
This script implements an automated, multi-position trading strategy that uses a Martingale-inspired approach to manage a series of entries. The core logic is as follows:
Initial Entry: The script enters a trade based on the direction of the previous bar's close. A green bar triggers a Long position; a red bar triggers a Short position.
Profit-Taking: A single, fixed-percentage profit target (Profit Percentage) is set for the entire trade. If reached, all positions are closed for a net profit.
Loss Management (Martingale Logic): If the price moves against the initial position and hits the fixed-percentage stop-loss (Loss Percentage), the script does not exit. Instead, it averages down by adding a new, larger position in the same direction. The size of the new position is determined by multiplying the previous position size by the First Multiplier.
Net Position Management: The script continuously calculates the net average entry price, a new combined profit target, and a new combined stop-loss based on all open positions. The goal is for a single favorable price move to recover all previous losses and hit the profit target.
2. Key Features
Visual Indicators:
Plots the Net Average Entry Price on the chart.
Plots dynamic Profit Target (TP) and Stop-Loss (SL) levels that update as new positions are added.
Displays entry signals (triangles) for the initial Long or Short trade.
Comprehensive Dashboard: A detailed table in the top-right corner shows real-time metrics, including:
Total historical Long/Short volume and PnL.
Current trade's investment, unrealized PnL, and position sizes.
Current position count, direction, and size.
Configurable Parameters:
Profit Percentage: The target profit percentage for the net position.
Loss Percentage: The stop-loss percentage that triggers a new entry.
Initial Position Size: The size of the first position in the series.
First Multiplier: The multiplier applied to the previous position size when averaging down.
Maximum Multiplier: A safety cap (commented out in the code but present) to prevent infinite scaling.
3. Intended Use & Purpose
This script is designed as a position management and tracking tool for traders who are experimenting with or actively using Martingale-style strategies. It is best used to:
Automate the complex calculations of average entry, combined TP/SL, and PnL for multiple entries.
Visually track the status of an ongoing series of positions.
Backtest the viability and risks of such a strategy on historical data.
4. ⚠️ Critical Risk Warning & Disclaimer
THIS STRATEGY CARRIES EXTREME FINANCIAL RISK. USE AT YOUR OWN RISK.
Unlimited Loss Potential: The Martingale strategy is infamous for its potential to generate unlimited losses. By continuously doubling down (or multiplying) on losing positions, a small adverse price move can lead to catastrophic losses that can exceed your account balance.
Margin Calls: The rapidly increasing position size can quickly deplete your margin, leading to a margin call and forced liquidation of all positions at a significant loss.
No Guarantee of Recovery: The assumption that the price will eventually reverse is flawed. A strong, sustained trend can wipe out the entire trading capital.
For Educational/Advanced Use Only: This script is intended for sophisticated traders who fully understand the immense risks involved. It is not a "sure profit" system.
The publisher of this script is not responsible for any financial losses incurred through its use. You are solely responsible for your trading decisions and risk management.
5. How to Use
Apply the Script: Add the script to your chart.
Configure Parameters: Adjust the input parameters according to your risk tolerance and strategy rules. Be extremely cautious with the multiplier and position size.
Monitor the Dashboard: The table will provide all necessary information about the current and historical state of the strategy.
Observe the Levels: Watch the plotted Entry, TP, and SL levels to understand the current market position.
Backtest First: Always test the strategy extensively on historical data before considering it with real capital.
6. Notes
The Maximum Multiplier safety feature is present in the code but is currently commented out. Users are strongly advised to uncomment and set this parameter to act as a final, hard liquidation point.
The script logs key events (trade start, target hit) and export data for further analysis.
This is a complex script and should be thoroughly understood before use.






















