PROTECTED SOURCE SCRIPT
Обновлено

Camarilla D/W/M, Alerts, TP/SL, ADX, EMA, Volume

318
# Camarilla Levels Pro - Advanced Trading Indicator

## 📊 **Overview**
A sophisticated Camarilla levels indicator with multiple timeframe support, advanced filtering, and comprehensive trading statistics. Designed for professional traders seeking precise entry/exit points with robust risk management.

## 🎯 **Key Features**

### **Multi-Timeframe Camarilla Levels**
- **D/W/M Timeframes**: Calculate levels from Daily, Weekly, or Monthly data
- **Accurate Calculations**: Uses previous period's High, Low, Close for precise level calculation
- **6 Key Levels**: H3, H4, H5 (Resistance) and L3, L4, L5 (Support)

### **Advanced Entry Signals**
- **4 Trading Scenarios**:
- LONG 1: Price crosses above H4 with stop at H3, target at H5
- LONG 2: Price crosses above L3 with stop at L4, target at H3
- SHORT 1: Price crosses below L4 with stop at L3, target at L5
- SHORT 2: Price crosses below H3 with stop at H4, target at L3

### **Smart Filtering System**
- **ADX Filter**: Confirms trend strength (configurable threshold)
- **Volume Filter**: Ensures significant volume participation
- **EMA Filter**: Aligns with trend direction (50-period default)
- **Flexible Combination**: Use any combination of filters

### **Non-Repainting Signals**
- **Signal Protection**: Once triggered, signals don't disappear or repaint
- **Executed Signal Tracking**: Historical record of all filled positions
- **Visual Confirmation**: Clear distinction between potential and executed trades

### **Comprehensive Alert System**
- **Entry Alerts**: Buy/Sell signals with level information
- **Exit Alerts**: TP/SL notifications with profit/loss data
- **Customizable**: Set alerts for specific conditions only

### **Professional Risk Management**
- **Auto TP/SL**: Automatic take-profit and stop-loss levels
- **Position Tracking**: Monitors active trades with real-time P/L
- **Single Position**: Prevents over-trading with one active position rule

### **Advanced Statistics**
- **Trade Analytics**: Total trades, win rate, profitability
- **Performance Metrics**: Total profit %, average trade performance
- **Real-time Monitoring**: Current position status and filter status
- **Visual Table**: Clean statistics display in corner

## ⚙️ **Customization Options**

### **Display Settings**
- Toggle level labels, signals, TP/SL markers, and statistics
- Adjust visual styles and sizes for clarity
- Right-positioned labels to avoid chart clutter

### **Filter Configuration**
- **ADX**: Length (14) and threshold (20) settings
- **Volume**: Period (20) and multiplier (1.2x) adjustment
- **EMA**: Customizable period (50 default)

### **Timeframe Selection**
- Daily levels for intraday trading
- Weekly levels for swing trading
- Monthly levels for position trading

## 📈 **Trading Strategy**

### **Entry Logic**
1. **Breakout Confirmation**: Price must cross and hold beyond level
2. **Filter Validation**: All active filters must pass conditions
3. **Single Position**: No new entries while position is active

### **Exit Logic**
- **Take Profit**: Automatic at calculated target levels
- **Stop Loss**: Automatic at calculated risk levels
- **Visual Feedback**: Green circles for TP, Red X for SL

### **Risk Management**
- Pre-defined risk/reward ratios based on Camarilla mathematics
- No pyramiding or multiple position risks
- Clear visual tracking of active trade parameters

## 🎨 **Visual Features**

- **Clean Level Display**: Gray circles for unobtrusive level marking
- **Signal Markers**: Tiny triangles for executed entries
- **Exit Markers**: Tiny circles (TP) and X (SL) for clear exits
- **Statistics Table**: Professional performance monitoring
- **Right-Aligned Labels**: Prevents chart congestion

## 🔔 **Alert Conditions**

- **Buy Signals**: LONG 1 or LONG 2 conditions met
- **Sell Signals**: SHORT 1 or SHORT 2 conditions met
- **Exit Alerts**: TP or SL hit for both long and short positions

## 💡 **Professional Use Cases**

- **Day Trading**: Use Daily levels with volume filter
- **Swing Trading**: Use Weekly levels with ADX trend confirmation
- **Position Trading**: Use Monthly levels with EMA trend alignment
- **Strategy Testing**: Comprehensive statistics for backtesting

This indicator provides institutional-grade Camarilla analysis with professional risk management tools, making it suitable for traders of all experience levels seeking systematic trading approaches with clear entry/exit rules.
Информация о релизе
# Camarilla Levels Pro - Advanced Trading Indicator

