PROTECTED SOURCE SCRIPT
Cập nhật BB Breakout Trader by HEXEDIT

**Do not modify the indicator settings.
This indicator can be used on multiple timeframes, but it works best on the 1-hour timeframe.
This indicator can be used on multiple timeframes, but it works best on the 1-hour timeframe.
Phát hành các Ghi chú
Update: Compound Interest Calculation for ProfitsProfits are now calculated with compound interest (current balance × profit rate)
Losses remain fixed based on initial capital
Phát hành các Ghi chú
Update: Fixed Leverage Loss CalculationPrevious version incorrectly calculated losses as fixed amounts
Now both profits and losses are calculated with compound interest
Example with 2x leverage:
Profit +2%: $100 × 1.02 = $102
Loss -2%: $102 × 0.98 = $99.96
The safest option is to use 1x leverage. Keep in mind that while using leverage increases potential returns, it also significantly increases risk.
Phát hành các Ghi chú
Current Exit Logic:Long Exit: Triggered when candle closes above the middle band (crossover)
Short Exit: Triggered when candle closes below the middle band (crossunder)
Exits occur only after the candle closes and crosses the middle band, not on touch
Phát hành các Ghi chú
Update: Stop Loss Feature AddedAdded adjustable stop loss percentage (0.1% ~ 10%, default 1%)
Automatic position closure when stop loss is triggered
Long position: Auto-closes when price drops below entry price by stop loss %
Short position: Auto-closes when price rises above entry price by stop loss %
Stop loss is calculated with leverage and reflected in win rate, cumulative P&L, and final balance
Stop loss helps preserve capital and significantly improves long-term profitability by preventing large losses
Red X mark displayed when stop loss is triggered
Stop loss alert notification added
Phát hành các Ghi chú
Major Updates:✅ Exit condition changed to immediate closure upon touching the middle band
Previous: Exit when candle closes across the middle band (crossover)
Current: Exit immediately when price touches the middle band (using high/low)
✅ Exit price calculation updated to use exact middle band price
Exit P&L is calculated based on (middle band price - entry price)
More accurate profit/loss calculation
✅ Both profits and losses are calculated with compound interest
Profits: Current balance × (1 + profit%)
Losses: Current balance × (1 + loss%)
✅ Stop loss feature remains active
Automatic position closure when stop loss percentage is triggered
Stop loss is recorded as a loss in win rate and statistics
Phát hành các Ghi chú
Update: Standard Deviation Multiplier ChangedStandard Deviation: 4.0 → 3.5
Effects of this change:
Bollinger Bands become narrower
Entry signals occur more frequently
Profit per trade may be smaller, but trade frequency increases
Win rate may remain similar or slightly increase
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.