Gunbot wiki
Wiki em português
English
English
  • Welcome to the Gunbot wiki
  • About
    • What's new?
      • New in v22
      • New in v20
      • New in v18
      • New in v16.7+
      • New in v16
      • New in v15
      • New in v13 / v14
      • New in v12
      • New in v11
      • New in v10
      • New in v9
      • New in v8
      • New in v7
      • New in v6
    • Supported exchanges
      • Creating API keys
      • Websockets support
    • License info & system specs
      • How to create a wallet
    • Purchasing Gunbot
  • Setup & general settings
    • Installation & startup
      • Quickstart guide
      • Download software
      • Windows installation
      • macOS installation
      • Linux installation
      • ARM installation
      • How to enable SSL/TLS
      • Running multiple instances
      • Headless mode
    • Global settings
      • Import settings
      • Bot settings
      • Cancel orders
      • Advanced
    • Profile settings
      • Exchanges
      • Gunthy wallet
      • Edit license
      • GUI authentication
      • Telegram
      • Tournament
  • How to work with Gunbot
    • Learning the basics
      • Trading logic
      • Important settings
      • Order types
      • Period
      • Trailing
      • ROE trailing
    • Strategies & pairs
      • Easy edit
      • Strategy editor
      • Trading pairs
        • Pair processing
    • Chart & results
    • Extra modules
      • AutoConfig
      • Backtesting
      • Code editor
      • TradingView Alerts
        • IMAP listener
      • Alerts (beta)
  • Trading strategy options
    • About Gunbot strategies
      • Trading methods
      • Protections
    • Regular strategies (spot trading)
      • ADX
      • ATRTS
      • Bollinger Bands
      • Bollinger Bands (TA)
      • EMA spread
      • Emotionless
      • Gain
      • Ichimoku
      • MACD
      • MACDH
      • Pingpong
      • Stepgain
      • Spotgrid
      • Spotgrid Advanced
      • StepGrid
      • SMA cross
      • Support / Resistance
      • Tssl (trailing stop / stop limit)
      • Time series analysis
    • Margin trading strategies
      • ADX
      • ATRTS
      • Bollinger Bands
      • Bollinger Bands (TA)
      • EMA spread
      • Futures Grid
      • Gain
      • Ichimoku
      • MACD
      • MACDH
      • Pingpong
      • Stepgain
      • SMA cross
      • Tenkan
      • Tssl (trailing stop / stop limit)
      • Time series analysis
    • Custom strategies
    • Balance settings
    • Confirming indicators
    • Dollar Cost Avg (DCA)
    • Reversal trading (RT)
    • TrailMe
    • Misc settings
  • More
    • Config marketplace
  • Various
    • Backups
    • Logs
    • Handling bags
    • Acronyms
  • Troubleshooting
    • Critical errors
    • Bot does not trade
    • Reset password
Powered by GitBook
On this page
  • Buy trailing
  • Sell trailing
  • Take Buy
  • Take Profit

Was this helpful?

  1. How to work with Gunbot
  2. Learning the basics

Trailing

How to work with price trailing for various order types.

PreviousPeriodNextROE trailing

Last updated 5 years ago

Was this helpful?

Trailing is an important concept in Gunbot. When buying, it allows for aiming for a lower entry price than strategy criteria would otherwise realize. When selling, it allows for higher profits, while locking in profits while trailing ranges move upwards along with price.

Many different order types can use trailing, the basic principles are always the same:

  • Trailing is purely based on prices, not on indicators.

  • When confirming indicators are used, trailing must finish while their conditions are still met.

  • When buying, the ask price is used as reference. When selling, bid is used.

  • Ranges for trailing are defined as a percentage of the best bid or ask price. Bid is used when selling, ask is used when buying.

  • When price moves in the direction of your target, ranges are set around bid/ask every round.

  • When price moves in the opposite direction of your target, trailing limits are frozen.

  • Ranges are reset when price moves outside of the target.

Buy trailing

The same basic process applies for most kinds of buy trailing (exception: Take Buy). The example below shows how trailing works for buying with the .

When trailing with tssl, the most important part to know is that trailing must finish below Buy Level. Make sure to set a Buy Level that leaves enough room for trailing.

Other types of buy trailing, like DU trailing, follow the exact same trailing logic, but the threshold below which trailing must finish is different.

Type of trailing

Must finish below / while

TrailMe Buy

While other strategy buy criteria are met

TrailMe DU

Below DU Buydown

TrailMe RT Buy

Below RT Buy Level

Tssl

Below Buy Level, while other strategy buy criteria are met

Sell trailing

This example looks more complicated than the buy example above, because the concept of resetting trailing limits is now visualized.

Important to know about sell trailing with tssl is that the StopLoss limit must be above your setting for gain before trailing can finish. Make sure that you leave enough room for this to happen, either by setting a modest gain, or by using a small sell range.

Other types of sell trailing behave in the same way, but instead of gain a different reference point is used.

Type of trailing

Must finish above / while

TrailMe Sell

While other strategy sell criteria are met

TrailMe RT Sell Up

Above RT Sell Up

Tssl

Above Gain, while other strategy sell criteria are met

Take Buy

Buy trailing with Take Buy is a bit different, because it acts as a second buy layer in your strategy.

The idea is that sometimes prices will come close to your target, but not close enough for your main strategy to catch a buy. In this case you can use Take Buy as an extra threshold above your regular entry point.

The example above shows that price was on its way reaching the primary buy trigger Buy Level, but didn't quite make it. Instead, Take Buy took the order when prices started moving upwards again.

Take Profit

Similar to Take Buy, Take Profit acts as a secondary sell layer in your strategy. It trails between the break-even point and the target for Gain. In case prices do move over your Gain target, trailing stops and the normal strategy conditions apply.

The same basic process applies for most kinds of sell trailing (exception: Take Profit). The example below shows how trailing works for selling with the .

tssl strategy
tssl strategy