Colleagues, good afternoon. You probably encountered a problem when writing robots because of the spread, when you need to place orders for sale in a row, one after another, and once for purchase. Since I have a large number of simultaneously market and pending orders with different tp, sl, open at ask prices, in the market at bid prices and Vice versa,…. I’m confused where to subtract or add the spread… I need something that will make it easier to work – formulas, programs, anything…
2. I read Somewhere that tickets can change and it is better to assign magic and focus on it-Yes or no, explain.
Thanks!
stells
1. Just remember that buy orders are opened by ask, and closed by bid, including stops and takeprofits.Sell orders are opened by bids, closed by ask. 2. It is better to assign a magic number.