[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 267

 
yosuf:
What the hell is this: 2012.07.20 07:15:00 '*****': order sell 0.10 EURUSD opening at 1.2256 sl: 0.0000 tp: 0.0000 failed [Trade context is busy], but for 'buy' orders not busy?

And now, the opposite: 2012.07.20 07:51:13 '*****': order buy 0.10 EURUSD opening at 1.2258 sl: 0.0000 tp: 0.0000 failed [Trade context is busy]

What could this be about?


https://www.mql5.com/ru/forum/100321

PS. Yusuf, the forum search works.

 

Good afternoon.

I can't find how to order an indicator or advisor in Job(https://www.mql5.com/ru/job).

Please send me the link.

 
Stells:

Good afternoon.

I can't find how to order an indicator or advisor in Job(https://www.mql5.com/ru/job), I funded my account.

Please send me the link.

https://www.mql5.com/ru/articles/117
 
PapaYozh:


https://www.mql5.com/ru/forum/100321

PS. Yusuf, the forum search works.

Thanks, the link there, indicates a software solution to the issue and I don't know what to do. What does this have to do with and how do I solve this issue? Why was the EA working fine for a month, and now it is glitching? If the error was in the code? It turns out that this thread is not for newbies if it burdens me with answers to questions. I am frustrated.
 

Closing time of penultimate bar = Time[1], if I understood correctly.

How do I know that it is 9:00 AM on the current day (on H1 for example) ?

 

Explain at least the approximate meaning of this piece of code:

int CalculateCurrentOrders(string symbol)

{

int buys=0,sells=0;

//----

for(int i=0;i<OrdersTotal();i++)

{

if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;

if(OrderSymbol()==Symbol() && OrderMagicNumber()==MAGICMA)

{

if(OrderType()==OP_BUY) buys++;

if(OrderType()==OP_SELL) sells++;

}

}

//---- return orders volume

if(buys>0) return(buys);

else return(-sells);

}

 
fmillion:

Closing time of penultimate bar = Time[1], if I understood correctly.

How can I tell if it is 9:00 AM of the current day (on H1 for example) ?


int h=TimeHour(Time[0]);
if(h==9)-->...
NOTE:
datetime Time[]
Array time containing the opening time of each bar of the current chart. Data of datetime type represents the time in seconds from 00:00 of 1st of January 1970.
 
I've been somewhere - can't find it, could you please tell me where to look for codes returned by return() command to terminal from functions: int(), deint(); start()? What do they all mean? By the way, it would be good to highlight this issue in the "Forum Navigator" (I have repeatedly come across users questions about these return codes)
 
drknn:
I can't find it somewhere, could you please tell me where to find codes returned by return() command to terminal from: int(), deint(); start() functions? And what they all mean. By the way, it would be good to highlight this issue in the "Forum Navigator" (I have repeatedly come across user questions about these return codes).
What you specify will return, depending on the type of system function you specify. The system call will return zero.
 
okvseok:

Explain at least the approximate meaning of this piece of code:

This is an order counter. Well, it may be, for example, that you want to know in the code whether there are buy orders on a certain currency pair and with a certain magiknumber, for example. If there is e.g., another buy order cannot be opened. So the order counter is needed to make a decision.
Reason: