Who can share their experience of using Push notifications in MetaTrader 4 / MetaTrader 5 using MetaQuotes ID? - page 4

 
Wahoo:
It would be great if it were possible to reply to messages from the mobile app as well.

Yes, we are going to include automatic categories (subdirectories) in messages, which will improve navigation. For example, messages from the terminal from 123456 account will go to "123456 Account" directory, messages from MQL5.com to "MQL5 Notification".

For private communication we will allocate a separate MQL5 Messages category, where you can easily correspond with other MQL5.community members


Also, if the length of push messages is limited, it would be possible to send long messages as a few small ones, while now many messages are truncated.

Even when the Android/iOS transport sends shorter messages, the mobile terminal knows how to pump out "long" messages, including missed ones.

But there is no question of very long (longer than allowed) texts. It's about transmitting short, but full unicode messages, and it's obviously longer than the obsolete SMS.

 

It would be great if it were possible to send a message (a command from a standard set, or better if user-created) from the mobile phone to the stationary terminal, such as "Stop machine", "Shorting only", etc.

Imagine the situation: a robot is trading on the stationary computer and happily sends reports and hello to the mobile terminal, we see that something went wrong - how do we stop the robot?

 
joo:

It would be great if it were possible to send a message (a command from a standard set, or better if user-created) from the mobile phone to the stationary terminal, such as "Stop machine", "Shorting only", etc.

Imagine the situation: a robot is trading on the stationary computer and happily sends reports and hello to the mobile terminal, we see that something went wrong - how do we stop the robot?

Of course, it has nothing to do with the Championship, it should not be available there. But it is just great as an ordinary feature.
 
kudos for the great idea
 
MetaDriver:
.... Naturally this has nothing to do with the championship, it shouldn't be available there....

Ohhh....

I hadn't even thought of that. :) Of course, this feature should be disabled in the championship.

 

On a smartphone, no one prevents you from having remote access to the computer with the advisor. However, even if there is no remote access, there is definitely access to the account, even from the same smartphone.

When accessing an account, it is always possible to place a fictitious pending order containing different types of information in several fields at once: OpenPrice, SL, TP, Comment and Magic.

Accordingly, we only need to make up our own system of commands. For example, if there is a very distant pending order with Comment == "Stop", the Expert Advisor will stop trading.

It is clear that in this way you can manage your EA very flexibly, up to setting new input parameters for it. This technique can of course be used on any platform (not just MT4 and MT5).

P.S. It is better to use a stop rather than a limit order. Then the margin will not be eaten. Although, with a minimum volume of pending positions, this factor will practically not play the role.

P.P.S. It would be interesting to discuss methods that allow determining that the EA is not "at the helm". For example, VPS has crashed. The simplest one - permanently modifiable distant pending. Stopped modifying - the EA is down.

 
hrenfx:

On a smartphone, no one prevents you from having remote access to the computer with the advisor. However, even if there is no remote access, there is definitely access to the account, even from the same smartphone.

When accessing an account, it is always possible to place a fictitious pending order containing different types of information in several fields at once: OpenPrice, SL, TP, Comment and Magic.

Accordingly, we only need to make up our own system of commands. For example, if there is a very distant pending order with Comment == "Stop", the Expert Advisor will stop trading.

It is clear that in this way you can manage your EA very flexibly, up to setting new input parameters for it. This technique can of course be used on any platform (not just MT4 and MT5).

P.S. It is better to use a stop rather than a limit order. Then the margin will not be eaten. Although, with a minimum volume of pending positions, this will practically not play the role.

P.P.S. It would be interesting to discuss methods that allow determining that the Expert Advisor is not "at the helm". For example, VPS is dead.

Cool.

Good crayfish are worth their weight in gold.

// This is to say that "for the fishless....". :-)

 
hrenfx:

P.P.S. It would be interesting to discuss techniques to determine that the EA is not 'at the helm'. For example, the VPS is down. The simplest - permanently modifiable distant pending. Stopped modifying - the EA is down.

Yes, I have done so. You can also ping -- on command remote EA should open a distant pending order with some comment, like "Hello world" or re-open the order if it already has one.

And, ugh, just delete the commanded order.

 

After all, only a signal on a smartphone can detect this situation.

Instead of an unreliable second VPS, it should be possible to execute a simple script on the smartphone, sending a command pending.

In other words, the mobile terminal should be able to execute at least the simplest scripts.

Of course, it would be better to be able to store not only trade orders, but at least one command line on the server side.

I.e. in MQL5:

bool SendCommandString( string Command );

string GetCommandString();
Such a solution would allow to nicely get rid of bogus orders.
 
The dummy pending idea is not new and has a HUGE disadvantage - this "command" goes through the trade server, with which there may be no connection and cause thwarts from the robot to the mobile. That's the beauty of push notifications both ways - communication bypassing the trade server.