dannycoin / coss-grid-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coss-grid-bot

INTRO OF THE BOT

1. When is the best moment for me to create a Grid Trading Bot?

Grid Trading Bot is the best weapon in the swinging market. When the price keeps fluctuated in the same range, that’s the moment to create a Grid Trading Bot.

2. Does Grid Trading Bot fit all the market condition?

No. When the price keep tanking or pumping, that’s the worst moment to use the Grid Trading Bot. Try to use the bot in the swinging market.

3. The bot looks perfect! How can I setup a Grid Trading Bot?

  • Install node.js
  • Download the bot here https://github.com/Br0ke138/coss-grid-bot/archive/master.zip
  • Configure the bot via config.json (See the Bot Setup section for details) !DISCLAIMER: This bot is no guaranteed profit, please configure the bot before you start it
  • In Command line or terminal execute the following command: npm start

4. What will happen when the price across the boundary of the bot?

Let's take BTC/USDT pair as an example,

  • If the price break through the highest price of the bot, all BTC will be sold and you’ll stake USDT. The bot will remain at the same range and waiting for the price drop back to the range.
  • If the price drop through the lowest price of the bot, all of the buy orders for BTC will be fully executed. The bot will remain at the same range and waiting for the price rise back to the range.

BOT SETUP

1. What's the meaning for each parameter? I don't understand any of them.

  • UPPER_WALL: Highest sell price. The upper boundary of your bot
  • LOWER_WALL: Lowest buy price. The lower boundary of your bot.
  • NUMBER_OF_GRIDS: Amount of grids the range should be splitted up.
  • AMOUNT_PER_GRID: The amount for each order in the bot.
  • PUBLIC_KEY: Your Public Key.
  • PRIVATE_KEY: Your Private Key.
  • KEEP_ORDERS_ON_RESTART: true or false. on false, the bot will cancel previous orders on startup and start with a clean base

2. How does the number of grid affect my profit?

  • When you have more grids in a limited range, you’ll have higher possibility to executed your orders but less profit per grid.
  • When you have less grids in a limited range, you’ll have lower possibility to executed your orders but more profit per grid.

STEP BY STEP EXPLANATION OF GRID TRADING

In this section, let's find out how the bot actually work. In this example, we use BTC/USDT pair the following parameters:

  • Highest price: $4000
  • Lowest price: $3000
  • Number of grid: 6
  • Amount per grid: 1 BTC
  1. The bot will distributed the grid according to our setting.
  2. Detect the current price and remove the nearest order from it.
  3. Turn all the orders into sell orders and buy orders. Also calculate the BTC and USDT amount needed for creating the bot. (The bot will re-allocated your fund if needed)
  4. When the price rise and hit the sell order, it'll place a buy order one grid down from that grid, which is $3400 in this case.
  5. When the price drop and hit the buy order, it'll place a sell order one grid up from that grid, which is $3600 in this case.
  6. With continuously buy and sell, we can make profit from each trade and that's how we define the profit per grid.

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%