Forum

What's the meaning of these symbols at an indicator print?

Hello, when calling the Print- function inside of an indicator it gives me something like this: IQ 0 MyIndicator (EURUSD,M1) 13 : 45 : 34 time 2011.11 . 18 13 : 45 ask 1.360500 bid 1.360400 JE 0 MyIndicator (USDCAD,M1) 13 : 45 : 34 time 2011.11 . 18 13 : 45 ask

Build 540 crashes when declaring a big local array

Hello, I'm working extensively with MT5 and DLLs. In a method I declare a large local array: MqlRates rates[ 5000 ]; Everything was fine until the new build 540 came out. Since then MT5 crashes when preparing the local variables on the stack . You are now forced to work with small arrays and the

Is the service desk active?

Hello, I still have the problem hat my account loging password and user name are not saved, so every time MT5 starts up it asks for username and password(which is very, very annyoing). I've written to service desk a while ago (24.Sept) about this issue, but until now there is not even a confirmation

Thread model in MT5

Hello, does someone know the thread policy of MT5? Say the programm calls OnTick(), does this mean that this event is locked for other events until it finishes? Or say you have 5 custom indicators and so you have 5 OnCalculate() methods defined. Is it garantueed that all events can perform until the

Loading a second DLL

Hello, in this article from the documentation https://www.mql5.com/en/docs/runtime/imports there is this statement: If the DLL library uses another DLL in its work, the first one cannot be loaded in case when there is no second DLL. What does this mean? I have a DLL which uses another DLL (C#) and

Returning reference

Hello, is it currently possible to return a reference from a class method? For example: int & classA::getInt() { return mInt; } If not: what would be an alternative? Maybe returning a pointer? Thanks

EA thread name

Hello, in my DLL in need to do some synchronizing with the current EA thread. Do you know if one can block the current EA thread with C#? Thanks

Login information lost

Hello, Metatrader5 seems to have a problem remembering the server login information. 4 out of 5 times I have to type the login name and the password manually after launching the application. Why is this information not saved permanently? Of course, I checked the radio button "remember password", but

How to recognize a change of account properties

Hello, in MQL5 we have OnTick() to see that there was quote update. But how ayout account information properties? For example, if the balance, leverage or something else accounr related changes, how can one simply test this? It would be a pain to test all properties explicitly. Do you know of simple

Confused about OrderSend vs PositionOpen

Hello, I really don't get the difference between the OrderSend() and PositionOpen() Methods. 1) With both it is possible to open positions? 2) If I'm not using pending orders at all, why would I need to use OrderSend() ? 3) Why not always using the OrderSend() method for all kinds of request? Why