Discussion of article "MQL5: Analysis and Processing of Commodity Futures Trading Commission (CFTC) Reports in MetaTrader 5"

 

New article MQL5: Analysis and Processing of Commodity Futures Trading Commission (CFTC) Reports in MetaTrader 5 is published:

In this article, we will develop a tool for CFTC report analysis. We will solve the following problem: to develop an indicator, that allows using the CFTC report data directly from the data files provided by Commission without an intermediate processing and conversion. Further, it can be used for the different purposes: to plot the data as an indicator, to proceed with the data in the other indicators, in the scripts for the automated analysis, in the Expert Advisors for the use in the trading strategies.

Author: Aleksey

 
I'm indifferent to CFTC reports (even sure they are useless), but the article is great!
 


5 star rating for this article. Thanks!

 
Great Thanks for Translating :)
 

seem there is  an error into common.mqh:

datetime times[0] : '0' invalid index value

returned while compiling cot.mq5

i've tried to workaround but no luck, is somebody can fix it ? (i've no skill to do it)

 
Thanks for the article, I'm convinced it's not unhelpful, kudos!
 
Thanks Alexey, great work. Now I just need to understand the nuances and the profit is in my pocket. I wrote to the author in private, waiting for clarifications.
 

Good day! I have a problem: an indicator and scripts were installed in the terminal, as you can see from the picture. Recently the terminal was updated, the indicator is in the terminal, but not updated, because I can not find the script. But in MetaEditor we see that the script is present, but when compiling it shows errors. Please help to fix and load the scripts. Thank you.


 

2 voinG.

Probably this error has been removed . put // at the beginning of the line c this err_trade...

 

Yes, it seems to have been fixed, compiled without the error after the update. Thanks. But the update didn't happen, I'll try again on Tuesday, we'll see.


 
voinG:

Yes, it seems to have been fixed, compiled without the error after the update. Thanks. But the update didn't happen, I'll try again on Tuesday, we'll see.

You have a line in the log: "Upload completed", it means that more recent data was found, it was uploaded. The point is that the indicator does not check for updates, so in order for it to pick them up, you need to reinitialise it, for example, switch the timeframe from w1 to d1 and back again.

There is no point in looking for updates on Tuesday. The next files will not appear until Saturday morning.