Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1065
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
Good afternoon, please direct me to where to find an explanation of my question (I assume I am not the first to ask it) and what to do. I have installed MT4 on my smartphone, but the charts it shows with a 20 min delay - I compare it with the MT4 readings on the PC.
Help me figure this out. I can't figure out how to fix this piece of code... Or rather, what can I add to it so it won't swear?
return value of 'OrderModify' should be checked
Help me figure this out. I can't figure out how to fix this piece of code... Or rather, what should I add so it won't swear?
return value of 'OrderModify' should be checked
The returned value of the OrderModify() function must be assigned to a variable so that the function can be checked. Or just
Help fix compile error: Magic - undeclared identifier
cat:
bool CheckExists(int Type)
{
bool Result = True;
for(int i = 0; i < OrdersTotal(); i++)
if(OrderSelect(i, SELECT_BY_POS))
if(OrderType() == Type && OrderMagicNumber() == Magic && OrderSymbol() == Symbol())
if(OrderOpenTime() >= Time[0])
Result = False;
for(i = 0; i < OrdersHistoryTotal(); i++)
{
if(OrderSelect(i, SELECT_BY_POS, MODE_HISTORY))
if(OrderType() == Type &&& OrderOpenTime() >= Time[0]
&& OrderMagicNumber() == Magic && OrderSymbol() == Symbol())
Result = False;
}
return(Result);
}
Help fix compile error: Magic - undeclared identifier
cat:
Global and user variables must be declared at the beginning of the code, in this case it is a user variable, write it like this:
input int Magic = 1;
OrderModify(ticket2,?????, SL2, Price2, 0, clrNONE);
Good evening tell me how to modify ticket2 order? What price to put instead of ?????.....? Or do I have to first select this order to modify it? Although in fact I have already selected it by writing in the parameters of the OrderModify(ticket2,.....
OrderModify(ticket2,?????, SL2, Price2, 0, clrNONE);
Good evening tell me how to modify ticket2 order? What price to put instead of ?????.....? Or do I have to first select this order to modify it? Although in fact I have already selected it by writing in the parameters of the OrderModify(ticket2,.....
I can't understand why position search and closing stops in the loop, I've already reversed the loop and increased the number of positions, but in the tester it still skips (leaves) positions.
Since the question is on the mql4 forum, I assume the code is also on mql4. Or is it wrong?
In mql4 there are no positions, there are only orders.
Since the question is on the mql4 forum, I assume the code is also on mql4. Or is it not?
There are no positions in mql4, only orders.
geez, there's just no such response to the request on the 5th. Alas the code is on the 5th.