Tims Smart Money COT-IndexThe **Tims Smart Money COT Index** analyzes the positions of different groups of market participants from the COT report (Commercials, Large Specs, Small Specs). It calculates their net positions and scales them relative to extremes of the last 24 weeks. It indicates bullish and bearish zones to identify market sentiments.
- Commercials (Smart Money)**: Often act against the trend, bullish from 80+.
- Large Specs (Retail Money)**: Trend-following, bullish from 80+.
- Small Specs**: Mostly impulsive, bullish from 80+.
The indicator helps to identify turning points in the market based on the behavior of the players.
Yatırımcı Taahhüdü (COT)
Adjusted CoT IndexAdjusted COT Index
Improves upon: "COT Index Commercials vs large and small Speculators" by SystematicFutures
How: CoT Indexes are adjusted by Open Interest to normalise data over time, and threshold background colours are in-line with Larry Williams recommendations from his book.
Note: This indicator is **only** accurate on the Daily time-frame due to the mid-week release date for CoT data.
This script calculates and plots the Adjusted Commitment of Traders (COT) Index for Commercial, Large Speculator, and Retail (Small Speculator) categories.
The CoT Index is adjusted by Open Interest to normalise data through time, following the methodology of Larry Williams, providing insights into how these groups are positioned in the market with an arguably more historically accurate context.
COT Categories
-------------------
- Commercials (Producers/Hedgers): Large entities hedging against price changes in the underlying asset.
- Large Speculators (Non-commercials): Professional traders and funds speculating on price movements.
- Retail Traders (Nonreportable/Small Speculators): Small individual traders, typically less informed.
Features
----------
- Open Interest Adjustment
- The net positions for each category are normalized by Open Interest to account
for varying contract sizes.
- Customisable Look-back Period
- You can adjust the number of weeks for the index calculation to control the
historical range used for comparison.
- Thresholds for Extremes
- Upper and lower thresholds (configurable) are provided to mark overbought and
oversold conditions.
- Defaults
- Overbought: <=20
- Oversold: >= 80
- Hide Current Week Option
- Optionally hide the current week's data until market close for more accurate comparison.
- Visual Aids
- Plot the Commercials, Large Speculators, and Retail indexes, and optionally highlight extreme positioning.
Inputs
--------
- weeks
- Number of weeks for historical range comparison.
- upperExtreme and lowerExtreme
- Thresholds to identify overbought/oversold conditions (default 80/20).
- hideCurrentWeek
- Option to hide current week's data until market close.
- markExtremes
- Highlight extremes where any index crosses the upper or lower thresholds.
- Options to display or hide indexes for Commercials, Large Speculators, and Small Speculators.
Outputs
----------
- The script plots the COT Index for each of the three categories and highlights periods of extreme positioning with customisable thresholds.
Usage
-------
- This tool is useful for traders who want to track the positioning of different market participants over time.
- By identifying the extreme positions of Commercials, Large Speculators, and Retail traders, it can give insights into market sentiment and potential reversals.
- Reversals of trend can be confirmed with RSI Divergence (daily), for example
- Continuation can be confirmed with RSI overbought/oversold conditions (daily), and/or hidden RSI Hidden Divergence, for example
Cot Histogram | MercorCot Histogram | Mercor
Overview:
The Cot Histogram | Mercor indicator provides a comprehensive visualization of the Commitment of Traders (COT) report data using bar charts. This indicator is designed to help traders analyze the positions held by commercial traders and large speculators in various markets. By representing the data as histograms, traders can easily interpret the long and short positions, as well as the net positions of these market participants.
Originality:
What sets the Cot Histogram | Mercor indicator apart is its unique approach to visualizing COT data using bar charts instead of traditional line charts. This method offers a clearer representation of the data, making it easier for traders to spot trends and changes in market sentiment. Additionally, the indicator allows for customization of colors and bar widths, providing a tailored experience for each user.
Features:
Show Shorts as Negative Numbers: This option allows users to display short positions as negative values, providing a more intuitive visualization.
Invert Colors: Users can invert the default colors for long and short positions, enabling better contrast and visual preference.
Bar Width: Adjust the width of the histogram bars to suit personal preferences and chart aesthetics.
Concepts Underlying the Calculations:
The Commitment of Traders (COT) report is a weekly publication by the Commodity Futures Trading Commission (CFTC) that provides a breakdown of the open interest positions of market participants in futures markets. This indicator focuses on two main categories of traders:
Commercial Traders: These are entities involved in the production, processing, or merchandising of a commodity. Their positions are typically hedging-oriented.
Large Speculators: These include institutional investors, hedge funds, and other entities that take positions based on market trends and expectations, often for speculative purposes.
The indicator calculates and plots the following metrics:
Commercial Long: The number of long positions held by commercial traders.
Commercial Short: The number of short positions held by commercial traders.
Commercial Net: The difference between commercial long and short positions.
Large Speculators Long: The number of long positions held by large speculators.
Large Speculators Short: The number of short positions held by large speculators.
Large Speculators Net: The difference between long and short positions of large speculators.
How to Use:
Load the Indicator: Add the Cot Histogram | Mercor indicator to your TradingView chart.
Customize Settings: Adjust the settings according to your preferences:
Enable or disable the "Show Shorts as Negative Numbers" option.
Invert the colors if needed.
Adjust the bar width for better visual representation.
Interpret the Data: Use the histograms to analyze the market positions:
Commercial Long and Short: Observe the positions held by commercial traders. Increasing long positions may indicate hedging against potential price increases, while increasing short positions may suggest hedging against potential price decreases.
Large Speculators Long and Short: Monitor the positions of large speculators to gauge market sentiment. A rise in long positions by large speculators often indicates bullish sentiment, while a rise in short positions suggests bearish sentiment.
Net Positions: The net positions provide a clearer picture of the overall stance of commercial traders and large speculators.
Example:
If you notice that commercial traders are increasing their long positions while large speculators are increasing their short positions, it may indicate a divergence in market expectations between hedgers and speculators. This could be a signal to further investigate potential market reversals or confirm existing trends.
By leveraging the Cot Histogram | Mercor indicator, traders can gain valuable insights into market dynamics, improve their trading strategies, and make more informed decisions. Whether you are a long-term investor or a short-term trader, understanding the positions of different market participants can provide a significant edge in the markets.
COT Index Commercials vs large and small SpeculatorsThe COT reports for futures-only Commitments of Traders and for Futures and Options Combined Commitments of Traders are collected on Tuesdays and published every Friday at 3:30 p.m. Eastern time. The raw data is available free of charge on the Commodity Futures Trading Commission (CFTC) website.
Use it to get a better understanding on which side the smart money (producers, commercials) are trading on.
The COT index ranges from 0 to 100%. Extreme values are areas below 25% and above 75%. When the index reaches 0% or 100%, it means that the market participant has the most extreme net short or net long position in the last 26 weeks. Readings below 25% are considered as a short sentiment and readings above 75% are considered long sentiment. However the COT index is not a timing tool. It only shows the overall market sentiment of the smart money in relation over the past 26 weeks.
You can change the period to calculate the index, as well as the style, which lines to show and if you want to highlight the extreme arias.
COT | MERCORThis Pine Script is designed for use on the TradingView platform to visualize various Commitment of Traders (COT) data for trading analysis. The COT reports provide a breakdown of each Tuesday’s open interest in the futures markets, which is valuable for understanding market sentiment. This script specifically focuses on displaying the positions of commercial and noncommercial traders (large speculators), both in long and short positions, as well as their net positions. Here’s a breakdown of the script’s components and how to use it:
Script Components
Indicator Declaration: The script begins by declaring a custom indicator using indicator() function, naming it "COT | MERCOR", and setting a short title and precision.
Library Import: It imports a library TradingView/LibraryCOT/2 as cot, which is likely a mock representation for the purpose of this description, assuming a library that provides COT data functions.
User Inputs:
shortNegative: A boolean input that allows users to choose whether short positions are displayed as negative numbers.
invertColors: A boolean input for users to decide if they want to invert the default colors of the plot lines.
lineWidth: An integer input that lets users adjust the width of the plotted lines.
COT Data Requests: The script requests COT data for both commercial and noncommercial traders' long and short positions using cot.COTTickerid() function. This includes constructing identifiers for these data points based on the user's input and predefined criteria (like "Commercial Positions" or "Noncommercial Positions", and direction "Long" or "Short").
Data Plotting: The script plots the retrieved data points on the chart, using different colors and line styles to distinguish between commercial and noncommercial positions, as well as between long, short, and net positions. It includes options to adjust the appearance based on user inputs (like inverting colors or changing line width).
Zero Line: A horizontal line (hline) is plotted at zero to provide a baseline for comparison.
How to Use
Adding the Script to Your Chart:
On TradingView, open the Pine Editor.
Paste this script into the Pine Editor.
Save and add the script to your chart.
Customizing the Display:
You can toggle whether short positions are displayed as negative numbers through the "Show Shorts as Negative Numbers?" checkbox.
Use the "Invert Colors?" checkbox to swap the colors used for plotting the positions.
Adjust the "Line Width" option to change the thickness of the plotted lines according to your preference.
Analyzing the Data:
The plotted lines represent the long, short, and net positions of commercial and noncommercial traders.
Commercial positions are typically considered the positions of entities involved in the production, processing, or merchandising of a commodity, whereas noncommercial positions represent large speculators, such as hedge funds.
The net positions (long minus short) provide insight into the overall bullish or bearish sentiment among these trader categories.
By examining these positions, traders can gain insights into potential market moves based on the behaviors of key market participants.
This script is a powerful tool for traders who want to incorporate COT report data into their market analysis on TradingView. By visualizing the trading positions of significant market players, it aids in making informed trading decisions.
COT MCIThe COT MCI script is a market indicator based on the data from the Commitment of Traders Reports.
Integration of COT Report Data:
The script sources COT data from futures contracts, including:
Treasury Bonds (ZB), Dollar Index (DX), 10-Year Treasury Notes (ZN)
Commodities like Soybeans (ZS), Soy Meal (ZM), Soy Oil (ZL), Corn (ZC), Wheat (ZW), Kansas City Wheat (KE), Pork (HE), Cattle (LE)
Precious Metals such as Gold (GC), Silver (SI), Palladium (PA), Platinum (PL)
Industrial Metals like Copper (HG), Aluminum (AUP), Steel (HRC)
Energy Products like Crude Oil (CL), Heating Oil (HO), Gasoline (RB), Natural Gas (NG), Brent Crude (BB)
Currencies such as AUD (6A), GBP (6B), CAD (6C), EUR (6E), JPY (6J), CHF (6S), NZD (6N), BRL (6L), MXN (6M), RUB (6R), ZAR (6Z)
Others: Sugar (SB), Coffee (KC), Cocoa (CC), Cotton (CT), Ethanol (EH), Rice (ZR), Oats (ZO), Whey (DC), Orange Juice (OJ), Lumber (LBS), Livestock (GF), E-mini S&P 500 (ES), E-mini Russell 2000 (RTY), E-mini Dow Jones (YM), E-mini NASDAQ-100 (NQ), VIX Futures (VX), S&P 500 (SP), DJIA (DJIA)
Cryptocurrencies such as Bitcoin (BTC) and Ethereum (ETH)
Functions and Logic of the Script:
COT Calculation: Determines the net positions for commercial actors and large speculators. Also Available are short and long positions of commercials or large speculators.
Position Change Analysis: Analyzes the percentage changes in net positions and open interest data over a period of 6 weeks (Weekly Chart).
Average Value Calculation: Determines short-term and long-term trend averages.
Trend Analysis: Buy and sell signals (represented in colors) are based on linear regressions and average calculations.
Usage and Application Examples:
Ideal for traders looking for a detailed analysis of market dynamics and position changes in the futures market. Suitable for decision-making in transaction timing and assessing market sentiment.
Usage Notes:
Users should be familiar with the interpretation of COT data and basic concepts of futures trading. Particularly suitable for medium to long-term trading strategies.
COT CFTC Title: Enhanced COT CFTC Analysis Tool
Description:
Introducing the 'Enhanced COT CFTC Analysis Tool', meticulously designed to dissect the CFTC's Commitments of Traders (COT) data. This sophisticated tool aims to equip traders and investors with profound insights into market dynamics, utilizing the positions of Large Speculators, Commercials, and Non-Reportable Positions for a comprehensive market overview.
Key Features:
Large Speculators Analysis: Visualizes the net positions of large speculators, offering insights into speculative market sentiments.
Commercials Insights: Provides a deep dive into the trading activities of commercials, known for their strategic hedging practices.
Non-Reportable Positions Tracking: Displays the activities of smaller speculators, often considered as contrarian indicators.
Additional Plots:
Options Share: Allows selection between the proportion of options in the market.
Net, Short, and Long Positions: Offers options to view net, short, and long positions.
Percentage of Net Short and Long Positions: Displays the percentage of net short and long positions, either as raw data or as an index over a specified time period.
Extreme Value Indicators: Highlights extreme values in the market data, providing critical insights into market peaks and troughs.
This tool features an intuitive display with color-coded lines and charts, simplifying the complex data analysis process. It also includes an innovative 5% detector, highlighting extreme market positions for enhanced market understanding.
Spread Analysis: This feature provides an insightful visualization of the spread between various COT data points, enabling users to gauge the market’s depth and liquidity effectively.
Usage Tips:
Utilize divergence analysis between different groups to identify potential trend reversals.
Keep a close eye on the 5% detector for early indications of market overextensions.
The 'Enhanced COT CFTC Analysis Tool' is a vital addition to your trading arsenal, designed to enrich your trading strategy with precise and actionable market insights. It’s not just an indicator; it’s a comprehensive market analysis suite.
Disclaimer: This indicator is for educational purposes only. Trading decisions should always be approached with caution and based on thorough personal analysis.
Open Interest Chart [LuxAlgo]The Open Interest Chart displays Commitments of Traders %change of futures open interest , with a unique circular plotting technique, inspired from this publication Periodic Ellipses .
🔶 USAGE
Open interest represents the total number of contracts that have been entered by market participants but have not yet been offset or delivered. This can be a direct indicator of market activity/liquidity, with higher open interest indicating a more active market.
Increasing open interest is highlighted in green on the circular plot, indicating money coming into the market, while decreasing open interests highlighted in red indicates money coming out of the market.
You can set up to 6 different Futures Open interest tickers for a quick follow up:
🔶 DETAILS
Circles are drawn, using plot() , with the functions createOuterCircle() (for the largest circle) and createInnerCircle() (for inner circles).
Following snippet will reload the chart, so the circles will remain at the right side of the chart:
if ta.change(chart.left_visible_bar_time ) or
ta.change(chart.right_visible_bar_time)
n := bar_index
Here is a snippet which will draw a 39-bars wide circle that will keep updating its position to the right.
//@version=5
indicator("")
n = bar_index
barsTillEnd = last_bar_index - n
if ta.change(chart.left_visible_bar_time ) or
ta.change(chart.right_visible_bar_time)
n := bar_index
createOuterCircle(radius) =>
var int end = na
var int start = na
var basis = 0.
barsFromNearestEdgeCircle = 0.
barsTillEndFromCircleStart = radius
startCylce = barsTillEnd % barsTillEndFromCircleStart == 0 // start circle
bars = ta.barssince(startCylce)
barsFromNearestEdgeCircle := barsTillEndFromCircleStart -1
basis := math.min(startCylce ? -1 : basis + 1 / barsFromNearestEdgeCircle * 2, 1) // 0 -> 1
shape = math.sqrt(1 - basis * basis)
rad = radius / 2
isOK = barsTillEnd <= barsTillEndFromCircleStart and barsTillEnd > 0
hi = isOK ? (rad + shape * radius) - rad : na
lo = isOK ? (rad - shape * radius) - rad : na
start := barsTillEnd == barsTillEndFromCircleStart ? n -1 : start
end := barsTillEnd == 0 ? start + radius : end
= createOuterCircle(40)
plot(h), plot(l)
🔶 LIMITATIONS
Due to the inability to draw between bars, from time to time, drawings can be slightly off.
Bar-replay can be demanding, since it has to reload on every bar progression. We don't recommend using this script on bar-replay. If you do, please choose the lowest speed and from time to time pause bar-replay for a second. You'll see the script gets reloaded.
🔶 SETTINGS
🔹 TICKERS
Toggle :
• Enabled -> uses the first column with a pre-filled list of Futures Open Interest tickers/symbols
• Disabled -> uses the empty field where you can enter your own ticker/symbol
Pre-filled list : the first column is filled with a list, so you can choose your open interest easily, otherwise you would see COT:088691_F_OI aka Gold Futures Open Interest for example.
If applicable, you will see 3 different COT data:
• COT: Legacy Commitments of Traders report data
• COT2: Disaggregated Commitments of Traders report data
• COT3: Traders in Financial Futures report data
Empty field : When needed, you can pick another ticker/symbol in the empty field at the right and disable the toggle.
Timeframe : Commitments of Traders (COT) data is tallied by the Commodity Futures Trading Commission (CFTC) and is published weekly. Therefore data won't change every day.
Default set TF is Daily
🔹 STYLE
From middle:
• Enabled (default): Drawings start from the middle circle -> towards outer circle is + %change , towards middle of the circle is - %change
• Disabled: Drawings start from the middle POINT of the circle, towards outer circle is + OR -
-> in both options, + %change will be coloured green , - %change will be coloured red .
-> 0 %change will be coloured blue , and when no data is available, this will be coloured gray .
Size circle : options tiny, small, normal, large, huge.
Angle : Only applicable if "From middle" is disabled!
-> sets the angle of the spike:
Show Ticker : Name of ticker, as seen in table, will be added to labels.
Text - fill
• Sets colour for +/- %change
Table
• Sets 2 text colours, size and position
Circles
• Sets the colour of circles, style can be changed in the Style section.
You can make it as crazy as you want:
ICT Commitment of Traders° by toodegreesDescription:
The Commitment of Traders (COT) is a valuable raw data report released weekly by the Commodity Futures Trading Commission (CFTC). This report offers insights into the current long and short positions of three key market entities:
Commercial Traders ( usually represented in red )
Large Traders ( typically depicted in green )
Small Speculator Traders ( commonly shown in blue )
The concept of utilizing the COT data as a strategic trading tool was first introduced by Larry Williams, who emphasized the importance of monitoring Commercial Speculators – large corporate producers or consumers of commodities.
The Inner Circle Trader (ICT) prompts us to delve deeper into this data. While we can easily determine their Net Position (also referred to as the Main Program) by subtracting Commercial Short Positions from the Commercial Long Positions, this calculation doesn't reveal their ongoing Hedge Program .
Merely following the Main Program won't provide a trading edge. Aligning with the Hedge Program can be an invaluable weapon in your trading arsenal.
The Commercial Speculators' Hedge Program can be unveiled by examining the highest and lowest reading of their Net Position over a chosen time period and setting a new "zero line" between these extremes. This process generates a novel "COT Graph" providing a detailed understanding of the Commercial Speculators' current market activity.
When the Hedge Program, Seasonality, and Open Interest are cross-referenced with Institutional Orderflow, a trader can construct a very clear medium-to-long-term market narrative.
Features:
Access COT Data for the Commercial Speculators via Tradingview's reliable data source
Automate calculations and display the 3-month, 6-month, 12-month, 2-year, and 3-year Hedge Program
Define your own Custom Time Range for the Hedge Program
Display the Main Program and all Hedge Programs in an easy-to-understand table format
Additionally, by following the included instructions, you can augment your table with COT data from multiple markets. This extra information can help monitor correlated markets and develop a more robust market narrative:
EURUSD COT Trend StrategyThis is a long term/investment type of strategy designed to have a good idea about where the big trend direction is headed.
Its logic, its made entirely on the COT report, mainly from looking into the net non comercial positions aka the speculators.
For bullish trend we look that the difference between long non comercial vs short non comercial is higher than 0
For bearish trend we look that the difference between long non comercial vs short non comercial is lower than 0.
This is mainly as an educational tool, for a full strategy, I recommend implement other things into it, like technical analysis or risk management.
If you have any questions, please let me know !
ILM COT Financials PlotUse this indicator on Daily Timeframe
Please refer to the below link for CFTC Financials
www.cftc.gov
This script is very similar to COT Financial Table indicator except that it plots the data (Longs - Shorts) instead of showing in a table.
COT Report IndicatorA COT Report Indicator that shows the Data for both currencies (base- and quotecurrency). It works in the forex market and on the Bitcoin Chart.
The table shows the Net-Contracts, Long and Short Percentage of the latest report. The line chart shows if the Commercials, Institutionals and Retail Traders are more long biased (value above 50) or more short biased (value below 50).
The COT Report is only published weekly. This should not be used as an entry indicator, but can help to find market bottoms/top and the trend of the market.
Bitfinex Shorts StratOverview
This strat applies the data from BITFINEX:USDSHORTS to the RSI indicator in order to provide SHORT/LONG entries as the number of contracts goes up and down. Although Bitfinex has lost relevance over the years its generally considered an exchange dominated by smart money rather than retail. I'd like to see if any insights can be gained by following their trading behaviour.
How to use
Select the underlying security you wish to trade and load the indicator. Select the appropriate short security by searching in the Bitfinex Short Symbol. RSI settings apply to short symbol not the actual asset. Strategy shorts the underlying asset when shorts rise and longs when they drop. The shorts symbol will follow the value of the loaded chart. Works best on 4 hour chart.
Why use shorts only rather than both long/shorts?
Bitfinex longs seem to be on a long-term uptrend accounting for 25x the number of shorts. Might be enormous confidence on part of the whales, but more likely reflects selling spot and buying perp. Given the size disparity and price action I don't think longs info is adding much.
Problems with script:
a) We don't really know the intentions of short players (e.g. speculation or hedging spot)
b) The script uses a decline in shorts as a long signal
c) RSI is a blunt tool there are probably better options for calculating high/lows in shorts
d) Shorts are accumulated both at highs and also when BTC price is already heavily trending down. This suggests some are speculative (at the highs) or protective/hedging during a decline
Takeaways:
Based on this strat Bitfinex whales are more wrong than right.
Results don't carry across well into altcoins using the accompanying short symbol. However, what is interesting is that applying the BITFINEX:BTCUSDSHORTS to altcoin charts does work pretty well.
Strat needs some refinement to control for entries under different circumstances.
Probably not a great idea to use this as a strategy in isolation, but highlights how Bitfinex whale behaviour is a good gauge to follow.
COT + ema + aux tickerPurpose: Create a script for backtesting the idea that COT can steer weekly Bias on Forex Market.
How does it works: the script use Commercials Delta Conctract, EMA of the selected ticker, EMA of 2 auxiliary tickers (e.g. correlated ticker) to generates buy and sell signals, it allows to include or not each of these.
If you use all the indicator, The buy or sell signals are generated following that rules:
(Example for buy signals on GBPCAD)
1) Commercials add net contract to GBP futures + remove net contract to CAD
2) EMA of GBPCAD is rising
3) EMA of 1st aux ticker is rising (or decline if select inv option)
4) EMA of 2nd aux ticker is rising (or decline if select inv option)
The scripts set the stop at low of the week for long orders and high of the week for shorts.
The exit strategy is to exit at first week of profit
How could you use it:
1) Choose your FX Ticker e.g. GBPCAD and set 1W TimeFrame
2) Select ticker in the strategy setting, remember to select the currency in right order, if you want to study GBP CAD 1st currency is GBP and 2nd CAD
3) Choose if you want to use EMA (and its period of calculation)
4) Choose if you want to use a aux ticker, the direction, and the relative ema period
What could be better;
1) you can just buy on begin of the week.
2) the exit strategy isn't best you can do
3) No level of delta contract is consider, its generate a buy signial also for 1 contract in the right direction
For any question, suggestion of improvemet, ideas, insult:) write to me
It all started from a script i find here on tradingview that extract COT data. Don't remember the name of that guy but Thanks a lot.
My English isn't perfect but i hope you can understand as well.
COT Report BTC Positions█ OVERVIEW
Showing the Commitments of Traders (COT) report(*) for BITCOIN Positions - CHICAGO MERCANTILE EXCHANGE (futures only) with COT charts on TradingView data.
* COT reports are released each Friday (except for U.S. holidays) by the CFTC.
* Each COT report release includes data from the previous Tuesday.
* Original data is www.cftc.gov
Data currently displayed are through April 12, 2022
█ FEATURES
You can switch the display for each of the following Positions :
Long
Short
You can switch the display for each of the following Categories :
Dealer
Asset manager
Leverage funds
Other reportable
Non reportable
█ HOW TO USE IT
This indicator allows you to see changes for each category within TradingView without having to refer directly to each report.
COT Net Positions BTC & ETH FO_ALLWeekly Commitment of Traders Report for Futures positions, as well as futures plus options positions.
This is only for Bitcoin and Ether.
OPEN INTEREST
DEALER
ASSET MANAGER
LEVERAGED FUNDS
OTHER REPORTABLE
TOTAL REPORTABLE
NON REPORTABLE
CoT data with OpenInterestDisplays COT data based on the "Disaggregated Commitments of Traders" report for Futures of the CFTC.
It does make accesible the following symbols:
ZB
ZN
ZS
ZM
ZL
ZC
ZW
KE
HE
LE
GC
SI
HG
CL
HO
RB
NG
6A
6B
6C
6E
6J
6S
SB
KC
CC
CT
ES
RTY
YM
NQ
PA
PL
AUP
HRC
EH
BB
ZR
ZO
DC
OJ
LBS
GF
SP
DJIA
6N
6L
VX
6M
6R
6Z
ZT
ZF
BTC FTX Futures PremiumsThis indicator shows the future BTC premiums on FTX.
The purple area is the Daily December Futures contract subtracted by the current price.
The blue area is the Daily September futures contract subtracted by the current price.
The green area is the Daily June futures contract subtracted by the current price.
You can use this to try and understand market sentiment.
If the current price dumps but the premium remains the same it likely means that sentiment is unchanged.
The opposite is true, if the price pumps and the premium is the same it means the market likely wasn't convinced by the movement.
The difference between the current price and the futures price can help determine how bullish or bearish a market or at extremes the level of euphoria.
Last Friday of MonthThis script marks the last Friday of the month in a daily chart because this is the day when BTC and ETH options expire according to Deribit.
I only found a script that highlights the 3rd Friday of the month, which is not what I wanted.
This script tries to figure out the correct number of days per month but is not aware of holidays which might displace the expiry date.
GOD's EYEGet to know when to accumulate when biggies are buying and when to stay away from the stock
COT GRAINS FUNDS NET POSITION(GRAINSTATS)- Retrieves fund net position from CFTC Commitments of Traders(COT) Reports
- Overlays fund net positions on left y-axis vs price on right y-axis
- Current supported Grain Products
- Corn (CBOT) (QUANDL: 002602)
- Soybeans (CBOT) (QUANDL: 005602)
- Kansas City Wheat(CBOT) (Hard Red Winter) (QUANDL: 001612)
- Oats (CBOT) (QUANDL: 004603)
- Soybean Meal (CBOT) (QUANDL: 026603)
- Soybean Oil (CBOT) (QUANDL: 007601)
- Wheat (CBOT) (Soft Red Winter) (QUANDL: 001602)
(MGEX WHEAT IS UNSUPPORTED)
Cumulative distribution function - Probability Cumulative distribution function (tScore and zScore)
This script provides the calculation of the cumulative distribution function (i.e., probability). The measure allows you to calculate the chances of a value of interest being above or below a hypothesized value over the measurement period—nothing fancy here, just good old statistics and mathematics. The closer you are to 0 or 1, the more significant your measurement. We’ve included a significance level highlighting feature. The ability to turn price and/or volume off.
We have included both the Z and T statistics. Where the ‘Z’ is looking at the difference of the current value, minus the mean, and divided by the standard deviation. This is usually pretty noisy on a single value, so a smoother is included. Nice shoutout to the Pinecoders Github Page with this function also. The t-statistic is measuring the difference between a short measurement, an extended measurement, and divided by the standard error (sigma/sqrt(n)). Both of these are neatly wrapped into a function, so please feel free to use them in your code. Add a bit of science to your guessing game. For the purists out there, we have chosen to use sigma in the t-statistic because we know the population's behavior (as opposed to the s-measure). We’ve also included two levels of the t-statistic cumulative distribution function if you are using a short sample period below 6.
Finally, because everyone loves choices, we’ve included the ability to measure the probability of:
the current value (Price and volume)
change
percent change
momentum (change over a period of time)
Acceleration (change of the change)
contribution (amount of the current bar over the sum)
volatility (natural log ratio of today and the previous bar)
Here is a chart example explaining some of the data for the function.
Here are the various options you have the print the different measurements
A comparison of the t-statistic and z-statistic (t-score and z-score)
And the coloring options