Download MetaTrader 5

Magic number in pending orders.

To add comments, please log in or register
a-nazarzadeh
15
a-nazarzadeh  

Hi.

The problem is, when I set a pending order by my EA in strategy tester with magic number 1:

OrderSend(Symbol(),OP_SELLSTOP,lot*n1,sell_price,0,sell_stop,NULL,"",1,NULL,Blue);

And when the SELL trade get opened in specified price, it's magic number automatically would be 1.

But in my real account, the pending request with magic number of 1 will be change to 0 on price match.

Is this the default behavior in mt4 server?

If yes, why it is modeled  differently in strategy tester.

And if no, how can I fix it, is this a configuration issue on my broker side?

Thanks.
 

Alain Verleyen
Moderator
33800
Alain Verleyen  
I am afraid you will have to deal with it. Try asking to your broker.
whroeder1
16555
whroeder1  

a-nazarzadeh:

But in my real account, the pending request with magic number of 1 will be change to 0 on price match.

Is this the default behavior in mt4 server?

If yes, why it is modeled  differently in strategy tester.

And if no, how can I fix it, is this a configuration issue on my broker side?
 

  1. Shouldn't be, defeats the purpose of a MN.
  2. Not on any broker I've used.
  3. N/A
  4. You can't. Tell your broker to fix their server. If they won't find a different one.
a-nazarzadeh
15
a-nazarzadeh  
Alain Verleyen:
I am afraid you will have to deal with it. Try asking to your broker.

Thank you, I'm trying to describe the problem for them.
But for more clarification, do you approve that it's the default behaviour which the 
pending order magic number will become the activated SELL/BUY magic number? 

Alain Verleyen
Moderator
33800
Alain Verleyen  
a-nazarzadeh:

Thank you, I'm trying to describe the problem for them.
But for more clarification, do you approve that it's the default behaviour which the 
pending order magic number will become the activated SELL/BUY magic number? 

Yes it should be.

I suppose you are sure the MN was changed ?

Please keep up posted.

a-nazarzadeh
15
a-nazarzadeh  
whroeder1:
  1. Shouldn't be, defeats the purpose of a MN.
  2. Not on any broker I've used.
  3. N/A
  4. You can't. Tell your broker to fix their server. If they won't find a different one.

Thank you, I hope to find a way to manage the problem with current broker.

a-nazarzadeh
15
a-nazarzadeh  
Alain Verleyen:

Yes it should be.

I suppose you are sure the MN was changed ?

Please keep up posted.


Not only the MN was changed but also the hovering tooltip of trade record was changed to "placed manually" instead of "placed by expert"!

To add comments, please log in or register