Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 852
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
Hi developers,
View any strategy tester with custom date or any date option
See image:
I want me to get the start and end date values in my program in OnInit () function.
How can I get it?
Form the whole loop into a function, and return the bar number from it if found, or WRONG_VALUE if not found.
Good afternoon. I think I have finished working with yesterday's problematic iCustom. I have made it all in the form of a function and used"Comment" and "Print" for control.
The idea of this trial Expert Advisor is to catch signals in the form of up/down arrows of the iCrossAD indicator and convert them to BUY or SELL command to be used in a future program.
I have a little experience, so please don't judge, but well-reasoned criticism and advice would be appreciated.
In fact, for the sake of this and wrote a post. EA and indicator files attached, the code below.
Hello!
I converted the indicator from MT4 to MT5. I want to use the indicator as an additional filter.
I am just studying MT5. But I cannot find the error. My МТ4 and МТ5 reflections are different.
I have a request to the experts - please help me to find an error in *.mql5 file.
I am attaching the source code.
I am very, very grateful for your help.
Hi, I have a function in my EA to delete pending orders when another order triggers. How can I prescribe in the external parameters to be able to disable this function? Many thanks in advance.
This is your code, it's better to attach this way.
Of course, I am not very suitable for the role of advisor, but the task seems to be not difficult.
Please note that I'm not going into your code itself, there is a lot of controversy, even for me (dummies), starting with the fact that your function is of type void. This type is used either to indicate that the function does not return a value, or as a function parameter indicates the absence of parameters. And you have return(Exist) at the end of your code;
Declare an input variable, write it as a parameter for your function and exit the function if you set 'this variable to False.
Hi, I have in my EA the function to delete pending orders when another order triggers. How can I prescribe in the external parameters that this function can be disabled. Many thanks in advance.
Find all False and True in the text of your code. Replace them with false and true. This language is case sensitive.
Find all False and True in the text of your code. Replace them with false and true. This language is case sensitive.