[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 471
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
CSV - Comma Separated Values. The "," is the default delimiter. Separation with ";" is used less often, and I'm not sure it's even supported in MQL4.
Note: files can only be opened in the terminal_directory\experts\files(terminal_directory\tester\files in case of expert testing) folder or its subfolders.
The FILE_BIN and FILE_CSV modes cannot be used simultaneously.
If FILE_WRITE is not combined with FILE_READ, a file with zero length will be opened. Even if there was data in the file before it was opened, it will be destroyed. If data needs to be appended to an existing file, it must be opened using the combination FILE_READ | FILE_WRITE.
If FILE_READ is not combined with FILE_WRITE, the file will only be opened if it already exists. If the file does not exist, it can be created using FILE_WRITE.
No more than 32 files can be opened at the same time within the same executable. Descriptors of files opened in one module cannot be transferred to other modules (libraries).
Что конкретно Вам не понравилось в том что я пишу?..
It's all wrong.
The ";" is the default delimiter.
FileReadString - does not read the whole string, but from the current pointer position in the file to the next separator.
Hello, could you please tell me how to call the required variable from a custom indicator, I tried GlobalVariableSet() / GlobalVariableGet() - it works from another EA, but not from an indicator. Thank you in advance.
Hello, could you please tell me how to call the required variable from a custom indicator? I tried GlobalVariableSet() / GlobalVariableGet() - it works from another EA, but not from an indicator. Thank you in advance...
Which variable do you want to get and from which indicator?Price from +MP (line 228) - I need (price) level values
Price from +MP (line 228) - I need values (price) levels
try to move variable prise to global level, and place string GlobalVariableSet("55", prise); at the beginning of the function start() and from the other program get double x=GlobalVariableGet("55");
try to move variable prise to global level, and place string GlobalVariableSet("55", prise); at the beginning of function start() and from the other program get double x=GlobalVariableGet("55");
I've tried it... It writes, that global variable is not described, i.e. global variables don't come out of the indicator... >> I'll try again.
I think I tried it... it says that no global variable is described, i.e. no global variables come out of the indicator... >> I'll try again.
Once you fix the code, post it here.StrToDouble() does not work :(
String arrays are filled from file normally. But, I need to convert these strings to double.
I do it:
x1[k]=StrToDouble(ss1[k]);
but, when output to Alert, x1[0] = 0, which is wrong. i.e. there is a mistake in type conversion somewhere...
How to fix this situation?
Друзья, спасибо большое, что откликнулись. уточнение, как преобразовать string в double?
StrToDouble() - не прокатывает :(
Строковые массивы заполняются из файла нормально. Но, необходимо преобразовать эти строки в double.
делаю это:
x1[k]=StrToDouble(ss1[k]);
но, при выводе в Алерте, x1[0] = 0, что неправильно. то есть, где-то тут ошибка в преобразовании типов...
Как такую ситуацию исправить?
Could you please post the whole script? I mean with the variable array declarations etc.