This strategy calculates higher-timeframe price levels and multi-timeframe Bollinger Bands to identify price zone interactions directly on the main chart.
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
Time PriceZones Strat Testing uses daily source prices and 240-minute Bollinger Bands, styling them with dynamic gradient coloring based on proximity. Trade management settings include fixed profit target levels and trailing stop distances in pips or points. Historical calculations use higher-timeframe data with lookahead enabled without bar offsets, causing historical signals to look ahead and repaint relative to real-time execution.
Multi-timeframe Bollinger Bands calculations
Dynamic proximity gradient band coloring
Configurable profit target and trailing stop distance
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Signal Source
source
close
sig
Source 1
source
high
src1
Source 2
source
low
src2
Timeframe 1
timeframe
D
res1
Timeframe 2
timeframe
D
res2
BB Timeframe
timeframe
240
resBB
BB Deviation Mult
float
2.0
devBB
BB length
int
10
lenBB
Percent Range 1
float
0.0004
prc1
Percent Range 2
float
0.0004
prc2
Show Source 1
bool
false
vis_1
Show Source 2
bool
false
vis_2
Show all 26 settings
Setting
Type
Default
Variable
Show BB
bool
true
visBB
Start Yr
int
2021
ts_Yr
Start Mo
int
7
ts_Mo
Start Day
int
10
ts_Day
Start Hr
int
0730
ts_Hr
End Yr
int
2021
te_Yr
End Mo
int
7
te_Mo
End Day
int
21
te_Day
End Hr
int
16
te_Hr
Show 1
bool
true
vis_sig0
Show 2
bool
true
vis_sig1
Show 3
bool
true
vis_sig2
Profit Target (Pips/Points)
int
4000
profit_target
Trailing Stop Distance (Pips/Points)
int
1000
trailing_stop_dist
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 is built for ES futures on the one-minute chart. It plots a volume-weighted moving average of price opens and standard-deviation bands at Fibonacci ratios, plus a second longer volume-weighted average from a higher-timeframe open. Call an
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 overlay strategy plots a two-timeframe Ichimoku setup on the price chart, with Tenkan, Kijun, Chikou, and Kumo from a base higher timeframe and an optional highest-timeframe cloud. It allows two entries in the same direction and uses ATR-based trailing st
KC15 is a price-chart strategy that configures two moving averages, a Bollinger Band Width Percentile filter, and PMARP entry and exit thresholds for long and short trades. Users can switch each average between SMA and EMA, set lengths and colors, and toggle l
This strategy implements a multi-stage trend following system inspired by John W. Seykota. It generates long and short entries when price breaks above or below Donchian channels of specified length. Each entry adds a unit sized to risk a fixed percentage of cu
Calculates upper and lower Donchian Channel bands over a customizable lookback length and plots them on the main price chart. At a specified exchange hour, the strategy places a long buy stop order at the upper Donchian Channel level. Unfilled pending orders a