Articles on: Signals and Automation

Grid Bot Settings

Contents


General
i. Using BOTH currencies to fund your bot
ii.Using BOTH currencies: Example
Price Range
Exit Settings

General


ItemDescriptionComments
Bot NameUser defined. 4-64 characters
ExchangeAll exchanges will be listed.
AccountChoose from the trading accounts you have on the selected exchange
MarketA single market is used for a Grid Bot. You can search the list using: Scroll down for more markets. /BTC, /USDT, ADA/ etc. Only markets on your exchange will be shown.The best markets to use are those that are trending sideways or upwards, in a reasonably predictable range.
Invest coinIf you only have funds in Quote currency (e.g. USDT), choose that option. If you already have some funds in the base currency, you can choose BothWhen the bot starts, enough base currency is need for the Sell orders above the current price. If you are providing some base currency (using the BOTH option), that will be used first. More will be bought using the quote currency if needed. There also must be enough quote currency available to cover the cost of the buy orders.
SizeThe total amount your bot can invest in this market. The amount used will be maximised, based on the number of orders (below). The Available balance in your account for the quote currency is shows above. The percentage is based on your available funds.




Using BOTH currencies to fund your bot


ItemDescriptionComments
When to use1. When creating a bot, if you have some available base currency, you can choose the BOTH option to fund your bot.
2. When editing a bot that has been running, you will probably have some base currency, so the funding option will default to BOTH
1The total value of: available quote currency and available base currency + quote and base currency currently reserved in orders for this bot
2The total amount of quote currency available (the Unreserved wallet balance + the quote amount currently reserved in orders for this bot)
and The total amount of base currency available (the Unreserved wallet balance + the base currency amount currently reserved in orders for this bot)
3The Positon size or investment amount, in quote currency
4The amount of base currency the bot will need to place the initial Sell Orders
5The amount of base currency the bot will need to buy to make up the total amount of base currency required to place the initial Sell Orders
6The extra amount of base currency the bot will need to place the initial Buy orders. This will be funded by selling some base currency.
If there is enough base currency available to fund all of the Sell orders, and enough quote currency available to fund the Buy orders, then the bot will not place an initial order. It will use the available base and quote currency to start the bot.
A summary of how the bot will fund the orders:
7Amount of base currency the bot will use.xx
8Amount of quote currency the bot will use.xx




Using BOTH currencies: example


In the example below, there is enough base currency but not enough quote currency to fund the initial orders.
The bot will sell some base currency to fund the Sell orders
The bot only needs an extra 8.42 BUSD, but the minimum order size on the exchange is 10 BUSD. So the bot will need to place an order for 10 BUSD.
This is noted in the Confirmation message shown below





Price Range


ItemDescriptionComments
Upper Price"This will be the maximum price* of your grid. If Allow Trailing Up is not enabled, then your grid bot will not place orders above this price. Use the Price Picker (eyedropper icon) to choose a price, or choose a % preset, enter a percentage amount, or drag the TP price handle on the chart."The grid spacings are equal, so the highest and lowest price might be adjusted slightly from those you specify.
Allow Trailing Up?If the price goes above your upper price, should the bot start to move the grid upwards?If turned On, once the price is above the grid, the bot will move the grid up one step at a time. The bottom buy order will be cancelled, and a new Buy order added above the grid. For more details, see the Bot Functioning tab If you specify a Take Profit price (below), the grid will no longer be moved up, and will Take Profit at that point.
If set to Off, when the price goes higher than the grid, the existing orders will remain in place. If the price returns to the grid, it will fiunction the same way as before.
Lower PriceThis will be the minimum price* of your grid. If Allow Trailing Down is not enabled, then your grid bot will not place orders below this price. Use the Price Picker (eyedropper icon) to choose a price, or choose a % preset, enter a percentage amount, or drag the TP price handle on the chart.The grid spacings are roughly equal, so the highest and lowest price might be adjusted slightly from those you specify.
Allow Trailing Down?If the price goes above your lower price, should the bot start to move the grid downwards?If turned On, once the price is below the grid, the bot will move the grid down one step at a time. The top Sell order will be cancelled, and a new Sell order will be added below the grid. For more details, see the Bot Functioning tab. If you specify a Stop Loss price (see below), the grid will no longer be moved down, and will Stop out at that point.
If set to Off, when the price goes lower than the grid, the existing orders will remain in place. If the price returns to the grid, it will fiunction the same way as before.
Number of ordersThis will determine the number of grid lines (and therefore orders) for the grid. There will be one order at each level. More orders means smaller orders, and more chance of catching small moves. Keep in mind that exchange trading fees are paid on each buy and sell.


Note just under the number of Orders is summary information:
Profit per Step. It's a range because 1. fees are unknown 2. the profit varies a bit between steps. The profit per step is calculated as the percentage difference between: a) the top 2 grids b) the bottom 2 grids (this will be the higher amount).
Note that, if the trade free zone is moving around grid 2 or the second highest gris price, then the profit calcualtion can vary a lot. e.g. at the bottom of the range, sometimes it will be using grid 1 and 2, and other times it's using grid 1 and 3. Make sure it's > 0, otherwise your fees are taking more than your profits! Fewer orders/more widely spaced = higher profit per step.

The grid will be built using the Upper Price, Lower Price and the Number of Orders. Orders above the current price will be Sell Orders, and those below will be Buy Orders. When the Grid bot is started, it will need to buy enough base currency (coins) for the Sell orders that are above the current price. These coins are bought at Market (using a Limit Order at 1% above the current price). Each Buy and Sell order is for an equal amount of coins (base curency). Profits are accumulated in the quote currency (e.g. BTC, USDT). See Grid Bot Processing for more details.


Exit Settings



All Exit settings can be combined and all are optional.

If no exit settings are specified, the Grid Bot will continue running until it is Stopped manually, or a critical error occurs.

ItemDescriptionComments
Take Profit"If Take Profit is switched On, you will need to enter a price above the grid where you want your Bot to stop. And also what to do with your coins when the Take Profit price is reached"
Behaviour on StopCancel all orders--the coins held in each order will be kept.If the price reaches your TP, it will be above your grid and most of your coins will be in quote currency (in Buy orders)
Convert into quote currency at market price--All orders cancelled, and all base currency coins will be sold at market price for quote currency.
Convert into base currency at market price--All orders cancelled, and all quote currency coins will be used to buy base currency at market price.
PriceThe price at which to stop your grid bot and Take ProfitUse the Price Picker (eyedropper icon) to choose a price, or choose a % preset, enter a percentage amount, or drag the TP price handle on the chart.
Stop Loss"If Stop Loss is switched On, you will need to enter a price below the grid where you want your Bot to stop. And also what to do with your coins when the Stop Loss is reached"
Behaviour on StopCancel all orders--the coins held in each order will be kept.If the price reaches your SL, it will be below your grid and most of your coins will be in base currency (in Sell orders)
Convert into quote currency at market price--All orders cancelled, and all base currency coins will be sold at market price for quote currency.
Convert into base currency at market price--All orders cancelled, and all quote currency coins will be used to buy base currency at market price.
PriceThe price at which to stop your grid bot and reduce losses.Use the Price Picker (eyedropper icon) to choose a price, or choose a % preset, enter a percentage amount, or drag the SL price handle on the chart.
Time-based Autoclose"To close your Grid Bot automatically after a set period of time."
Behaviour on StopThe options are the same as for TP and SL.
Autoclose inChoose Minutes, Hours or Days and the amount







Grid Bot Processing
Grid Bot Error Messages
Grid Bot Analytics
Grid Bot Backtesting in Altrady

Updated on: 24/04/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!