Forum

I cannot use double variables correctly. Please help me!

Hello friends, I'm learning how to code on MT4, however I got stuck at very first line of coding. Here what I have tried to do: void OnStart() { double s; s = 1/2 + 1/3 + 1/4; Alert("The result is: ",s); return; } Surprisingly, the result I got on the sreen is The result is: 0;

Is a trade opened twice by Expert Advisor if I use MT4 on laptop and MT4 on VPS simultaneously?

Hello guys, I'm new to MT4 VPS, so I have a question regarding its working mechanism. Assume that, I have uploaded an Expert Advisor to MT4 VPS, at the same time, I open MT4 on my laptop and use that Expert Advisor on my laptop. What happens when a signal (buy/sell) comes? Will the trade be