Forum

Is metatrader on Linux just as good as on Windows?

I have 2 computers, one of which runs on Linux and the other on Windows. I know that metatrader is designed for Windows but I found out that you can install it on Linux as well when you use something called WINE. The thing is that I have preferance for Linux because I use this OS most of the time

Sending notifications to cellphone

I have built an indicator and I want it to send notifications to my cellphone when a certain condition is met. I am planning to use the onTick function with something like an alert,but I don't know how I can send it my phone. Is there a way you can do this with metatrader

Closing all trades at the end of the trading day.

I want to write a code (for an advisor) which closes all open trades at the end of the trading day. So for example if the market for US stocks closes at 16:30, all open APPLE orders must be sold at something like 16:29. I tried to look this up on the internet but I couldn't find any specific

Two doubles rounded up differently

I have 2 equations written in my code (actually more but just to keep it simple), both should have exactly the same result. When I tested it though it turned out not to be true because when I did : if(value1==value2){ ....... } The code was not executed. So I decided to Print these two values and

Curious problem with multidimensional array

I had a very curious problem with a multidimensional array which I just can't figure out. I first made an array like this: double MyArray[][2]; So I had an array consisting of dimensions with 2 items in the second dimension, both of which I used for some calculations in my code. I then looked at the

Minimum to dynamic array?

I was wondering whether there is a minimal amount of elements a dynamic array must have in order to work. This because I’d written a code which started by making a dynamic array of 10 elements and then it started reducing that number to 1. This did not work though, but when I changed the minimum of

Are MQL functions synchronous?

I was wondering whether functions written in MQL are synchronous like in Javascript and if so how can you change this