PROTECTED SOURCE SCRIPT

Adaptive ATR Guardian PRO+ (Locked Lines)

61
🎯 核心交易功能 / Core Trading Features
1. 智能参数配置系统 / Intelligent Parameter Configuration
多风格选择:稳健/激进/保守三种交易风格
Multi-style Selection: Conservative/Aggressive/Moderate trading styles

多时间周期:M5/M15/H1三种时间框架
Multi-timeframe: M5/M15/H1 timeframes

自适应参数:根据风格自动调整所有技术参数
Adaptive Parameters: Automatically adjusts all technical parameters based on style

2. 高级信号生成系统 / Advanced Signal Generation
双均线策略:快慢EMA交叉信号
Dual MA Strategy: Fast/Slow EMA crossover signals

趋势过滤:100周期EMA作为趋势方向过滤
Trend Filter: 100-period EMA for trend direction filtering

ADX强度确认:ADX > 最小值才确认趋势有效
ADX Strength Confirmation: ADX > minimum value for valid trend

交易时段控制:可设置交易开始和结束时间
Trading Session Control: Configurable start and end times

3. 智能风险管理 / Intelligent Risk Management
动态止损:基于ATR的智能止损计算
Dynamic Stop Loss: ATR-based intelligent stop loss calculation

分批止盈:TP1平仓50%,TP2平仓剩余50%
Partial Take Profit: TP1 closes 50%, TP2 closes remaining 50%

追踪止损:TP2部分启用追踪止损功能
Trailing Stop: TP2 portion uses trailing stop functionality

品种自适应:BTC和黄金品种特殊参数调整
Symbol Adaptation: Special parameter adjustments for BTC and Gold

4. 专业订单管理 / Professional Order Management
自动平仓:新信号自动平掉反向仓位
Auto Close: New signals automatically close opposite positions

仓位管理:基于账户权益的百分比仓位
Position Management: Percentage-based position sizing

佣金计算:包含交易佣金成本
Commission Calculation: Includes trading commission costs

📊 高级可视化功能 / Advanced Visualization Features
1. 实时交易线系统 / Real-time Trading Lines System
入场线:蓝色虚线,显示入场价格
Entry Line: Blue dashed line showing entry price

止损线:红色实线,显示止损价格
Stop Loss Line: Red solid line showing stop loss price

TP1线:青色实线,显示第一目标位
TP1 Line: Teal solid line showing first target

TP2线:青色实线,显示第二目标位
TP2 Line: Teal solid line showing second target

2. 智能标签管理 / Intelligent Label Management
动态字号:根据时间周期自动调整标签大小
Dynamic Font Size: Auto-adjusts label size based on timeframe

位置优化:标签固定在入场K线右侧3根位置
Position Optimization: Labels fixed 3 bars right of entry candle

实时更新:线条和标签随图表滚动延伸
Real-time Updates: Lines and labels extend with chart scrolling

3. 专业信息面板 / Professional Information Panel
策略状态:交易风格、时间周期、持仓方向
Strategy Status: Trading style, timeframe, position direction

指标数据:ADX强度、ATR波动率数值
Indicator Data: ADX strength, ATR volatility values

交易信息:入场价格、止损价格、止盈价格
Trade Information: Entry price, stop loss, take profit prices

实时更新:每根K线更新最新数据
Real-time Updates: Updates data on every candle

4. 模式状态标签 / Mode Status Label
顶部状态栏:显示周期、风格、ADX、ATR、持仓状态
Top Status Bar: Shows timeframe, style, ADX, ATR, position status

颜色编码:蓝色主题,专业视觉效果
Color Coding: Blue theme, professional visual appearance

⚙️ 技术特色功能 / Technical Special Features
1. 自适应波动率调整 / Adaptive Volatility Adjustment
ATR基准:基于14周期ATR计算

ATR Baseline: Based on 14-period ATR calculation

波动率调整:ATR相对于50周期均线的调整系数
Volatility Adjustment: ATR adjustment coefficient relative to 50-period MA

动态止盈:止盈距离根据波动率动态调整
Dynamic Take Profit: TP distances dynamically adjusted based on volatility

2. 多品种优化 / Multi-Symbol Optimization
BTC特殊处理:更大的止损倍数和TP2倍数

BTC Special Handling: Larger stop loss and TP2 multipliers

黄金特殊处理:适中的参数调整
Gold Special Handling: Moderate parameter adjustments

通用品种:标准参数适用于其他品种
General Symbols: Standard parameters for other symbols

3. 时间智能控制 / Intelligent Time Control

交易时段:可配置的交易时间窗口
Trading Sessions: Configurable trading time windows

时段逻辑:支持跨午夜的时间段设置
Session Logic: Supports cross-midnight time periods

时间过滤:只在交易时段内产生信号
Time Filtering: Only generates signals during trading hours

4. 内存管理优化 / Memory Management Optimization
自动清理:平仓时自动删除所有线条和标签
Auto Cleanup: Automatically deletes all lines and labels on position close

资源回收:避免图表元素堆积
Resource Recycling: Prevents chart element accumulation

性能优化:高效的实时更新机制
Performance Optimization: Efficient real-time update mechanism

🛡️ 风险控制功能 / Risk Control Features
1. 多层过滤系统 / Multi-layer Filtering System
趋势方向过滤 / Trend direction filtering
ADX强度过滤 / ADX strength filtering
交易时间过滤 / Trading time filtering
品种特性过滤 / Symbol characteristic filtering

2. 动态参数系统 / Dynamic Parameter System
快慢均线周期自适应 / Fast/slow MA period adaptation
止损倍数动态调整 / Stop loss multiplier dynamic adjustment
止盈倍数风格化配置 / Take profit multiplier style-based configuration
追踪止损灵敏度设置 / Trailing stop sensitivity settings

3. 资金管理 / Money Management
固定百分比仓位 / Fixed percentage position sizing
佣金成本计入 / Commission costs included
无金字塔加仓 / No pyramiding (no adding to positions)
自动反向平仓 / Automatic opposite position closing

📈 用户体验功能 / User Experience Features
1. 可视化定制 / Visualization Customization
交易线显示/隐藏开关 / Trading lines show/hide toggle
信息面板显示控制 / Information panel display control
线条延伸长度可调 / Line extension length adjustable
颜色方案统一管理 / Color scheme unified management

2. 实时监控 / Real-time Monitoring
持仓状态实时显示 / Real-time position status display
关键价格水平标记 / Key price level markings
指标数值动态更新 / Indicator values dynamic updates
交易统计信息 / Trading statistics information

3. 专业布局 / Professional Layout
右上角信息面板 / Top-right information panel
顶部状态标签 / Top status label
图表交易线条 / Chart trading lines
整洁的视觉层次 / Clean visual hierarchy

Exención de responsabilidad

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.