[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 692
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
Don't worry, it's essentially int.
i.e. if I reassign the result of TimeCurrent()-OrderOpenTime() calculation to int as:
int mytime = TimeCurrent()-OrderOpenTime();
there won't be any uncertainties in this form? And I'll get number of seconds in mytime?
Thanks, but I'm afraid to experiment with datetime type - there are no conversions to other types (I would like datetime --> int), and it's not realistic to see what the output is.
Why is it unrealistic? Time functions return "the number of seconds elapsed...", which is a pure int. By adding and subtracting "number of seconds", we get the time offset from the "time reference point".
i.e. if I reassign the result of TimeCurrent()-OrderOpenTime() calculation to int in the form:
int mytime = TimeCurrent()-OrderOpenTime();
there won't be any uncertainties in this form? and i will get the number of seconds in mytime?
Right.
Why is it unrealistic? Time functions return "number of seconds elapsed..." and this is a pure int. By adding and subtracting "number of seconds" we get a time deviation from the "time reference point".
I know that, it's just that sometimes the uncertainty of the automatic type conversion scares me - there's no information, i.e.
what will happen if
int = double
int = datetime
etc.
In other programming languages, such constructions will not be allowed by compiler - the type conversion error will be called, but in mql there will be no error, but it does not mean that it will work correctly - that's why I asked
sounds nice, but no one knows when the flat ends and when it starts :) - I'm struggling with this phenomenon and it seems to be working - we'll discuss it later
I would like to control an open order according to the following principle - if after placing an order by closing N bars its profit is less than the set value, then close the order
how to check/comput how many bars ago an order was opened from an EA?
Strange that you are only asking this question now... I have been using Igor Kim's function for a long time... I want to add it to the pile... :)
Greetings, forum members
Can you please tell me if there is an indicator that could display a single total total position if I have the same positions on a particular pair.
For example, I have 7 sell positions on gbp/usd and I would like to see one total sell position on this pair
If something similar has already been implemented, please suggest a name
Can you please tell me,
Why during testing of an Expert Advisor with the visualization mode turned on, all graphic markup of performed deals disappears after the end of testing?
At the same time, during the test it is there.
Hello people.
Answer my loose-question, please. Or please give me a link. Question: What trading servers do you use with MetaTrader 4? Are there any free trade servers where you can register or guest usernames and passwords?
Thank you for your feedback.
Hello people.
Answer my loose question, please. Or give me a link. Question: What MetaTrader 4 trade servers do you use? Are there free trade servers where you can register or guest login and password?
Thank you for your feedback.
On the forex market, almost all servers are free.
And even more, almost every DC has demo accounts where you can trade with virtual money instead of real money.