EA close order with a price which is never reached

 

Sometimes my orders are closed for a price, which was never reached.

The EA is programmed like this:

if( loss > 150.0) { close Order; }

Could it be, that the visual picture shows not the correct price or is it a problem with the brooker ?

 
24hworker:

Sometimes my orders are closed for a price, which was never reached.

The EA is programmed like this:

if( loss > 150.0) { close Order; }

Could it be, that the visual picture shows not the correct price or is it a problem with the brooker ?

What was the Spread when that Order was closed ? and what is the difference between the open price and the close price ?
 

Also sometimes bad tick information gets transmitted - it only takes one tick.

1) complain to broker

2)Get a new broker if rusult unsatisfactory.

 
24hworker: Could it be, that the visual picture shows not the correct price or is it a problem with the brooker ?

Neither.

Mt charts are Bid charts. The Ask is always higher than the bid. So when you open a buy or close a sell, the mark will be higher than the bid at that moment by the spread.

Turn on the ask line (options -> chart)

Reason: