Commitment of Traders (COT) in tradingview

Some theory to add background

I continue studying about market breadth, and this time I’m creating a script for the analysis of the Commitment of Traders.

The Commitment of Traders (COT) reports show futures traders’ positions at the close of (usually) Tuesday’s trading session. The report is prepared by the Commodity Futures Trading Commission (CFTC). It is an excellent trading tool and can be used as an indicator for analyzing market sentiment.

Markets are only included if 20 or more traders hold positions equal to or above the reporting levels established by the CFTC and the respective exchanges.

Traders are grouped into categories:

  • Commercial Traders,
  • Non-Commercial Traders (large speculators)
  • Non-reportable (small speculators).

COTs on tradingview

Right now there is no direct data in tradingview related to COTs. But you can work with this data accesing through Quandl. Only Legacy format is available for tradingview.

MagicEins provides on this script a code and an explanation about how to use this data, It contains all symbols available, and he provides updates.

The main codes I’m interested are:

  • Russell 2000 E-Mini (RTY) == “239742”
  • S&P 500 (SP) == “138741”
  • Dow Jones Industrial Average Index (DJIA) == “12460P”

The colours used are:

  • Commercials ==  blue
  • Large Speculators ==  red
  • Speculators net   ==  green

I added 3 inputs to enable to draw just the COTs you want:

Code example

study("Market Breadth P2 CoTs-joapen", shorttitle="Market-Breadth-P2CoTs-joapen", precision=0)

shortnegative = input(title="Show Shorts as negative numbers?", type=bool, defval=false)
showCommercials = input(title = "show Commercials?", type=bool, defval=true)
showLargeSpeculators = input(title = "show Large Speculators?", type=bool, defval=false)
showSmallSpeculators = input(title = "show Small Speculators?", type=bool, defval=false)

snn = shortnegative ? -1 : 1

quandl_futures_code =
	  syminfo.root == "ZB" ? "020601" : 
	  syminfo.root == "ZN" ? "043602" : 
	  syminfo.root == "ZS" ? "005602" : 
	  syminfo.root == "ZM" ? "026603" : 
	  syminfo.root == "ZL" ? "007601" : 
	  syminfo.root == "ZC" ? "002602" : 
	  syminfo.root == "ZW" ? "001602" : 
	  syminfo.root == "KE" ? "001612" : 
	  syminfo.root == "HE" ? "054642" : 
	  syminfo.root == "LE" ? "057642" : 
	  syminfo.root == "GC" ? "088691" : 
	  syminfo.root == "SI" ? "084691" : 
	  syminfo.root == "HG" ? "085692" : 
	  syminfo.root == "CL" ? "067651" : 
	  syminfo.root == "HO" ? "022651" : 
	  syminfo.root == "RB" ? "111659" : 
	  syminfo.root == "NG" ? "023651" : 
	  syminfo.root == "6A" ? "232741" : 
	  syminfo.root == "6B" ? "096742" : 
	  syminfo.root == "6C" ? "090741" : 
	  syminfo.root == "6E" ? "099741" : 
	  syminfo.root == "6J" ? "097741" : 
	  syminfo.root == "6S" ? "092741" : 
	  syminfo.root == "SB" ? "080732" : 
	  syminfo.root == "KC" ? "083731" : 
	  syminfo.root == "CC" ? "073732" : 
	  syminfo.root == "CT" ? "033661" : 
	  syminfo.root == "ES" ? "13874A" : 
	  syminfo.root == "RTY" ? "239742" : 
	  syminfo.root == "YM" ? "12460P" : 
	  syminfo.root == "NQ" ? "209742" : 
	  syminfo.root == "PA" ? "075651" : 
	  syminfo.root == "PL" ? "076651" : 
	  syminfo.root == "AUP" ? "191693" : 
	  syminfo.root == "HRC" ? "192651" : 
	  syminfo.root == "EH" ? "025651" : 
	  syminfo.root == "BB" ? "06765T" : 
	  syminfo.root == "ZR" ? "039601" : 
	  syminfo.root == "ZO" ? "004603" : 
	  syminfo.root == "DC" ? "052641" : 
	  syminfo.root == "OJ" ? "040701" : 
	  syminfo.root == "LBS" ? "058643" : 
	  syminfo.root == "GF" ? "061641" : 
	  syminfo.root == "SP" ? "138741" : 
	  syminfo.root == "DJIA" ? "12460P" : 
	  syminfo.root == "6N" ? "112741" : 
	  syminfo.root == "6L" ? "102741" : 
	  syminfo.root == "VX" ? "1170E1" : 
	  syminfo.root == "6M" ? "095741" : 
	  syminfo.root == "6R" ? "089741" : 
	  syminfo.root == "6Z" ? "122741" : 
	  syminfo.root == "ZT" ? "042601" : 
	  syminfo.root == "ZF" ? "044601" : 
    ""
    
quandl_code = "QUANDL:CFTC/" + quandl_futures_code + "_F_L_ALL"

comm_long = security (quandl_code + "|4", "D", close)
comm_short = security (quandl_code + "|5", "D", close)
lspecs_long = security (quandl_code + "|1", "D", close)
lspecs_short = security (quandl_code + "|2", "D", close)
sspecs_long = security (quandl_code + "|8", "D", close)
sspecs_short = security (quandl_code + "|9", "D", close)

// showCommercials  --- blue
plot (showCommercials?comm_long:na, color = blue, title = "Commercials long", style=line,linewidth=1,transp=0)
plot (showCommercials?comm_short*snn:na, color = purple, title = "Commercials short", style=line,linewidth=1,transp=0)
plot (showCommercials?comm_long - comm_short:na, color = blue, title = "Commercials net", style=line,linewidth=2,transp=50)
// showLargeSpeculators  ---   red
plot (showLargeSpeculators?lspecs_long:na, color = red, title = "Large Speculators long", style=line,linewidth=1,transp=0)
plot (showLargeSpeculators?lspecs_short*snn:na, color = orange, title = "Large Speculators short", style=line,linewidth=1,transp=0)
plot (showLargeSpeculators?lspecs_long - lspecs_short:na, color = red, title = "Large Speculators net", style=line,linewidth=2,transp=50)
// showSmallSpeculators  ---- green
plot (showSmallSpeculators?sspecs_long:na, color = green, title = "Small Speculators long", style=line,linewidth=1,transp=0)
plot (showSmallSpeculators?sspecs_short*snn:na, color = olive, title = "Small Speculators short", style=line,linewidth=1,transp=0)
plot (showSmallSpeculators?sspecs_long - sspecs_short:na, color = green, title = "Small Speculators net", style=line,linewidth=2,transp=50)
// horizontal line
hline(0, color=black, title = "Zero", linestyle=dotted,linewidth=1)

Tradingster, Commitments of Traders (COT) reports

Tradingster.com provides free COT charts and COT reports. The Commitments of Traders (COT) reports provide a breakdown of each Tuesday’s open interest for markets in which 20 or more traders hold positions equal to or above the reporting levels established by the CFTC.

The original COT report is text based and doesn’t include any charts or analytics tools. Tradingster provides you charts for COT report, which is great.

Stockcharts.com

This platform, competes with Tradingview.com, and it comes with different features and levels of analysis of data that are interesting.

I have to go a little bit deeper on the analysis of the tool and try to learn if it’s worthy than tradingview.

There is a programatic way to filter companies, which is something really valuable, the standard screeners are not so much good.

I have not found a backtest solution to enable the analysis of a strategy written in code (as tradingview offers).

I need to stop here again and check it.

Boldgrid

Boldgrid makes it easy to create beautiful websites on WordPress. The suite of tools and plugins lets you build and manage professional websites.

With BoldGrid’s free website builder you can instantly launch WordPress in the cloud and test building out a free fully functional website.

