Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 919

 
solnce600:

Good afternoon!

Could you please tell me .

There is a five-digit integer, e.g. 34567

I need only the last two digits left of it. -67.

QUESTION

What function performs this operation?

Thank you.

Residual of division by 100

int Res=34567 % 100;
 
Vinin:

Residual of division by 100

Thank you.
 
nikelodeon:
Good afternoon. Could you tell me how to make it easier to check if there is an order at a given price. Just need to know if there is an order at a given price???? I'm sure many people have already done it....
Actually, there used to be a branch of useful functions by Kim, I think it's from that line, too bad... lacking that now.... :-(
 
danik:

What prevents you from writing 10 lines instead of 1, and print all the values in the log. then you will see where you made a mistake.

and so on with all elements. And when it works well, you can put it all in one line.


Thanks, found it, it turned out -i was missing.


nikelodeon:
Good afternoon. Could you please tell me how to implement a simpler way to check if there is an order at a given price. Just need to know if there is an order at a given price???? I'm sure many people have done this


Here.

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

 

Good day everyone! Really asking for help!!! Been dabbling with the simplest martingale EA without indicators or anything, but after updating the language, it won't compile with warnings. Help me to bring it back to life in the updated MT4!

extern int tp = 50;

extern int sl = 30;

double Lots = 0.01;

//+------------------------------------------------------------------+

//| expert initialisation function |

//+------------------------------------------------------------------+

int init()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| expert deinitialisation function |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| expert start function |

//+------------------------------------------------------------------+

int start()

{

//----

if(OrdersTotal()==0)

{

//----

OrderSelect(OrdersHistoryTotal()-1 ,SELECT_BY_POS,MODE_HISTORY) ;

if(OrdersTotal()==0 && OrderProfit()<0)

{

Lots=OrderLots( ) *2;

//-----

if(OrdersTotal()==0 && OrderOpenPrice()<OrderClosePrice())

{

OrderSend("EURUSD",OP_BUY,Lots,Ask,0,Ask-sl*Point,Ask+tp*Point,"",123,0,Red);

}

else

{

OrderSend("EURUSD",OP_SELL,Lots,Bid,0,Bid+sl*Point,Bid-tp*Point,"",123,0,Red);

}

}

else

{

Lots=0.01;

if(OrdersTotal()==0 && OrderOpenPrice()>OrderClosePrice())

{

OrderSend("EURUSD",OP_SELL,Lots,Bid,0,Bid+sl*Point,Bid-tp*Point,",123,0,Red);

}

else

{

OrderSend("EURUSD",OP_BUY,Lots,Ask,0,Ask-sl*Point,Ask+tp*Point,"",123,0,Red);

}

}

}

//----

return(0);

}

//+------------------------------------------------------------------+

Ps: the ex4 file compiled in the old build doesn't work in the new mt4, although the smiley face does.

Thanks so much in advance!!!

 

Good afternoon.

I am trying to write an EA based on the arrow indicator. The essence of the Expert Advisor: Entry at arrow + filters exit at reverse arrow.

I have prescribed the filters but can't get the values of arrows.

double indArrowSell=iCustom(Symbol(),0, "arrow",0,1);

double indArrowBay=iCustom(Symbol(),0, "arrow",1,1);

Indicator buffer values on the previous bar.

Then I try to condition it:

if( indArrowBay!=EMPTY_VALUE)Sig=1;

But I can't. Please help.

Thank you in advance.

Here is the indicator code (I can't find the file here for some reason)

/*
   Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
   Website: http://purebeam.biz
   E-mail : purebeam@gmail.com
*/

/* Декомпил удален */ Бан на сутки
 
The terminal has tabs: Assets, News, Alerts, Market, Signals... and others. How can I remove these tabs from the terminal?
 

Can you please tell me how iWPR command works correctly when the shift is equal to zero, i.e.iWPR(NULL,0,13,0)?

This shift gives incorrect information, while the shift other than zero makes it work correctly, it gives the data clearly, like in the graph.

 
Mishok:

Can you please tell me how iWPR command works correctly when the shift is equal to zero, i.e.iWPR(NULL,0,13,0)?

This shift gives incorrect information, while the shift other than zero makes it work correctly, it gives the data clearly, like in the graph.

Did you make a mistake with the parameters?
 

Hello

my "start on historical data" button is not active

What could be the reason?

Reason: