[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 72
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
Please suggest a course of action :))
if (...)
{
if(...)
{
if (...) false ->
}
else {...}
}
============================================
where does the execution go after FALSE -to else or even beyond the brackets of the first if ?
Please tell me how to proceed :))
if (...)
{
if(...)
{
if (...) false ->
}
else {...}
}
============================================
where does the execution go after FALSE -to else or even beyond the brackets of the first if ?
If I understand your curly braces correctly, then:
Hello, Can you please advise how many orders (with check on the symbol, operation, and magik), I need to make an expert to open an order without paying attention to already open orders
This function returns the number of currently open positions
This function returns the number of currently open positions
I have written a function that should determine whether the position exists based on the entered tag and comment. If not, it should return the permission to open it.
When I use one trade signal in the Expert Advisor, everything works fine: it opens a position only when there is no other with the same conditions. But when the Expert Advisor works with several types of signals that I label with a different comment, it opens multiple positions. What is the problem?
I have written a function that should determine whether the position exists based on the entered tag and comment. If not, it should return the permission to open it.
When I use one trade signal in the Expert Advisor, everything works fine: it opens a position only when there is no other with the same conditions. But when the Expert Advisor works with several types of signals that I label with a different comment, it opens multiple positions. What is the problem?
Are you sure that in the order comment the DC won't add something of his own? You need to look for a substring in the order comment. Or, better yet, don't go through this hassle. The position can be found using other, more reliable criteria.
Are you at all sure that the DC will not add something of his own to the order comment? You need to look for a substring in the order comment. Better yet, don't go through this hassle. The position can be found using other, more reliable criteria.
By different mages, for example?
But in any case, the error is somewhere in the code, in theory. All the same, I wonder where.
do you have such a function? if you can show an example of its use in the expert's code
I finally figured out how and where to put what! Thank you so much