BoldGrid is powered by WordPress so you can take your website with you to any web host (this is what I did).

Templates and a builder plug-in that enables you to compose the pages and blog entries with infinite ways or shapes.

SEO capabilities to enable the right population of tags, key words and other aspects that are in benefit of being found,

The result?

I created a simple blog for posting pictures of the kids, so family is up to date of what’s going on with kids.

http://www.joapen.com/jepc/

cPanel Price Increase

I just received an e-mail from a personal web hosting where they announce me that they are increasing 1$ a month the price as CPanel has changed their licensing structure.

Anyone is having the same issue? I mean, your webhosting is passing the price increase to you as end customer.

Dear Joaquin,

Recently, cPanel announced a new pricing and licensing structure that shifted from an unlimited usage to a usage-based structure. This change will result in pricing increases for all website hosting providers and consumers that use cPanel.

The recent pricing change has forced us to increase the base cost of our hosting products.

Beginning December 1, 2019, the price of all new hosting orders will increase by $1/month. Additionally, any hosting renewal occurring after January 31, 2020 will renew at an increased rate of $1/month.

As always, our Customer Service team is here 24/7 to answer any questions you may have. You can reply to this email with any questions regarding your account.

Thank you for your understanding and continued business.

Some links:

UIPath

UIPath offers a community version of their RPA solution with the ability of building your own robots, and an environment to implement them.

RPA Starter + local tests

I have tried to see how it works. So create an user, download the developer GUI, complete “RPA Starter” course.

The tool is very complete and there are a lot of ways to learn, from the theory to the real situations you want to automate. There are different communities and forums to enable the different roles on automation to interact and learn from others.

The simple tests you can do are easy to perform and check.

The funding series of UIPath

  • In August 2015, UiPath closed an initial seed funding round of US$1.6 million led by the Earlybird Venture Capital, with Credo Ventures and Seedcamp as backers.
  • In April 2017, UiPath received $30 million investment in one of the biggest Series A rounds of funding in Europe, led by Accel. Previous investors Earlybird Venture Capital, Credo Ventures and Seedcamp also joined.
  • On March 6, 2018, UiPath received a $153 million investment from Accel, CapitalG, and Kleiner Perkins Caufield & Byers, valuing the company at $1.1 billion.
  • On September 18, 2018, UiPath raised $225 million in the funding round led by CapitalG and Sequoia Capital at a $3 billion valuation.
  • On April 30th, 2019, UiPath raised $568 million in a series D round of funding led by hedge fund Coatue Management, with participation from Alphabet’s CapitalG, Sequoia, Accel, Madrona Venture Group, IVP, Dragoneer, Wellington, Sands Capital, and funds advised by T. Rowe Price & Associates. The company also now claims a valuation of $7 billion.
  • To be continued (IPO comming??)

Competitors

Microsoft chatbot technology

Microsoft Bot Framework

It is composed by 3 components:

  • Microsoft Cognitive Services, where you will use LUIS for interacting with the services.LUI is not a chatbot-, but a language parsing engine.
  • Bot Builder SDK: you can either develop on Node.js or .NET
  • Azure bot: a place to deploy your bots.

LUIS

LUIS is a language understanding service under the umbrella of Cognitive Services, you can call the services in your bot logic (the code that sits on the Azure Bot workload) to make the conversations more intelligent.

The way LUIS works is that it allows you to define the possible intents of your user, and then you can train LUIS to recognize this intent by providing a few sample phrases.

LUIS will then determine the key elements in these sentences, allowing it to recognize the intent even if it hasn’t seen the exact sentence before.

Azure Bot

This is a PaaS workload in Azure, (just like a Webapp or an Azure SQL DB) that the actual code for the bot sits. You can create and “Host” a bot in an Azure Bot workload.

Bot Connector

This is a service by Microsoft that you can use to register a bot you have already deployed to sort of “Bridge” the connection between the bot and many different channels. Some examples are Skype, Facebook Messenger, SMS etc.