
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
Is it playing now ?
We don't have it, we tried according to your description.
After the "treatment":
Forum on trading, automated trading systems and trading strategy testing
Tick history
Karputov Vladimir, 2015.10.21 09:24
...
I am now testing the "cure" - I will completely delete the histories from the "history" and "ticks" folders of the MetaQuotes-Demo server.
The 500 ticks depth history is given out almost instantly, with the overall bar history being swapped. The size of ticks files is 200-400 Kb for 10 months.
And I wanted to get ticks in the tester, it gives out whatever it is :)
See how ticks work in the 1194 build, where milliseconds and flags have been added.
In the tester, ticks are not given until we complete the full integration of ticks into the trading strategies tester in the next release.
Testing the tick paging when the internet connection is disconnected. The test indicator below:
The algorithm is as follows:
Start the indicator. Wait until the number of downloaded ticks is equal to the requested amount.
Disconnect from the Internet (terminal should be beep). At the same time:
Switch on internet.
The indicator tries to download ticks, with a request for 50, but 21-23 are downloaded. This lasts until "count" is greater than 100.
Repeatability is good, checked more than three times.
Testing tick paging when the internet connection is broken. The tested indicator is below:
Keep in mind that ticks request in the indicator works slightly differently than ticks request in the Expert Advisor.
The indicator does not have the right to brake, so the indicator is given the available number of ticks for the request at once.
The Expert Advisor works in its own flow, so it can wait a little. For the Expert Advisor several attempts are made to swap ticks per request.
Keep in mind that tick requests in an indicator work slightly differently than tick requests in an Expert Advisor.
The indicator does not have the right to brake, so the indicator is given the available number of ticks for the request at once.
Expert Advisor is working in its own thread, so it can wait a bit. Several attempts are made for the Expert Advisor to swap ticks per query.
This is understandable. But how long does it take to pile up? In the example above, the request is for 50 ticks. If there are no ticks to be loaded immediately, it will take 30 seconds.
It gets worse. I give a request for 500 ticks - the ticks are replenished almost instantly (I think it is only because I requested this amount earlier) and then I give a request for 5000 ticks - four minutes have already passed, but only 2000 ticks out of 5000 have been loaded and the amount does not increase.
See how ticks work in the 1194 build, where milliseconds and flags have been added.
In the tester, ticks are not given until we complete the full integration of ticks into the trading strategies tester in the next release.
Checked it on another computer in the evening:
Preloaded 200000000 ticks with a script - ticks loaded in about 6 seconds. I could not see any difference:
Forum on trading, automated trading systems and testing trading strategies
Tick history
Karputov Vladimir, 2015.10.22 15:07
... I give a request for 500 ticks - ticks are loaded almost instantly (I think it's only due to the fact that I previously asked for such a number), and then I give a request for 5000 - four minutes have passed, and just under 2000 of 5000 are loaded and this number does not grow.
The flags field of the MqlTicks structure often contains values of "24" (display mode "all ticks"):
- what does this value mean?