Indicator · Pine Script v5 · On the chart

3s Credit Spread [DTO]

by majohnst

This overlay indicator calculates intraday standard deviation sigma bands using live implied volatility from VIX or a manual percentage input.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code161
Settings15inputs
LicenceNone stated
Last update3 months ago1 Jul 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

Designed for index options credit spread placement, it projects 1s, 2s, and 3s expected move boundaries anchored to either the live price or session open. It rounds level estimates to index strike increments, displays an information table with time remaining in the session, and triggers alerts for scheduled trading windows and price breaches.

Details

Published by

majohnst on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Volatility & bands, Support & resistance, Sessions & time, Screeners & dashboards

Markets

Indices, Stocks

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
VIX symbolsymbolCBOE:VIXiv_sym
Manual IV % (0 = live VIX)float0.0iv_override
Spot anchorstringCurrent Baranchor_type
Show 1s bandbooltrueshow_1s
Show 2s bandbooltrueshow_2s
Show 3s bandbooltrueshow_3s
Show info table (top-right)booltrueshow_table
Strike incrementfloat1.0strike_inc
Window open — hour ETint11win_open_h
Window open — minute ETint0win_open_m
Window close — hour ETint14win_close_h
Window close — minute ETint30win_close_m
Show all 15 settings
SettingTypeDefaultVariable
Sweet spot hour ETint13sweet_h
Sweet spot minute ETint0sweet_m
Alert within % of 3sfloat0.30alert_pct
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

56 stars

This indicator marks forex trading sessions and opening ranges on the price chart. It can draw Sydney, Tokyo, Frankfurt, London, and New York session boxes or five- and fifteen-minute opening ranges, plus an optional opening channel and a day-open range. Day r

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Day Trading Booster by DGT

AM TBR — NQ Stats

by TamaraKGreen
46 stars

The AM TBR indicator calculates statistical levels for NQ futures using standard deviation. It plots a sigma ladder showing touch levels at 0.5 to 2.0 standard deviations, marks touch points, displays Mean Absolute Error (MAE) zones after touches, and shows Me

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of AM TBR — NQ Stats

Zen Trading Toolkit

by Zen-Tim
29 stars

This indicator plots average bar range (ABR) measured move targets, opening range boxes, and historical key reference levels directly on the price chart. It projects bullish and bearish targets (0.5x, 1.0x, 1.5x, 2.0x ABR) from the previous session's close, al

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit
1 stars

This script is a deprecated compatibility stub for the Market Lab indicator. It intentionally plots no data on the price chart and emits no formulas, signals, or alerts. The purpose of this stub is to direct users toward the canonical Market Lab script. The as

Indicator v6 Screeners & dashboardsSupport & resistance
Updated today · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab
575 stars

This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener

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