A sub-workshop to fill in the FAQ (frequently asked questions). Let's help comrades! - page 16

 
Integer:

Aren't you mistaken that even after reinstalling the Windows, you can take out passwords?

No, the terminal is bound to a disk partition and keeps minimum information in the registry. So by installing the terminal on a portable broom, you can safely log into it from anywhere as long as the broom is plugged in.

 
TheXpert:

No, the terminal is bound to a disk partition and keeps a minimum of information in the registry. Therefore, by installing the terminal on a portable broom, you can safely access it from anywhere as long as the broom is plugged in.



So, if you don't format the disk and don't reinstall the terminal.
 

Also in FAC.

Need to know: No mql4 program: neither a script, nor an indicator, nor an Expert Advisor can see indicators attached to a chart manually. If you need to get indicator values in a programme, you must use the technical indicator functions or the iCustom() function.

* * *

Question: What is the difference between an Expert Advisor and an Expert Advisor?

Answer: They do not. They are different names for one and the same thing. Perhaps, this bifurcation of the name occurred during translation from English of the word combination Expert Advisor (Expert Advisor), which is used to refer to Expert Advisors. In English, the abbreviation EA is often used instead of the full Expert Advisor.

 
It would be a good idea to post the question "Error codes". Although there is a complete answer in the documentation (https://docs.mql4.com/ru/errors) the question comes up with an enviable regularity.
A link can be provided directly to the documentation.
 

The question about creating a non-standard TF seems to me to be inaccurate.


In point 1 it says that the script is thrown on H1 (1. Open the Navigator (CTRL+N) and drag period_converter from the "Scripts" list to the hourly chart).

And in note 2. The M1 chart the script is running on should be active (it can be minimized, but it should not be closed).


4. Для генерации наиболее длинной истории создавайте нестандартные таймфреймы из ближайшего меньшего стандартного таймфрейма (например, M4 из М1, Н12 из Н4 или Н1).

Why is it necessary to throw a script on M1 to make M10??? Isn't the nearest smaller one M5 ???? And you have to throw the script on M5 ???
 
tuma88:

Point 1 says that the script is thrown on H1 (1. Open the Navigator (CTRL+N) and drag period_converter from the "Scripts" list onto the hourly chart).

corrected by

Why do we need to copy the script to M1 to make M10? Isn't the closest one M5 ????? And the script should be thrown on M5 ???
??, it makes no difference.
 
Why is it necessary to throw a script on M1 to make M10??? Isn't the nearest smaller one M5 ???? And to throw the script on M5 ??? <br / translate="no">
makes no difference.


Then maybe we should specify "do it on any smaller TF" and if it's not too difficult to explain briefly what is the difference between the two. (speed of generation, quality of generation or whatever).

 
sergeev 11.05.2011 19:00

There is an error number NNNN in the expert logbook. What does it mean?

The description of all possible trade errors and errors of MQL-program execution can be found in documentation.

--------------------------

There are two more links to the documentation:

1) https://docs.mql4.com/ru/runtime/errors

2) https://docs.mql4.com/ru/trading/errors

 

(Into the newbies section)

  • How to set up a proper TIMEFrame in indicator or expert advisor options

1 - 1 minute
5 - 5 minutes
15 - 15 minutes
30 - 30 minutes
60 - 1 hour
240 - 4 hours
1440 - 1 day
10080 - 1 week
43200 - 1 month
0 - Current chart period

  • How to set МА price correctly

Price_MA - price of the bar on the basis of which the MA is calculated.

0 - PRICE_CLOSE - Close price
1 - PRICE_OPEN - Open price
2 - PRICE_HIGH - High price
3 - PRICE_LOW - Low price
4 - PRICE_MEDIAN - Average price, (high+low)/2
5 - PRICE_TYPICAL - Typical price, (high+low+close)/3
6 - PRICE_WEIGHTED - Weighted close price, (high+low+close)/4

  • How to set the MA method correctly

MODE_SMA = 0 - Simple Moving Average
MODE_EMA = 1 - Exponential Moving Average
MODE_SMMA = 2 - Smoothed Moving Average
MODE_LWMA = 3 - Linear Weighted Moving Average

 

(in the section for beginners)

How to change the preset parameters of an Expert Advisor (indicator)

Beginners usually use ready-made indicators and Expert Advisors. These programs have so-called preset values of parameters. Sometimes the settings must be changed, and it is very annoying when one has to do it frequently.
So, what you need to do to change preset values on your own:

1. Place the mouse pointer on the required Expert Advisor or indicator in the terminal navigation window.
2. Right-click in the context menu and select edit. - The edit window will open.
3. All options which are displayed in the settings window start with word extern and are usually located at the beginning of the program.
4. If after extern there is bool, after equal sign you can put only false or true;
5. If after extern there is int, after equal sign you can put only integer, for example 5;
6. If after extern there is double, after equal sign you can put only decimal, for example 5.00;
7. If there is string after extern, you may write a string enclosed in quotes after the equal sign, for example "Hello all";
8. There must be a semicolon at the end of each modified line of code.
9. Once you have finished changing the settings, click the compile button at the top of the editor window.
10. Close the editor window, use.

*Before you start editing, make a backup copy.

Reason: