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
  • Trading behavior
  • How to create a stepGrid strategy
  • Essential settings
  • Additional settings

Was this helpful?

  1. Trading strategy options
  2. Regular strategies (spot trading)

StepGrid

PreviousSpotgrid AdvancedNextSMA cross

Last updated 3 years ago

Was this helpful?

A grid like strategy that trades when price moves more than a defined step size. You can choose between using auto step size or setting a manual step size. Price trailing is completely automatic and happens every step up or down.

The idea of this strategy is to trade every meaningful price movement. Even while below the overall break even price of a position, it will still take advantage of small steps upwards to sell parts of a bag at rates profitable compared to their corresponding buy orders.

This strategy is a bit different than most other Gunbot strategies: there are just a handful configurable options, confirming indicators are not a thing.

Trading behavior

When you run stepGrid with auto step size, this is the kind of trading behavior to expect:

Let's break down what actually happens:

  • Steps up and down are placed around last order rate, in case the trading pair has never traded before the reference price for steps is the price the pair had at the moment the strategy started running.

  • If price moves down a step, it automatically starts buy trailing and places a buy order for 1x 'trading limit' as soon as trailing finishes.

  • If price moves up a step while below break even, it automatically starts sell trailing and places a sell order when trailing finishes. Below break even each sell order is 1x 'trading limit' in size.

  • If price is above break even, the behavior is the same but the order quantities can exceed 1x 'trading limit. If price reaches a full step above break even, it will close a bag at once.

  • If price increases enough to reach the point where the next buy step is above break even, the buy step acts as stop in profit for positions bigger than 4x 'trading limit'.

When in no position, the bot will buy again when either the next buy or sell step is reached.

The bot will continue to accumulate until max buy count is hit, or when it run out of available funds. Every new buy order will lower the break even price.

Balance management is very important, make sure you can afford the planned number of buy orders.

The next trading targets are always visible on the chart.

Keep in mind the targets lines are moving over time, they represent the current targets.

How to create a stepGrid strategy

Using the advanced strategy editor: create a new strategy and select stepGrid as buy and sell method.

Essential settings

To use stepGrid, there are just three essential settings:

Setting

Description

Trading limit

The amount to invest per buy order.

On an USDT-BTC pair, a trading limit of 20 means that every buy order is for 20 USDT. Always make sure that trading limit is set higher than min volume to sell.

Max buy count

Limits how many buy orders are allowed.

Setting a max buy count of 999 means that the bot may do up to 999 buy orders in a row.

Min volume to sell

To ignore tiny balances.

Set this to the minimum order size of the pair, to make the bot ignore small balances that cannot be sold.

There are a few more settings that can optionally be used with this strategy, described below

Additional settings

There are a few additional settings you can use with this strategy.

Setting

Description

Auto step size

Enables using automatic step size

Auto step size attempts to determine steps that just work. When not in a position, auto step size is smaller than when in a position.

When disabled, you can set a manual step size instead.

Step size

Sets a manual step size

Manual step size for buy and sell orders. Value represents price: setting 500 on USDT-BTC makes the bot trade each time price moves 500 USDT

Enforce step size

Restricts buy and sell trailing to step size

When enabled, price trailing is not allowed to trigger trades at rates less then the current step size. This ensures a minimum distance between orders.

Stop after next sell

To stop trading a pair after the position closes

When enabled, no buy orders are placed when there is no balance left to sell.

Averaging down of the current position continues, partial sell orders do not make the bot stop afterwards.

Period

Sets the chart interval

SMA period

How many candles are used for calculating support and resistance levels

<b></b>

By default 50 candles are used to calculate support and resistance. In this strategy, support and resistance are used to determine appropriate trailing ranges

ATR period

How many candles are used for calculating ATR (average true range) ATR is used for determining auto step size. By default it's set to use a 50 period ATR. Using lower values might cause step size to fluctuate too fast.

Keep quote

Keep a number of units when selling

By setting keep quote at any number above 0, this number of units will be held back when the next sell order happens.

Other parameters

Buy and Sell enabled options can be set as pair overrides. Watch mode is respected.

Besides settings mentioned on this page, no other strategy setting has any effect on stepGrid.

The default period is 15. Make sure to only use

supported period values.
Default stepGrid settings. Each arrow is an order: green = buy, orange = sell