Well, though hypothesis, I appreciate you found time to create it :)
...The better the protection, the more support queries. For example:
* If the protection is tied to a mql5.com account, what happens about multiple people sharing the same mql5.com account? If there is a concurrency check, what happens if I want to use the same mql5.com account on my VPS, for live trading, and also on my local computer, e.g. for testing new signal providers?
* If the protection is tied to hardware, what happens if I test an EA on my local computer and then want to use it on a VPS? What happens if my hardware changes? If there is some sort of registration and de-registration of hardware devices, what happens if I de-register a machine on which an EA is currently running?
account mismatch error
when I change account from MQ test server to another broker's account, variables Bid/Ask or function SymbolInfoTick() still prints quotes from MQ test server and not what is on chart..
where do they get these quotes from if the terminal is not logged into the test server? And where are the right quotes?
Also, while there is a possibility to add servers in the "open account" dialog, there is no possibility to delete servers from that list; how do I unclog the server names list?
Well, the point is this: Bid/Ask or SymbolInfoTick() does not return what is printed on the chart.. So the quotes must be present, however, they are not available to the EA!? Technically the quotes printed by the expert do not exist.
I can't compile this code in BUILD 777
In build 509 without problems.
66 if (MyOrdersTotal() == 0 && (Hour()>=StartHour && Hour()<EndHour && StartHour<EndHour) ||
67 (Hour()>=StartHour || Hour()<EndHour && StartHour>EndHour))
check operator precedence for possible error; use parentheses to clarify precedence myEA.mq4 66 32
check operator precedence for possible error; use parentheses to clarify precedence myEA.mq4 67 30
And other thing, it isn't very important.
The icon of files *.mq4 is like mql5.
Yes, it compiles, but don't run like mq4.
Know you what is the equivalent to || and &&?
bool isHourOKnorm = StartHour < EndHour
&& StartHour <= Hour() && Hour() < EndHour,
isHourOKwrap = StartHour > EndHour
&& (StartHour <= Hour() || Hour() < EndHour),
isHourOK = isHourOKnorm || isHourOKwrap;
if(MyOrdersTotal() == 0 && isHourOK)
Please enable the necessary setting in your browser, otherwise you will not be able to log in.