Errors, bugs, questions - page 2764

 

Guys, can you suggest some way to add site address to mt4 terminal settings, to allow WebRequest.

The customer has asked for an owl that requests information from the server, and asks for something to automatically register the site in WebRequest. He does not want the owl to work through "wininet.dll". WebRequest but not to prescribe by hand.

 

Here's a question I'm interested in, maybe someone has already checked and knows for sure:

If you set expiry type for a pending order

ORDER_TIME_SPECIFIED_DAY

The order will be in force until 23:59:59 of the selected day. If that time does not fall into a trading session, the expiry will be at the nearest trading time.

and 23:59:59:59 does not fall into a trading session, and the next trading session opens with a gap so that the order must be activated. Which is first to delete the order or activate it?

 
Pavel Komarovsky:

Guys, can you suggest some way to add site address to mt4 terminal settings, to allow WebRequest.

The customer has asked for an owl that requests information from the server and asks for something to automatically register the site in WebRequest. He does not want the owl to work through "wininet.dll". WebRequest but not to prescribe by hand.

Only user can add manually to allowed list. Otherwise prohibited for security reasons. If someone discovers such a possibility, it is likely to be shut down immediately.

 
Vladimir Pastushak:

Why is the result of the script 1-2 seconds in the report, but more than a minute?

The script worked and from start to unloading it takes about a minute or more.

But the script stubbornly writes that it worked for 1 - 2 seconds, what can slow PC down so much ?

2020.06.01 11:34:26.680 Teste speed (EURUSD,M15) Start

2020.06.01 11:37:34.067 Teste speed (EURUSD,M15)

2020.06.01 11:37:34.067 Teste speed (EURUSD,M15) Oldest way Total: 1870971ms Sec 1

2020.06.01 11:39:32.283 Teste speed (EURUSD,M15)

2020.06.01 11:42:24.664 Teste speed (EURUSD,M15)

2020.06.01 11:42:24.664 Teste speed (EURUSD,M15) Old way Totals: 1652839ms Sec 1


You are counting microseconds and then incorrectly converting them to milliseconds by dividing by 100 instead of 1000.

 
Denis Avrus:
Developers, do something with deals on the chart. When there are a lot of them, the chart is simply not visible, you have to delete each time with a new deal.

Look in the terminal settings, in the context menu of the chart and check that the trade display flag is not saved in default.tpl.

 
Denis Avrus:
The developers, do something with deals on the chart. When there are a lot of them, the chart is just not visible, I have to delete them each time with a new trade.

In Five, right click on the white field of the Trade tab. Show on Charts menu - that's where this evil thing hides! :)

 

Good afternoon. Don't know if this has been written about for MT4 or not:

1. When trying to send ObjectSetString(0,sparam,OBJPROP_NAME,ObjName) from the OnChartEvent function, when id=CHARTEVENT_OBJECT_CHANGE I get error 4051, in MT5 this code works without problems. Sparam - name of the chart object (for example vertical trend), at change of its properties (for example TF display) OnChartEvent is called.

2. When calling from the indicator the ChartSetSymbolPeriod function from OnChartEvent for the current chart, if the Expert Advisor with deinit or OnDeinit is installed on the same chart, sometimes (not always, but about 2 out of 3 times) it causes a noticeable slowdown, and the log does not contain the usual information about deinitialization/initialization of the Expert Advisor. If the deinitialisation function is removed from the EA, there is no hang-up. In MT5 exactly the same design works always without any delay.

Документация по MQL5: Операции с графиками / ChartSetSymbolPeriod
Документация по MQL5: Операции с графиками / ChartSetSymbolPeriod
  • www.mql5.com
Меняет значения символа и периода указанного графика. Функция работает асинхронно, то есть отдает команду и не ждет окончания ее выполнения. Отданная команда поступает в очередь сообщений графика и выполняется только после обработки всех предыдущих команд. Возвращает true в случае удачного помещения команды в очередь графика, иначе false. Чтобы...
 
Nikolai Karetnikov:

In Five, right click on the white field of the Trade tab. Show on Charts menu - that's where this evil thing hides! :)No, not there. It's a bug that came with the update.

I suggest to try it yourself before commenting. It has already been written about this bug a hundred times.

 
Renat Fatkhullin:

Look in the terminal settings, in the context menu of the chart and check that the trade display flag is not saved in default.tpl.

What are you the same thing, I studied the terminal 15 years ago. Everything is fine in the settings.
 
Denis Avrus:
Oh, come on, it's the same thing, I studied the terminal 15 years ago. Everything is fine in the settings.

Then live with the knowledge of 15 years ago, while we rebuild the interfaces and principles of old functions.

Reason: