Download MetaTrader 5

Signal - automatic synchronization problem.

To add comments, please log in or register
Move from theory to practice. Code Base will help you!
Yang Zeng
226
Yang Zeng 2013.06.22 15:27 

 Hi,

 I am a new trader. Before I developed my own EA, I started the trade from the signal provided in MQL5.com.

Normally, it is working fine, but I found some problem. I have read some documents regarding to Signal, but did not figure out the reason.

Can anyone help me?

 

 The problem is that MT5 automatically synchronized the signal, although provider did not perform any trade during that time.

==Detail== 

The history of provider:  

TimeOrderSymbolTypeDirectionVolumePriceProfit
2013.06.20 10:195030785EURUSDBuyIn0.011.32530
2013.06.20 10:395030846EURUSDBuyIn0.021.32390
2013.06.20 10:545031515EURUSDBuyIn0.031.32150
2013.06.20 11:425032616EURUSDBuyIn0.041.31940
2013.06.20 13:215036518EURUSDBuyIn0.051.31850
2013.06.20 16:065040389EURUSDSellOut0.151.321413.3

 

The history of mine account: 

TimeDealSymbolTypeDirectionVolumePriceOrderProfit
2013.06.20 10:192851933EURUSD.ebuyin0.011.3252250307860
2013.06.20 10:392852591EURUSD.ebuyin0.011.3239850314620
2013.06.20 10:542853265EURUSD.ebuyin0.011.3214850321420
2013.06.20 11:422854879EURUSD.ebuyin0.011.3197350337770
2013.06.20 11:532855080EURUSD.esellout0.021.321545033982-2.13
2013.06.20 13:212857551EURUSD.ebuyin0.011.3184550365190
2013.06.20 16:142861427EURUSD.esellin/out0.041.320815040570-1.23


You see before 2013.06.20 11:53, everything is working fine.  

At  2013.06.20 11:53, an automatic synchronization was triggered the logs is like below:

(The timezone is different, so there are 3 hours difference.) 

============== 

2013.06.20 08:53:31 Signal '******': ping to signal server 3136 ms, to trade server 3137 ms
2013.06.20 08:53:28 Signal '
****** ': synchronization finished successfully
2013.06.20 08:53:28 Signal
****** : position [buy 0.04 EURUSD.e 1.3226025 tp: 1.32400] corrected successfully
2013.06.20 08:53:27 Trades
****** : deal #2855080 sell 0.02 EURUSD.e at 1.32154 done (based on order #5033982)
2013.06.20 08:53:27 Trades
****** : order #5033982 sell 0.02 / 0.02 EURUSD.e at 1.32154 done
2013.06.20 08:53:27 Trades
****** : accepted exchange sell 0.02 EURUSD.e at market tp: 1.32400
2013.06.20 08:53:27 Trades
****** : exchange sell 0.02 EURUSD.e at market tp: 1.32400
2013.06.20 08:53:27 Signal
****** : mismatch of position volume, trying to fix [buy 0.04 EURUSD.e 1.3226025 tp: 1.32400]
2013.06.20 08:53:27 Signal
****** : signal provider has position [buy 0.10 EURUSD 1.32152 tp: 1.3240]
2013.06.20 08:53:27 Signal
****** : percentage for volume conversion selected according to the ratio of balances and leverages, new value 25%
2013.06.20 08:53:27 Signal
****** : signal provider has balance 1 064.54 USD, leverage 1:100; subscriber has balance 322.01 USD, leverage 1:100
2013.06.20 08:51:15 Signal
****** : stop levels of position [EURUSD.e] updated

==============   

The signal provider has 0.01+0.02+0.03+0.04=0.1 lot at  2013.06.20 11:53.

I have 0.01+0.01+0.01+0.01=0.04 lot at   2013.06.20 11:53. (Of course, the volume is calculated automatically due to my balance. )

So if the MT5 try to synchronize the signal,  then my account should have 0.1*25%=0.025=0.2.

Since my account has 0.04 lot, then, it will  try to sell 0.04-0.02=0.02.

All of the above calculation  is correct. However, the problem is why the MT5 tried to synchronize my position?

I did not do anything during that time. How to restrict this kind of automatic synchronization at MT5?

 

Thanks a lot and regards. 

Sergey Golubev
Moderator
55331
Sergey Golubev 2013.06.22 15:48  
I do not know about your particular case but you can find about synchronization on this article  General information on Trading Signals for MetaTrader 4 and MetaTrader 5 and on this topic Frequently Asked Questions about the Signals service


In case of connection loss, order placing error, terminal shutdown etc., the account will be re-synchronized with the Signal Source. In this case, the entire Subscriber's and Provider's sets of orders will be checked. Deals closed by the Provider are also closed at the Subscriber's side, while new Provider's deals will be also opened at the Subscriber's side at the price, "which is not worse than the Provider's one".

Yang Zeng
226
Yang Zeng 2013.06.24 06:12  
newdigital:
I do not know about your particular case but you can find about synchronization on this article  General information on Trading Signals for MetaTrader 4 and MetaTrader 5 and on this topic Frequently Asked Questions about the Signals service

Hi,

 

Thanks for the information.

 But I still cannot figure out the reason. There was no network issues, order placing error, or shutdown etc, can be found in the logs.

The only thing I can see is the MT5 tried to sychronize the position without any reason.

It is better that MT5 can allow the user manually to check this or define some pre-condition, once sychronize happened.

 

Regards, 

Alain Verleyen
Moderator
30707
Alain Verleyen 2013.06.24 08:47  
sensezeng:

Hi,

 

Thanks for the information.

 But I still cannot figure out the reason. There was no network issues, order placing error, or shutdown etc, can be found in the logs.

The only thing I can see is the MT5 tried to sychronize the position without any reason.

It is better that MT5 can allow the user manually to check this or define some pre-condition, once sychronize happened.

 

Regards, 

You have to write to ServiceDesk for such issue.
Get in touch with developers using Service Desk!
Get in touch with developers using Service Desk!
  • www.mql5.com
We therefore attach great importance to all user reports about issues in our programs and try to answer each one of them.
Yang Zeng
226
Yang Zeng 2013.06.24 17:36  
Thanks. I will send this to service desk.
Jonatslim
424
Jonatslim 2015.07.06 17:30  
Yang zeng, so what is the verdict for this issue? I have the same problem and it's causing me all my profits...
To add comments, please log in or register