Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 639

 

I can't find the following *** in the "wonderful" MT4/MT5 description:

#property indicator_plots 0

https://docs.mql4.com/ru/basis/preprosessor/compilation

What are rafts as seen by MT4/MT5 developers?

Свойства программ (#property) - Препроцессор - Основы языка - Справочник MQL4
Свойства программ (#property) - Препроцессор - Основы языка - Справочник MQL4
  • docs.mql4.com
, которые помогают клиентскому терминалу правильно обслуживать программы без необходимости их явного запуска. В первую очередь это касается внешних настроек индикаторов. Свойства, описанные во включаемых файлах, полностью игнорируются. Свойства необходимо задавать в главном mq4-файле. Путь к файлу с картинкой, которая будет показываться для...
 
Alexey Viktorov:

Artyom, you're a programmer... M. Botvinnik once said that a computer is an idiot. Consequently, every programmer knows how to talk to an idiot.


About 20-30 years ago there was no such thing as a "programmer" at all.

There were physicists who were engaged in numerical modeling of physical processes, there were mathematicians who performed their calculations with specific purposes, there were doctors who tried to model processes in organism and other specialists in various fields who tried to apply some or other numerical methods in their activity.

But there were no pure, so-called "programmers" at all.

They appeared only recently, and multiplied like "cockroaches".

What is a "programmer" in modern usage?

It is a child who is trying to put together a "puzzle" of different operators.

At that, "programmers" can hardly imagine a picture of the "puzzle" to be put together, that's why all images are very ugly (like children's pictures).

As they say, whatever a child can do as long as he does not cry!

At the same time the knowledge in other fields of knowledge among "programmers" is, as a rule, close to zero - they do not know or do not want to know physics, mathematics, Russian or anything else.

Children! What knowledge do children have - and what demand is it from them?

You don't believe me?

Let us check.

This forum is connected with trading.

Well, then the elementary trading task for the "programmers" of this forum.

The task.

Suppose that the quotes of some currency pair are represented as sinusoidal values with known parameters (period, amplitude, etc.).

It is required to build a trend of these quotes!

The problem is elementary, and the "programmer" who builds the trend correctly, I immediately transfer to the account 100 quid!

Good luck "programmers"?

 
neverness:

About 20-30 years ago, there was no such thing as a 'programmer' at all.

There were physicists who were engaged in numerical modelling of physical processes, there were mathematicians who carried out their calculations for certain purposes, there were medics who tried to simulate processes in the body and other specialists in various fields who tried to apply some or other numerical methods in their activity.

But there were no pure, so-called "programmers" at all.

They appeared only recently, and multiplied like "cockroaches".

What is a "programmer" in modern usage?

It is a child who is trying to put together a "puzzle" of different operators.

At that, "programmers" can hardly imagine a picture of the "puzzle" to be put together, that's why all images are very ugly (like children's pictures).

As they say, whatever a child can do as long as he does not cry!

At the same time the knowledge in other fields of knowledge among "programmers" is, as a rule, close to zero - they do not know or do not want to know physics, mathematics, Russian or anything else.

Children! What knowledge do children have - and what demand is it from them?

You don't believe me?

Let us check.

This forum is connected with trading.

Well, then the elementary trading task for the "programmers" of this forum.

The task.

Suppose that the quotes of some currency pair are represented as sinusoidal values with known parameters (period, amplitude, etc.).

It is required to build a trend of these quotes!

The problem is elementary, and the "programmer" who builds the trend correctly, I immediately transfer to the account 100 quid!

Good luck "programmers"?

Here are the quotes by Weierstrass function,https://www.mql5.com/ru/forum/86386/page988#comment_7843056

If you want to convert it to sine, it's not hard, if you want to read the article, readhttps://www.mql5.com/ru/articles/4566.

and 100 quid... Keep it for yourself, you need it more, you'd like to be cured.

And taking money from the lame-o... It's not human... Keep it, you need it more.

Моделирование временных рядов с помощью пользовательских символов по заданным законам распределения
Моделирование временных рядов с помощью пользовательских символов по заданным законам распределения
  • www.mql5.com
