OPEN-SOURCE SCRIPT

Bollinger Bands Strategy by NJ

Bollinger Bands Strategy," leverages Bollinger Bands to make trading decisions. Bollinger Bands consist of three key components: a basis line (moving average), an upper band, and a lower band, which are calculated using the standard deviation of price movements.

Logic:

Entry Condition (Long): A long position is entered when the close price rises above the upper Bollinger Band, signaling a potential breakout or strong upward momentum.
Exit Condition: The long position is closed when the close price falls below the lower Bollinger Band, indicating potential downward pressure.
Features:

Users can adjust the moving average type, lookback length, and standard deviation multiplier to fit their trading style.
Trades are executed within a specified date range, which can be customized via inputs.
The strategy uses 100% of capital for each trade and incorporates commission and slippage into the performance calculation.
This strategy is suitable for trend-following traders looking to capture significant price movements using Bollinger Bands as the primary indicator.
Bands and ChannelsCandlestick analysisChart patterns

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明