All cryptocurrencies get valued against a base trading pair. Price rises or falls in the base trading pair can cause these other coins value to rise or fall significantly. The base trading pair is defined in the
price_trigger_market
setting.
ProfitTrailer will watch the base trading pair to determine if there is a significant increase or decrease in the value of that coin. The length of time the bot will look back at is 24 hours by default but SOM_trigger_length can be configured to change the number of 5 minute candles to look back. The bot will go into Sell Only Mode if the price change meets the below triggers. This is useful to protect against large market swings if a big price swing changes the market dynamics.During times of high or low volatility the number of buys and sells may also vary significantly so ProfitTrailer also monitors these to determine if it needs to enable Sell Only Mode.
The Sell only Mode triggers are optional settings used to control risk with the bot. Set these carefully if you wish to control when the bot buys.
When SOM is enabled no more purchases will be made. The bot will however continue to make sales.
Sell Only Mode (SOM) can be automatically turned on when the triggers in pairs_config are tripped by a rising or falling market, or by consecutive buys.
The below explanations all assume
price_trigger_market = BTC
The Sell Only Mode (SOM) settings are enabled / disabled automatically as described below.
SOM can be manually enabled or disabled by clicking on the SOM button in the browser footer.
# This is to protect against Bitcoin rising (aka mooning) automatically turns on/off SOM as required.
price_rise_trigger = 7
price_rise_recover_trigger = 6
See here for details on what these triggers do.
# This is to protect against Bitcoin dropping in price it automatically turns on/off SOM as required.
price_drop_trigger = 10
price_drop_recover_trigger = 3
See here for details on what these triggers do.
When the market is going sideways and the base trading pair is range bound you may choose to enable SOM so that you do not buy further coins until a definite trend is established up or down. This prevents buying into large downward trend changes i.e. falling knives.
# Protect against large market swings by turning on sell only mode.
consecutive_buy_trigger = 6
# Turn off sell only mode if we got x consecutive sells with no buys in between
consecutive_sell_trigger = 4
See here for details on what this trigger does.
Using the example settings above the logic for the Consecutive Buy trigger setting works as follows:
Advanced traders may choose to override these SOM protection mechanisms to suit your trading style and risk aversion level.
Should you wish to do so:
- A reset of a live bot does not disable consecutive SOM as this is based on your trade history.
- A reset of a test bot will reset it; Or will when you restart or turn it off.
- There are a number of messages that may appear in the PBL and other logs in regards to regarding the current SOM STATE. The STATE is maintained by the bot so it does not accidentally enable or disable SOM.
- If you are unsure what a message means the Web Interface Guide explains most of them with links to the relevant parameters.
One commonly asked question is in regards to the SOM messages that appear is:
SOM STATE UNKNOWN - this means exactly what it say that the current SOM state for this trading pair is unknown at present due to missing data from the exchange.
The bot is unable to determine if it should be in SOM or not. Ensure your SOM_trigger_length and Sell only mode settings are not blank (set to 0 to disable).
Check your connection to the exchange is still good. Restarting the bot may resolve this if it is a connection issue.