INVITE-ONLY SCRIPT

MEGA Ultimate MTF Swing

114
TradingView Script Description: MEGA Ultimate MTF Swing

Overview
The "MEGA Ultimate MTF Swing" is a sophisticated, multi-timeframe (MTF) swing trading indicator designed for the 4-hour chart. It integrates trend analysis, price action signals, and dynamic support/resistance levels from higher timeframes (1H and 45M) to provide high-probability entry and exit points. The system is built to identify the start of new swing moves, manage risk with clear profit targets and stop-losses, and warn you of potential reversals.

Core Philosophy: To catch the beginning of a new trend direction on the 4H chart, using MTF levels for confirmation, and to manage the trade with a structured target/stop framework until the swing is complete.

Key Features & How It Works
1. 4H Trend Framework & Entry Signals

Trend Definition: The script uses a Simple Moving Average (SMA) to define the primary trend. A crossover above the SMA generates a BUY signal; a crossover below generates a SELL signal.

Sloping Trendlines: It automatically draws dynamic support and resistance lines by connecting the most recent significant 4H pivot highs and lows. This helps visualize the broader trend channel.

2. Multi-Timeframe (MTF) Confirmation

This is a core strength of the script. For each new 4H signal, it fetches the most significant Resistance (for buys) and Support (for sells) levels from the 1-hour and 45-minute charts.

These MTF levels are displayed as horizontal dashed lines inside the trade box, showing you the immediate barriers price must overcome for the trade to continue in your favor.

3. Structured Trade Management (Boxes, Targets & Stops)

Upon a new signal, the script draws a clear visual box on the chart.

For BUY Signals: The box spans from the Stop Loss (below entry) to the Profit Target (above entry).

For SELL Signals: The box spans from the Profit Target (below entry) to the Stop Loss (above entry).

Profit Target: Calculated as a percentage above (for long) or below (for short) the recent high/low.

Stop Loss: A tight, fixed percentage below (for long) or above (for short) the entry price, designed to protect your capital. The "Use wider targets/stops" input allows you to adjust risk tolerance.

4. Advanced Price Action & Alert System

Candle Pattern Detection: The script analyzes individual candles, labeling strong patterns like Engulfing Bars, Pin Bars, and Dojis to give context to the market's momentum.

"Caution" Labels: A smart warning system activates if the price approaches the edge of the trade box (i.e., near its stop or target) or touches a 4H trendline, signaling potential exhaustion.

"Trade Getting Reverse" Warning: If strong opposing price action is detected against your active trade position, a prominent label appears, suggesting a possible early reversal.

5. Actionable Trade Dashboard

A clean table at the bottom-right corner provides an at-a-glance summary.

It tells you the current Recommendation (e.g., "BUY SIGNAL," "WAITING," "EXCELLENT TRADE"), a short Analysis, and a Context line that often includes the current trade's profit/loss percentage.

6. Comprehensive Alerts

You can set alerts for various events:

Basic BUY/SELL entry signals.

Enhanced entries with MTF confirmation.

Warnings when price is near a 4H trendline.

How to Use This Script - A Step-by-Step Guide
Step 1: Setup

Apply the script to a 4-hour (4H) chart. It will not work on other timeframes.

Customize the visuals and logic in the "Inputs" tab to your preference (e.g., colors, whether to show boxes, alert settings).

Step 2: Identifying a Trade

Wait for a BUY or SELL label to appear on a closed 4H candle.

A colored box will appear, projecting the next ~20 bars. The top and bottom of this box are your Profit Target and Stop Loss.

Confirm with MTF: Look inside the box for the 1H and 45M levels. A strong signal will have the price breaking through these levels.

Step 3: Managing the Trade

Ideal Scenario: The price moves steadily towards your target without touching the stop. The dashboard will show positive profit percentages.

Exit on Completion: The trade is considered complete and all visuals are cleared once the price touches either the target or the stop loss.

Watch for Warnings: Pay close attention to "Caution" and "Trade Getting Reverse" labels. They are your cue to consider an early exit to protect profits or minimize losses.

Step 4: Post-Trade

After a trade completes, the dashboard will show "TRADE COMPLETED." Wait for the next clean signal to enter a new position.

Input Settings Summary
Visuals: Toggle boxes, trendlines, and the dashboard on/off.

Logic: Adjust the MA length and choose between tighter or wider stops/targets.

MTF Settings: Configure the lookback period for finding 1H/45M highs and lows.

4H Trendline Settings: Adjust the sensitivity for identifying pivot points and trendline touches.

Alerts: Enable/disable different types of push notifications and audible alerts.

Optimization: Manage script performance with object cleanup and trade duration limits.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.