Trade got Stopped but candles never touched my Stop-Loss - What happened?

 

Hi there, 
I placed a short trade on my demo account a few days ago. My trade went well on paper, yet MT5 stopped me even though no candle or wick never touched my SL level.
Have you seen that before and why do you think that is?
I attached pics taken on H1 and H4, but the same phenomenon applies to all timeframes. 

Thanks all for your help
Have a green day



ScreenShot1 - H4

 

ScreenShot2 - H1  
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Account Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Account Properties
  • www.mql5.com
To obtain information about the current account there are several functions: AccountInfoInteger() , AccountInfoDouble() and AccountInfoString() ...
Files:
H4.png  17 kb
H1.png  63 kb
 

It is something about ask price and bid price:

  • a sell opens at the bid price;
  • the charts show bid prices only;
  • the sell order's TP/SL will be triggered when the Ask / OrderClosePrice reaches it.

More: post #1 and post #1 

How to use OrderTotal value as a variable
How to use OrderTotal value as a variable
  • 2023.07.07
  • gabe036
  • www.mql5.com
Hi everyone...
 
PierreY772:

Hi there, 
I placed a short trade on my demo account a few days ago. My trade went well on paper, yet MT5 stopped me even though no candle or wick never touched my SL level.
Have you seen that before and why do you think that is?
I attached pics taken on H1 and H4, but the same phenomenon applies to all timeframes. 

Thanks all for your help
Have a green day



ScreenShot1 - H4

 

ScreenShot2 - H1  

It look like a news event caused this issue. Was there any news?
 Basically when there is a huge volatility, the difference between ask and bid (spread) widens alot and generate such graphs.

 

MT5 - right mouse click on the chart - Proterties - Show ask price line

-------------------

Means:  you made a sell at bid price and sell trade was closed at ask price.

 

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)

 
PierreY772:

Hi there, 
I placed a short trade on my demo account a few days ago. My trade went well on paper, yet MT5 stopped me even though no candle or wick never touched my SL level.
Have you seen that before and why do you think that is?
I attached pics taken on H1 and H4, but the same phenomenon applies to all timeframes. 

Thanks all for your help
Have a green day



ScreenShot1 - H4

 

ScreenShot2 - H1  

Spread spike.

 
Thank you all for your quick and quality responses Sergey, Evren, William and Francisco!
Much appreciated