PROTECTED SOURCE SCRIPT

ScalpZilla Strategy Claude 0.53

106
====== ScalpZilla Strategy Description ======
ScalpZilla is an advanced algorithmic trading strategy designed for the TradingView platform.
This is a fully reversible system that automatically closes opposing positions and manages multiple trade targets with configurable take-profit and stop-loss levels.

=== STRATEGY ARCHITECTURE ===
The strategy operates with two independent signal sections that can work together or separately:
1. CROSS SECTION: Generates signals based on price crossing a user-defined source indicator
2. SEPARATE SECTION: Uses independent sources for LONG and SHORT signals

=== REVERSIBLE SYSTEM FUNCTIONALITY ===
- The strategy automatically closes all opposing positions when a new signal is triggered
- For example, if a SHORT signal is received while in a LONG position, the system will:
* Close all current LONG positions
* Open a new SHORT position
- This reversible mechanism ensures the strategy always follows the current market direction

=== CONFIRMATION MECHANISM ===
Both sections can be configured to require confirmation from each other:
- When "Use As Confirmation" is enabled for a section, its signals act as confirmation triggers
- Two confirmation modes available:
* DELAYED: Waits for confirmation, opens position either when signal arrives and confirmation exists, or when confirmation arrives for an existing signal
* IMMEDIATE: Opens position only if confirmation already exists when signal arrives, otherwise skips
This allows creating complex conditions like: "Enter LONG only when both Cross and Separate sections agree on the direction"

=== TAKE PROFIT AND STOP LOSS MANAGEMENT ===
- Multiple take-profit levels (TP1-TP5) with individual activation and percentage settings
- Position size is automatically split equally between active TP levels
- Stop-loss protection with customizable percentage-based distance from entry
- All orders are managed separately for each section to avoid conflicts

=== ALERT SYSTEM ===
The strategy includes a comprehensive alert system with formatted messages that include:
- Trading pair/symbol
- Position direction (LONG/SHORT)
- Entry price
- All take-profit target levels (TP1-TP5)
- Stop-loss level
- Recommended leverage (25x)

Three alert configuration options are available:
1. "alert() function calls only" - For entry signals only
2. "Order fills and alert() function calls" - For all events
3. "Order fills only" - For order executions only
Alerts are formatted for compatibility with Cornix automation platform.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.