Торговый терминал MetaTrader 5 позволяет создавать и использовать в работе пользовательские символы. Трейдер имеет возможность тестировать собственные валютные пары и другие финансовые инструменты. В статье будут предложены способы создания и удаления пользовательских символов, генерации тиков и баров по заданным законам распределения. Также...
 
Igor Makanu:

here are the quotes from the Weierstrass function,https://www.mql5.com/ru/forum/86386/page988#comment_7843056

If you want a sine function, it's easy, if you want an article, readhttps://www.mql5.com/ru/articles/4566...

and 100 quid... Keep it for yourself, you need it more, you'd like to be cured.

And taking money from the lame-o... It's not human... Keep it, you need it more.

You need to rest for sure - you've already been "reprogrammed".

Take something simpler, like a parabola or a cycloid.

But now you want a Weierstrass.

And you should see a doctor too.

PS

Your post is a prime example of what traders should not do.

And a shining example of how it should NOT be done - SEE, AND NEVER DO IT!

This is precisely the "hard case" when children "programmers" put together "puzzles" without having any idea of the picture they are trying to put together.

That's the Weierstrass folding.

 
Good morning, I'm asking for help from the experts. I want to write a daily log of my EA, but I do not understand how to open a file for additional logging. I tried to open a file like this
FileOpen(filename,FILE_READ|FILE_WRITE|FILE_TXT);
I tried this, but it did not work. I would like to know what to do or if I should add a dll.
 
Андрей:
Good day! I would like to ask some help from the experts. I want to write a daily log of my EA, but I don't understand how to open the file for additional logging. I tried to do it this way, but it did not work. I have tried it this way but it does not work. What can I do or should I use a dll?

What's not working? Does it overwrite the first lines? So you have to move the pointer to the end of SEEK_END after opening the file.

FileSeek - Файловые операции - Справочник MQL4
FileSeek - Файловые операции - Справочник MQL4
  • docs.mql4.com
Если выставить позицию за "правую границу" файла (больше, чем размер файла), то последующая запись в файл будет будет произведена не с конца файла, а с выставленной позиции. При этом между предыдущим концом файла и выставленной позицией будут записаны неопределенные значения...
 
neverness:

20-30 years ago there was no such thing as a "programmer" at all.

1. Tell me honestly, you clever physico-mathematician, have you ever seen a logarithmic ruler? Do you know how to use it?

2. If programmers are like children, they do not know anything and do not understand what the output should be, why are you trying to learn programming? And if you haven't mastered programming, it means you are more stupid than a child??? The only conclusion you can draw is this.

 
Alexey Viktorov:

1. Tell me honestly, you clever physico-mathematician, have you ever seen a logarithmic ruler? Do you know how to use it?

2. If programmers, like children, do not know anything and do not understand what the output should be, why are you trying to master programming? And if you haven't mastered programming, it means that you are more stupid than a child? The only conclusion you can draw is this.

1. Of course. You betcha. In the past, the only way to count was on a slide rule. And they were great at it. Easy, simple, affordable, unbreakable... . It's a wonderful device.

2. You are not reading my posts carefully.

I'm not trying to master programming, I am trying to understand what MT4/MT5 developers have "done" recently.

Of course, there are some changes. I don't compare with what they've done before. But it's still a long way to "high level" language (as I think).

The developers of MT4/MT5 are trying to promote their idea (to unite everything in one terminal!), so I'm interested in it too.

The creators of 1C are working on a similar theme. But they are already working on Android.

By the way, where is the Android theme in MT4/MT5 developers? - I don't see it at all !!!

How do traders work on tablets, in an android environment ?

How to put programs there ?

PS ----------------------------------------------------------------------------

What, no way?

There is a MetaTrader for Android!

You can't install any trading software on it?

So MT4/MT5 without Android will not work at all.

Or is it possible to download your own programs?

I personally have not tried it yet ...

 
Perhaps you neverness should go and have a rest after all. No more flubbing and trolling.
 
Hello, MQL4. I decided to distribute the program text among include files, but MarketInfo function is unknown in it, i.e. its constants are not defined and, consequently, an error during compilation appears
Reason: