PROTECTED SOURCE SCRIPT
Mis à jour IC Swing - V1

The core goal of the script is to capture trades that align with a strong trend confirmed by the Ichimoku Cloud and ADX/DMI, with entries based on a Kijun-Tenkan cross and exits managed by dynamic swing pivot-based trailing stops.
Position Management & Exit Logic
The strategy uses a robust, two-part system to manage risk and lock in profits:
Initial Stop Loss (SL): An immediate, hard stop-loss is placed when a trade opens, calculated as the ATR Multiplier (default 2.0) away from the entry bar's low (for long) or high (for short). This provides instant protection.
Trailing Stop: After a configurable delay (minBarsBeforeExit, default 2 bars), the initial stop-loss is overwritten by a dynamic trailing stop. This stop is based on the last confirmed swing pivot (low for long, high for short), buffered by a small ATR amount (0.5). The stop only trails in the direction of the trade (e.g., moves up for a long trade) and never moves against it.
Hard Exit (Swing Break): The position is closed if the price breaks the last confirmed swing pivot against the trade direction, acting as a second, swing-based exit mechanism.
Latching Exits: The exitLatchLong/exitLatchShort variables are used to prevent the strategy from immediately reversing or re-entering on the same bar after a position has been closed due to a stop hit or a hard exit.
Position Management & Exit Logic
The strategy uses a robust, two-part system to manage risk and lock in profits:
Initial Stop Loss (SL): An immediate, hard stop-loss is placed when a trade opens, calculated as the ATR Multiplier (default 2.0) away from the entry bar's low (for long) or high (for short). This provides instant protection.
Trailing Stop: After a configurable delay (minBarsBeforeExit, default 2 bars), the initial stop-loss is overwritten by a dynamic trailing stop. This stop is based on the last confirmed swing pivot (low for long, high for short), buffered by a small ATR amount (0.5). The stop only trails in the direction of the trade (e.g., moves up for a long trade) and never moves against it.
Hard Exit (Swing Break): The position is closed if the price breaks the last confirmed swing pivot against the trade direction, acting as a second, swing-based exit mechanism.
Latching Exits: The exitLatchLong/exitLatchShort variables are used to prevent the strategy from immediately reversing or re-entering on the same bar after a position has been closed due to a stop hit or a hard exit.
Notes de version
Bot alerts - fixedNotes de version
Alerts - fixedNotes de version
Alert fixedNotes de version
AlertNotes de version
alertScript protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
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.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
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.