I need an Expert Advisor to be able to call the function from the first library without problems, and the function from B1 uses the function from B2, but the terminal writes that 2010.04.13 20:25:03B2 EURUSD,M30: function 'f1' is not found
How do I fix it? Is it even possible to have functions from one library call functions from another library?
I do this at the beginning of the EA determining what is on the tic's arrival. For example.
int BL=0,SL=0,B=0,S=0,BS=0,SS=0;
//-------------- Определим что имеем -------------------------------------------- for(int r=0;r<OrdersTotal();r++) //
{
if(OrderSelect(r,SELECT_BY_POS,MODE_TRADES)==false) continue;
if(OrderSymbol()==Symbol())
{
if (OrderType()==OP_BUY ) B++;
if (OrderType()==OP_SELL ) S++;
if (OrderType()==OP_BUYLIMIT ) BL++;
if (OrderType()==OP_SELLLIMIT) SL++;
if (OrderType()==OP_BUYSTOP ) BS++;
if (OrderType()==OP_SELLSTOP) SS++;
}}
Further, you need to define the number of orders you can operate with. For example, how many pending orders BL+SL+BS+SS and so on. Do you need it?
Есть 2 отложенных ордера, один из них сработал, как удалить второй?
Deletes all remaining pending orders.
And if you want a substantive answer, then part of the algorithm in the studio.
//В конец кода отдельной функцией//жжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжint OrdersDelete(int MagicNumber) //magic
{
for(int i = 0; i < OrdersTotal(); i++)
{
// already closedif(OrderSelect(i, SELECT_BY_POS,MODE_TRADES ) == false) continue;
// not current symbolif(OrderSymbol() != Symbol()) continue;
// order was opened in another wayif(OrderMagicNumber() != MagicNumber) continue;
if(OrderType() >1)
OrderDelete(OrderTicket());
}
return(0);
}
//жжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжжint start()
{
OrdersDelete(STUPID);//STUPID это мажик номер Вашего советчика
трали вали ...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Вы не однократно задаёте один и тот же вопрос. Пишите точно, что надо я вам пропишу.
There are 2 pending orders, one of them triggered, how do I delete the second one?
there is an expert
there is mqh
and two libraries, first B1
now and B2
I need an Expert Advisor to be able to call the function from the first library without problems, and the function from B1 uses the function from B2,
but the terminal writes that
2010.04.13 20:25:03 B2 EURUSD,M30: function 'f1' is not found
Further, you need to define the number of orders you can operate with. For example, how many pending orders BL+SL+BS+SS and so on.
Do you need it?
Есть 2 отложенных ордера, один из них сработал, как удалить второй?
Deletes all remaining pending orders.
And if you want a substantive answer, then part of the algorithm in the studio.