Bollinger Breakout with Levels
- Göstergeler
- Alfet Nigmatullin
- Sürüm: 1.0
Bollinger Breakout with Stop-Loss Levels
Description
This indicator tracks breakouts of the upper and lower Bollinger Bands and automatically displays dynamic entry lines and stop-loss levels on the chart. The lines dynamically extend to the current candle, allowing visual tracking of signal relevance.
Key Features
1. Color Coding
-
Upper Breakout (BLUE) – buy signal (bullish breakout)
-
Lower Breakout (RED) – sell signal (bearish breakout)
2. Dynamic Lines
-
Breakout and stop-loss lines automatically extend to the current candle
-
Lines update with each new bar while maintaining the historical entry point
3. Stop-Loss Levels
-
Automatic stop-loss calculation based on specified number of points
-
Price monitoring and automatic line removal when stop-loss is triggered
4. Visual Elements
-
Main breakout lines (solid, width 3)
-
Stop-loss lines (dashed, width 2)
-
Short price markers on the right side of the chart
-
Text labels with price levels
Configurable Parameters
Bollinger Bands
-
BB Period – Bollinger Bands calculation period (default 20)
-
BB Deviation – standard deviation (default 2.0)
-
Applied price – price for calculation (default Close)
Stop-Loss
-
Stop-loss in points – distance to stop-loss in points (default 10)
Visual Settings
-
Marker length – price marker length in points
-
Font size – font size for price labels
-
Show price labels – display price labels
Color and Style Settings
-
Separate settings for upper (BLUE) and lower (RED) lines:
-
Breakout line color
-
Stop-loss line color
-
Line thickness and style
-
Operating Logic
1. Breakout Detection
-
When a candle closes above the upper Bollinger Band – buy signal
-
When a candle closes below the lower Bollinger Band – sell signal
2. Level Setting
-
For long positions (upper breakout):
-
Entry price = closing price of the candle
-
Stop-loss = entry price - (points × Point)
-
-
For short positions (lower breakout):
-
Entry price = closing price of the candle
-
Stop-loss = entry price + (points × Point)
-
3. Position Monitoring
-
The indicator continuously tracks current prices
-
When a stop-loss level is reached, corresponding lines are automatically removed
-
Detailed event messages are printed to the journal
4. Dynamic Updates
-
Lines extend to the current moment in time
-
When a new signal appears, old lines are replaced with new ones
Advantages
-
Clarity – color coding allows instant signal direction recognition
-
Automation – no manual stop-loss level calculation needed
-
Dynamic Nature – lines always remain relevant and extend to the current candle
-
Informativeness – price labels and detailed logging of all events
-
Flexibility – all parameters can be adjusted for any trading strategy
Usage Example
-
Install the indicator on the chart
-
Wait for Bollinger Band breakouts
-
The indicator will automatically display:
-
Blue color – buy signal
-
Red color – sell signal
-
-
Use the displayed levels to open positions
-
Monitor stop-loss triggers via the journal
Notes
-
The indicator does not open actual trades, only visualizes signals
-
When signals change, old lines are automatically removed
-
All events are thoroughly logged to the Experts journal
-
Works correctly on any timeframe and instrument
Compatibility
-
MetaTrader 5
-
Any currency pairs, indices, commodities
-
All timeframes
This indicator is ideal for traders using Bollinger Band breakout strategies with clear risk management through stop-loss orders.
