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
Good!
Win7 I couldn't find anything in the forum, what about the working directory of the program? As it seemed to me, in win7 at the moment of start-up a temporary directory is created where all the program is copied, so, when working with MetaEditor it turns out that I copy a file to include, for example on the D drive, but there is nothing in the metaeditor window. I call "Open folder" from the metaeditor window and the window appears on the C drive somewhere in the temp. What to do? How to sync them or prohibit win7 from splitting them like this?
Thank you!
Hi!
Win7 I couldn't find anything in the forum, what about the working directory of the program? As it seemed to me, in win7 at the moment of start-up a temporary directory is created where all the program is copied, so, when working with MetaEditor it turns out that I copy a file to include, for example on the D drive, but there is nothing in the metaeditor window. I call "Open folder" from the metaeditor window and the window appears on the C drive somewhere in the temp. What to do? How to sync them or prohibit win7 from splitting them like this?
Thank you!
1. Every language has its own sphere of application. To say that a language is "the most advanced" in general is absurd.
2. What difference does it make what it's called? The essence is almost the same.1. ok, i agree. then mql5 is the most advanced language for auto-trading. :) Let's keep pushing it.
2... That's it, we're asking, we're asking!
2. Supported by
We are all asking for it collectively!
:)
are elementary questions about the mql5 language asked here? :-)
judging by the discussion, there're only hell-oops here...
Hi all.
are elementary questions about the mql5 language asked here? :-)
I don't know, but judging by the discussion, there are only infernal OOP-ers here...
started drawing a rudimentary script.
Anyway, one note and one question.
Alas, if the number of bars is set as Unlimited, the script doesn't work,
it says there is not enough memory. i.e. a call ofTerminalInfoInteger(TERMINAL_MAXBARS) actually turns out to be
which is strange, because in reality there are no more than 100 000 bars on the chart.
How can I get the number of really loaded bars? Because copywriters simply have no time to return anything...
the second question is this.
trying to implement an elementary check (it was elementary in µl4)
// delete bad day of week and bad bars
if (TimeDayOfWeek(Time[i])<1 || TimeDayOfWeek(Time[i])>5 || (High[i]-Low[i])<10*Point) { errBar++; continue; }
forum searches (mql5 help search on the phrases day_of_week, dayofweek gave nothing... very useful help!) led to the following implementation
MqlDateTime temp;
TimeToStruct(aBars[i].time,temp);
if (temp.day_of_week<1 || temp.day_of_week>5 || aBars[i].high-aBars[i].low<10*Point() ) {errBar++; continue;}
like right? instead of one line there are three - and it's elementary.
is it possible to simplify it? or are all elementary operations now replaced by cumbersome creation of objects, classes, intermediate structures?
Good day!
Could you please advise whether there are brokers in Russia who offer Metatrader as a terminal for working on the FORTS and MICEX?
Please suggest a faster variant of "roulette" algorithm than this one:
It's clear that arrays can be taken out of the function so they don't have to be declared every time and resized, but I need a more revolutionary solution. :)In my attempts to master this syntax creation, believing in the "simplicity" of the language,
started drawing a rudimentary script.
Anyway, one note and one question.
Alas, if the number of bars is set as Unlimited, the script does not work,
it says there is not enough memory. i.e. in essence, theTerminalInfoInteger(TERMINAL_MAXBARS) will be called;
which is strange, because in reality there are no more than 100 000 bars on the chart.
How can I get the number of really loaded bars? Because copyrights has no time to return anything...
Let's try to figure it out. For CopyRates() function the penultimate parameter
I.e. the number of elements to be copied. In your design, the number of elements is Unlimited. Roughly speaking, unreal :) That's probably what happens when you work, constantly redistributing memory until it is exhausted. Try to use a more specific value, instead of TerminalInfoInteger(TERMINAL_MAXBARS):MQL5 Reference / Access to timeseries and indicators / Bars