PROTECTED SOURCE SCRIPT
Mis à jour

BB Breakout Trader by HEXEDIT

97
**Do not modify the indicator settings.

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

Profits are now calculated with compound interest (current balance × profit rate)
Losses remain fixed based on initial capital
Notes de version
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.
Notes de version
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
Notes de version
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
Notes de version
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
Notes de version
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
Notes de version
Summary of Changes:
Early Exit Feature Added:

Exit positions 0.02% before reaching the middle Bollinger Band
Prevents situations where price doesn't quite touch the middle band
Improves exit reliability and reduces missed exits

Technical Details:

Long positions: Exit at middle band × (1 - 0.02%) = 0.02% below middle band
Short positions: Exit at middle band × (1 + 0.02%) = 0.02% above middle band
P&L calculation based on early exit price for accuracy
Exit signals displayed at early exit price locations

Settings:

Early Exit %: Adjustable from 0.0% to 0.5% (default: 0.02%)
Can be fine-tuned based on market conditions and coin volatility

Benefits:

Higher exit success rate
Slightly lower profit per trade, but more consistent exits
Reduces risk of price reversing before reaching middle band

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.