I have both long and short orders set up in the MoonBot terminal, but after placing an order in long position, short orders are not placed and the log shows the following entry: Market XXX is opened in Long position, how can I fix this?

: Log errors

For some strategies the SamePosition parameter is used (place subsequent orders in the direction of the open position), if SamePosition=YES and, for example, a long position was opened, then subsequent orders will also be placed in long position, but if you try to place orders in short position MoonBot will reject this action and indicate in the log the reason: Market XXX is opened in Long position. You need to use this setting correctly or make copies of strategies for long and short orders separately.