Strategy · Pine Script v6 · On the chart

CH033 ORB+ Strategy

by sandovalchristian033

A Pine v6 backtest strategy for the New York opening range on index futures.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code415
Settings40inputs
LicenceNone stated
Last update2 months ago20 Aug 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

CH033 ORB+ Strategy marks the 09:30 to 09:45 range, then looks for a break by wick or close, a return inside the range, and a close across session VWAP in the opposite direction before entering. Stop loss can use the manipulation extreme, ATR or a fixed distance, with three R-multiple targets, partial exits, break-even after the first target and a daily trade limit. Comments and labels are in Spanish.

Details

Published by

sandovalchristian033 on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Sessions & time, Breakout, Mean reversion

Markets

Indices

Timeframes

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
Rango de aperturasession0930-0945nyRange
Ventana de entradassession0945-1200entryWinSes
Cerrar la posición al terminar la ventanabooltruecloseAtEnd
Ruptura del rango porstringMecha (barrido)brkMode
Exigir reingreso al rangobooltrueneedReentry
Invalidar si tarda más de N velas en reingresarboolfalseuseBarLim
barLimint40barLim
Máximo de operaciones por díaint1maxSigs
Descartar los fades que van contra la dirección del díaboolfalsealignOn
Zona muerta (X veces el tamaño del rango)float0.15alignDead
MODO CONTINUACIÓN · operar a favor del día en vez de descartarboolfalsecontOn
Cálculo del Stop LossstringExtremo de la manipulaciónslMode
Show all 40 settings
SettingTypeDefaultVariable
Colchón del stop (ticks)int2slBufTicks
ATR · periodoint14atrLen
xfloat1.5atrMult
Stop fijo (puntos)float20fixedSlPts
TP1 (R)float1.0tp1R
TP2 (R)float1.5tp2R
TP3 (R)float2.0tp3R
Descartar si el stop es menor a (pts)boolfalseuseMinStop
minStopPtsfloat5minStopPts
Descartar señales con stop demasiado grandestringMúltiplo del rangostopFilterMode
Máximo = X veces el tamaño del rangofloat2.5maxStopRangeMult
Máximo en puntosfloat80maxStopPts
Mover el stop a break-even tras TP1booltruebeAfterTp1
Contratos por operaciónint3qtyTot
Salidas parciales en TP1, TP2 y TP3booltrueuseScale
Si no hay parciales, salir enstringTP2oneTp
Mostrar el panelbooltruestatOn
statPosstringArriba derechastatPos
statSizestringPequeñostatSize
Riesgo por operación ($)float250riskUsd
Límite de drawdown de la cuenta ($)float2000ddLimit
Niveles de R a medirfloat1.0statR1
statR2float1.5statR2
statR3float2.0statR3
statR4float3.0statR4
Filtrar según el bias de temporalidad altaboolfalseuseBiasFilt
Temporalidadtimeframe60biasTfHigh
EMAint21biasMaLen
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

106 stars

This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status

Strategy v4 Screeners & dashboardsBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 1St Bar GAP+BkOut Screener v2 by RM
53 stars

This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of BTCUSD 5M Optimized Strategy

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