PROTECTED SOURCE SCRIPT
Mis à jour

Sr.Rma.Breakout.Fib (Merged)

52
DO YOUR DUE DILIGENCE – THIS IS FOR EDUCATIONAL PURPOSE AND NOT A TRADE ADVICE-
This strategy is designed for traders who want to merge pattern recognition (breakouts) with market structure context (Fibonacci), while maintaining disciplined trade management through automated stop-loss and reversal logic. “Once the chart is added, please ensure the candle pattern is set to Heikin Ashi.”

1. Breakout Finder Logic
The breakout finder identifies bullish and bearish breakouts using pivots, thresholds, and test counts:
• Pivot Highs & Lows (PH/PL): Calculated using user-defined periods.
• Breakout Threshold: Dynamic channel width based on recent volatility.
• Confirmation: A breakout is validated when price action clears the breakout Conditions
• Bullish Breakout: Triggered when multiple pivot highs are cleared by bullish Conditions.
• Bearish Breakout: Triggered when multiple pivot lows are broken by bearish Conditions.
• Sessions ignored: Traders can exclude up to three custom time windows to prevent signals during low-quality periods.
Risk & Reversal Controls
• Stop-Loss: Adjustable % thresholds for both long and short trades.
• Reversal Entries: Optional signals that trigger after a stop-loss, capturing potential price reversals.
2. Strategy Order Management
The strategy executes entries and exits based on confirmed breakout and reversal signals:
• Entries:
o Long on confirmed bullish breakout.
o Short on confirmed bearish breakout.
• Stops:
o Automatic closure of open positions when stop-loss conditions are hit.
• Reversals:
o Transition directly from long to short or vice versa when reversal conditions are met.
3. Auto Fibonacci Retracement
A ZigZag-based system automatically plots Fibonacci retracement levels on the chart:
• Swing Context: Derived dynamically from pivots with adjustable depth and deviation settings.
• Fib Levels: Standard retracement and extension levels (0.236, 0.382, 0.5, 0.618, 0.786, 1.0, 1.618, 2.618, 3.618, 4.236, etc.) are supported.
• Custom Options:
o Extend lines left or right.
o Show/hide level prices and percentage values.
o Control label positions (left or right).
o Adjustable transparency for background fills between levels.
• Crossing Alerts: Alerts are fired when the price crosses specific Fibonacci levels, enhancing confluence with breakout signals.
5. Key Benefits
• Comprehensive Trading Framework: Combines breakout confirmation, risk management, and Fibonacci context.
• Visual Clarity: Automatic plotting of breakout structures and Fib levels makes the chart intuitive.
• Flexible Controls: Full customization of pivots, thresholds, sessions, stop-loss %, and Fib settings.
• Automation Ready: Alerts and strategy orders allow seamless integration with brokers or external systems.


Notes de version
DO YOUR DUE DILIGENCE – THIS IS FOR EDUCATIONAL PURPOSE AND NOT A TRADE ADVICE-
This strategy is designed for traders who want to merge pattern recognition (breakouts) with market structure context (Fibonacci), while maintaining disciplined trade management through automated stop-loss and reversal logic. “Once the chart is added, please ensure the candle pattern is set to Heikin Ashi.”

This best work on a 1 min time frame

1. Breakout Finder Logic
The breakout finder identifies bullish and bearish breakouts using pivots, thresholds, and test counts:
• Pivot Highs & Lows (PH/PL): Calculated using user-defined periods.
• Breakout Threshold: Dynamic channel width based on recent volatility.
• Confirmation: A breakout is validated when price action clears the breakout Conditions
• Bullish Breakout: Triggered when multiple pivot highs are cleared by bullish Conditions.
• Bearish Breakout: Triggered when multiple pivot lows are broken by bearish Conditions.
• Sessions ignored: Traders can exclude up to three custom time windows to prevent signals during low-quality periods.
Risk & Reversal Controls
• Stop-Loss: Adjustable % thresholds for both long and short trades.
• Reversal Entries: Optional signals that trigger after a stop-loss, capturing potential price reversals.
2. Strategy Order Management
The strategy executes entries and exits based on confirmed breakout and reversal signals:
• Entries:
o Long on confirmed bullish breakout.
o Short on confirmed bearish breakout.
• Stops:
o Automatic closure of open positions when stop-loss conditions are hit.
• Reversals:
o Transition directly from long to short or vice versa when reversal conditions are met.
3. Auto Fibonacci Retracement
A Zigzag-based system automatically plots Fibonacci retracement levels on the chart:
• Swing Context: Derived dynamically from pivots with adjustable depth and deviation settings.
• Fib Levels: Standard retracement and extension levels (0.236, 0.382, 0.5, 0.618, 0.786, 1.0, 1.618, 2.618, 3.618, 4.236, etc.) are supported.
• Custom Options:
o Extend lines left or right.
o Show/hide level prices and percentage values.
o Control label positions (left or right).
o Adjustable transparency for background fills between levels.
• Crossing Alerts: Alerts are fired when the price crosses specific Fibonacci levels, enhancing confluence with breakout signals.
5. Key Benefits
• Comprehensive Trading Framework: Combines breakout confirmation, risk management, and Fibonacci context.
• Visual Clarity: Automatic plotting of breakout structures and Fib levels makes the chart intuitive.
• Flexible Controls: Full customization of pivots, thresholds, sessions, stop-loss %, and Fib settings.
• Automation Ready: Alerts and strategy orders allow seamless integration with brokers or external systems.


Notes de version
DO UR DD

Clause de non-responsabilité

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