I use Pending orders in my trading, which I sometimes place manually and sometimes strategically with BuyStop and BuyLimit. But I often find that the pending order gets crossed with trades but it is not triggered and does not place a real order, what is the reason?

: General errors

If you in the MoonBot terminal place pending orders (Pending order) in the red or green glass manually or with strategies (BuyStop or BuyLimit pending order type), the pending order has two lines:
– a solid (trigger) line through which the price line must pass (not crosses with trades) and if it triggers, it disappears from the chart.
– a dashed line (the place of placing a Buy order), after the solid line has triggered and disappeared from the chart, a real Buy order is immediately placed in place of the dashed line.
It is possible to adjust the position of the dotted line and set it above or below the solid line in order to buy a coin right after placing a Buy order or to place a Buy order within the spread or below the spread in the trading window at some distance from the market. The dotted line is displayed on the tab “Settings Interface” – tick the box “Draw pending orders buy price”.
When manually placing pending orders, the distance from the dotted line to the solid line is set in the “Pending orders spread” field of the Settings – User Interface – you should set the values with the plus or minus sign in those fields, which will affect the distance and position (above or below the solid line) of the dotted line against the solid line.
During automatic placing of the pending orders (BuyStop and BuyLimit) the distance from the dotted line to the solid line is set in the strategy settings on the Buy conditions tab by the value in the PendingOrderSpread parameter, which should be written with a plus or minus sign, according to your algorithm.
So, in your case, the pending order did not trigger, since the price line did not cross it (a solid line of the pending order), and the crossing was only with crosses of trades, which do not trigger the pending order. To be sure of this, disable the crosses on the chart using the Show market history button (on the main window of the MoonBot terminal the second button to the right of the Auto Scale button) and leave only the price line. Exactly it must cross the solid line of the pending order, so that the pending order (solid line) will be triggered, disappear from the chart and put the Buy order in place of the dotted line.