You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I can only feel sorry for you.
If it's not a secret, could you tell me what the requirements are for a tester? Or maybe I'm flying in the clouds and you're taking me down...
I won't ... :)
I don't have plans to make my own tester yet ...
Dart - if you're such a mega cool programmer who figured out Delphi in a couple of minutes.
Help Rosh write a tester for MQL4 and I'm sure with your speed you'll be up and running in seconds.
But I can formulate the requirements for tester, maybe you can criticize them and I will make corrections in my tester.
So, the requirements:
1. tester must emulate incremental time, so that you do not bother with it inside the strategy.
2 Tester should provide procedures for working with orders (installation, modification, and removal)
3 Tester must be on the occurrence of conditions:
a) Close orders on the stop (always the stop has priority)
b) Close orders on profit
c) Open pending orders.
d) When the chart is finished, the tester should delete all orders
(I'll tell you a terrible secret, he does all this using the standard procedures)
The tester should not look inside the bar, except for cases when it closes/opens on pending orders or on stop/profit.
This is the basic one. There are also statistics calculations, order management procedures, data conversion from *yu.csv to arrays, function-methods. This is what we have.
But it will be steeper. I have caught the main bugs, and I am too lazy to test the tester further. As soon as the testers get feedback, I'll continue.
Ah, consider it my help.
By the way, I'm not the only one who wrote my tester. BiT from Viac doesn't trust black boxes either.
Also. A tester should be written for something, not for the sake of the tester itself. Don't you have enough of an MT3 tester?) I am writing it with the purpose of adding there algorithms of strategy optimization, that's why I have special requirements for speed. And what they show you here
[quite]
VC++: Time: 47 ms, ResInt=-752584127 ResDouble=17247836076609
MQL4: Time: 797 ms, ResInt=-752584127 ResDouble=17247836076609
MQL2 : Time: 22156 ms, ResInt=333333383333717340000 ResDouble=3333333833717340000
WL3 : Time: 32422 ms, ResInt=3.3333333383333717E20 ResDouble=3.33333333833717E20
[/quote]
I don't know, I haven't checked it myself, but in my programmer book it says, that conversion from timer in Windows98 is generated every 55ms, in XP every 10ms, maybe author is a fool, but where does 47ms, 797ms come from?
Ok, I guess we'll have to wait for the tester from the developers after all...
[/quote]
To each his own.
Since you took up the criticism, you should check operation of standard WinAPI function GetTickCount() (not on Win98). Otherwise you may get:
1) based on theoretical reasoning - "it's easy to write a tester".
2) by "my programming books" - "the author is a fool".
2) based on "my programming books" - "the author is a fool"
Heh.
And what is difficult in writing a tester? If not a secret or comtayna. Or maybe I stated something wrong there? I only listed what I did myself. Maybe I missed something?
I've never claimed to be the absolute truth.
Is there any way to get increments not from 1ms but from 1μs or lower?
I looked, 15-20 people have already downloaded what I posted (I can't call it a tester, rather a mock-up). I don't know what will be the tester in MT4, but it will not fit all occasions, there will always be some specific task, which it does not fit. Therefore, do not forget about the possibility of creating your own tester-indicator.
And it can be used for:
1. portfolio strategy optimisation (said to be out of the question)
2. genetic optimization methods
3. Gradient-based optimization methods using momentum
4. Neural network training
This is what I just remembered. And there may be at least as many other tasks.
PS. Additionally. tester's functions could be redefined in dll (in C or other languages). Although I haven't studied this question yet. This will give greater productivity and debugging capability.
Some conclusions:
1) For proper testing the
Minutes for M15 and lower (ticks are an excessive luxury)
5-minutes for H1 and M30
15 minutes for H4, etc.
2) What to do with swaps?
3) To test crosses you need to be able to convert their currencies
To USD for each moment in the past. I.e. in addition to GBPCHF
USDCHF and GBPUSD quotes array.