OPEN-SOURCE SCRIPT
Updated Macketings 1min Scalping

This is a hyper-reactive scalping strategy designed for the 1-minute chart. It utilizes a strict four-EMA hierarchy (80/90/340/500) to ensure trades are only taken in the strongest aligned market trend. The strategy is built to be extremely tight on risk and focuses on capturing the immediate, high-momentum swing that follows a confirmed EMA retest or breakout.
Key Mechanics (How it Works):
Strict Trend Alignment: Entry is only permitted when the faster EMA band (80/90) and the price action are correctly aligned with the slow trend (340/500).
Long: EMA 80/90 must be above EMA 340/500, AND EMA 340 must be above EMA 500. (And vice-versa for Short.)
Expanded Retest Entry: The strategy waits for the price to retest or briefly enter the 80/90 band, then immediately enters upon the confirmed momentum breakout from that band.
Dynamic Risk Management (Tight Ride): The strategy is engineered to ride the wave aggressively while protecting capital immediately:
Extremely Tight Initial Stop Loss (0.2% default): Limits initial risk instantly.
Break-Even Security: Once profit hits 0.3%, the Stop Loss is automatically trailed to secure 0.2% profit (a risk-free trade).
Aggressive Exit Logic: Positions are closed not only upon hitting the Take Profit target (2.5%) but also immediately if the 80/90 EMA band crosses the 340 EMA, signaling a critical loss of momentum.
Disclaimer:
This strategy requires high-liquidity instruments and is best used on low timeframes (1-minute) due to its dependency on fast momentum shifts and tight stops. Backtesting and forward testing are crucial before deployment.
Key Mechanics (How it Works):
Strict Trend Alignment: Entry is only permitted when the faster EMA band (80/90) and the price action are correctly aligned with the slow trend (340/500).
Long: EMA 80/90 must be above EMA 340/500, AND EMA 340 must be above EMA 500. (And vice-versa for Short.)
Expanded Retest Entry: The strategy waits for the price to retest or briefly enter the 80/90 band, then immediately enters upon the confirmed momentum breakout from that band.
Dynamic Risk Management (Tight Ride): The strategy is engineered to ride the wave aggressively while protecting capital immediately:
Extremely Tight Initial Stop Loss (0.2% default): Limits initial risk instantly.
Break-Even Security: Once profit hits 0.3%, the Stop Loss is automatically trailed to secure 0.2% profit (a risk-free trade).
Aggressive Exit Logic: Positions are closed not only upon hitting the Take Profit target (2.5%) but also immediately if the 80/90 EMA band crosses the 340 EMA, signaling a critical loss of momentum.
Disclaimer:
This strategy requires high-liquidity instruments and is best used on low timeframes (1-minute) due to its dependency on fast momentum shifts and tight stops. Backtesting and forward testing are crucial before deployment.
Release Notes
This update introduces several major improvements for precision, safety, and overall trade quality.1. Time-Based Trading Filter (NEW)
Trading can be restricted to specific hours using a session filter.
Example: 09:00–23:59
Outside this window, no new positions are opened.
Prevents low-liquidity and overnight trap trades.
2. Cooldown System (Improved)
A strict cooldown after each exit.
Default: 100 bars
Reduces overtrading and prevents back-to-back low-quality setups.
3. Safety Filter (NEW SMA325)
A new safety layer based on SMA325:
Longs only allowed above SMA325
Shorts only allowed below SMA325
Helps avoid chop and dangerous mid-trend reversals.
4. Smart Band Exit System (NEW)
A new advanced exit logic using the 80/90 band:
Activates only after a minimum profit threshold
Longs exit on band breakdown
Shorts exit on band breakout
Improves profit retention in sideways markets.
Recommended Adjustment:
Increase activation threshold from the default 0.3 % → 1.5 %.
This avoids premature exits and stabilizes profitability in trending markets.
5. Trend-Reversal Exits (Reworked)
Major trend exits now use the EMA340 vs EMA500 cross.
Much more stable than fast-band exits and prevents holding against strong reversals.
6. Dynamic Stop Loss Overhaul
Stop loss now adapts as the trade evolves:
Initial stop set immediately
Breakeven triggers after profit confirmation
Secured profit moves SL into safe profit zone
Minimizes drawdowns and protects wins.
7. Entry Logic Rewritten from Scratch
Entries now require:
Strong trend confirmation (340/500 hierarchy)
Retest or breakout of the band
Momentum confirmation
Safety filter
Cooldown
Time filter
Cleaner, more reliable entries with fewer false signals.
8. No-Trade Background Highlight (NEW)
A grey background appears when:
Cooldown is active
Time filter is closed
Makes chart behavior easier to read.
9. Recommended Band Optimization: 80/90 → 80/85
For better retests and more responsive signals:
Switch EMA80/EMA90 → EMA80/EMA85.
Reduces lag and improves pullback timing, especially in fast markets.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.