Errors, bugs, questions - page 2232

 
Julia Test:


Thanks for the messages. We're sorting it out.

I'm getting married without a word.

 
Stanislav Korotky:

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.

Nikolai Semko:

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.

Stanislav Korotky:

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.

 
I keep getting this error

Forum on trading, automated trading systems and trading strategy testing

Bugs, bugs, questions

fxsaber, 2017.02.14 22:25

Error [No prices] on the spot
2017.02.14 23:18:41.442 '5122740': failed instant buy 1.00 EURPLN at 4.30632 (deviation: 100) [No prices]

How is it that there is no price, there is even a price in the log?!

Query

2017.02.14 23:18:41.442 Request.action = TRADE_ACTION_DEAL (1)
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.

 
fxsaber:
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.

 
Stanislav Korotky:

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.

 
Alexey Viktorov:

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: 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... If everything is OK - add Sleep... write down the result
Ошибки, баги, вопросы
Ошибки, баги, вопросы
  • 2016.08.03
  • www.mql5.com
Общее обсуждение: Ошибки, баги, вопросы
 
A100:
Here https://www.mql5.com/ru/forum/1111/page1628#comment_2702870 describes the sequence of actions
i.e. the flagging error is at least two years old?
 
TheXpert:
i.e. the error with flags is at least two years old?
Strictly speaking, the error is related to simultaneousFileOpen( filename ) calls from different EAs (flags do not play a role). Two years ago it was... now, according tohttps://www.mql5.com/ru/forum/1111/page2231#comment_8142480 it remains in one form or another (I cannot check it myself now - I have no MetaTrader at hand)
Ошибки, баги, вопросы
Ошибки, баги, вопросы
  • 2018.07.21
  • www.mql5.com
Общее обсуждение: Ошибки, баги, вопросы
 
A100:
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

What's the problem?????????????? Put it away and live happily ever after. Or is your purpose of being on the forum only to look for mql and MT bugs in general???
 
Alexey Viktorov:

That being said.

What's the problem ?????????????? Remove it and live happily. Or your purpose of staying on the forum is only to look for bugs in mql and mt in general?

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.

Reason: