My EA ignore the TP on the tester

 
Some times my EA exceed the TP and ignore it until the signal reverse and converted to lose. any one have an idea why it behaves like this on the tester?
 
Do you have the code?
 

It could be one of these reasons ... 

- Your TP could be less than StopLevel defined by your broker ...

- You may be use Bid price to open Buy orders in some places of your code instead of Ask.

- You may be use Ask price to open Sell orders in some places of your code instead of Bid. 

- Slippage !.

- Price re-quote during order modify to put the TP price !.  

Reason: