Discussion of article "SQLite: Native handling of SQL databases in MQL5" - page 4

 

A very detailed tutorial on SQLite: https://www.sqlitetutorial.net/

Here's one on SELECT: https://www.sqlitetutorial.net/sqlite-select/

There is no sense to transfer it to our help and there is a lot of detailed documentation published for this project.

Most likely, we will include direct links to ready tutorials in our help.

SQLite Tutorial
SQLite Tutorial
  • www.sqlitetutorial.net
This SQLite tutorial teaches you everything you need to know to start using SQLite effectively. You will learn SQLite through extensive hands-on practices. If you have been working with other relational database management systems such as MySQL, PostgreSQL, Oracle, Microsoft SQL Server and you hear about SQLite. And you are curious to know more...
 
Yes, thank you. If I'd known 60 years ago that I could use English... I'd have started learning it.)
 

SQL is a language, albeit a simple one, and there are a lot of textbooks on it, including in Russian. It is inefficient to learn the language from documentation/reference books.

 
Edgar Akhmadeev:

SQL is a language, albeit a simple one, and there are a lot of textbooks on it, including in Russian. It is inefficient to learn the language from documentation/reference books.

To some people. Personally, I find documentation like in MQL5 more pleasant than examples of use. I started programming in Wasik using similar documentation.


Added: I have searched, read textbooks in Russian.... Tough. People without thinking copy machine translation without reading. V.S. Vysotsky "They don't care what flowers are there."

It is impossible to learn anything from such translations ...

 
Renat Fatkhullin:

A very detailed tutorial on SQLite: https://www.sqlitetutorial.net/

Here's one on SELECT: https://www.sqlitetutorial.net/sqlite-select/

There is no point in moving it to our help and there is a lot of detailed documentation published for this project.

Most likely, we will include direct links to ready tutorials in our help.

After a closer, but still superficial, familiarisation with the possibilities of SQLite I came to the conclusion that in this form, sorry, it is only a rattle.

In order to use the unconditional advantages of SQLite it would not be superfluous to have a history database, at least. And better, a database of current positions and pending orders. I hope that at the MT level the creation of such databases will not take much time. Especially if the tables, as they are now, can be formed from SQLite database. This approach will definitely simplify the work with the history of orders and deals. It will be very easy to get the amounts of swap, commissions, profit on all deals with one position ID or for a certain period.

Recently I read in one of the topics that the history selection is based on the opening time, but correctly on the closing time.... Having a SQLite database removes such questions. By what criterion you want to use and select it. But few programmers will create these bases for themselves. IMHO.

 
Alexey Viktorov:

To some people. Personally, I find MQL5 documentation more pleasant than examples of use. I started programming in Wasik using similar documentation.


Added: I searched, read the tutorials in Russian.... Tough. People without thinking copy machine translation without reading. V.S. Vysotsky "They deeply do not care what flowers there."

It is impossible to learn anything from such translations ...

"Hey."

 
Alexey Viktorov:

After a closer, but still superficial, familiarisation with the capabilities of SQLite, I came to the conclusion that in this form, sorry, it is only a rattle.

In order to use the unconditional advantages of SQLite it would not be superfluous to have a history database, at least. And better, a database of current positions and pending orders. I hope that at the MT level the creation of such databases will not take much time. Especially if the tables, as they are now, can be formed from SQLite database. This approach will definitely simplify the work with the history of orders and deals. It will be very easy to get the amounts of swap, commissions, profit on all deals with one position ID or for a certain period.

Recently I read in one of the topics that the history selection is based on the opening time, but correctly on the closing time.... Having a SQLite database removes such questions. By what criterion you want to use and select it. But few programmers will create these bases for themselves. IMHO.

There already is. By means of MQL. You know where. But you say you can't read more than three sentences....

 
Artyom Trishkin:

"Her."

In this case, a minor paraphrase is not important.

Artyom Trishkin:

It already is. By means of MQL. You know where. But you say you can't read more than three sentences....

I don't get it. I don't know where it is. What do you mean, "With MQL tools"? As it is now possible to pull and pull from a SQLite database is a very big difference. Even after a superficial acquaintance it is clear. By means of MQL is much more complicated and, as it seems to me, more costly in time.

When it is written on the matter without unnecessary empty phrases, I can read a little more. This article is written in such a way.

 
Alexey Viktorov:

In this case, minor paraphrasing is not important.

I don't understand anything. I don't know where it is. What do you mean by "MQL tools"? As it is now possible to pull and pull from a SQLite database is a very big difference. Even after a superficial acquaintance it is clear. By means of MQL is much more difficult and, as it seems to me, more costly in time.

When it is written on the matter without unnecessary empty phrases, I can read a little more. This article is written in such a way.

I've long ago made it possible for that data sampling you mentioned. It works for both platforms. And it's described in the articles. It's been done a long time ago. It will be further refined, but later. I don't want to discuss here what is not relevant to this topic.

 
Artyom Trishkin:

I've long ago made it possible for that data sampling you mentioned. It works for both platforms. And it's described in the articles. It's been done for a long time. It will be further refined, but later. I don't want to discuss here what is not relevant to this topic.

Exactly. Artem, you have done it with MQL, but the topic is about SQLite. Even your library would be simpler and more "high-speed" if it used SQLite databases. I was not talking about the absence or impossibility of doing it. I was talking about the simplicity of the solution.