TradingView
Lowphat
23. Mai 2016 13:02

COT Net Position's (Com,Non-Com and Spec) by Lowphat 

Australian Dollar/U.S. DollarFXCM

Beschreibung

Commitments of Traders with Com's Non-Com's and Spec's in one indicator.
Kommentare
SignoredeiWurm
Hi, can you explain me why you calculate commercial as long_noncom-short_noncom?
IFXPROS
how do i add GBPJPY pair for the COT report ?
Lowphat
@IFXPROS, i made all majors on one chart @ tradingview.com/script/mkeptEAq-Commitments-of-Traders-COT-Major-s-noncom-net-beta-By-Lowphat/
you may be able to check GBP(in blue) in relation to JPY (in yellow) to get an idea of what side noncoms are on. im not sure if there is a (quandl) COT code for gbpjpy cross currency
IFXPROS
what are the rules for trading in forex using your cot script ?
Lowphat
the inverse code needs to be added. not sure how i go about updating this indy to add/replace
nclong = is_inversed ? short_noncom : long_noncom
ncshort = is_inversed ? long_noncom : short_noncom
clong = is_inversed ? short_total : long_total
cshort = is_inversed ? long_total : short_total
splong = is_inversed ? short_total_S : long_total_S
spshort = is_inversed ? long_total_S : short_total_S


plot(nclong-ncshort, color = lime, title="Com", style=line, linewidth=2)
plot(clong-cshort, color = red, title="Large", style=line, linewidth=2)
plot(spshort-splong, color = blue, title="Spec", style=line,linewidth=2)
hline(0, color=gray, linestyle=dashed)
Zach_John
@Lowphat,
Any mt4 version
Lowphat
@Zach_John, no, mt4 lacks direct access to COT data so its a lot more work to code and you would probably have to keep the code updated constantly. a web search came up with darkmindfx which appears to be a fairly recent free implementation of cot data to mt4 but i don't know if its any good or what it actually displays or how long it would be functional.
Z_Alpenglow
Hi,
If I'm not mistaking, the lines of the commercial traders (green) and non-commercial (red) are inverted.
Am I right and how to correct it ?
Thanks
Sacreste
Names in setup panel are inversed from what Barchart.com show as default.
now is fine
plot(long_total-short_total, color = red, title="Com", style=line, linewidth=1)
plot(long_noncom-short_noncom, color = lime, title="Large", style=line, linewidth=1)
plot(short_total_S-long_total_S, color = blue, title="Spec", style=line,linewidth=1)
hline(0, color=gray, linestyle=dashed)
Mehr