OPEN-SOURCE SCRIPT

20-34 Dual Dot Alerts Only

Pine Script that uses dual Donchian Channels (20-period and 34-period) and places tiny blue dots above candles when the highest price touches any upper Donchian Channel and below candles when the lowest price touches any lower Donchian Channel, without displaying the channels themselves, you can use the code.

### Explanation of the Code:
1. **Indicator Declaration**: The script is named "Dual Donchian Channels Dots Only" and overlays on the price chart.
2. **Input for Lengths**: Users can set lengths for two Donchian Channels (20 and 34 periods).
3. **Calculating Bands**: The upper and lower bands are calculated using `ta.highest` and `ta.lowest` functions over the specified periods.
4. **Touch Conditions**:
- `upperTouch`: Checks if the highest price of the current candle touches either of the upper bands.
- `lowerTouch`: Checks if the lowest price of the current candle touches either of the lower bands.
5. **Plotting Dots**:
- A tiny blue dot is plotted above bars where `upperTouch` is true.
- A tiny blue dot is plotted below bars where `lowerTouch` is true.

### How to Use:
1. Copy this script into TradingView’s Pine Script editor.
2. Save it and add it to your chart.
3. You will see tiny blue dots appear above or below candles based on whether they touch any of the upper or lower Donchian Bands.

This setup provides a clear visual indication of price interactions with both Donchian Channels while keeping the chart uncluttered by hiding the channel lines.
Bands and Channels

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?


Learning smoothly & executing confidently.

Haftungsausschluss