PROTECTED SOURCE SCRIPT
Updated

BB Breakout Trader by HEXEDIT

82
**Do not modify the indicator settings.

This indicator can be used on multiple timeframes, but it works best on the 1-hour timeframe.
Release Notes
Update: Compound Interest Calculation for Profits

Profits are now calculated with compound interest (current balance × profit rate)
Losses remain fixed based on initial capital
Release Notes
Update: Fixed Leverage Loss Calculation

Previous 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.
Release Notes
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
Release Notes
Update: Stop Loss Feature Added

Added 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
Release Notes
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
Release Notes
Update: Standard Deviation Multiplier Changed

Standard 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

Disclaimer

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.