Original (English)Commitment Of Traders ReportThe Commitments of Traders (COT) is a market report by the Commodity Futures Trading Commission (CFTC), listing the holdings of participants in futures of financial instruments, metals, and other commodities. It is believed by some traders to give insight into the upcoming development of those markets. The CFTC releases a new report every Friday at 3:30 p.m. Eastern Time, and the report reflects the commitments of traders on the prior Tuesday. The following functions return selected parts of the COT report, and work likewise in backtest and live trading: COT (int Handle, string Code, int Field): varDownloads the COT report with the given Quandl Code and stores it in the dataset with the given Handle. Returns the position determined by the Field number for the time of the current bar. If the dataset already exists, the data is not loaded again, but only the position returned.COT_CommercialPos (int Handle, string Code): intAs before, but returns the net commercials position, i.e. the difference producer + swap dealer longs - producer + swap dealer shorts.COT_CommercialIndex (int Handle, string Code, int TimePeriod): varAs before, but returns the commercials net position normalized over the given TimePeriod and scaled to 0..100.COT_OpenInterest (int Handle, string Code): varAs before, but returns the open interest.Returns:Positions, net positions, or index.Parameters:
Remarks:
Example:#include <contract.c> // Database symbols and codes below are just for illustration. // Current available symbols can be found on the Quandl / NASDAQ website. function run() { StartDate = 2018; EndDate = 2023; BarPeriod = 1440; LookBack = 12*20; set(PLOTNOW); assetAdd("GOLD","YAHOO:GC=F"); asset("GOLD"); string COT_Code = "088691"; var Ind = COT_CommercialIndex(1,COT_Code,6*20); // gold COT report plot("Fast Index",Ind,NEW,RED); var Ind2 = COT_CommercialIndex(1,COT_Code,12*20); plot("Slow Index",Ind2,0,BLUE); var Ind3 = COT_OpenInterest(1,COT_Code); plot("Open Interest",Ind3,NEW,BLACK); } See also:asset, season, dataFromQuandl ► latest version online |
Übersetzung (Deutsch)Commitment Of Traders BerichtDer Commitments of Traders (COT) ist ein Marktbericht der Commodity Futures Trading Commission (CFTC), der die Bestände der Teilnehmer an Futures für Finanzinstrumente, Metalle und andere Rohstoffe auflistet. Einige Trader glauben, dass er Einblicke in die bevorstehende Entwicklung dieser Märkte gibt. Die CFTC veröffentlicht jeden Freitag um 15:30 Uhr Eastern Time einen neuen Bericht, und der Bericht spiegelt die Commitments der Trader am vorherigen Dienstag wider. Die folgenden Funktionen geben ausgewählte Teile des COT-Berichts zurück und funktionieren gleichermaßen im Backtest und im Live-Handel: COT (int Handle, string Code, int Field): varLädt den COT-Bericht mit dem gegebenen Quandl Code herunter und speichert ihn im Datensatz mit dem gegebenen Handle. Gibt die Position zurück, die durch die Field-Nummer zum Zeitpunkt der aktuellen Bar bestimmt wird. Wenn der Datensatz bereits existiert, werden die Daten nicht erneut geladen, sondern nur die Position zurückgegeben.COT_CommercialPos (int Handle, string Code): intWie zuvor, aber gibt die Nettoposition der Commercials zurück, d.h. die Differenz Produzenten + Swap-Dealer Long-Positionen - Produzenten + Swap-Dealer Short-Positionen.COT_CommercialIndex (int Handle, string Code, int TimePeriod): varWie zuvor, aber gibt die Nettoposition der Commercials normalisiert über den gegebenen TimePeriod und auf 0..100 skaliert zurück.COT_OpenInterest (int Handle, string Code): varWie zuvor, aber gibt das Open Interest zurück.Rückgabewerte:Positionen, Nettopositionen oder Index.Parameter:
Anmerkungen:
Beispiel:#include <contract.c> // Datenbanksymbole und Codes unten dienen nur zur Veranschaulichung. // Aktuell verfügbare Symbole finden Sie auf der Quandl / NASDAQ Webseite. function run() { StartDate = 2018; EndDate = 2023; BarPeriod = 1440; LookBack = 12*20; set(PLOTNOW); assetAdd("GOLD","YAHOO:GC=F"); asset("GOLD"); string COT_Code = "088691"; var Ind = COT_CommercialIndex(1,COT_Code,6*20); // gold COT Bericht plot("Fast Index",Ind,NEW,RED); var Ind2 = COT_CommercialIndex(1,COT_Code,12*20); plot("Slow Index",Ind2,0,BLUE); var Ind3 = COT_OpenInterest(1,COT_Code); plot("Open Interest",Ind3,NEW,BLACK); } Siehe auch:asset, season, dataFromQuandl ► neueste Version online |