Forum

Problem demo account and XAUUSD orders

Hi everyone, I'm quite new to MetaTrader, and I'm really enjoying it and learning a lot, but there are some things I don't quite understand, and I hope you can help me. For now, I'm using a demo account with IC Markets. I've created an EA that seems to work quite well with XAUUSD during backtesting

Sell Stop and Buy Stop closing

Good morning, I have a problem with sell stop and buy stop orders. I create them without stop loss only with take profit but they close by themselves as soon as they open and I don't understand what is happening. If anyone can help me I would be very grateful. Thanks