## 📊 **Overview**
A sophisticated Camarilla levels indicator with multiple timeframe support, advanced filtering, and comprehensive trading statistics. Designed for professional traders seeking precise entry/exit points with robust risk management.

## 🎯 **Key Features**

### **Multi-Timeframe Camarilla Levels**
- **D/W/M Timeframes**: Calculate levels from Daily, Weekly, or Monthly data
- **Accurate Calculations**: Uses previous period's High, Low, Close for precise level calculation
- **6 Key Levels**: H3, H4, H5 (Resistance) and L3, L4, L5 (Support)

### **Advanced Entry Signals**
- **4 Trading Scenarios**:
- LONG 1: Price crosses above H4 with stop at H3, target at H5
- LONG 2: Price crosses above L3 with stop at L4, target at H3
- SHORT 1: Price crosses below L4 with stop at L3, target at L5
- SHORT 2: Price crosses below H3 with stop at H4, target at L3

### **Smart Filtering System**
- **ADX Filter**: Confirms trend strength (configurable threshold)
- **Volume Filter**: Ensures significant volume participation
- **EMA Filter**: Aligns with trend direction (50-period default)
- **Flexible Combination**: Use any combination of filters

### **Non-Repainting Signals**
- **Signal Protection**: Once triggered, signals don't disappear or repaint
- **Executed Signal Tracking**: Historical record of all filled positions
- **Visual Confirmation**: Clear distinction between potential and executed trades

### **Comprehensive Alert System**
- **Entry Alerts**: Buy/Sell signals with level information
- **Exit Alerts**: TP/SL notifications with profit/loss data
- **Customizable**: Set alerts for specific conditions only

### **Professional Risk Management**
- **Auto TP/SL**: Automatic take-profit and stop-loss levels
- **Position Tracking**: Monitors active trades with real-time P/L
- **Single Position**: Prevents over-trading with one active position rule

### **Advanced Statistics**
- **Trade Analytics**: Total trades, win rate, profitability
- **Performance Metrics**: Total profit %, average trade performance
- **Real-time Monitoring**: Current position status and filter status
- **Visual Table**: Clean statistics display in corner

## ⚙️ **Customization Options**

### **Display Settings**
- Toggle level labels, signals, TP/SL markers, and statistics
- Adjust visual styles and sizes for clarity
- Right-positioned labels to avoid chart clutter

### **Filter Configuration**
- **ADX**: Length (14) and threshold (20) settings
- **Volume**: Period (20) and multiplier (1.2x) adjustment
- **EMA**: Customizable period (50 default)

### **Timeframe Selection**
- Daily levels for intraday trading
- Weekly levels for swing trading
- Monthly levels for position trading

## 📈 **Trading Strategy**

### **Entry Logic**
1. **Breakout Confirmation**: Price must cross and hold beyond level
2. **Filter Validation**: All active filters must pass conditions
3. **Single Position**: No new entries while position is active

### **Exit Logic**
- **Take Profit**: Automatic at calculated target levels
- **Stop Loss**: Automatic at calculated risk levels
- **Visual Feedback**: Green circles for TP, Red X for SL

### **Risk Management**
- Pre-defined risk/reward ratios based on Camarilla mathematics
- No pyramiding or multiple position risks
- Clear visual tracking of active trade parameters

## 🎨 **Visual Features**

- **Clean Level Display**: Gray circles for unobtrusive level marking
- **Signal Markers**: Tiny triangles for executed entries
- **Exit Markers**: Tiny circles (TP) and X (SL) for clear exits
- **Statistics Table**: Professional performance monitoring
- **Right-Aligned Labels**: Prevents chart congestion

## 🔔 **Alert Conditions**

- **Buy Signals**: LONG 1 or LONG 2 conditions met
- **Sell Signals**: SHORT 1 or SHORT 2 conditions met
- **Exit Alerts**: TP or SL hit for both long and short positions

## 💡 **Professional Use Cases**

- **Day Trading**: Use Daily levels with volume filter
- **Swing Trading**: Use Weekly levels with ADX trend confirmation
- **Position Trading**: Use Monthly levels with EMA trend alignment
- **Strategy Testing**: Comprehensive statistics for backtesting

This indicator provides institutional-grade Camarilla analysis with professional risk management tools, making it suitable for traders of all experience levels seeking systematic trading approaches with clear entry/exit rules.
Информация о релизе

📊 Overview
Camarilla indicator with the significantly enhanced version, highlighting the improvements and new features added during development.

🎯 Core Trading Logic

