Open Interest Money Flow Index (OIMFI)CAUTION : This system was inspired from seiglerj' s "Money Flow Index " script. Open Interests are used instead of volume.
What is the Money Flow Index ( MFI )?
The Money Flow Index ( MFI ) is a technical oscillator that uses price and volume for identifying overbought or oversold conditions in an asset. It can also be used to spot divergences which warn of a trend change in price. The oscillator moves between 0 and 100.
Unlike conventional oscillators such as the Relative Strength Index ( RSI ), the Money Flow Index incorporates both price and volume data, as opposed to just price. For this reason, some analysts call MFI the volume-weighted RSI .
What Does the Money Flow Index ( MFI ) Tell You?
One of the primary ways to use the Money Flow Index is when there is a divergence. A divergence is when the oscillator is moving in the opposite direction of price. This is a signal of a potential reversal in the prevailing price trend.
For example, a very high Money Flow Index that begins to fall below a reading of 80 while the underlying security continues to climb is a price reversal signal to the downside. Conversely, a very low MFI reading that climbs above a reading of 20 while the underlying security continues to sell off is a price reversal signal to the upside.
Traders also watch for larger divergences using multiple waves in the price and MFI . For example, a stock peaks at $10, pulls back to $8, and then rallies to $12. The price has made two successive highs, at $10 and $12. If MFI makes a lower higher when the price reaches $12, the indicator is not confirming the new high. This could foreshadow a decline in price.
The overbought and oversold levels are also used to signal possible trading opportunities. Moves below 10 and above 90 are rare. Traders watch for the MFI to move back above 10 to signal a long trade, and to drop below 90 to signal a short trade.
Other moves out of overbought or oversold territory can also be useful. For example, when an asset is in an uptrend, a drop below 20 (or even 30) and then a rally back above it could indicate a pullback is over and the price uptrend is resuming. The same goes for a downtrend. A short-term rally could push the MFI up to 70 or 80, but when it drops back below that could be the time to enter a short trade in preparation for another drop .
Reference : www.investopedia.com
WARNING :
** Since each instrument in the list has its own unique contract data, you must first enter its name to display it. I recommend you to select OANDA from the markets. Finally, when the COT reports are issued, it may repaints. However, this repaint is usually close to closing or after close .(When COT reports are so sharp ) So use this script only 1W ( 1 week ) or 1 M ( 1 month ) timeframe.
** This data is taken to Tradingview with the help of Quandl. This is a very low possibility, but the system will not work if there is a malfunction.
FEATURES :
*** Working with all futures (Including : Bitcoin )
*** If you dont work with "Futures" , you can select "Others" from switchable menu and use volume for all instruments.
*** New generation elegant design used : Adaptive coloring Overbought - Oversold Levels according to the closing price.
NOTE : This code is open source under the MIT License. If you have any improvements or corrections to suggest, please send me a pull request via the github repository github.com
Stay tuned. Best wishes !
Futures
Weiss Wave Open Interest BarsFirstly :
LazyBear ' s "Weiss Wave " codes are used for open interests.
Original Weiss Wave Volume :
Let's start :
Open Interest vs. Volume: An Overview
Volume and open interest are two key measurements that describe the liquidity and activity of contracts In the options and futures markets. However, their meanings and applications are different. Volume refers to the number of contracts traded in a given period, while open interest denotes the number of active contracts.
Volume
Trading volume measures the number of options or futures contracts being exchanged between buyers and sellers, identifying the level of activity for that particular contract. For every buyer, there is a seller, and the transaction itself counts toward the daily volume.
Open Interest
Open interest indicates the number of options or futures contracts that are held by traders and investors in active positions. These positions have not been closed out, expired, or exercised. Open interest decreases when holders and writers of options (or buyers and sellers of futures) close out their positions. To close out positions, they must take offsetting positions or exercise their options. Open interest increases once again when investors and traders open new long positions or writers/sellers take on new short positions. Open interest also increases when new options or futures contracts are created.
Options or futures contract trading volume can only increase while open interest can either increase or decrease. While trading volume indicates the number of contracts that have been bought or sold, open interest identifies the number of contracts that are currently held.
Reference : www.investopedia.com
*** Worked to define all futures . You can look them in codes (between line : 13 to line 94 )
** CAUTION 1 : Since each instrument in the list has its own unique contract data, you must first enter its name to display it. I recommend you to select OANDA from the markets. Finally, when the COT reports are issued, it may repaints. However, this repaint is usually close to closing or after close .(When COT reports are so sharp ) So use this script only 1W ( 1 week ) or 1 M ( 1 month ) timeframe.
** CAUTION 2 : This data is taken to Tradingview with the help of Quandl. This is a tremendous possibility, but the system will not work if there is a malfunction.
Best regards.
XBT Contango Calculator v1.1
This indicator measures value of basis (or spread) of current Futures contracts compared to spot. The default settings are specifically for Bitmex XBTU19 and XBTZ19 futures contracts. These will need to be updated after expiration. Also, it seems that Tradingview does not keep charts of expired contracts. If anyone knows how to import data from previous expired contracts, please let me know. This historical data could be valuable for evaluating previous XBT futures curves.
Also, VERY important to understand is this indicator only works with Spot Bitcoin charts (XBTUSD, BTCUSD, etc). If you add this to any other asset chart, it would not be useful (unless you changed settings to evaluate a different Futures product).
Contango and Backwardation are important fundamental indicators to keep track of while trading Futures markets. For a better explanation, Ugly Old Goat had done several medium articles on this. Please check out link below for his latest article on the subject...
uglyoldgoat.com
Notes on chart above should explain most of what you need to know on to use this indicator. The zero line is the spot price on the chart, so a positive value means Futures are trading at a premium (or in Contango). You can set a value of extreme Contango which will give an alert as red background (default setting is +$500). Green background will appear when Futures are trading at a discount to spot (Backwardation).
Hope some people get some use out of this. This is my first attempt at coding anything, so any feedback would be greatly appreciated!
BTC Donations: 3CypEdvBcvVHbqzHUt1FDiUG53U7pYWviV
Premium/Discount (Input)Used to show Contango or Backwardation in futures contracts vs spot price. You can input your own tickers so can technically can be used to compare anything.
* In this example I'm showing Okex Quarterly contract vs Okex spot index price because it showcases it better.
* If you are using this after 2019 the default setting will not work because I set it to Bitmex which does not currently have a "current contract in front" ticker available.
It should be fairly self explanatory, but just ask below if you have any questions.
Commercial / Open Interest-Buschi
English:
Another view the Commitment of Traders (CoT) data
Since the Commercials are often a good indicator for future market movements, I tampered a little bit with their positioning (long or short) in relation to the open interest to visualize some kind of "commercial buying (long) or selling (short) power". It's definitely nothing more than work in progress, but I decided to publish it anyway. Critical comments are mostly welcome.
Deutsch:
Ein weiterer Blick auf die Commitment of Traders (CoT) Daten
Da die Commercials häufig ein guter Indikator für zukünftige Marktbewegungen sind, habe ich ein wenig mit ihrer Positionierung (long oder short) im Verhältnis zum Open Interest herumgebastelt, um eine Art von "kommerzieller Kauf- (long) oder Verkaufs-Kraft" abzubilden. Es ist momentan noch im absoluten Teststadium, aber ich habe mich dazu entschlossen, es trotzdem zu veröffentlichen. Kritische Anmerkungen sind sehr willkommen.
CME & XBT - BTC Futures Settlement DatesHi everyone
This in an indicator inspired by Scarrff
I added the XBT quarterly and yearly settlement dates
Enjoy
David
Futures - Measure and compare volatility in USDThis is a dirty fix.
Dollar value (syminfo.pointvalue) is wrong in Tradingview for the below listed futures, where the price is in quarters of cents.
For example ZC (Corn) says syminfo.pointvalue = 5000 (syminfo.mintick = 0.13), which gives you (with ATR = 6) volatility of $30,000 (6 * 5000) instead of the correct $300.
For all other futures I used the default syminfo.pointvalue.
Feel free to correct me, if I am wrong regarding the syminfo.pointvalue error.
Futures - Measure and compare volatility in USDDollar value (syminfo.pointvalue) is wrong in Tradingview for the below listed futures, where the price is in quarters of cents. So this is a dirty fix.
For example ZC (Corn) says syminfo.pointvalue = 5000 (syminfo.mintick = 0.13), which gives you (ATR = 6) volatility 30,000 USD instead of the correct 300 USD.
For all other futures is used the default syminfo.pointvalue.
Back - Front Futures Spread 4hr IndicatorThis puts a normalized back - front spread based on the close price.
BTC South Korea_PricesSince BTC prices are diverging, this set of 4 indicators charts volume-weighted prices for different exchanges:
Spot, Tether, Futures and South Korea.
I tried doing EUR & JPY, but the divergence is minimal so its a little pointless.
Here is the 4 links:
BTC Futures_PricesSince BTC prices are diverging, this set of 4 indicators charts volume-weighted prices for different exchanges:
Spot, Tether, Futures and South Korea.
I tried doing EUR & JPY, but the divergence is minimal so its a little pointless.
Here is the 4 links:
BTC Spot_PricesSince BTC prices are diverging, this set of 4 indicators charts volume-weighted prices for different exchanges:
Spot, Tether, Futures and South Korea.
I tried doing EUR & JPY, but the divergence is minimal so its a little pointless.
Here is the 4 links:
BTC Tether_PricesSince BTC prices are diverging, this set of 4 indicators charts volume-weighted prices for different exchanges:
Spot, Tether, Futures and South Korea.
I tried doing EUR & JPY, but the divergence is minimal so its a little pointless.
Here is the 4 links:
Bitmex BTC FuturesBitmex / Bitcoin indicator.
Just a simple overlay to visualise the contango / backwardation on Bitmex btc futures products so you know which to take position in, at a glance.
There are two selectable instruments (I have Dec18 and Mar19 selected already). By default the one with nearest settlement date is plotted with a filled coloured band from current price, the other plots a cross symbol.
Resistance of VolumeIt is used to detect volume resistors in a personalized way, since it allows the user to enter the volume in which he wishes the resistance to jump automatically.
It does not mark the black line and the graphic that's just to help understand how it works
in the above image can see the indicator works on 30 minutes chart
in the above image can see the indicator works on 5 minutes chart
therefore, it can be configured to go through several temporalities.
Premium ComparisonScript to display futures premium/discount vs basis; uses Bitmex XBTUSD 10.99% as basis vs XBTM18 and XBTU18 futures , but these are configurable.
BTC Price Spread - Coinbase & Futs - Premiums & DiscountsThis indicator takes the price of Bitcoin on Coinbase and the futures price on Mex, and compares it the average price of Bitcoin across other major exchanges.
This essentials give us a spread at which Bitcoin is going for.
In turn, this could be a possible tool to help determine market sentiment.
This indicator was created for experimental purposes.
Use at your own digression.
BTC Futures Settlement DatesShows the CBOE and CME settlement dates as horizontal lines, with the option to show a 7 day warning in the background. This should hopefully give ample warning.
I intend to update the script as new dates become available but please PM if I've forgotten.
BTC: CME Futures vs. Exchange SpreadsAs you can see, this script plots the current (10-min. delayed) CME Futures price versus Bitfinex, Bitstamp, and Coinbase prices.
It's displayed here on a 30 minute view because at the time of writing the futures have been alive for approximately one day. The script will likely be more useful on longer time frames as a macro-level indicator.
It's pretty simple to adapt this to additional exchanges
Index Vs Futures for OKEX Quarterly Contracts 5.0*****Please note that all old versions of this script are depreciated and will report incorrect data!*****
This "indicator" is made to display the history of the price difference between OKEX's quarterly contracts and the market that it is supposed to be tracking. Contango differences are natural, but it's nice to visualize how they change over time.
This update to this script brings in further functionality when OKEX changed the index that the futures contracts are based off of to remove chinese exchanges from the mix. This script reflects that change and crosses-over when that change was made.
The new index removed chinese exchanges which are (currently) trading at a significant discount which will give bad data when using my old code.