Libraries: BestInterval - page 26

 
Сергей Таболин:

Read it.

More questions ))))

From the log above:

The first line is clear, the number of deleted intervals.

Next line. The time from 11:17 to 14:07. That's trading time. But then the number of deleted intervals is not 3, but 4! It's inconsistent...

Three, count carefully.


In the description of the library, in the example there are two includniks.

But in post 235, it's different. What is the correct way?


And the BestInteval Action does not appear in the input parameters. What am I doing wrong?

At the end of the backtest log it says that it is necessary to connect Virtual.

[Deleted]  
fxsaber:

Three, count carefully.

At the end of the backtest log it says that you need to connect Virtual.

2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   Amount of Delete Intervals = 3 (2020.03.01 - 2020.05.22)
						      00:00:00 - 11:17:21  выброшен 1
2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   11:17:22 - 14:07:37 : Profit = 127.25 (29.94%), Total = 9 (44.44%), PF = 6.43, Mean = 14.14, DD = 21.49, RF = 5.92
						      14:07:38 - 14:57:46  выброшен 2
2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   14:57:47 - 16:31:40 : Profit = 191.84 (45.13%), Total = 6 (50.00%), PF = 5.71, Mean = 31.97, DD = 21.45, RF = 8.94
						      16:31:41 - 17:30:27  выброшен 3
2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   17:30:28 - 19:33:01 : Profit = 105.99 (24.93%), Total = 11 (36.36%), PF = 2.80, Mean = 9.64, DD = 41.26, RF = 2.57
						      19:33:02 - 23:59:59  выброшен 4
2020.10.06 01:36:55.839 Core 1  2020.05.29 23:54:59   SUMMARY: 00:00:00 - 23:59:59 : Profit = 425.08 (100.00%), Total = 26 (42.31%), PF = 4.46, Mean = 16.35, DD = 30.20, RF = 14.08

I counted four.

What about bridge? Is it necessary - not necessary?


I did this:

#include <MT4Orders.mqh>                           // https://www.mql5.com/en/code/16006
#include <fxsaber\Virtual\Virtual.mqh> // Virtual shopping environment
#include <fxsaber\BestInterval\BestInterval.mqh> // https://www.mql5.com/en/code/22710

When compiling, 100 errors popped up at once.

 
Сергей Таболин:

I counted four.

The morning is the morning.

What about the bridge? Is it necessary - not necessary?

I need it for MT5-style Expert Advisors.


I did it like this:

When compiling, 100 errors popped up at once.

Everything works. Let's stop here.

[Deleted]  
fxsaber:

The morning's the wiser.

I need it for MT5-style Expert Advisors.

Everything works. Let's call it a day.

The most important thing is that I am not nagging or picking on you! I just don't get it. I'm sorry.

  1. In the log I see that the number of deleted intervals = 3. But I also see that there are 3 "working" intervals and 4 "non-working" (deleted) intervals. Either I am blind, or we have different concepts, or I was not taught to count as a child (although I was threatened with a gold medal at school ))))))).
  2. Why is it not specified in the example (for MT5)?
  3. ...............

#include <MT4Orders.mqh>                           // https://www.mql5.com/en/code/16006
//#include <fxsaber\Virtual\Virtual.mqh> // Virtual trading environment
#include <fxsaber\BestInterval\BestInterval.mqh> // https://www.mql5.com/en/code/22710
0 errors, 0 warnings, 9245 msec elapsed         1       1

.............

#include <MT4Orders.mqh>                           // https://www.mql5.com/en/code/16006
#include <fxsaber\Virtual\Virtual.mqh> // Virtual shopping environment
#include <fxsaber\BestInterval\BestInterval.mqh> // https://www.mql5.com/en/code/22710
'VIRTUAL' - the declaration not allowed for the current scope   OrderInfo.mqh   34      22
'VIRTUAL' - struct undefined    OrderInfo.mqh   127     29
'VirtualOrderType' - member function not defined        OrderInfo.mqh   127     29
'VIRTUAL' - the declaration not allowed for the current scope   HistoryOrderInfo.mqh    27      22
'VirtualOrderType' - member function already defined    HistoryOrderInfo.mqh    27      22
.............
',' - unexpected token  Trade.mqh       1675    76
'FormatRequestResult' - undeclared identifier   Trade.mqh       1675    77
',' - unexpected token  Trade.mqh       1675    100
100 errors, 14 warnings         100     15

I have not invented anything!

[Deleted]  
I apologise profusely.... Or are you still running W7 ????
 
Сергей Таболин:

When compiling , 100 errors popped up at once.

It is very possible that you downloaded the libraries as ZIP files, and they are not updated with the update of individual files. Then try downloading the files separately.

[Deleted]  
Edgar Akhmadeev:

It's very possible that you downloaded the libraries as ZIPs and they don't update with individual file updates. Then try downloading the files individually.

I downloaded them one by one, not in a zip.

 
Since recently there was a transition from summer to winter time, I would like to know your opinion. The interval that this paper gives should/should not be corrected? Would it make sense and is it even fundamentally sound?
 
traveller00:
Since recently there was a transition from summer to winter time, I would like to know your opinion. The interval that this paper gives should/should not be corrected? Would it make sense and is it even fundamentally sound?

Part of the world is transitioning when another part is not. Hence the fundamental reasons for skewing and the technical ones.

Also a technically calculated application of BestInterval in Tester can run into this problem.


That's why the user warning is prescribed.

    if (!IsSessionsQuoteEqualTrade(_Symbol))
      Print2("WARNING: SymbolSessionsTrade != SymbolSessionsQuote.");


So there are so many ambiguities with the transition that it's impossible to answer something definitively.

 

Well, the technical reasons can be omitted, they are solved quite trivially and by technical measures.

Rather, I'm interested in whether you have conducted a study, whether it makes sense to adjust the interval after the transfer of the clock? And did you somehow put it in your tests or did you translate combat advisors?