Hello! I am studying MQL4 and have decided to practice, i.e. write a simple Expert Advisor, but nothing works. I have already written one OrderSend function in the code for placing pending orders, as I expected, on each tick OrderSend(Symbol(),OP_BUYSTOP,0.01,Ask+20*Point,2,Bid-20*Point,Bid+20*Point ;.
The compilation has no errors. Nothing happens after attaching to the trading tool window. Please tell me what I'm doing wrong?
It is very convenient to have the parameters of the EA in the EA itself, and to enter the required parameters with semaphores (TRUE/FALSE).
Perhaps you have a specific task. In that case I apologise for any interference.
The task is this: you'll have to organize an array of input parameters. The idea is that as a result of optimization we will get many variants of AMAZING input parameters. But we have to take only one variant. So, we save all interesting variants of optimization results; then import them into prepared array; then use modified input parameters (from array) in our EA. Of course, it is more interesting to first merge all saved set files into one (some) and then import from ONE file.
ikatsko: The challenge is this: we will need to organise an array of input parameters. The idea is that as a result of optimization we will get a lot of variants of AMAZING input parameters. But we will have to take only one variant. So, we save all interesting variants of optimization results; then import them into prepared array; then use modified input parameters (from array) in our EA. Of course, it is more interesting to first merge all saved set files into one (some) and then import from ONE file.
I solved a similar problem, but without array, but with semaphores, as described in the previous post.
The difficulty is that we don't know how the market will behave in the future, so we need to choose the right EA parameters accordingly from the existing parameter database.
I have never managed to solve this problem simply by adding new parameters.
But the use of the artificial intelligence with multiple "refining" has allowed us to use the databases of parameters with the positive final result.
ikatsko: The task is as follows: we will need to organise an array of input parameters. The idea is that as a result of optimization we get many variants of AMAZING input parameters. But we have to take only one variant. So, we save all interesting variants of optimization results; then import them into prepared array; then use modified input parameters (from array) in our EA. Of course, it would be more interesting to first merge all saved set files into one (some) file and then import from ONE file.
I need an EA or an indicator that puts a buy and sell stop with TP and SL at a given time. And nothing extra. If anyone knows, please tell me! I've been googling for 2 days now, I can't find it.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello! Can you tell me why I got round average spreads?
You are dividing int by int:
Hello! I am studying MQL4 and have decided to practice, i.e. write a simple Expert Advisor, but nothing works. I have already written one OrderSend function in the code for placing pending orders, as I expected, on each tick OrderSend(Symbol(),OP_BUYSTOP,0.01,Ask+20*Point,2,Bid-20*Point,Bid+20*Point ;.
The compilation has no errors. Nothing happens after attaching to the trading tool window. Please tell me what I'm doing wrong?
I don't get any error messages!
...Point );
int ticket=OrderSend(.
Openprice and TP willnot be correctly.
You divide an int by an int:
How do I import input parameters from a set file into an EA while it is running? Thank you
How do I import input parameters from a set file into my EA while it is running? Thank you
It is very convenient to have the parameters of an EA in the EA itself, and to input the required parameters with semaphores (TRUE/FALSE).
Perhaps you have a specific task. In that case I apologize for any interference.
It is very convenient to have the parameters of the EA in the EA itself, and to enter the required parameters with semaphores (TRUE/FALSE).
Perhaps you have a specific task. In that case I apologise for any interference.
The challenge is this: we will need to organise an array of input parameters. The idea is that as a result of optimization we will get a lot of variants of AMAZING input parameters. But we will have to take only one variant. So, we save all interesting variants of optimization results; then import them into prepared array; then use modified input parameters (from array) in our EA. Of course, it is more interesting to first merge all saved set files into one (some) and then import from ONE file.
I solved a similar problem, but without array, but with semaphores, as described in the previous post.
The difficulty is that we don't know how the market will behave in the future, so we need to choose the right EA parameters accordingly from the existing parameter database.
I have never managed to solve this problem simply by adding new parameters.
But the use of the artificial intelligence with multiple "refining" has allowed us to use the databases of parameters with the positive final result.
The task is as follows: we will need to organise an array of input parameters. The idea is that as a result of optimization we get many variants of AMAZING input parameters. But we have to take only one variant. So, we save all interesting variants of optimization results; then import them into prepared array; then use modified input parameters (from array) in our EA. Of course, it would be more interesting to first merge all saved set files into one (some) file and then import from ONE file.