Indicator · Pine Script v5 · On the chart

OR Levels + EMA Cross (Option Levels Focus) v6

by 7b809

An overlay indicator that draws opening range support and resistance levels on an index chart together with a 9 and 21 EMA cross.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code643
Settings19inputs
LicenceNone stated
Last update2 weeks ago12 Oct 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 indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

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

OR Levels + EMA Cross (Option Levels Focus) v6 watches four option contract symbols and records whether each has crossed the third resistance or support level, with times shown in an optional table. Inputs include the market open time, range candles, days shown, alert symbol and option symbols. Contract symbols are fixed text that the user must update.

Details

Published by

7b809 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Sessions & time, Support & resistance, Moving averages

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
Market Open Hourint9marketHour
Market Open Minuteint15marketMinute
Opening Range Candle Countint1rangeCandles
Show Past Daysint30showDays
Show Formula LabelsboolfalseshowFormulaLabels
Show EMA Cross LabelsboolfalseshowEMALabels
Index Chart (NIFTY/SENSEX)booltrueisIndexChart
Alert Symbol / Custom Ticket NamestringNIFTYalertSymbol
Show TablebooltrueshowTable
Show Sub Support/ResistanceboolfalseshowSubLevels
Show Resistance2 / Support2boolfalseshowR2S2
Show Resistance3 / Support3boolfalseshowR3S3
Show all 19 settings
SettingTypeDefaultVariable
Show Buy CE/PEboolfalseshowBuyLevels
R3 CE TradingView SymbolsymbolNSE:NIFTY260623C24050r3CeSymbol
R3 PE TradingView SymbolsymbolNSE:NIFTY260623P24100r3PeSymbol
S3 CE TradingView SymbolsymbolNSE:NIFTY260623C23850s3CeSymbol
S3 PE TradingView SymbolsymbolNSE:NIFTY260623P23900s3PeSymbol
Fast EMA Lengthint9ema9Length
Slow EMA Lengthint21ema21Length
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

Midnight VWAP

by TradersPost
218 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap
9 stars

Edge Atlas draws a right-edge price-level atlas on the price chart. Modules produce day, week, and other period highs, lows, opens, and closes, plus pivot points, Fibonacci levels, support and resistance zones, session ranges, round numbers, and VWAP. A shared

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 days ago · MIT GitHub repository of Edge Atlas [WavesUnchained]

LunarTick Levels

by lunarticktrading
7 stars

LunarTick Levels plots key daily reference levels and multi-timeframe simple moving averages directly on the price chart. It highlights key price points including the Opening Print, Previous Day High and Low, and Overnight High and Low. Additionally, it projec

Indicator v6 Support & resistanceMoving averages
Updated 2 weeks ago · None stated GitHub repository of LunarTick Levels

PA Indicators

by forecho
5 stars

This indicator plots price action tools directly on the main price chart. It shades candles according to Internal Bar Strength (IBS) and optional wick-length thresholds to differentiate trend bars from trading ranges. The script tracks session bar counts durin

Indicator v6 Candlestick patternsMoving averages
Updated 8 weeks ago · None stated GitHub repository of PA Indicators

TradeKit

by tanishq-rocks
5 stars

TradeKit is an all-in-one technical analysis indicator that consolidates multiple chart overlays into a single script on the price chart. It plots up to four customizable moving averages (SMA, EMA, SMMA, WMA, or VWMA), Bollinger Bands, VWAP, and reference leve

Indicator v6 Moving averagesCandlestick patterns
Updated 3 months ago · MPL-2.0 GitHub repository of TradeKit

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers