Build 198 bugs...

 
Hi Metaquotes,

Quite a number of times each day, I'm getting orders rejected by the trading server with an "[Invalid S/L or T/P]" error, only to have the order accepted if I try it again. The section of log below shows this for a USDCAD trade...


10:30:00 '457682': instant order sell 12.50 USDCAD at 1.1240 sl: 1.1249 tp: 0.0000
10:30:00 '457682': order sell 12.50 USDCAD opening at 1.1240 sl: 1.1249 tp: 0.0000 failed [Invalid S/L or T/P]
10:30:06 '457682': instant order sell 12.50 USDCAD at 1.1240 sl: 1.1249 tp: 0.0000
10:30:06 '457682': request was accepted by server
10:30:06 '457682': request in process
10:30:06 '457682': order was opened : #3916326 sell 12.50 USDCAD at 1.1240 sl: 1.1249 tp: 0.0000

The S/L price is calculated by adding/subtracting the stop level (marketInfo("<Currency pair>, MODE_STOPLEVEL)) to/from what will become the closing order's price - for instance, the price used for an S/L for a BUY order would be calculated as Bid minus the stop_level. I understand that for a market order, this is the minimum distance that an S/L can be placed from an entry price?

Another bug I've noticed is that if quotes are deleted using the "Tools" -> "History Centre" option, the quotes are only deleted for that session - i.e. If MetaTrader is shutdown and restarted, the "deleted" quotes are present again.
 
Don't forget about another side - side of trade server. This is no bug.

About second bug. I cannot reproduce it. Please describe your actions step by step.

BTW if You report about bugs please inform us about your client terminal build and date
 
Hi Slawa,

I seem to have fixed the first problem by adding 1 more point to the minimum stop level. It seems that when an order is placed in fast moving markets and the minimum amount of points (stop_level) between the entry price and an S/L or T/P price is used, the number of "stoplevel" points is often two tight....

re: The second bug.

1. Go into History Centre (F2)
2. Select a currency pair and time period to display the quotes.
3. Delete a quote by highlighting a quote and pressing the delete button.
4. The quote appears deleted. If History Centre is closed and opened again, the quote still appears to be deleted.
5. However, if MetaTrader is now shut down and restarted and you go back into the History Centre, the "deleted" quote appears again.

As far as me mentioning the client build number is concerned, I did this in the title of this thread.


Regards,

Coen Willemse
 
Ok. I'll try reproduce

FYI there are 3 198-th builds with different dates.
 
Ok. I'll try reproduce

FYI there are 3 198-th builds with different dates.





Hi slawa,

Well, I've just download the latest version (Build 200) and the problem seems to be fixed.
Reason: