Beta version of MetaTrader 4 IDE including new MQL4 compiler and editor - page 10
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
deviation should be double
deviation should be double
Please make a request to servicedesk. Please attach to the request editor's log (with red text). I understand correctly that the studio itself writes something like"error C4430: missing type specifier - assumed int".
Yes, this and some other features have already been fixed.
After tweaking the functions, do you upload a new version so it can be downloaded?
If so, should it be downloaded from https://c.mql5.com/mql4/forum/2013/08/MetaTrader4.Beta.IDE_1.zip?
I download from this site, but I don't see any changes.
and it keeps giving me an error.
I decided to compile some code that has been running for a long time without any problems. There are some things I don't understand:
Why does it tell me about type conversion when int v and int GetTickCount() have the same int type ? Please clarify this point.
intGetTickCount()
The GetTickCount() function returns the number of milliseconds that have elapsed since the system started. The count is limited by the resolution of the system timer. Since the time is stored as an unsigned integer, it overflows every 49.7 days.
Example:
intstart=GetTickCount();
// some serious calculations.
Print("Computation time ",GetTickCount()-start," milliseconds.");
I decided to compile some code that has been running for a long time without any problems. There are some things I don't understand:
Why it tells me about type conversion when int v and int GetTickCount() have the same int type ? Please explain this point.
The reference is old. In mql5 GetTickCount() returns uint
GetTickCount() in MT5 returns an unsigned integer. You're using a signed integer. Implicit type conversion causes a warping. That's right.
Sorry for the off-topic, if we could introduce API to the terminal - trading functions, access to timeseries and events, we wouldn't have to reinvent the wheel, because programming in a professional IDE is much more convenient, take VS Express, for example... You could write Expert Advisors with COM object, at least in Basic and Delphi.
And what do the APIs for the terminal prevent ordinary traders from doing?
You don't want to use the API, don't use it. But there are other traders who would use the API. What's wrong with that?