Open Interest Profile (OI)- By LeviathanThis script implements the concept of Open Interest Profile, which can help you analyze the activity of traders and identify the price levels where they are opening/closing their positions. This data can serve as a confluence for finding the areas of support and resistance , targets and placing stop losses. OI profiles can be viewed in the ranges of days, weeks, months, Tokyo sessions, London sessions and New York sessions.
A short introduction to Open Interest
Open Interest is a metric that measures the total amount of open derivatives contracts in a specific market at a given time. A valid contract is formed by both a buyer who opens a long position and a seller who opens a short position. This means that OI represents the total value of all open longs and all open shorts, divided by two. For example, if Open Interest is showing a value of $1B, it means that there is $1B worth of long and $1B worth of short contracts currently open/unsettled in a given market.
OI increasing = new long and short contracts are entering the market
OI decreasing = long and short contracts are exiting the market
OI unchanged = the net amount of positions remains the same (no new entries/exits or just a transfer of contracts occurring)
About this indicator
*This script is basically a modified version of my previous "Market Sessions and Volume Profile by @LeviathanCapital" indicator but this time, profiles are generated from Tradingview Open Interest data instead of volume (+ some other changes).
The usual representation of OI shows Open Interest value and its change based on time (for a particular day, time frame or each given candle). This indicator takes the data and plots it in a way where you can see the OI activity (change in OI) based on price levels. To put it simply, instead of observing WHEN (time) positions are entering/exiting the market, you can now see WHERE (price) positions are entering/exiting the market. This is the same concept as when it comes to Volume and Volume profile and therefore, similar strategies and ways of understanding the given data can be applied here. You can even combine the two to gain an edge (eg. high OI increase + Volume Profile showing dominant market selling = possible aggressive shorts taking place)
Green nodes = OI increase
Red nodes = OI decrease
A cluster of large green nodes can be used for support and resistance levels (*trapped traders theory) or targets (lots of liquidations and stop losses above/below), OI Profile gaps can present an objective for the price to fill them (liquidity gaps, imbalances, inefficiencies, etc), and more.
Indicator settings
1. Session/Lookback - Choose the range from where the OI Profile will be generated
2. OI Profile Mode - Mode 1 (shows only OI increase), Mode 2 (shows both OI increase and decrease), Mode 3 (shows OI decrease on left side and OI increase on the right side).
3. Show OI Value Area - Shows the area where most OI activity took place (useful as a range or S/R level )
4. Show Session Box - Shows the box around chosen sessions/lookback
5. Show Profile - Show/hide OI Profile
6. Show Current Session - Show/hide the ongoing session
7. Show Session Labels - Show/hide the text labels for each session
8. Resolution - The higher the value, the more refined a profile is, but fewer profiles are shown on the chart
9. OI Value Area % - Choose the percentage of VA (same as in Volume Profile's VA)
10. Smooth OI Data - Useful for assets that have very large spikes in OI over large bars, helps create better profiles
11. OI Increase - Pick the color of OI increase nodes in the profile
12. OI Decrease - Pick the color of OI decrease nodes in the profile
13. Value Area Box - Pick the color of the Value Area Box
14. Session Box Thickness - Pick the thickness of the lines surrounding the chosen sessions
Advice
The indicator calculates the profile based on candles - the more candles you can show, the better profile will be formed. This means that it's best to view most sessions on timeframes like 15min or lower. The only exception is the Monthly profile, where timeframes above 15min should be used. Just take a few minutes and switch between timeframes and sessions and you will figure out the optimal settings.
This is the first version of Open Interest Profile script so please understand that it will be improved in future updates.
Thank you for your support.
** Some profile generation elements are inspired by @LonesomeTheBlue's volume profile script
Open interest
Volume CVD and Open Interest HeatmapTaking Volume and Open Interest data to the next level of visualization I created a 'heatmap'. The indicator uses a colour gradient and plots boxes from the source candle to the current candle with one of the following data sources:
- Volume - the total volume of transactions, buys and sells
- Up Volume - the total volume from buys only
- Down Volume - the total volume from sells only
- Up/Down Volume (Net) - the difference in the Buy Volume and Sell Volume
- Cumulative Delta - the sum of the up/down volume for the previous 14 bars
- Cumulative Delta EMA - a smoothed average of the sum of the up/down volume for the previous 14 bars, over a 14 period EMA
- Open Interest - a user defined ticker, whose value is added to the plot, while this is designed to be used with Open Interest tickers, you can actually choose any ticker you want, perhaps you want to see DXY while charting Bitcoin!
You can define the lookback period, though you should make sure your timeframe for volume source data, is high enough to accommodate the lookback. TradingView will only fetch 5000 candles worth of data, so at 1 min volume data, you can only lookback 83 hours.
While similar, Volume and Open Interest are not the same. To me the simplest explanation is Volume shows the trades that have been executed and the buy/sell direction, while Open Interest shows the value of open trades that are yet to be completed.
Volume shows strength, sentiment and volatility .
Open Interest does not show direction, but does indicate momentum and liquidity in the market.
With this novel way of visualizing these, you can also now determine where all that liquidity and positions came from and therefore might have resting liquidity below.
Volume CVD and Open InterestVolume, Cumulative Delta Volume and Open Interest are great indications of strength and sentiment in the market. Until now they have required separate indicators, but this indicator can show them all.
With a clean and aesthetic plot, this indicator has the option to choose the data source:
- Volume - the total volume of transactions, buys and sells
- Up Volume - the total volume from buys only
- Down Volume - the total volume from sells only
- Up/Down Volume (Net) - the difference in the Buy Volume and Sell Volume
- Cumulative Delta - the sum of the up/down volume for the previous 14 bars
- Cumulative Delta EMA - a smoothed average of the sum of the up/down volume for the previous 14 bars, over a 14 period EMA
- Open Interest - a user defined ticker, whose value is added to the plot, while this is designed to be used with Open Interest tickers, you can actually choose any ticker you want, perhaps you want to see DXY while charting Bitcoin!
There are several customization features for the colour of the plot, with a nice gradient colouring from high to low. You can choose the lookback which defines only the highest and lowest values for the colour gradient. There is also an option for how the Open Interest value is determined, based on Close, Open or differences between previous values.
While similar, Volume and Open Interest are not the same. To me the simplest explanation is Volume shows the trades that have been executed and the buy/sell direction, while Open Interest shows the value of open trades that are yet to be completed.
Volume shows strength, sentiment and volatility.
Open Interest does not show direction, but does indicate momentum and liquidity in the market.
Volume Profile Volume Delta OI Delta [Kioseff Trading]Hello!
This script serves to distinguish volume delta for any asset and open interest delta for Binance perpetual futures.
The image above provides further explanation of functionality and color correspondence.
The image above shows the indicator calculating volume at each tick level and displaying the metric.
The label color outline (neon effect) is configurable; the image above is absent the feature.
The image above shows Open Interest (OI) Delta calculated - similar to how the script calculates volume delta - for a Binance Perpetual Future pair.
This feature only works for Binance Futures pairs; the script will not load when trying to calculate OI Delta on other assets.
Additionally, a heatmap is displayable should you configure the indicator to calculate it.
The image above shows a heatmap using volume delta calculations.
The image above shows a heatmap using OI delta calculations.
Of course, these calculations - when absent requisite data - require some assumptions to better replicate calculations with access to requisite data.
The indicator assumes a 60/40 split when a tick level is traded at and only one metric - "buy volume" or "sell volume" is recorded. This means there shouldn't be any levels recorded where "buy volume" is greater than 0 and "sell volume" equals 0 and vice versa. While this assumption was performed arbitrarily, it may help better replicate volume delta and OI delta calculations seen on other charting platforms.
This option is configurable; you can select to have the script not assume a 60/40 split and instead record volume "as is" at the corresponding tick level.
The script also divides volume and open interest if a one-minute bar violates multiple tick levels. The volume or open interest generated on the one-minute bar will be divided by the number of tick levels it exceeds. The results are, subsequently, appended to the violated tick levels.
Further, the script can be set to recalculate after a user-defined time threshold is exceeded. You can also define the percentage or tick distance between levels.
Also, it'd be great if this indicator can nicely replicate volume delta indicators on other charting platforms. If you've any ideas on how price action can be used to better assume volume at the corresponding price area please let me know!
Thank you (:
[PlayBit]Correlation-Co _OI Correlation-Co _OI
This Indicator uses a Correlation Coefficient to compare a Crypto Currency to the Binance Open Interest feed if the data is provided
A move in the same direction is indicated with a positive value (the indicator will move up)
A move in the opposite direction the indicator will indicate with a negative value (the indicator will move down)
If both are moving in the same direction and are converging or diverging this will be shown by larger values for divergence and smaller for convergence but will be a positive value
Negative values are shown when price and _OI are moving opposite each other
You can toggle the auto Open Interest option in the settings to use something other than Open Interest if you would like
I still need to add a visual showing when longs are unwinding or opening and when shorts are covering or opening
This is a concept that I made for @Johnny a while back and I'm republishing public from private
This can be useful when comparing a Asset with its Open Interest
The main bit of code was taken from:
by @mortdiggiddy
Let me know if you have any Ideas or suggestions or if I overlooked something
Hope you enjoy,
@FFriZz | @FrizLabz
ILM NSE Futures - Open Interest Analysis - FnOUse this indicator on Daily Timeframe
This script works only on India NSE Futures (Indices and Fno Stocks)
This script pulls Stock/Index Price/Volume Info + Futures Current/Next Price/Volume/Open Interest Info
Calculates the Combined OI and identifies the OI Buildup based on the Price Change and color codes the info for easy reading
This script also calculates Stock/Futures Volume action to identify if big players are aggressively trading in Futures
Also OI Buildup to Future Volume is calculated to track the presence of big players.
Summary Row is displayed at the bottom which shows Futures Premium/Discount to Index/Stock
NSE Open Interest Current + Future Month - OI - COIUse this indicator on Daily Timeframe
This script enhances the standard Open Interest indicator in the following ways
Pulls Current Month and Next Month OI and sums up the data - COI
Works even if input symbol is stock/index and appends Current and Future suffix to pull the data
Open Interest StochasticStochastic Money Flow Index(MFI) using open interest instead of volume.
Open Interest data for Binance, Bitmex, and Kraken
Trendmaster - Crypto Collated Open Interest OscillatorThe Crypto Collated Open Interest Oscillator collates Open Interest for Crypto Futures
Across the Crypto Exchanges and updated on the Daily Timeframe.
This is then smoothed to be actionable when massive Green structure on the oscillator
shows potentially a top before dumping and massive Red structure on the oscillator
HPI for crypto [ptt]The Herrick Payoff Index is designed to show the amount of money flowing into or out of a futures contract.
This indicator uses open interest (from Binance PERP like this BTCUSDTPERP_OI) from during its calculations, therefore, the pairs being analyzed must contain open interest data on Binance.
The indicator only works with USDT pairs! Like RVNUSDT, BTCUSDT... does not work with USD pairs!
The indicator works in two mode.
Index mode - when the values moving 0-100
In this case, if the value below 10, it shows the money is flowing out of the futures contract and near the local bottom. If the value above 90, it shows the money is flowing into the futures contract and near the local top.
(The two trigger can be modified, the default is low:10 and high:90)
Oscillator mode - when the values moving around the origo (0)
In this case, if the value above 0 (green), it shows the money is flowing into the futures contract, this is bullish
If the value below 0 (red), it shows the money is flowing out of the futures contract, this is bearish
Crypto Longs & Shorts (Multi Exchange) - InFinitoThis indicator uses data provided by different crypto derivative exchanges to estimate and display the potential Longs and Shorts opened and closed during a determined period. The indicator supports multiple exchanges and coins.
Knowing the the behavior of traders as in how they're positioning can be useful for different things like:
Get a sense of market sentiment
Better anticipating which way liquidity/stop hunts might potentially go.
All data is calculated based off OI data provided by exchanges except for Bitfinex which provides both Longs and Shorts opened and closed
Preset exchanges included are:
Bitfinex
Binance: USDT, USDPERP & BUSD pairs
Bitmex: USDT & USD pairs
Kraken
The indicator is preset to work with BTC but it can be easily changed to any coin by typing it's name (Capitalized) in the Coin Name box
OI/MC Ratio(Open Interest/Market Cap Ratio)Created the OI/MC Ratio (Open Interest/Market Cap Ratio), an indicator that can be frequently observed on other data sites but does not yet exist on TradingView.
The formula is as follows
Ratio = (OI/MC)*100
OI includes all currently available in TradingView.
It is also possible to exclude specific OIs on the settings screen.
====OI List====
〜Binance〜
BTCUSDTPERP
BTCPERP
BTCBUSDPERP
〜Kraken〜
BTCUSDPERP
〜Bitmex〜
XBTUSD
XBTUSDT
=============
Binance Big Open Interest Delta Change v2 Note: This script will only work properly with Binance Futures symbols.
This script simply looks at the open interest for the symbol you are currently viewing and determines if a large change in open interest has occurred, which triggers a background color alert.
It does this by comparing the absolute value of the range of the current open interest bar with a simple average (length set by user) of the past x range. The user also determines what is considered a 'large' change in open interest by setting a multiplier with which the current range must exceed compared to the average range in order to trigger an alert.
If the change in open interest is an increase in OI, the alert is blue, and if the change in open interest is a decrease, the alert is orange.
The open interest ticker that is used for calculation is derived by adding the current ticker and "_OI" so that it auto changes each time you switch to a new Binance futures contract.
Open Interest Delta OI Delta
This indicator aims to provide users an idea for OI changes intrabar referencing the LTF data, there will be some limitations as its limited to the LTF of 1minute maximum,
however there can be some insight provided regardless.
Below we can see an additional 2 modes,
Split:
Delta
The difference between the 3 modes include:
Split is a separation of the initial mode "Singular" it divides the 2 into separate axis positioning to allow for a different perspective of the same data.
Delta: Takes the difference of the 2 and makes it easier for users to see which side was in control, personally delta makes it easier to see DIVS in momentum and where exhaustion is occuring.
-Dev note, this was made alongside many other things so less testing was done do dm me anytime if theres any issues that need solving.
Open Interest Delta with MAs[Binance Perpetuals]!!!!! This indicator only shows Binance Perpetuals Open Interest Delta !!!!!
!!!!! When Binance Spot pair charts is selected, It still shows the perpetual contract Open Interest, if the pair on the chart is tradeble on perpetual contracts. I assume you know what Open Interest is. !!!!!
ZLEMA , Tillson, VAR MAs codes are coming from @KivancOzbilgic => SuperTrended Moving Averages
KAMA code is coming from @HPOTTER => Kaufman Moving Average Adaptive ( KAMA )
Open Interest Divergence (OI vs Price)This indicator show having increasing Open Interest but price still move in a range (Open Interest Divergence vs price).
It is same with Divergence of indicators as RSI Divergence, Macd Divergence, .... It is easy to understand.
Additional, with MA line OI, you can see the change of OI.
[VC] Wave Chart Index V1.0V.C Wave Chart Index
Richard D. Wyckoff created the first wave chart, and he instructed students to think in waves. He was an early 20th-century pioneer in the technical approach to studying the stock market and is considered one of the five "titans" of technical analysis, along with Dow, Gann, Elliott and Merrill.
V.C Wave Chart Index is the most comprehensive version of Wyckoff's theory. It is used to measure the strength & weakness of each market move by comparative data analysis. It draws waves on the chart based on Gann Swing theory. At the end of each wave, a label shows all the cumulative data & information of the wave.
With the help of this indicator, You can measure each swing or high/low movement of the market by comparing it with previous high/low price movements. The comparison can be made by using the following data of each wave.
Price Change
Volume Change
Delta Change
Delta % Change
Buy Volume
Sell Volume
Time Spent (Bar Counter)
V.C Wave Chart Index is not only an indicator but itself a unique & comprehensive tool kit to measure & compare each move of the market. This tool enables you to see deep inside each movement of the market. It allows you to observe the nitty-gritty data of each wave at the micro-level with your nacked eyes. With the help of Delta & (C.C) Close to Close Price Change, it is now easy to apply effort & result and cause & effect theory to your analysis. (total volume, buy volume, sell volume & delta % can also be used for comparative analysis)
V.C Wave Chart Index Properties
Price Change or (P.C): Shows the price Change of the Wave
Buy Volume (B.V): Shows the Cumulative Buy Volume of the Wave
Sell Volume (S.V): Shows the Cumulative Sell Volume of the Wave
Delta Volume (∆): Shows the Cumulative Buy - Sell Volume of the Wave
Delta % ∆ : Shows the Cumulative Delta % of the wave
Total Volume (T.V): Shows the Cumulative Total Volume of the Wave
Bar Count (B.C): Shows how much time it took to Complete the Wave
Swing Price: Shows the Reversal Price of the Wave
V.C Wave Chart Index Settings & Inputs Explained
Sensitivity (%): This input helps you adjust to the wave's steepness. 0.001 is my recommended value for all time frames.
Cumulation: This input helps you to control the length & formation of the wave: ( the fewer values = more wave formations & vice versa)
Wave Color: Allow you to change the color of the wave
Draw to Latest Candle: Allow you to show/hide the latest or real-time wave & data.
Divisor: Allow you to divide extensive numeric data into small numbers to read it easily.
Align Text: Allow you to align the text.
Size Text: Allow you to change the size of the text.
Display Toal Delta: Allow you to show or hide total Delta (∆).
Display Percentage Delta (%): Allow you to show or hide Delta (∆) %.
Color Wave Buy: Allow you to change the color.
Color Wave Sell: Allow you to change the color.
Display Total Volume (T.V): Allow you to show/hide total volume
Display Buy Volume (B.V): Allow you to show/hide buy volume
Display Sell Volume (S.V): Allow you to show/hide sell volume
Display Swing Price: Allow you to show/hide swing price
Display Swing Price Change (P.C): Allow you to show/hide price change
Display Close to Close Price Change (C.C): Allow you to show/hide close to close price changes. (previous wave close to current wave close) (recommended for comparative analysis)
P.C Format: Allow you to select the price formate
C.C Format: Allow you to select the price formate
Display Bar Counter (B.C): Allow you to show/hide the bar counter
Comparative Data Analysis Example in the light of Effort & Result Theory
A short explanation of the above analysis
On Wave A , the close to close price change (C.C) is $354 . (its the distance of price that price travelled from the low of the previous wave)
and price travelled this distance with 632 Delta (Delta is an effort which is used to travel the price)
On Wave B , close to close price change (C.C) is -$359 , almost the same distance as the previous wave. But for this distance price used 47% more Delta than the last wave. ( previous Delta is 632 , but current Delta is 931 that is 47% extra)
It indicates that sellers have put more effort in Wave B than Wave A . However, they got similar results as the previous wave. In other words
More Effort & Less Result = Reversal Sign
(that's why in the above example price reversed from a support level)
* Notice that Wave B is also on a key support area/level. And on key support or resistance area, this kind of comparative analysis can give an extra edge in your analysis.
Disclaimer Note:
V.C Wave Chart Index is not a BUY/SELL signal based indicator or a holy grail trading system.
It is purely Volume, Delta and comparative analysis based indicator. Before applying this indicator to your analysis, you should know about V.S.A, Volume, Delta & Spread.
Some basic understanding of Sir Richerd Wyckoff's Theory can also be helpful.
Derivative Effective Position [Auto+Binance] [Moto]Hello traders,
This indicator shows the effective/successful influence of perpetual contracts opening or closing via their respective side. i.e longs closing, longs, opening, shorts closing, or shorts opening. Realistically, we want to be considering which side of perpetual contracts are having a successful effect on the market to potentially avoid counter-trend trading, or to take advantage of it.
IMPORTANT: In order for this indicator to work properly/accurately you must be observing a Binance Perpetual future chart. The indicator detects which perpetual future symbol you're observing/trading and changes its comparative metrics accordingly. If you're observing some other chart, it will either be inaccurate or default to BTC open interest metrics. Avoid this error.
Depending on which direction price moves respective to which direction open interest moves, one can determine which side of the contracts are being opened or closed.
Due to Bitcoin having relative correlation to the other digital assets, it's own independent signals have been includes.
Signals include the four obvious participants for the observed asset, longs opening and closing for BTC, and important potential reversals for both the long side and short side of the observed chart, i.e longs opening into longs closing or shorts closing into shorts opening .
Filters for these signals include a standard RSI 50 midline bias, and a setting to filter out sequential signals, respective of observed asset or Bitcoin.
Alerts have not yet been included but will be included in an update.
OPAL - OmniHi, here is my Open Interest script for Market Activity analysis & chop spotting.
This indicator include : Open Interest, 6 EMAs based on OI, Regular and Hidden divergences with double pivot confirmation
OI Colors is gradient : momentums with power will turn to lighter colors, momentums without power will turn to darker colors
1) OI : Open Interest
Open interest is a measure of the Money Flow into a market.
Increasing open interest shows money coming into the market.
Decreasing open interest shows money flowing out of the market.
Calculation :
Open interest is a measure of market activity.
It's sometimes confused with volumes but it's different : OI moves on new contracts, while Volume moves on new trades/
For example, if a trader holds 100 contracts and sells it to another, OI will not change,
because there is no addition of new contracts in the market, but volume will change because 100 contracts have ben transferred.
2) EMAs & Cloud :
A bunch of 6 EMAs adapted on open interest, the last of the 6 EMAs ( EMA 6) forms a colored cloud with the OI Line
EMA 1 is the first filter for OI colors
EMA6 is the last filter for OI colors
3) Multi Divergences :
Divergence detection based on 2 pivot levels verification (taken from OPAL - Newton)
Plots Regular and Hidden Divergences
Filtered with EMA 6
4) Alerts:
Set alerts on Divergences, regular, hidden, or both
Set alerts on EMA1/EMA6 Crosses
Set alerts on OBV fast Crosses with EMA 1
Set alerts on OBV slow Crosses with EMA 6
This might help you to see when market activity is increasing or decreasing to anticipate volatility in your waves.
This is not a bounded indicator like RSI or stoch's
Stick with the trends : when market activity is rising on your side)
Everything is customizable, all the settings are unlocked
Wishing you success !
<o/
Here is the other indicator used on the chart, using the same template, based on On Balance Volumes:
Open InterestSimple indicator that shows the open interest of whatever crypto contract you're looking at in candlestick form.
If it doesn't show anything then Tradingview doesn't have the open interest data for that contract.
At the time of publishing there's data for Binance, Bitmex and Kraken.
You can change the colors in the settings.
Open Interest with Bollinger Bands and some moving averages!!! This indicator only shows Binance Perpetuals Open Interest !!!
!!!!! When Binance Spot pair charts is selected, It still shows the perpetual contract Open Interest, if the pair on the chart is tradeble on perpetual contracts. I assume you know what Open Interest is. !!!!!
ZLEMA, Tillson, VAR MAs codes are coming from @KivancOzbilgic => SuperTrended Moving Averages
WhaleCrew Crypto Open InterestUse Crypto Open Interest Data available on TradingView to your advantage.
Features
Auto-Detect Symbol (based on chart)
Preset Symbols (BTC, ETH, BNB, XRP, LUNA, ADA, SOL, AVAX and DOT)
Exchanges ( Binance and BitMex )
Inverse and USDT Pairs
Override Data Option to use any OI Data on TradingView
Customizable Candles
[Nekonyam] Auto Select Currency Binance Open InterestDisplays open interest in crypto currencies.
It automatically changes the open interest displayed according to the virtual currency displayed on the chart.
It works even if you are viewing an exchange other than Binance.
It shows open interest according to the base currency, so it works with BTCEUR and other currencies.
ETHBTC, for example, shows the open interest in ETH.
If you are viewing a currency that does not provide open interest from Binance to TradingView, it will not work.
It will not work if ETFs, CME futures, etc. are displayed. (such as GBTC or BTC1!)
仮想通貨のオープンインタレストを表示します。
チャートに表示している仮想通貨に合わせて自動で表示するオープンインタレストを変えます。
バイナンス以外の取引所を表示していても使えます。
ベース通貨に合わせてオープンインタレストを表示しているので、BTCEURなどでも使えます。
ETHBTCなどはETHのオープンインタレストが表示されます。
BinanceからTradingViewにオープンインタレストが提供されていない通貨を表示している場合は使えません。
ETFやCME先物などを表示している場合は使えません。(GBTCやBTC1!など)