Discussion of article "Custom presentation of trading history and creation of report diagrams" - page 4

 
Aleksey Vyazmikin:

If you write more specifically what and where to look and write, I will help you find the error.

Arrays contracts (titled on line 589) and lotArr (titled on line 402) error on one of the iterations of the for loop started on line 591.

 
Andrey Azatskiy:

Corrections are already filtered. They are cancelled in the getHistory function. And in the function where there is an error - only inputs / outputs and reversals and something else there... are included.

And everything else is filtered in the isBorderPoint function.

 

It's still coming out

2018.09.01 19:51:16.940 Get_TradingHistory (GAZR Splice,H1)     An error occurred while test_11 !

What's this?

 
Aleksey Vyazmikin:

It's still giving out

What is it?

Error during test #11 - unable to save buy and hold history. In order for it to be generated, you need to select all futures you have ever traded in the symbol selection window.

 
Andrey Azatskiy:

Error during test #11 - can't save buy and hold history. In order for it to be generated, it is required that all futures you have ever traded in are selected in the symbol selection window.

Is it possible to limit the depth of data analysis somehow, so that the report would be generated by date range? I'm just not even sure that I can remember all symbols, and the error could write what symbol is missing. And even add it to the market overview :)

 
Aleksey Vyazmikin:

Is it possible to limit the depth of data analysis somehow, so that the report would be built by date range? I'm just not even sure that I can remember all the symbols, and the error could then write what symbol is missing. And even add it to the market overview :)

You can limit by dates - for this purpose in method getDealsDetales - there are fields "from" and "till" but also you can find out all symbols using method get_Symbols of CReportGetter class.

 
Andrey Azatskiy:

You can limit the dates - for this purpose in the method getDealsDetales - there are fields "from" and "till" but you can also find out all symbols using the method get_Symbols - of the CReportGetter class

Did I try to limit the date correctly?

   //dealGetter.getDealsDetales(history,0,TimeCurrent());
datetime a=iTime(Symbol(),PERIOD_CURRENT,1000);
   dealGetter.getDealsDetales(history,a,TimeCurrent());
The result is negative.
 
Aleksey Vyazmikin:

Did I try to limit the date correctly?

The result is negative.

from - date from which you are going to start unloading for example if you take it a month ago:

datetime DT_from = TimeCurrent();
DT_from -= 60/*in a minute*/*60/*sec in an hour*/*24/*hours in a day*/*30/*days in a month*/
 
Andrey Azatskiy:

from - date from which you are going to start unloading for example if you take it a month ago:

I see, the question is, did I put it in the right function? The question is not about accuracy, otherwise it is better to string. I just don't want to look for futures of 2017.

 
Aleksey Vyazmikin:

I see, the question is, did I put it in the right function? It's not a question of accuracy, otherwise it's better to string. I just don't feel like looking for 2017 futures.

Yes, it is.