Errors, bugs, questions - page 1609

 
Slawa:
You can't do it in a fiver.
Oops...
 
Karputov Vladimir:
Oops...
What to do :) Their tp advised me to remove the check for fullness from EAs. But I still don't understand what that parameter is.
 
Danil Nesterov:
What to do :) They advised me to remove the check for fullness from EAs. But I still do not understand what this parameter is.
Please open a new thread and post the open source code of the EA there.
 
Slawa:
The test is performed. And if it turns out that one of the components has changed, a resend of that component to the tester agent is done.
But in fact, the Expert Advisor used the old one. I had to reload the terminal and only after that the new library was read.
 

The imported EX4 library is not found inthe common directory of all MetaTrader 4 client terminals (Common\MQL4\Libraries)

From MQL4 Reference. Section: Call of Imported Functions

Search for an imported EX4 library is performed in the following sequence:

1. ...

2....

3.MQL4\Libraries directory in common directory of all MetaTrader 4 client terminals (Common\MQL4\Libraries).

#import "Test.ex4"
    void f();
#import
//Test.mq4
#property library
void f() export {}


 
A100:

The imported EX4 library is not found inthe common directory of all MetaTrader 4 client terminals (Common\MQL4\Libraries)

From MQL4 Reference. Section: Call of Imported Functions

Search for an imported EX4 library is performed in the following sequence:

1. ...

2....

3.MQL4\Libraries directory in common directory of all MetaTrader 4 client terminals (Common\MQL4\Libraries).


Have you tried it in MQL5? Does it work there?
 
coderex:
have you tried it in MQL5? does it work there?

Doesn't work, but it's not necessary there because a fully qualified name works - you can specify 'your' shared folder to download library .ex5s for multiple terminals.

In MT4 it used to be possible to specify a fully qualified name as well, but as of late this does not work. Service Desk does not respond to request #1486288, no alternative for using the library .ex4 for several terminals has been provided.

 
A100:

The imported EX4 library is not found inthe common directory of all MetaTrader 4 client terminals (Common\MQL4\Libraries)

From MQL4 Reference. Section: Call of Imported Functions

Search for an imported EX4 library is performed in the following sequence:

1. ...

2....

3.MQL4\Libraries directory in common directory of all MetaTrader 4 client terminals (Common\MQL4\Libraries).


I can be wrong, but using "" the library and the inluder are searched for in the directory where Expert Advisor or indicator is located.
 
Vladimir Pastushak:
library ... is searched in the directory in which the Expert Advisor or indicator is located.

This is point 1. I am referring to point 3.

https://www.mql5.com/ru/docs/runtime/imports

after the words: "The imported EX5 library shall be searched in the following sequence..."

Документация по MQL5: Программы MQL5 / Вызов импортируемых функций
Документация по MQL5: Программы MQL5 / Вызов импортируемых функций
  • www.mql5.com
Программы MQL5 / Вызов импортируемых функций - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 

Good day!

Question about the function CopyBuffer - by what number of bars is the indicator calculated, the pointer to which is passed to this function - by the number specified in this function, or by all available bars?

The question is related to the fact that after adding a large number of indicators of different periods (30 Bollinger indicators of different periods), data loading has become slow (up to several seconds), although only 100 bars are copied for each indicator.

I have compared data loading for different number of bars (10, 100, 1000) and I have not noticed any difference in time of loading.

Reason: