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
BottleRocket Pivot Breakout derives floor trader pivots and ATR values from prior-day session data to avoid lookahead bias. Entries are filtered using a minimum stock price threshold, maximum daily ATR percentage to limit excessive volatility, maximum approach distance from the pivot, and an optional 5-day moving average trend filter. Positions are managed with trailing stop-loss percentages and an optional end-of-day force close. Trades are executed on intrabar tick updates on the main price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Trailing Stop %
float
4.0
trailPct
Max Approach Distance % (below pivot)
float
10.0
approachPct
Require Price Above 5-Day MA
bool
false
use5DMA
Max ATR % of Price (volatility gate)
float
8.0
atrMaxPct
Min Price — BottleRocket gate ($)
float
10.0
minPrice
Dollar Amount
float
1000
tpQuantity
Take Profit %
float
10.0
tpTp
Stop Loss %
float
4.0
tpSl
Send TP/SL in JSON
bool
true
tpSetTargets
Force Close at EOD
bool
true
closeEOD
EOD Hour (Exchange Time)
int
15
eodHour
EOD Minute
int
58
eodMinute
Show all 13 settings
Setting
Type
Default
Variable
Debug logging
bool
false
debugEnabled
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 trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr
This strategy plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos
The Chained Linear Regression Reversal Strategy plots linear regression channels with upper and lower standard deviation bands directly on the price chart across a user-defined time window. When price breaks out of the static channel for a confirmed number of
Calculates multi-period logarithmic regression trend channels and deviation bands across up to twenty selectable lookback lengths directly on the price chart. It evaluates channel slopes and Pearson's correlation coefficient to detect market trends and generat
This trend breakout strategy plots Donchian Channels consisting of upper, lower, and middle bands directly on the main price chart. Long positions enter when price touches the upper channel and pulls back to or below the middle band, placing a stop loss at the
This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-