Execution settings and quote mode for Live accountsBots on real accounts now have access to settings for the algorithm of placing orders for entering and exiting positions. The current result is also calculated based on these settings, including for triggering stop-loss.Orders are placed simultaneously for two securities in one or two series of attempts. Each series configures the number of attempts and a common timeout between attempts.For each security in the first series of attempts, two order placement modes are available:Taker - essentially a market order, a limit order is placed in the order book with a specified offset from the opposite side of the transaction. If we are buying, then we set the price at Best Ask + offset. If selling, we set the price at Best Bid - offset. The offset is expressed in price steps, which is always 1 cent for American stocks. If the offset is positive, we almost guarantee a hit on the opposite side of the book and receive execution.Maker - the order is placed on the side of the book corresponding to the transaction with the specified offset. If we are buying, then we set the price at Best Bid + offset. If selling, then at Best Ask - offset. With an offset=1, we become the best buyer/seller.The offset can take negative values. This will improve the entry price but significantly reduce the likelihood of executing trades.Between attempts, the algorithm determines the order price based on the current one—that is, it adjusts the order price. However, it is important to note that it does this independently for each security. This means that during this time, the spread can change, and we may enter at a worse or better spread. The likelihood and magnitude of this discrepancy depend on the quoting time (number of attempts * timeout).For guaranteed execution of entry and exit signals, two series of attempts are made. If the robot fails to enter in Maker mode at good prices on the first attempt, it compensates by buying 'at market' in Taker mode. Therefore, in the second series of attempts, you cannot select Maker mode.As a result, such an algorithm executes the order no worse than the current implementation, but in some cases and depending on the settings, it may get better prices, ideally not losing on the bid-ask spread.To assess the effect of quoting, two indicators have been added to the detailed information in each closed transaction:Theoretical max spread loss - the worst losses from the bid-ask spread (if we buy at asks and sell at bids compared to buying at bids and selling at asks).Execution gain - the profit from quoting - the difference between the transaction result at the worst prices (if we buy at asks and sell at bids) and the actual result.Quoting settings can be changed in the bot at any time, except during buying and selling states, when the robot is directly engaged in placing orders.By default, all running and newly created bots have the execution settings shown in the screenshot above, which means that the quoting step is enabled. Within the first 10 seconds, the bot attempts to lock in the best prices, so hanging during entry/exit from the transaction for 10-15 seconds (or according to your settings) is normal behavior.It is recommended not to change the default settings initially and to observe the gains they bring.Calculation of the current result of a transaction depending on quoting settingsIf Taker mode is selected in the first step, the current result is calculated using the best indicator on the opposite side of the book. For selling - Bid, for buying - Ask. With a large bid-ask spread, this could lead to an unexpected triggering of the stop-loss, but the loss will likely be within the specified maximum stop-loss.If Maker mode is selected in the first step, the current result is calculated using the best value on the side of the book corresponding to the transaction. For selling - Ask, for buying - Bid. This will make the stop triggering more understandable and independent from the bid-ask spread. However, if execution in Maker mode fails and the bot exits 'at market', this can lead to a loss exceeding the specified maximum stop-loss.Change in Order Execution on Virtual AccountsFor all types of virtual accounts, the execution has been changed from the worst prices to the best ones. For selling, the Best Ask is used, and for buying, the Best Bid. As a result, the execution outcomes will be better than on a real account. As we accumulate statistics on the profits from quotes on real accounts, we will adjust the execution to more accurately reflect reality.Other ChangesWhen moving between detailed bot transaction windows, transactions are now displayed for the current bot (bug fix).Added news to the detailed bot view.