[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 390
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
The wording is very good. What the questioner is asking...
there are scripts that simultaneously open sell on one symbol on the second buy.
I am interested in a script that can simultaneously open a sell/buy on 7-10 symbols, with a volume specified for each symbol, at current prices.
Example:
sell EURUSD 1
buy GBPUSD 1.5
sell USDCAD 1.2
buy AUDUSD 1.1
buy NZDUSD 2
buy USDCHF 3
The MultiOrders script is almost perfect, only there are 5 fields for the symbols.
There are scripts that simultaneously open sell on one symbol on the second buy.
I am interested in a script that can simultaneously open a sell/buy on 7-10 symbols, with a volume specified for each symbol, at current prices.
Example:
sell EURUSD 1
buy GBPUSD 1.5
sell USDCAD 1.2
buy AUDUSD 1.1
buy NZDUSD 2
buy USDCHF 3
The MultiOrders script is almost perfect, only there are 5 fields for the symbols.
Is it hard to check, or lazy? It's easier to ask the question. Can the bid price be zero? It can if nothing is sold8-(
It's not a question of whether the terminal can reset the bid at some point (personal experience is of interest).
I've never seen one. Have you seen absolute zero on the thermometer?
Well, that can't be the problem. Maybe you have no one to talk to?
Likewise. Figure out this script and your script will do even better, and you may even be able to add additional functionality.
I don't quite understand how to write a .dll
if I understand correctly, the basis of the script is in this file.
Guys! In the strategy tester on the history, the Expert Advisor does not feed information to the file, only when trading online. What is the reason and how can I fix it? I have no idea how to cure it. Thank you.
I don't quite understand how to write a .dll
If I understand correctly, the basis of the script is in this file.
No 1 script can send an order to the server to open several orders at once. You have to open one at a time. The DLL offered to you simply creates a visual window and works with it. MQL4 tools may be enough for your task
Here is my lot (martin) calculation function:
These are the global variables for this function:
Here is what in int init()
When testing the Expert Advisor the following errors are displayed in the Expert Advisor log:
Is there something wrong with the code? What it may mean?
Here https://docs.mql4.com/ru/runtime/errors I see that this is an error:
ERR_INVALID_FUNCTION_PARAMVALUE (4051)
I.e. the error is due to wrong parameters. As I understood the wrong lot. But I don't understand what is wrong here.
Here is my lot (martin) calculation function:
These are the global variables for this function:
Here is what in int init()
When testing the Expert Advisor the following errors are displayed in the Expert Advisor log:
Is there something wrong with the code? What it may mean?
Here https://docs.mql4.com/ru/runtime/errors I see that this is an error:
ERR_INVALID_FUNCTION_PARAMVALUE (4051)
I.e. the error is due to wrong parameters. As I understood the wrong lot. But I don't understand what is wrong here.
double LotsArray[5]; 5 to 6 correct.