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

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?

Отказ от ответственности