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
MP Camarilla Range Bounce plots pivot levels directly on the price chart and validates entries using regime filters, including maximum ADX thresholds, price containment lookbacks, RSI extremes, and candle rejection patterns. Position exits are managed with S4/R4 or ATR-based stop losses, partial take-profits targeting opposite pivot levels, breakeven adjustments, and maximum bar limits. Built specifically for ranging environments, performance degrades during strong trends if regime filters are bypassed.
Camarilla pivot range bounce fading logic
ADX and price containment regime filters
RSI extreme and rejection candle entry triggers
Partial take-profits with breakeven stop loss movement
Daily trade limit and trading session time filters
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot timeframe
timeframe
D
pivotTF
Plot levels
bool
true
showLevels
Require low ADX
bool
true
useAdx
ADX length
int
14
adxLen
Max ADX
float
22.0
adxMax
Require price contained in R3/S3
bool
true
useContain
Containment lookback
int
20
containBars
Require compressed BB width
bool
false
useBbw
BBW length
int
20
bbwLen
BBW percentile max
float
40.0
bbwPct
Touch tolerance (ATR)
float
0.25
touchAtr
Require rejection candle
bool
true
needReject
Show all 32 settings
Setting
Type
Default
Variable
Require RSI extreme
bool
true
useRsi
RSI length
int
14
rsiLen
RSI oversold (long)
float
35.0
rsiLo
RSI overbought (short)
float
65.0
rsiHi
Allow longs
bool
true
allowLong
Allow shorts
bool
true
allowShort
Stop placement
string
S4/R4
stopMode
ATR length
int
14
atrLen
ATR stop multiplier
float
1.5
atrStopMult
TP1 size %
int
50
tp1Pct
Use TP2 (opposite R3/S3)
bool
true
useTp2
Move stop to BE after TP1
bool
true
moveBe
Time stop (bars, 0=off)
int
0
maxBars
Max entries per day
int
4
maxPerDay
Restrict to session
bool
false
useSess
Session
session
0700-1600
sess
Timezone
string
Europe/London
sessTz
Show stats table
bool
true
showTable
Position
string
Top Right
tblPos
Text size
string
Small
tblSize
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 strategy divides a fixed price range between an upper and a lower limit into equally spaced grid levels and plots them on the price chart. It marks a buy when price crosses down through a grid and a sell when price crosses up through a grid, using either
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
3C QFL Mean Reversal is a strategy based on the Quickfinger Luc (QFL) trading methodology. It identifies breakdown buying opportunities below established price base levels and enters mean-reversion trades. The strategy includes multi-safety order DCA scaling,
Gold Scalping BOS & CHoCH is an overlay strategy designed for detecting market structure shifts. It calculates rolling swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH) events. Long signals trigger when bullish BOS and C
This strategy plots the previous daily high and low on the price chart and calculates the Andean oscillator bull and bear components with an exponential moving average signal. It looks for a bull or bear cross of that signal, then confirms the setup against re
This strategy builds a spot grid between user-set high and low prices and draws it on the price chart. It splits that range into ten levels and places up to five long limit orders at the lower levels, sizing each from current equity. Orders already below price