Skip to content
Disclaimer: These examples are for educational and demonstration purposes only. They are not ready-to-use, profitable trading strategies

Bollinger Breakout Scalper

When price breaks Bollinger bands with volume confirmation, enter for quick breakout scalps.

What it demonstrates: Multi-value indicators (bollinger {upper, mid, lower}),.

When to use: Useful for volatile sessions.

const amountPercentage = "15%";
function setup() {
ind.add({
name: 'bbands',
alias: 'bb',
inputs: ['close'],
options: {
period: 20,
stddev: 2
},
display: true
});
}
async function update() {
const bb = ind.get('bb');
if (!bb) return;
// breakout logic: close > upper -> buy (momentum), close < lower -> sell
if (candle.close > bb.upper) {
await order.buy(null, amountPercentage);
} else if (candle.close < bb.lower) {
await order.sell(null, amountPercentage);
}
}