Errors, bugs, questions - page 2388

 
Slava:

No problem. Here's the indicator

Here are the logs

It's true, OnDeinit with control request hasn't been called. Because of the indicator testing. OnDeinit only during debugging

And why during debugging on historical data no ticks are given before test start date? The tester has received them and synchronised them after all. I understand that in the "All ticks" mode the tester cannot generate ticks before the beginning of testing, but in the "Every tick based on real ticks" mode they are present in the history and synchronized (highlighted in red in the log+)! How then to debug the part of the tick indicator that is based on history data? How to get the ticks of bar time[0] in the OnCalculate in the tester?

2019.02.20 10:45:28.357 RTS-3.19: symbol to be synchronized
2019.02.20 10:45:28.357 RTS-3.19: symbol synchronized, 3864 bytes of symbol info received
2019.02.20 10:45:28.365 RTS-3.19: history synchronization started
2019.02.20 10:45:28.382 RTS-3.19: load 5264 bytes of history data to synchronize in 0:00:00.007
2019.02.20 10:45:28.382 RTS-3.19: history synchronized from 2017.05.04 to 2019.02.19
2019.02.20 10:45:28.383 RTS-3.19: ticks synchronization started
2019.02.20 10:45:28.384 RTS-3.19: load 38 bytes of tick data to synchronize in 0:00:00.000
2019.02.20 10:45:28.384 RTS-3.19: history ticks synchronized from 2018.12.17 to 2019.02.18
2019.02.20 10:45:28.402 RTS-3.19,M4: history cache allocated for 15218 bars and contains 14188 bars from 2018.01.03 21:16 to 2019.02.14 23:48
2019.02.20 10:45:28.402 RTS-3.19,M4: history begins from 2018.01.03 21:16
2019.02.20 10:45:28.427 RTS-3.19,M4 (Open-Broker): generating based on real ticks
2019.02.20 10:45:28.427 RTS-3.19,M4: testing of Indicators\TestCopyTicksRange.ex5 from 2019.02.15 00:00 to 2019.02.19 00:00 started
2019.02.20 10:45:28.496 RTS-3.19 : real ticks begin from 2018.12.17 00:00:00
2019.02.20 10:46:20.806 2019.02.15 09:45:19   2019.02.14 23:24 - 2019.02.14 23:48  ticks_trade=0  ticks_info=0  ticks_all=0
2019.02.20 10:46:20.809 2019.02.15 09:47:02   2019.02.14 23:24 - 2019.02.14 23:48  ticks_trade=0  ticks_info=0  ticks_all=0
2019.02.20 10:46:20.863 2019.02.15 09:49:47   2019.02.14 23:24 - 2019.02.14 23:48  ticks_trade=0  ticks_info=0  ticks_all=0
2019.02.20 10:46:20.948 2019.02.15 09:55:21   2019.02.14 23:24 - 2019.02.14 23:48  ticks_trade=0  ticks_info=0  ticks_all=0
2019.02.20 10:46:21.032 2019.02.15 09:57:25   2019.02.14 23:24 - 2019.02.14 23:48  ticks_trade=0  ticks_info=0  ticks_all=0
2019.02.20 10:46:21.200 2019.02.15 10:00:00   2019.02.14 23:28 - 2019.02.15 10:00  ticks_trade=0  ticks_info=15  ticks_all=15
2019.02.20 10:47:25.096 2019.02.15 10:04:00   2019.02.14 23:32 - 2019.02.15 10:04  ticks_trade=3544  ticks_info=973  ticks_all=4517
2019.02.20 10:47:25.099 2019.02.15 10:08:00   2019.02.14 23:36 - 2019.02.15 10:08  ticks_trade=6246  ticks_info=1469  ticks_all=7715
2019.02.20 10:47:25.101 2019.02.15 10:12:00   2019.02.14 23:40 - 2019.02.15 10:12  ticks_trade=7460  ticks_info=1648  ticks_all=9108

And another question: why was OnCalculate called 5 times before the appearance of ticks (highlighted in yellow in the log)?

 
Dmitriy Burlachenko:

Why doesn't the debugging on historical data give the ticks before the test start date? The tester has received them and synchronised them. I understand that in the "All ticks" mode the tester cannot generate ticks before the test start date, but in the "Every tick based on real ticks" mode they are already in the history and synchronized (highlighted in red in the log+)! How then to debug the part of the tick indicator that is based on history data? How to get the ticks of bar time[0] in the OnCalculate in the tester?

And another question: why was OnCalculate called 5 times before the appearance of ticks (highlighted in yellow in the log)?

When testing on a yediotic, they will never give out.

On real ticks, do some testing from a much earlier date so that the ticks are uploaded to the tester agent's database.

OnCalculate is called on every tick. It just gets logged much less frequently, at the start of each subsequent bar to be tested. If, of course, we are talking about my example of indicator

 
Slava:

When testing on the eejit will never give away.

On real ticks, do some testing from a much earlier date to get the ticks uploaded to the tester agent's database.

OnCalculate is called on every tick. It's just that the logging is done much less frequently - at the beginning of each next bar to be tested. If, of course, we are talking about my example of indicator

That's what helped. Thank you so much! :)

 
Slava:

Bild 1997. Still not fixed the behaviour of the partial position closing functions. Please correct it before the release.

 

I posted this compiler bug once before, but no reply, I'll try again:

class A { };
class B : public A { };
class C : public B { };

void f(A &) {  }
void f(B &) {  }  // Должна вызываться эта функция

void OnStart()
{
  C c; 
  f(c); // 'f' - ambiguous call to overloaded function
}

The compiler generates a false error. There is no ambiguity here. Class B is the closest of the ancestors, so it has priority.

 

Guys, help me, how do I pass the check before placing the robot on the market. It says it didn't pass validation, but what's the problem, I don't understand. And I don't see tech support on the site

 
Stanislav Sarbey:

Guys, help me, how do I pass the check before placing the robot on the market. It says it didn't pass validation, but what's the problem, I don't understand. And I don't see tech support on the site

It says in the report what's the problem...

 

no trading operation

What does it mean?

 
test on EURUSD,H1 there are no trading operations
test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations test on XAUUSDcheck,Daily there are no trading operations
 
Stanislav Sarbey:

no trading operation

What does this mean?

How are you going to sell anything on a marketplace with a complete lack of knowledge of English, which is a must for a marketplace?