Strategy · Pine Script v6 · On the chart

MP Camarilla Range Bounce

by midngtpickle

This strategy fades touches of daily Camarilla pivot boundaries (S3 for longs, R3 for shorts) during sideways market conditions.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code371
Settings32inputs
LicenceCustom licence
Last update4 weeks ago27 Sep 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

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.

Details

Published by

midngtpickle on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Mean reversion, Scalping

Markets

Crypto

Timeframes

M1-M5, M15-H1

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
Pivot timeframetimeframeDpivotTF
Plot levelsbooltrueshowLevels
Require low ADXbooltrueuseAdx
ADX lengthint14adxLen
Max ADXfloat22.0adxMax
Require price contained in R3/S3booltrueuseContain
Containment lookbackint20containBars
Require compressed BB widthboolfalseuseBbw
BBW lengthint20bbwLen
BBW percentile maxfloat40.0bbwPct
Touch tolerance (ATR)float0.25touchAtr
Require rejection candlebooltrueneedReject
Show all 32 settings
SettingTypeDefaultVariable
Require RSI extremebooltrueuseRsi
RSI lengthint14rsiLen
RSI oversold (long)float35.0rsiLo
RSI overbought (short)float65.0rsiHi
Allow longsbooltrueallowLong
Allow shortsbooltrueallowShort
Stop placementstringS4/R4stopMode
ATR lengthint14atrLen
ATR stop multiplierfloat1.5atrStopMult
TP1 size %int50tp1Pct
Use TP2 (opposite R3/S3)booltrueuseTp2
Move stop to BE after TP1booltruemoveBe
Time stop (bars, 0=off)int0maxBars
Max entries per dayint4maxPerDay
Restrict to sessionboolfalseuseSess
Sessionsession0700-1600sess
TimezonestringEurope/LondonsessTz
Show stats tablebooltrueshowTable
PositionstringTop RighttblPos
Text sizestringSmalltblSize
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

330 stars

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

Strategy v5 Support & resistanceMean reversion Repaints
Updated 2 months ago · None stated GitHub repository of Grid Bot Simulator [Alorse]

3C QFL Mean Reversal

by hasnocool
106 stars

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,

Strategy v5 Mean reversionSupport & resistance Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 3C QFL Mean Reversal
105 stars

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

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Gold Scalping BOS & CHoCH

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

Strategy v5 Oscillators & momentumSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Daily High/Low and Andean Oscillator Strategy

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

Strategy v6 Support & resistanceMean reversion Repaints
Updated 6 weeks ago · None stated GitHub repository of Grid Spot Trading Algorithm [The Quant Science]

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