why MT5 trailing stop closed position 300 points above current price?

 

Why MT5 (trailing stop) closed position, when price was 300 points below trailing stop level? Position has been closed at price 8.69365 when high on this candle was 8.69172? It wasn't around midnight, so spread shouldn't be big, also chart is not showing any spread at this moment at all. (Account with Raw Spread). 

Chart GBPDKK, M1, 2023.07.12 18:15 UTC, Raw Trading Ltd, MetaTrader 5, Real
 
AlanKowalczyk:

Why MT5 (trailing stop) closed position, when price was 300 points below trailing stop level? Position has been closed at price 8.69365 when high on this candle was 8.69172? It wasn't around midnight, so spread shouldn't be big, also chart is not showing any spread at this moment at all. (Account with Raw Spread). 

The answer is within your question and it is spread.

Spread around mindnight for most instrument is very high and in some brokers extremely high, as high as 200-300 points for some forex pairs.

 

You buy at the Ask and sell at the Bid. Pending Buy Stop orders become market orders when hit by the Ask.

  1. Your buy order's TP/SL (or Sell Stop's/Sell Limit's entry) are triggered when the Bid / OrderClosePrice reaches it. Using Ask±n, makes your SL shorter and your TP longer, by the spread. Don't you want the specified amount used in either direction?

  2. Your sell order's TP/SL (or Buy Stop's/Buy Limit's entry) will be triggered when the Ask / OrderClosePrice reaches it. To trigger close at a specific Bid price, add the average spread.
              MODE_SPREAD (Paul) - MQL4 programming forum - Page 3 #25

  3. The charts show Bid prices only. Turn on the Ask line to see how big the spread is (Tools → Options (control+O) → charts → Show ask line.)

    Most brokers with variable spreads widen considerably at end of day (5 PM ET) ± 30 minutes.
    My GBPJPY shows average spread = 26 points, average maximum spread = 134.
    My EURCHF shows average spread = 18 points, average maximum spread = 106.
    (your broker will be similar).
              Is it reasonable to have such a huge spreads (20 PIP spreads) in EURCHF? - General - MQL5 programming forum (2022)

 
Comments that do not relate to this topic, have been moved to "Off-topic posts".