Errors, bugs, questions - page 2232
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
Thanks for the messages. We're sorting it out.
I'm getting married without a word.
Tried it, doesn't help. Other comments - COMMON is not needed, because there is only one terminal, if there were several it would be COMMON, but it doesn't solve anything. What I need are files - resources don't work.
Above have given link (even two) to the same problem - it seems it really exists - very sad.
PS. That's why I do not like forums with such endless questions and answers - it is difficult to systematise information in them. Long ago suggested MQ to make questions and answers separate, similar to SO, but the old-fashioned way is probably more familiar.
I would use a resource for sharing within one terminal instead of a file which can be read from a file and saved to a file.
union to help.
There are two Expert Advisors. Tap on the same file opened via FileOpen with the following flags:
in Expert 1 -FILE_READ|FILE_WRITE|FILE_BIN|FILE_SHARE_READ
in Expert 2 - FILE_READ|FILE_BIN|FILE_SHARE_READ
The second expert gets error 5004.
How to provide a read?
You have the FILE_WRITE flag in Expert 1 and this flag is missing in Expert 2.
Forum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
fxsaber, 2017.02.14 22:25
Error [No prices] on the spotHow is it that there is no price, there is even a price in the log?!
Query
2017.02.14 23:18:41.442 Request.magic = 0
2017.02.14 23:18:41.442 Request.order = 0
2017.02.14 23:18:41.442 Request.symbol = EURPLN
2017.02.14 23:18:41.442 Request.volume = 1.0
2017.02.14 23:18:41.442 Request.price = 4.30632
2017.02.14 23:18:41.442 Request.stoplimit = 0.0
2017.02.14 23:18:41.442 Request.sl = 0.0
2017.02.14 23:18:41.442 Request.tp = 0.0
2017.02.14 23:18:41.442 Request.deviation = 100
2017.02.14 23:18:41.442 Request.type = ORDER_TYPE_BUY (0)
2017.02.14 23:18:41.442 Request.type_filling = ORDER_FILLING_RETURN (2)
2017.02.14 23:18:41.442 Request.type_time = ORDER_TIME_GTC (0)
2017.02.14 23:18:41.442 Request.expiration = 1970.01.01 00:00:00
2017.02.14 23:18:41.442 Request.comment = My Position
2017.02.14 23:18:41.442 Request.position = 0
2017.02.14 23:18:41.442 Request.position_by = 0
2017.02.14 23:18:41.442 Result.retcode = 10021
2017.02.14 23:18:41.442 Result.deal = 0
2017.02.14 23:18:41.442 Result.order = 0
2017.02.14 23:18:41.442 Result.volume = 0.0
2017.02.14 23:18:41.442 Result.price = 0.0
2017.02.14 23:18:41.442 Result.bid = 0.0
2017.02.14 23:18:41.442 Result.ask = 0.0
2017.02.14 23:18:41.442 Result.comment = No prices 0.028 + 0.000 ms
2017.02.14 23:18:41.442 Result.request_id = 0
2017.02.14 23:18:41.442 Result.retcode_external = 0
2017.02.14 23:18:41.442
2017.02.14 23:18:41.442 SymbolInfoDouble(Symb,::SYMBOL_BID) = 4.30151
2017.02.14 23:18:41.442 SymbolInfoDouble(Symb,::SYMBOL_ASK) = 4.30632
This same error occurs when trying to make a trade request by hand. After ~a minute, suddenly everything starts working again. After some time the error repeats.
I keep coming up against this error
The same error occurs when trying to make a trade request by hand. After ~a minute, suddenly everything starts working again. After some time the error repeats.
As far as I remember, there is a timeout set there, after which the price is considered hopelessly out of date. That is, if it hasn't changed for 3 minutes, you cannot open by it.
Tried it, doesn't help. Other comments - COMMON is not needed, because there is only one terminal, if there were several it would be COMMON, but it doesn't solve anything. I need files, resources don't work.
It's strange, it doesn't help. I got 5004 only without FILE_SHARE_WRITE flag.
File in write advisor opens in OnInit and closes only in OnDeinit. At the same time, in read advisor, the file reads and prints without any problems.
It would be good to clarify how you write the file in order to repeat your actions more accurately.
Strange that it doesn't work. I was only able to get 5004 without the FILE_SHARE_WRITE flag
File in write advisor opens at OnInit and closes only at OnDeinit. At the same time, in the read advisor, the file reads and prints without any problems.
It would be good to clarify how you write the file in order to repeat your actions more accurately.
Here https://www.mql5.com/ru/forum/1111/page1628#comment_2702870 describes the sequence of actions
i.e. the error with flags is at least two years old?
Here https://www.mql5.com/ru/forum/1111/page1628#comment_2702870 describes the sequence of actions: one EA is enough for reproduction... But you can also have two - experiment: Attach them to one chart first... then two by one... then two by two... write down the result
Having said that
Forum on trading, automated trading systems and trading strategies testing
Bugs, bugs, questions
A100, 2016.08.04 00:05
Error opening the file by the Expert Advisor. What if for example.
1.Remove "some irrelevant code" (see below)
2. orremove : :Sleep(1000)
there is no error
That being said.
You can not remove - because it is the code of the Expert Advisor, or you want to understand thousands of lines of other people's code irrelevant - which results in only a time delay?
Perform the task I gave you above and report to the public about the results.