[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 114
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
I understand the function, but what about the array?
I have to rewrite a lot too, to run it in the tester.
It's faster to use a variable than to call the function every time, and is it as fast to read an array element as a simple variable?
Or is it slower - it's an array where you need to look up the index or the same thing as a variable?
I don't really understand these things.
Array=variable, because an array is the same variable lined up in memory and you don't have to search for it by index. Index simply indicates the address where the variable is stored.
What's wrong with arrays? I have two arrays in my EA: one with open orders and the other with parameters of future trade operations
Why keep an array of open orders? That's right, no reason.
1. In order to have up-to-date data, we need to take a snapshot of the situation at exactly the moment we need it.
2. it is not time-critical.
3. What if the terminal crashes?
Trading operation parameters - may we not calculate them once before opening these very positions?
However, I do not insist.
Array=variable because an array is the same variables lined up in memory and I don't need to search for them by index. Index simply indicates the address where the variable is stored.
Listen, Igorevich, at least stay out of this.
Gentlemen, hello everyone! I'm writing in this branch just to avoid clumping a new one... I need some advice: because for the last 2 years I've been doing forex seriously, I've been wanting to learn mql and to learn how to program. After all, trading is my life and we live in 21st century, where one can trade by experts, not by hands, and it's a great privilege. Anyway, I'm a specialist in finance and I don't know anything about programming. Although I know mathematics well. I would like to ask some knowledgeable people: I have a desire and I can spend an hour every day studying mql. What to start with? Do I need to have a basic knowledge of computer science, i.e., do I need to go to a higher educational institution or is it realistic to learn it by myself? I am trying it out... I'm having a hard time. Any advice on how to achieve this goal in stages.
Thank you. Alex
Where do I start? Do I need to have a basic knowledge of computer science, i.e. do I need to go to university, or is it possible to do it yourself? I'm trying it out... I'm having a hard time. Any advice on how to achieve this goal in stages.
Thank you. Alex
https://book.mql4.com/ru/
http://forum.alpari.ru/thread42059.html
Gentlemen, hello everyone! I'm writing in this branch just to avoid clumping a new one... I need some advice: because for the last 2 years I've been doing forex seriously, I've been wanting to learn mql and to learn how to program. After all, trading is my life and we live in 21st century, where one can trade by experts, not by hands, and it's a great privilege. Anyway, I'm a specialist in finance and I don't know anything about programming. Although I know mathematics well. I would like to ask some knowledgeable people: I have a desire and I can spend an hour every day studying mql. What to start with? Do I need to have a basic knowledge of computer science, i.e., do I need to go to a higher educational institution or is it realistic to learn it by myself? I am trying it out... I'm having a hard time. So, any advice on how to go about this task step by step...
Thank you. Alex
1. Start with the textbook (above)...
2. You may try it on your own (or have a look at other experts and do it yourself).
3. The "learning by doing" by sketching a few Expert Advisors, and understanding how they work. By learning the nuances.
4. What is not clear ask on the forum. (Having searched for a similar question in advance for an answer).
5. If your brain starts to boil at the moment of coding, get off ... have a smoke ... ...and think calmly in your mind. If that's the case... ...then it's like this... :)
Gentlemen, hello everyone! I'm writing in this branch just to avoid clumping a new one... I need some advice: because for the last 2 years I've been doing forex seriously, I've been wanting to learn mql and to learn how to program. After all, trading is my life and we live in 21st century, where one can trade with experts, not with hands, and it's a great privilege. Anyway, I'm a specialist in finance and I don't know anything about programming. Although I know mathematics well. I would like to ask some knowledgeable people: I have a desire and I can spend an hour every day studying mql. What to start with? Do I need to have a basic knowledge of computer science, i.e., do I need to enter a higher educational institution or is it realistic to learn it by myself? I am trying it out... I'm having a hard time. Anyway, any advice on how to go about it step by step...
Thanks. Alex
Start with this:
MQL4 Language for Dummies. Getting Started
https://www.mql5.com/ru/articles/1475
.
There is no point in reading programming books without trying to test what you read immediately in work (programming and compiling).
if (UseVolatility == 1)
{
if (!VolatilityOK())
{
Debug(5, fn, sp15 + "VolatilityOK() ...... FAILED: No Trade");
return(-1);
}
Debug(3, fn, sp15 + "VolatilityOK() ...... Passed");
}
Hi all!
MT4 has the standard chart periods: M1, M5, M15, etc.
Question from a newbie: how can I set my own timeframe, like M8 or M10?
i tried to edit the required file of the chart in the profile - i have set period=8 as a property, but it did not help.
if similar theme was discussed before, post the link please!
people! at least tell me where to dig to figure it out...