Buy Limit and Sell Limit
-
I can not find the buy limit and sell limit block.
What block is it? -
Buy or Sell Pending Orders
-

-
How do I choose buy stop or buy limit?
sell stop or sell limit. -
pending orders must be negative for limit orders
-
@delibalta Some example?
Thank you. -
-
@delibalta Thank you
-
When I made the blocks to create pending orders, I didn't know what Stop and Limit orders are. And to be honest, I still don't know which one is above and which one is below the price, this will remain a mystery to me forever... because I don't care, honestly. I always imagined the orders "above" and "below" the current price. So the block will decide the type of the order depending on where the open price is - above or below the current price. You need to provide the open price. By default it is 20 pips above the current price:

... but if you make this value negative, it will be 20 pips below the current price, the order will be the opposite type

-
@fxdreema Thank you
-
hello,
I am reopening this topic because I insist that it is necessary to have the option to define if the order is stop or limit type. The markets today are operated by robots on virtual servers that respond in less than 1.0ms, so when MT5 identifies and returns the programmed command, the price that was lower may have changed and be higher, so an order that should be limited and executed at the defined minimum value or at a better price if the market moves in favor, it will be converted to a stop order, which will be matched to the market price after being triggered. In scalp programs where margins are increasingly smaller, it is essential that there is the possibility of placing mandatory limited buys and sells.