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.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Stop-Loss Buffer (ticks below signal low)
int
0
slBufferTicks
Count Break-Even exits as stop-outs
bool
false
beCountsAsStop
BB1 Length
int
20
bb1Len
BB1 Multiplier
float
2.0
bb1Mult
BB1 Source
source
close
bb1Src
BB2 Length
int
4
bb2Len
BB2 Multiplier
float
4.0
bb2Mult
BB2 Source
source
open
bb2Src
Enable Session Filter
bool
true
useSession
Session Timezone
string
UTC
sessTz
Asian Open
bool
true
useAsia
sessAsia
session
0000-0200:1234567
sessAsia
Show all 30 settings
Setting
Type
Default
Variable
Euro Open
bool
true
useEuro
sessEuro
session
0700-0900:1234567
sessEuro
US Open
bool
true
useUs
sessUs
session
1330-1530:1234567
sessUs
Case 1 - Target R:R
float
2.0
c1TargetRR
BE at R:R
float
1.0
c1BeRR
Case 2 - Target R:R
float
3.0
c2TargetRR
BE at R:R
float
1.5
c2BeRR
Case 3 - Target R:R
float
2.0
c3TargetRR
BE at R:R
float
1.0
c3BeRR
Case 2 validity window (bars, 0 = unlimited)
int
0
case2MaxBars
Show Bollinger Bands
bool
true
showBands
Show BB Basis Lines
bool
false
showBasis
Shade Session Windows
bool
true
showSessBg
Show Entry / SL / TP / BE Levels
bool
true
showLevels
Show Entry Signals & Bar Colours
bool
true
showSignals
Show State Dashboard
bool
true
showTable
Level Projection (bars to the right)
int
12
projectBars
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.
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
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
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
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
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
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