Enhanced Version
* Entry Points: 6 signals with extended functionality
* All original 4 signals maintained
* NEW Long 3: Open crosses above H5 (cyan triangle)
* NEW Short 3: Open crosses below L5 (magenta triangle)
* H5/L5 entries available only when trailing is enabled
* Exit Strategy: Dual-mode system
* Standard Mode: Traditional fixed TP/SL
* Trailing Mode: Advanced trailing stop-loss protection
* Intelligent position management based on market continuation

🔄 Trailing Stop-Loss System (Major Enhancement)

Enhanced Version
✅ Full Trailing Stop-Loss Implementation
Activation Logic
For H4/L4 Entries (Long 1 / Short 1):
1. Position opens at H4/L4 crossing
2. Price reaches H5/L5 → Position closes, profit locked
3. If next candle opens beyond H5/L5 → Use Long 3/Short 3 for trailing
For H5/L5 Entries (Long 3 / Short 3):
1. Only available when "Use Trailing Stop Loss" is enabled
2. Trailing activates immediately on entry
3. No fixed TP - position managed entirely by trailing SL
Trailing Distance Options
Three sophisticated calculation methods:
1. ATR-based (Adaptive to volatility)
* Distance = ATR(length) × Multiplier
* Automatically adjusts to market conditions
* Wider stops in volatile markets, tighter in calm markets
2. Percentage-based (Price-relative)
* Distance = Current Price × Percentage / 100
* Scales with price level
* Consistent risk management across different instruments
3. Level Distance (Camarilla-native)
* Long: Distance = H4 - H3
* Short: Distance = L3 - L4
* Uses natural Camarilla level spacing
* Aligns with indicator's inherent volatility measurement



📈 Visual Improvements
* Basic TP/SL visualization (green/red circles)
* Standard entry signals (small triangles)
* Level labels (H3, H4, H5, L3, L4, L5)
Enhanced Version
Entry Signals
* Long 1 & 2: Lime triangles (tiny) - Original signals
* Short 1 & 2: Red triangles (tiny) - Original signals
* NEW Long 3: Orange triangle (tiny) - H5 breakout entry
* NEW Short 3: Orange triangle (tiny) - L5 breakout entry
Exit Visualization
* Green circle (tiny): Fixed TP exits (original functionality)
* Red X (tiny): Stop-loss hits
* Orange diamond (tiny): Trailing stop-loss exits - NEW!
Trailing Stop Display
* Orange circles: Current trailing stop level
* Orange lines: Historical trailing movement path
* Connects bar-to-bar showing trailing adjustment
* Visible for all completed trades with trailing
* Provides clear visual feedback of trailing behavior




🎯 Performance Impact
Backtesting Considerations

Enhanced Version:
* Captures extended moves through trailing
* Higher profit potential in trending markets
* May have slightly more whipsaws in choppy conditions
* Overall improved risk/reward ratio when properly configured
Recommended Settings by Market Condition
Trending Markets:
* Enable trailing: ✅
* Distance type: ATR or Percent
* ATR Multiplier: 1.5-2.0 (wider trailing)
Range-Bound Markets:
* Disable trailing: ❌
* Use fixed TP/SL (original behavior)
High Volatility:
* Enable trailing: ✅
* Distance type: ATR
* ATR Multiplier: 2.0-3.0
Low Volatility:
* Enable trailing: ✅
* Distance type: Level Distance
* Tighter stops for quick exits

🚀 Key Innovations Summary
1. Adaptive Position Management
The indicator now makes intelligent decisions based on price action continuation, rather than blindly closing at fixed levels.
2. Multi-Timeframe Entry Strategy
Six entry points covering different market phases:
* Initial breakouts (H4/L4)
* Continuation breakouts (H5/L5)
* Reversal plays (L3/H3)
3. Visual Feedback Excellence
Every aspect of trade lifecycle is clearly displayed:
* Entry type identification
* Exit reason classification
* Trailing movement history
* Real-time position status
4. Flexible Risk Management
Three trailing distance methods accommodate different:
* Trading styles
* Market conditions
* Instrument characteristics
* Volatility regimes

📚 Conclusion
The enhanced Camarilla indicator represents a significant evolution from the original version. While maintaining all original functionality and signals, it adds sophisticated trailing stop-loss capabilities that allow traders to capture extended moves while protecting profits.
Key Achievements:
* ✅ 100% backward compatible (original behavior when trailing disabled)
* ✅ 50% increase in entry opportunities (6 vs 4 signals)
* ✅ Advanced profit protection through intelligent trailing
* ✅ Superior visualization and user feedback
* ✅ Flexible configuration for various market conditions
* ✅ Production-ready code quality with comprehensive testing
Result: A professional-grade indicator that combines the proven Camarilla pivot methodology with modern algorithmic trading techniques.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.