PROTECTED SOURCE SCRIPT

InvoTrading - Swing High and Low with Breakout

InvoTrading - Swing High and Low with Breakout Strategy

This strategy is designed to identify trading opportunities based on swing highs and lows, combined with breakout confirmations. It utilizes pivot points to detect potential reversal levels and initiates trades when the price breaks out of these levels under specific conditions.

Key Features:

- Pivot Points: The strategy calculates pivot highs and lows using customizable left and right bars. These pivots represent potential swing points in the market.
- Breakout Detection: It monitors for breakouts above pivot highs (Bullish Break of Structure - BOS) and below pivot lows (Bearish Break of Structure).
- Strong Swings (Optional): You can enable "Strong Swing" detection, which considers only those pivots where the price attempted but failed to break the pivot level, indicating stronger support or resistance.
- Trade Management: The strategy sets entry points, stop losses, and take profits based on a customizable risk-reward ratio.
- Trade Table: An optional table displays recent trades, including their status (Pending, Success, or Failed).
- Visual Aids: Customizable colors and line settings help visualize pivot points, strong swings, and breakout candles on the chart.

---

Settings:

1. Pivot Settings:
- Left Bars: Number of bars to the left of the pivot point (default: 5).
- Right Bars: Number of bars to the right of the pivot point (default: 5).
- Pivot Based On: Choose between "High/Low" or "Close" prices for pivot calculations.

2. Color Settings:
- Pivot High Color: Color for Pivot High markers (default: Blue).
- Pivot Low Color: Color for Pivot Low markers (default: Red).
- Strong Swing High Color: Color for Strong Swing High markers (default: Black).
- Strong Swing Low Color: Color for Strong Swing Low markers (default: Black).
- Breakout Candle Color (BOS): Color for the breakout candle (default: Yellow).

3. Line Settings:
- Line Width: Width of the pivot lines (default: 1).
- Line Length (Bars): Length of the pivot lines in bars (default: 20).
- Maximum Number of Lines to Keep: Limits the number of pivot lines displayed to avoid clutter (default: 100).

4. Trade Settings:
- Enable Buy and Sell Signals: Activates trade entries and exits on the chart (default: False).
- Show Trades Table: Displays a table summarizing recent trades (default: False).
- Risk-Reward Ratio: Sets the desired risk-reward ratio for trades (default: 1.5).
- Number of Trades to Display: Maximum number of recent trades shown in the table (default: 5).
- Enable Strong Trade: Only triggers trades when a "Strong Swing" is detected (default: False).

---

How It Works:

- Pivot Detection: The script identifies pivot highs and lows based on the specified number of left and right bars.
- Strong Swings: If enabled, the strategy marks a pivot as a strong swing if the price attempts to break it but closes back within the pivot level.
- Breakout Confirmation:
- Long Entry: Occurs when the price closes above a pivot high, signaling a bullish breakout. If "Strong Trade" is enabled, it must be a strong swing high.
- Short Entry: Occurs when the price closes below a pivot low, signaling a bearish breakout. If "Strong Trade" is enabled, it must be a strong swing low.
- Trade Execution: Upon a valid breakout, the strategy places a trade with a stop loss set at the previous candle's low (for longs) or high (for shorts). The take profit is calculated based on the specified risk-reward ratio.
- Trade Monitoring: The strategy updates the status of each trade (Pending, Success, Failed) based on whether the take profit or stop loss is hit.
- Visualization: Breakout candles are highlighted, and pivot lines are drawn with customizable colors and widths. Strong swings are marked distinctly.

---

Usage Tips:

- Backtesting: Before using this strategy live, backtest it on different time frames and instruments to assess its performance.
- Customization: Adjust the pivot settings and risk-reward ratio to match your trading style and the volatility of the instrument you're trading.
- Risk Management: Always use proper risk management techniques, even though the strategy calculates stop losses and take profits.
Candlestick AnalysisSupport and Resistance

Skrip terproteksi

Skrip ini dipublikasikan secara closed-source dan anda dapat menggunakannya dengan bebas. Anda dapat memfavoritkannya untuk digunakan pada grafik. Anda tidak dapat melihat atau mengubah kode sumbernya.

Inggin menggunakan skrip ini pada chart?


🔝 The Greatest Analysis on Earth! : t.me/invotrading
Juga di:

Pernyataan Penyangkalan