wrong closing prices problem ?

 

how to fix this wrong closing prices problem ?

i has many of that in my account random closing prices not the take profit price target ?
what to do ?

Extract profit down to the last pip
Extract profit down to the last pip
  • 2019.08.05
  • www.mql5.com
The article describes an attempt to combine theory with practice in the algorithmic trading field. Most of discussions concerning the creation of Trading Systems is connected with the use of historic bars and various indicators applied thereon. This is the most well covered field and thus we will not consider it. Bars represent a very artificial entity; therefore we will work with something closer to proto-data, namely the price ticks.
Files:
fulldata.png  47 kb
wrong.png  5 kb
 
mohamed elsharkawey:

i has many of that in my account random closing prices not the take profit price target ?
what to do ?

1. search about bid ask and compare trade history again

2. check your ea. check if price being normalized in Digits

 
Rajesh Kumar Nait #:

1. search about bid ask and compare trade history again

2. check your ea. check if price being normalized in Digits

look for that 
Files:
wrong.png  5 kb
 
mohamed elsharkawey #:
look for that 
check the code of your ea. if you do not have the code, then, check with the author.
 
Michael Charles Schefe #:
check the code of your ea. if you do not have the code, then, check with the author.

everything is ok with my code 

that's a software problem 

 
mohamed elsharkawey #:

everything is ok with my code 

that's a software problem 

ask your broker. if it happens often, then i suggest that you change brokers.

but this is a technical forum. the only evidence of the issue is 2 images that show micro price changes that can be explained many many ways. so without any code to analys any advice is based on guesses. These issues are most commonly caused by the code of the ea. but again -- without see your code, we can only make guesses.

EDIT: if you want help -- then why did it take you over 2 weeks to respond? No one will join a discussion that the op does not answer within a couple days.
 
Michael Charles Schefe #:

ask your broker. if it happens often, then i suggest that you change brokers.

but this is a technical forum. the only evidence of the issue is 2 images that show micro price changes that can be explained many many ways. so without any code to analys any advice is based on guesses. These issues are most commonly caused by the code of the ea. but again -- without see your code, we can only make guesses.

EDIT: if you want help -- then why did it take you over 2 weeks to respond? No one will join a discussion that the op does not answer within a couple days.

i talked to them and they told me it's not there problem 

that reply had take over 2 weeks to respond because i was busy looking for an alternative broker already who can do better 

and i did't found that yet so i think that's the main software problem  

 
mohamed elsharkawey #:

i talked to them and they told me it's not there problem 

that reply had take over 2 weeks to respond because i was busy looking for an alternative broker already who can do better 

and i did't found that yet so i think that's the main software problem  

then i apologize. but you should have explained all of that before.

Like i said if it happens often then i recommend that you change brokers. But on some brokers can can happen often if the broker is a real ECN broker and your account is a raw type, non commission. However there are several other possible reasons including suspicious activity by a broker -- that is if it happens often. It often happens if the closing strategy is closing a trade in "parts". They way to find out if that trade is closed as a part of the whole, is to check in your deals page and find the deail that happened at the same time as in your image.

But again, these usually happen due to coding. And without confirming this first, then, almost everyone will assume that it is your coding and they will not join the discussion as you have not shown your code.

 

There are several possible reasons why your positions are not closing exactly at the Take Profit price:

  • Spread: Buy positions close at the Bid price, while Sell positions close at the Ask price. A changing spread can make the closing price appear different from your TP.
  • Slippage: During high volatility or news events, the execution price may differ from the requested TP.
  • Execution model: Market execution and broker liquidity can affect the final fill price.
  • Partial closes or EA logic: If you’re using an EA, check whether it performs partial closes, trailing stops, break-even, or manually closes positions before TP is reached.