NSE (CNX) FUTURES Cumulative Open Interest Volume

This indicator combines Volumes of all the open contracts of
NSE FUTURES (e.g. NIFTY FUTURES ) and Combines them together.

For e.g. Default Ticker is set to NIFTY1!


Since NIFTY3! is not available on Trading View one has to manually add (via indicator settings) the last (third) running month's Futures contract symbol (NSE stock future symbol) in this.
Release Notes: added title "COI Vol"
Release Notes: Corrected the Volume addition
Protected script
This script is published closed-source and you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Want to use this script on a chart?


Hi can you share the script for my understanding
silenThunderr sufiyan99

// This source code is subject to the terms of the Mozilla Public License 2.0 at
// © silenThunderr

study("NSE Futures Cumulative Open Interest Volume" , shorttitle="COI" , format=format.volume)

vol2_ticker = input(type=input.symbol, defval="NSE:NIFTY2!")
vol3_ticker = input(type=input.symbol, defval="NSE:NIFTYV2020")

vol1 = security(syminfo.tickerid, timeframe.period, volume, lookahead=barmerge.lookahead_on)
vol2 = security(vol2_ticker, timeframe.period, volume, lookahead=barmerge.lookahead_on)
vol3 = security(vol3_ticker, timeframe.period, volume, lookahead=barmerge.lookahead_on)


barColorsOnPrevClose = input(title="Color bars based on previous close", type=input.bool, defval=false)

palette = barColorsOnPrevClose ? close > close ? : : open > close ? :

plot(daily_vol, color = palette, style=plot.style_histogram, title="COI Volume", linewidth=4)
plot(vol1, color=color.white , style=plot.style_line, title="Current Volume", linewidth=2)
+1 Reply
pramod1990 silenThunderr
@silenThunderr, how to get life time cumulative open interest and also how to apply for other scripts or stock specific
+1 Reply
silenThunderr pramod1990
@pramod1990, bro u can just add the ticker future contact months in settings of what ever future stock u are viewing
silenThunderr silenThunderr
@silenThunderr, currently that's not possible with TV it only give first and second month future contract for Third Month we have to manually add it unfortunately.
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out