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
Good afternoon, Anton!
Following your advice (LoadServerData() calls SeriesInfoInteger( a_symbol, PERIOD_M1, SERIES_SERVER_FIRSTDATE),
i.e. it reads "first date in history by symbol on server regardless of period".
This request itself is not actually considered a history request, i.e. it does not cause a cache to be built,
does not prevent unloading of symbol data. It makes sense to either request SERIES_FIRSTDATE or the number of bars of the timeseries.),
I added a new function to the indicator to prevent the unloading of symbol data:
The OnBookEvent() function is triggered on BR-8.15 and BR-9.15 characters quite often,
but the result is the same:
So what's the problem?
Why is it impossible to get Bars?
The OnBookEvent() function triggers on characters BR-8.15 and BR-9.15 quite often,
but the result is the same:
So what's the problem?
Why is it impossible to get Bars?
The frequency of "often enough" does not inspire confidence. Better to add log output from GetBars() function for debugging.
If you want to understand it, then open a request in servicedesk. Attach full-fledged code example, we will try to reproduce the problem.
The frequency of "often enough" does not inspire confidence. Better to add log output from GetBars() for debugging.
If you have a desire to figure it out, then open a request in the servicedesk. Attach a full-fledged code example, let's try to reproduce the problem.
Ok. Request:Errors,MetaTrader 5 Client,Opened,Started: 2015.07.24 18:28,#1267768
P/S "Quite often" is 10 to 100 OnBookEvent() triggers on two highly liquid instruments per MINUTE.
Hooray!
Reproduced the problem. Indeed the symbol data was sometimes unloaded from memory even with periodic queries. The error will be fixed.
Thank you!
Michael, have you managed to overcome this problem of getting series from other symbols? I'm sick and tired of fighting with my indicator, it constantly loses synchronization with other symbols.
Right now the demo server is giving out Build 1159 of June 22, 2015. And in it the multicurrency indicators work horribly too. You have to switch periods several times or restart the indicator to get it to display correctly. And after a while it doesn't get the series data again. I always write in the log.
Данные символа "Si-12.15" не синхронизированы с торговым сервером.
To the developers:
Is it impossible to make a function, not to check if data is synchronized or not, but directly to synchronize and not to unload this data from memory?
Resource saving is good, in terms of algorithm optimization. But why should I be so fanatical about offloading data from memory?
I'd rather buy an additional gigabyte or two of memory in my PC instead of bothering with this bothersome series synchronization.
Make a function that is called once at OnInit() to load data for the required symbol and it won't be unloaded as long as the indicator is running.
The terminal should prepare data and monitor their updates, instead of the user thinking about the first date, how many bars I have and on the server, etc.
Michael, have you managed to overcome this problem with getting series from other symbols? I'm sick and tired of fighting with my indicator, it constantly loses synchronization with other symbols.
Right now the demo server is issuing Bild 1159 from June 22, 2015. And in it the multicurrency indicators also work horribly. You have to switch periods several times or restart the indicator to get it to display correctly. And after a while it doesn't get the series data again. I always write in the log.
To the developers:
Is it impossible to make a function, not to check if data is synchronized or not, but directly to synchronize and not to unload this data from memory?
Resource saving is good, in terms of algorithm optimization. But why should I be so fanatical about offloading data from memory?
I'd rather buy an additional gigabyte or two of memory in my PC instead of bothering with this bothersome series synchronization.
Make a function that is called once in OnInit() to load data for the required symbol and it will not be unloaded again until the indicator runs.
The terminal should prepare data and monitor their updates, instead of the user thinking about the first date, how many bars I have and on the server, etc.
Good afternoon!
The developers have replied that they will fix it in the new build.
It is not yet known when it will be released.
FORTS. I encountered a problem, functions OrderCheck() and OrderCalcMargin() sometimes (!) incorrectly determine the required GO for a trade and as a result return FALSE.
With the required GO for RTS-12.15(SYMBOL_MARGIN_INITIAL) of 12,500 , the function requires as much as 143,105 rubles!
At the same time everything opens perfectly manually.
How do I call:
Try it this way:
Here's my result: