good day!
Dear gurus, I am writing an expert Advisor on MQL5, which should type orders on the market in one direction without averaging. The global account with a broker just to trade.
the situation is as follows: the adviser opens the first order in long, for example, at a price of 10 rubles. Then a signal appears and it opens a new long order at the
price of 20 rubles. The problem is that it leaves one position at the price of 15 rubles… How to make it so that there are two positions left at the price of 10 rubles and at the
price of 20 rubles without averaging.
there can be many positions. Martingale is not used, as is locking.
elanser
Clear. Thanks.
genino
You need to open a hedging account if it is not an exchange. For the exchange, only netting.