Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1271

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
When manually restarting the terminal, the changes are not always saved to the default profile. What can this be? Under what circumstances
settings are saved for sure? Maybe advisors/indicators need to hang around for some minimum time for settings to reset to disk?
Windows Server 2012 R2 Standard x64, IE 11, RDP, UAC, 2 x Intel Xeon E3-12xx v2 (Ivy Bridge, IBRS), Memory: 2970 / 3999 Mb, Disk: 2 / 19 Gb
Terminal MT4. I tried several brokers.
Hello.
I'm asking for help. I can't figure out the file operations in MQL4. Here is the code :
Creates a Test EURUSD.csv file - everything is ok. I have "0.1" in the file.
It won't read though : it returns "Lot = 0.0" in the log.
When compiling it, it gives no errors.
I already "broke my brain" - I do not understand where the error.
I am grateful in advance to everyone who will help.
Bring all the code.
Almost all of it. But I also counted separately: double iK2 = (numPosOr - numStepCount) / numPosOr - it turns out = 0
Hello.
I'm asking for help. I can't figure out the file operations in MQL4. Here is the code :
Creates a Test EURUSD.csv file - everything is ok. I have "0.1" in the file.
It won't read though : it returns "Lot = 0.0" in the log.
When compiling it, it gives no errors.
I already "broke my brain" - I do not understand where the error.
I want to thank in advance everyone who will help.
I think the error is here
I think there's a mistake here
Thank you, but it didn't help. It still outputs zero results in the log.
Thanks, but it didn't help. I still got zero results in the log.
Also
replace function
FileReadDouble(filehandle,DOUBLE_VALUE);
to
FileReadNumber(filehandle);
Also
replace the function
to
Alexei, a HUGE THANK YOU.
After replacing the function - it worked.
I would like to ask the experts whether such a preparation for an expert is correct or is it better to organize the logic in a different way?
numPosOr= 4;
numStepCount= 1;
iK = (numPosOr - numStepCount) / numPosOr;
Why does this calculation makeiK = 0?
Is there no one to give me a hint?
Is there no one to tell you?
What is your problem? What do you want from your function?
maybe i can understand and then we can look for a solution together ?