Discussion of article "Using cloud storage services for data exchange between terminals"

 

New article Using cloud storage services for data exchange between terminals has been published:

Cloud technologies are becoming more popular. Nowadays, we can choose between paid and free storage services. Is it possible to use them in trading? This article proposes a technology for exchanging data between terminals using cloud storage services.

Launch the bridge application. Make sure that the client-secret.json file containing the data (received from the Google service) for connecting to the cloud storage is located in the application folder. Then run one of the MetaTrader applications. When accessing the cloud for the first time, the bridge application launches the default internet application with the Google account sign-in page.

Google account sign-in page

Author: Dmitriy Gizlyk

 

1. tell me what speed can be achieved when exchanging, for example, to implement copiers using this method?

2. I would like to use all this without DLL, otherwise it will be impossible to distribute through the Market, so I need a solution in MQL5\MQL4.

 
Alexandr Gavrilin:

1. tell me what speed can be achieved when exchanging, for example, to implement copiers using this method?

2. I would like to use all this without DLL, otherwise it will be impossible to distribute it through the Market, so I need a solution in MQL5\MQL4.

Good day,
I will answer you point by point:
1. In the example above, there is a parameter responsible for the refresh rate in seconds. By setting the minimum value, you can achieve a refresh rate of 1-2 seconds. Much depends on the speed of the Internet and the amount of data transferred.
2. In mql5/mql4 there is only one function to send requests to the Internet pages WebRequest. Personally, I don't know how to organise the whole process through this function.
Regards,
Dmitry.
 

Good afternoon.

Is it possible to implement some kind of notification system about file changes in the cloud? So that the client would not access it on a timer, but only on receipt of a signal

 
Could you tell me where to get the CopyObject.mqh library you are using?
 
Andrei Novichkov:

Good afternoon.

Is it possible to implement some kind of notification system about file changes in the cloud? That the client would not turn there on a timer, but only on receipt of a signal

Good afternoon,
If we are talking about push notifications, I haven't asked myself that question and haven't looked for such a feature on Google. If we are talking about checking for file updates in the application-bridge, then for such implementation we will have to organise constant updates in the application, save which client needs which files and keep the pipe-connection open all the time (because mql5 can connect to a pipe-connection, but cannot create it). This option will be even more labour-intensive for the PC processor.

Regards,
Dmitry.

 
Sergey Zhukov:
Could you tell me where to get the CopyObject.mqh library you are using?

I apologise, I missed it when I was attaching files to the article. The library is in the attachment.

Regards,
Dmitry.

Files:
CopyObject.mqh  16 kb
 
Dmitriy Gizlyk:

I apologise, I missed it when I was attaching files to the article. The library is in the attachment.

Regards,
Dmitry.

Everything works, the lines are copied, but only with your account, I change your client_secret.json file to my own, but the Google account access identification application itself does not start and as a consequence the token in drive-bridge.json is not created.
 
Dmitriy Gizlyk:

Good day,
If we are talking about push notifications, I haven't asked myself this question and haven't looked for such a feature in Google. If we are talking about checking for file updates in the application-bridge, then for such an implementation we will have to organise constant updates in the application, save which client needs which files and keep the pipe connection open all the time (because mql5 can connect to a pipe connection, but cannot create it). This option will be even more labour-intensive for the PC processor.

Regards,
Dmitry.

Google has such a possibility, I've seen implementations in Java. However, in this case, this mechanism (push notifications) may be too slow. Especially if we are talking about something like a copier.

I had in mind some analogue to Windows' "file system change notifications". I thought that perhaps the implementation of such a mechanism is already somewhere in the API.

 
Sergey Zhukov:
Everything works, lines are copied, but only with your account, I change your client_secret.json file to my own, the Google account access identification application itself does not start and as a consequence no token is created in drive-bridge.json

Delete the existing drive-bridge.json

 
Andrei Novichkov:

Google has such a feature, I've seen implementations in Java. However, in this case, this mechanism (push notifications) may be too slow. Especially if we are talking about something like a copier.

I had in mind some analogue to Windows' "file system change notifications". I thought that perhaps the implementation of such a mechanism is already somewhere in the API.


I have not seen such an implementation.