Strategy · Pine Script v5 · On the chart

Double Bollinger Band 1M Scalper

by MuhammadMuhamid

A long-only strategy for one-minute spot charts that uses two Bollinger Bands, a standard 20-period band on close and a short 4-period wide band on open, to classify entries into three cases.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code396
Settings30inputs
LicenceNone stated
Last update12 days ago17 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Entries can be limited to the first two hours of the Asian, European and US sessions. Each case has its own reward-to-risk target and break-even trigger, with the stop at the signal candle low plus an optional buffer. A state dashboard and level lines are drawn.

Details

Published by

MuhammadMuhamid on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Volatility & bands, Scalping, Sessions & time

Markets

Crypto

Timeframes

M1-M5

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Stop-Loss Buffer (ticks below signal low)int0slBufferTicks
Count Break-Even exits as stop-outsboolfalsebeCountsAsStop
BB1 Lengthint20bb1Len
BB1 Multiplierfloat2.0bb1Mult
BB1 Sourcesourceclosebb1Src
BB2 Lengthint4bb2Len
BB2 Multiplierfloat4.0bb2Mult
BB2 Sourcesourceopenbb2Src
Enable Session FilterbooltrueuseSession
Session TimezonestringUTCsessTz
Asian OpenbooltrueuseAsia
sessAsiasession0000-0200:1234567sessAsia
Show all 30 settings
SettingTypeDefaultVariable
Euro Open booltrueuseEuro
sessEurosession0700-0900:1234567sessEuro
US Open booltrueuseUs
sessUssession1330-1530:1234567sessUs
Case 1 - Target R:Rfloat2.0c1TargetRR
BE at R:Rfloat1.0c1BeRR
Case 2 - Target R:Rfloat3.0c2TargetRR
BE at R:Rfloat1.5c2BeRR
Case 3 - Target R:Rfloat2.0c3TargetRR
BE at R:Rfloat1.0c3BeRR
Case 2 validity window (bars, 0 = unlimited)int0case2MaxBars
Show Bollinger BandsbooltrueshowBands
Show BB Basis LinesboolfalseshowBasis
Shade Session WindowsbooltrueshowSessBg
Show Entry / SL / TP / BE LevelsbooltrueshowLevels
Show Entry Signals & Bar ColoursbooltrueshowSignals
Show State DashboardbooltrueshowTable
Level Projection (bars to the right)int12projectBars
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This overlay strategy offers two selectable entry modes: a Bollinger squeeze on typical price and a simple moving-average cross. It filters trades by weekday, session, date range, and an optional news window, and can restrict direction or invert the side. Risk

Strategy v5 Volatility & bandsMoving averages
Updated yesterday · None stated GitHub repository of Boilerplate Configurable Strategy [Yosiet]
257 stars

This strategy is designed for 1-minute S&P 500 futures trading using multi-timeframe data and Fibonacci-weighted standard deviation bands around volume-weighted moving averages. It requests data from multiple higher timeframes without lookahead to prevent repa

Strategy v5 Volatility & bandsMoving averages
Updated 6 weeks ago · None stated GitHub repository of ES - Futures 1M No Repaint Fixed

Daily Bias + FVG Strategy

by TradersPost
218 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy

5 Minute Scalp

by hasnocool
106 stars

This strategy overlays three exponential moving averages on the price chart, with periods of 9, 50, and 200. It calculates a MACD histogram from a 1-minute timeframe, applies Bollinger Bands to the histogram, and tracks two RSI oscillators of different lengths

Strategy v5 ScalpingMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 5 Minute Scalp

ATOM 1m scalp HK

by dearvn
43 stars

This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers