Indicator · Pine Script v6 · On the chart

OI Profile

by rellis3

Shows an options book as a picture on the price chart, from an export pasted into a settings box.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code588
Settings40inputs
LicenceNone stated
Last updateyesterday28 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

OI Profile draws reaction levels and optional zones, an expected-move box, and a set of profile columns in the empty space right of the last bar: dealer gamma by strike, vanna, traded volume, open interest change, implied volatility smile and a gamma helix. A summary table is optional and level count and column sizes are adjustable. The author describes it as a picture of the book, not a signal.

Details

Published by

rellis3 on GitHub

Draws

On the price chart

Markets

Indices, Gold

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
Paste the OI Profile exporttextpasteTxt
Force instrument (blank = auto)stringoverrideKey
Gold chart tickerstringXAUUSDgoldChart
NQ chart tickerstringNAS100USDnqChart
SPX500 chart tickerstringSPX500USDspxChart
DE30 chart tickerstringGER40de30Chart
UK100 chart tickerstringUK100GBPuk100Chart
US30 chart tickerstringUS30USDus30Chart
US2000 chart tickerstringUS2000USDus2kChart
Reaction levelsbooltrueshowLevels
Reaction zones (soft bands behind levels)boolfalseshowZones
Minor levels (vanna, charm, volume, gamma peak)boolfalseshowMinor
Show all 40 settings
SettingTypeDefaultVariable
Expected move edges (options-implied range, not a level)boolfalseshowEM
Max levels shownint7maxLevels
Expected-move boxbooltrueshowEM
Summary tablebooltrueshowTable
GEX profilebooltrueshowGex
VannabooltrueshowVanna
VolumebooltrueshowVol
OI changebooltrueshowChg
IV smilebooltrueshowSmile
Gamma helixbooltrueshowHelix
Gap right of the last bar (bars)int6gapBars
Column width (bars)int14colW
Gap between columns (bars)int5colGap
Zone half-height (× expected-move scale)float0.05zoneFrac
Label sizestringsmalllblSizeIn
Level labels on thestringrightlabelSide
Table text sizestringtinytblSize
Table positionstringbottom lefttblPos
Call wall / short gammacolor#ff5b6ecCall
Put wall / long gammacolor#2dd4a0cPut
Zero gamma / GEX flipcolor#a78bfacZero
Max paincolor#e6c84acPain
Vanna flipcolor#ff7ad9cVanna
Charm flipcolor#ff9f43cCharm
Volumecolor#4aa8ffcVol
Expected movecolor#f0b04acEM
IV smilecolor#ffd166cSmile
Gamma peakcolor#e2e8f0cPeak
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

ICT Liquidity Void Fill

by ArunKBhaskar
575 stars

This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill

[RS]Donchian Fans

by ricardosantos79
261 stars

This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high

Indicator v4 Support & resistanceTrend
Updated 4 years ago · None stated GitHub repository of [RS]Donchian Fans

Lux Trailing

by dearvn
257 stars

Plots kernel-smoothed price zones on the price chart using a Rational Quadratic kernel from an imported library. It builds an inner and an outer high-low zone from 15-minute highs and lows, plus a smoothed close and a midline, and marks bullish or bearish bars

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 6 weeks ago · None stated GitHub repository of Lux Trailing

Dynamic Linear Regression

by TradersPost
228 stars

Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Dynamic Linear Regression

Candlestick Patterns

by harryguiacorn
220 stars

This indicator plots optional candlestick pattern signals on the price chart. It detects engulfing bars, inside bars, HOLP and LOHP, kicker patterns, body-mass extremes, higher highs and lower lows, ATR warnings, and four-bar fractals. Optional pivot marks use

Indicator v5 Candlestick patternsVolatility & bands
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns

More Support & resistance scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers