Errors, bugs, questions - page 1659

 
In the visualiser, F12 is used to move to the next tick. Is it possible to specify the time with millisecond accuracy in Market Watch? After all, we are moving by ticks.
 
If you run the backtest from the 1st of the month, the first tick will have zero volume. In other situations ALL ticks will NOT be "zero".
 
The first tick of the backtest from FUTURE is a tick in which bid/ask is not zero.
 
A100:

In the corrected build 1400 the error in a similar case is now reproduced as 'pure virtual function call'. And without a comment, it's fine.

build 1401. Error during execution: Invalid function pointer call in 'Script2.mq5'.
Found the reason with difficulty

//Script1.mq5
typedef void (*fnn)( int, int );
typedef void (*fn)(  int, int );
#import "Script2.ex5"
        void f( fn );
#import
void g( int, int ) export { Print( __FUNCSIG__ ); }
void OnStart() { f( g ); }
//Script2.mq5
#property library
typedef void (*fn)( int, int );
void f( fn ff ) export { ff( 0, 0 ); }

And vice versa, if only (*fn) is specified in Script1 and both (*fnn) and (*fn) are specified in Script2. The error is not reproduced for all signatures.

But this (and previous ones with typedef) are incidental errors - I haven't found the main one yet, as there is no typedef with the same signature in the source program (as in this example).

Perhaps the returned application #1550570, augmented with a check script and 'String5.ex5' file, will help.

 
transcendreamer:

And it seems that the problem occurs when getting only the first tick on a new bar, the tester seems to "get stuck" and lags 1 bar behind, that is, the expert thinks that the bar does not exist and it really does not in the visualization, but after a couple of seconds the bar appears, in the case of tests on M1 the correct value comes on the second tick (if I understand correctly), I hope the developers will fix this annoying moment as soon as possible ...

addition:

it turns out that to circumvent this moment now you have to artificially skip the first tick of a new bar...

In testing mode " Opening prices only" this is simply unrealistic. We really have to wait for a fix...
 
fxsaber:
Unable to make debugging of EA on RTS-9.16 BCS-MetaTrader5 by CTRL+F5. The tester writes


2016.09.02 10:29:35.877 Intel Core i7-3770  @ 3.40 GHz, 16350 MB
2016.09.02 10:29:35.877 64 Kb of total initialization data received
2016.09.02 10:29:35.877 successfully initialized
2016.09.02 10:29:35.875 initial deposit 1000000.00 RUR, leverage 1:1
2016.09.02 10:29:35.865 expert file added: Experts\PendingsTrade.ex5. 14849 bytes loaded
2016.09.02 10:29:35.864 18097 bytes of symbols list loaded
2016.09.02 10:29:35.853 188 bytes of input parameters loaded
2016.09.02 10:29:35.853 1482 bytes of tester parameters loaded
2016.09.02 10:29:35.853 38520 bytes of account info loaded
2016.09.02 10:29:35.840 template file tester.tpl added. 207696 bytes loaded
2016.09.02 10:29:35.829 login (build 1401)
2016.09.02 10:29:35.615 initialization finished
2016.09.02 10:29:35.615 MetaTester 5 started on 127.0.0.1:3000
2016.09.02 10:29:35.612 MetaTester 5 x64 build 1401 (01 Sep 2016)
 
Alexey Da:

It's not working for me. Writes one single line in the log (see above) and that's it.

Windows XP SP3 x32, 1395. Certificate message appears when logging in. But it shouldn't affect the tester.

 
Inv Андрей Иващенко:
When testing in the " Open prices only" mode it is simply unrealistic. We really have to wait for a fix...

I agree, then the whole bar will be missed, I can assume that in EA you have to pause (hehe) to allow the bar to form,

but it is not clear exactly how long to wait, and also according to my observations it seems to depend on the current CPU load (wow!),

The only way out is tickwise testing with independent check of a new bar and skipping of the first tick (of course it is a very complex process).

 
However, the current Ask and Bid prices can probably be obtained by calling the correspondingSymbolInfoDouble function- what if they are?
 
MT5, connected to MetaQuaotes Demo, often "beeps" with news.wav sound, but no new news is displayed, lists in all other tabs (library, market, etc.) do not change either, nothing is written in logs. I assume that the calendar is changing. But then it would not be a bad idea to somehow highlight what exactly has changed. Now in the calendar is not even clear where the timestamp is and what event is next.