For some algorithms in the MoonBot terminal, it is required to try to close it as quickly as possible after buying a coin, for example, when using emulator strategies that should give a trigger key to launch another real strategy, but at the same time leave the date and time of the trigger in the emulator report for subsequent analysis of the initial detection. Or for real strategies where a high position closing rate is required. Such an instant closure of a position after purchase can be implemented through a special setting in the Stops section of the strategy settings.
To do this, install:
UseStopLoss = YES
FastStopLoss = YES
StopLossEMA = 0
StopLossDelay = 0
StopLoss = 10
StopLossSpread = 2
In this case, the Sell order after the purchase is immediately set to the value (purchase price – StopLossSpread), thus an instant sale of the position occurs immediately after the purchase.
In this case, the log will contain an entry like: Immediate StopLoss: sell price is [actual buy – StopSpread%]: 106.06 – 2.00% = 103.94