OPEN-SOURCE SCRIPT

Strategie Bollinger Bands buy & sell

Middle Band (Basis): Calculated using a Simple Moving Average (SMA) over a user-defined period.
Upper Band: The middle band plus the standard deviation of the price multiplied by a user-defined multiplier.
Lower Band: The middle band minus the standard deviation of the price multiplied by the same multiplier.
User Inputs:

Length: The number of periods used for the SMA and standard deviation (default: 20).
Deviation: The multiplier for the standard deviation to calculate the upper and lower bands (default: 2.0).
Buy and Sell Signals:

Buy Signal: Generated when the price crosses above the lower band, indicating a potential oversold condition.
Sell Signal: Generated when the price crosses below the upper band, indicating a potential overbought condition.
Visual Markers:

Buy Signals: Displayed below the price bars as green labels with the text "BUY."
Sell Signals: Displayed above the price bars as red labels with the text "SELL."
The Bollinger Bands (upper, middle, and lower) are plotted directly on the price chart for easy visualization.
How to Use the Script:
Customize Parameters:

Modify the length and deviation inputs to adapt to different market conditions or timeframes.
Interpret Signals:

A BUY signal indicates a possible reversal or upward movement from the lower band.
A SELL signal suggests a potential price decline from the upper band.
Combine with Other Indicators:

While effective in certain conditions, this strategy performs better when combined with other technical tools, such as RSI or MACD, to confirm trends and avoid false signals.
Limitations:
This script assumes that price will revert to the mean, which may not hold during strong trends or highly volatile conditions.
It is not a standalone trading system and should be backtested and optimized before applying to real trading.
Bands and ChannelsBill Williams Indicators

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità