0

Reading Gunbot logs

You are here:
< Back

Gunbot logs contain most of the information it works with. This article provides an overview of the different sections in these logs, and explains how to read them.

This article applies to all strategies except Emotionless, which has intentionally limited log output.

Trailing

When you are using a strategy that contains trailing, the first section of a pairs log cycle will contain all information related to trailing. Let’s have a look at the log output for a pair running TSSL as strategy.

Log entries for TrailMe! trailing look almost identical and follow the same logic as described below, only the starting points for trailing are different.

logs-trailing

Buy trailing (red dashed lines)

Entry Description
TrailingBuy limit The lower limit for trailing, as defined by the set buy range. This value is updated every cycle, following price movement for Last price.
Last price Current lowest ask price.
Target to buy Starting point for buy trailing, a percentage from the lowest EMA as defined with BUY_LEVEL.
Stop limit The upper limit for trailing, as defined by the set buy range. This value is updated every cycle, following price movement for Last price.

A buy order will occur when Last price crosses up Stop limit and is above lowest EMA.

When the logs state that the price is in range, that means the current price is between Stop limit and TrailingBuy limit.

Sell trailing (green dashed lines)

Entry Description
TrailingStop limit The upper limit for trailing, as defined by the set sell range. This value is updated every cycle, following price movement for Last price.
Last price Current highest bid price.
Target to sell Starting point for sell trailing, a percentage from the averaged bought price as defined with GAIN.
StopLoss limit The lower limit for trailing, as defined by the set sell range. This value is updated every cycle, following price movement for Last price.

A sell order will occur when Last price crosses down StopLoss limit after it was in range and respects GAIN.

When the logs state that the price is in range, that means the current price is between StopLoss limit and TrailingStop limit.

If you’ve set TSSL_TARGET_ONLY to false, sell orders would also be placed without respecting GAIN. This can only be used for TSSL, not for TrailMe!

The “grid”

The so called grid area contains all information about core checks, indicators and trading checks. This section should always show for cycles processed correctly.

logs-grid

Core checks

Entry Description
Stop limit hit Indicates if current prices hit or exceeded the set STOP_LIMIT.
Can we buy Shows YES when you don’t own quote currency and market conditions meet the strategy buying criteria.
Can we sell Shows YES when you own quote currency and market conditions meet the strategy selling criteria.
Panic sell Indicates if PANIC_SELL is enabled or not.
Can average When DOUBLE_UP is enabled, this shows YES when doubling up is possible according to DU_METHOD and DU_CAP_COUNT.
REVERSAL TRADE Indicated if a pair is in reversal trading. Shows YES when REVERSAL_TRADINGis enabled and an RT_BUY has been performed and no buyback order took place yet.

Indicators

The indicators section shows all indicators as calculated by Gunbot.

Trading checks

Entry Description
Ask Current lowest ask price.
Bid Current highest bid price.
Base Balance Total available balance of base currency.
Quote Balance Total available balance of quote currency.
Quote On Orders Amount of quote currency currently in open orders.
Avg bought price The average bought price. Paid trading fees are considered in how the average bought price is calculated.
Strategy Strategy used for this pair.
ENTRY POINT The price to buy, according to your strategy settings. For example with a pure Bollinger Bands strategy, you’d see a price x% above the lower Bollinger Band. For strategies without a clear entry point, for example when additional confirming indicators are used, the price to buy according to BUY_LEVEL is shown here.
EXIT POINT The price to sell, according to your strategy settings. For example with a pure Bollinger Bands strategy, you’d see a price x% below the upper Bollinger Band. For strategies without a clear exit point, for example when additional confirming indicators are used, the price to sell according to GAIN is shown here.
STOP LIMIT The stop limit calculated as average bought price minus STOP_LIMIT.
XTREND Shows the trend as measured by XTREND. Only used for Stepgain.
LAST TRADE P/L Percentage of gain of the last strategy sell order, taking into account average bought price and TRADING_FEES.
BASE LAST TRADE P/L Absolute gain of the last strategy sell order, taking into account average bought price and TRADING_FEES.

Opportunities

The last section contains information about the current buy or sell cycle.

logs-opportunities

Often this table will be almost blank, showing that no new opportunities could be found. This is normal and just means the bot is waiting for strategy buying or selling conditions to appear.

  • Share post