Forum

VPS on different MT5 instance

Hello, I have 3 different MT5 instances on my desktop. I log in on each instance to a different trading account. I log in on each instance with the same MQL5 account. On that account, I rent a VPS. The VPS run smoothly on one instance of MT5. How to connect and migrate my chart and EA on the others

Can't log in into MT5 Community tab

Hello, I've been logged out of MT5 and I can't log in again. I got this message : 2024.02.04 11:25:48.968 Terminal MetaTrader 5 x64 build 4167 started for MetaQuotes Software Corp. 2024.02.04 11:25:48.969 Terminal Windows 10 build 19044, 12 x Intel Core i7-8750H @ 2.20GHz, AVX2, 7 / 15 Gb memory

Difference between result in Optimisation mode and in Normal mode

Hello, I coded my EA (3 actually) and I ran a back test on the last few months with it with optimization enable. That way, I picked the best value for some of the parameters of my EAs. Then, just to check, I ran a back test (on the same period, the same instrument, the same method "real tick based

invalid request 10013 every time the EA try to open a trade

I stuck with this error, I'm looking where the mistake is for the last 24h, and I'm completely blind. The error appear in the strategy tester log like this : "invalid request" and with the retcode 10013. Below is the full code. It's a training code where I try different and basic trading logic, I

invalid stops

Hello; I get almost every time an error " invalid stops " when I test my EA. I think it's weird that it's not happening 100% of the times, sometimes the order go through. So, I try to figure out, what the difference when the order is taken and when he is rejected because my stops. How can I find

Run my EA only once at every new 1min candle opening

Hello, When I test my EA with the "1 min OHLC", I get excellent result, but when I test it with "every tick based on real tick", I get awful result. I launched my EA in a real account and the "every tick based on real tick", seem to give accurate result when I compare the result from the test and

account balance / equity / margin / free margin

I run my EA in the MT5 strategy tester and at the beginning of the test no errors are reported but then at some point I start getting always the same error : [no money] [ not enough money ] I don't understand where that come from since my EA take a trade one at a time and the first time the error

How to check if a position is open?

Hello, I'm stuck with what should be an easy problem to solve, apparently, but I'm going in circle without finding the answer (read a lot of thread and MQL documentation). I want to check if a specific position is currently opened by using either the magic number or the order ticket of the

EA - MQL5 - managing different position opening on different TF

Hello, New here, I slowly learn how to code my EA on MQL5, but now I'm stuck on a problem and I don't find the solution. I made an EA and this EA can open a trade on different TF, but only one trade at a time per TF. So, it's running and analyze the TF 1min, 2min, 3min, 4min and 5min. It can open 5