Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 955

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
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.