[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 202
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
Or maybe just make a list of active instruments with the help of an EA. The approach is kind of complicated. It could be solved in a simpler way
You could simply specify a number in the input parameters, but the point is that in the process of trading there may be situations where trading is suspended on some currencies. Then EAs on other currencies have to recalculate their parameters.
Why specify. The Expert Advisor can get it by itself. And at the same time, it can manage other Expert Advisors. Everything depends on the task
Figar0:
В самой функции ошибок нет, наверно ошибки возникают при попытке ее использовать, но это вы нам не показываете. Выкладывайте то что не компилится прямо файлом и гадать будет не надо.
Why would you specify this? The Expert Advisor can obtain it by itself. And at the same time, it can manage other Expert Advisors. It all depends on the task.
I don't know about managing other EAs. The EA is the same on all currency pairs, and the pattern is this:
if 2 currency pairs: on the first one it shows 2, on the second one it shows 1
If 3 currency pairs: the first one shows 3, the second one 2, the third one 1
if it is 4 currency pairs: the first one shows 4, the second one shows 3, the third one shows 2, the fourth one shows 1.
I have a feeling that what is calculated on the first currency is not taken into account by the Expert Advisor on the other currency pair, or it somehow depends on the number of open windows (currency pairs)!
Why specify. The councillor can get it himself. And at the same time he can manage other advisers. It all depends on the task.
For starters, your lot calculation function is declared inside the start function. Take it out. Then there will be some errors with undeclared variable, but I think you can handle them on your own.
Why do I need NormalizeDlouble() in lot calculation?
In order for there to be two digits after the comma. Otherwise a position with 0.009 lot will not be opened, because it will not be a multiple of the minimum lot step.
Guys!
how do i make every 40th order a larger lot? :: market and pending
how about this?
For starters, your lot calculation function is declared inside the start function. Take it out. Then there will be some errors with undeclared variable, but I think you can handle them on your own.
what is NormalizeDlouble() for in the lot calculation?
In order for there to be two decimal places after the comma. Otherwise, a position with a lot of 0.009 will not be opened, as it will not be a multiple of the minimum lot step.