Type/to search

The Bollinger Band Automated Trading Strategy

Cryptocurrency
Created: 2023-09-10 21:50:44
Last modified: 3 years ago
1
Follow
1781
Followers

How it Works

The strategy combines a short and long period simple moving average (SMA) with Bollinger Bands to identify trading opportunities. When the price closes below the lower band, a long position is entered.

The initial trade size is fixed, but subsequent safety orders are scaled according to the user-defined percentage. Profit taking and stop loss levels trail the average entry price using target percentages.

Benefits

Key benefits of the strategy include:

Automated trading based on Bollinger Band breakouts
Flexible input parameters for optimization
Scales position size using safety orders
Implemented as a 3Commas trading bot
Risks

Potential risks to consider:

Breakout signals late when volatility expands
Increased exposure from pyramiding positions
Stop loss can lag behind in fast moving markets
The strategy aims to capitalize on trend continuations. Appropriate stop loss and risk management is required to limit downside.

Source
Pine
/*backtest
start: 2023-01-01 00:00:00
end: 2023-09-09 00:00:00
period: 10m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © tedwardd
Strategy parameters
Strategy parameters
Short MA Window
Long MA Window
Upper Band Offset
Lower Band Offset
Long Stop Loss (%)
Long Take Profit (%)
Initial SO Deviation (%)
Safety Order Vol Step (%)
Enable/Disable visual lines
3Commas Bot ID (Optional)
Bot Email Token (Optional)
3Commas Bot Trading Pair (Optional)
Start Date
Start Month
Start Year
End Date
End Month
End Year
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)