New: create strategy code using Gunbot AI

Gunbot. Community made crypto trading bot

Privacy friendly trading automation tool. Works on Windows, Linux and macOS. API secrets stay on your own device.

Use pre-tuned strategies that just work, or realize your own automation ideas. Get a life time license with free updates & awesome support.

πŸ”₯ v25 out now, with DeFi support on dYdX exchange.
Up next: support for more decentralized platforms.


Official partners

Official Gunbot partners: Binance, Kucoin, Okex, HitBTC, Kraken Futures and more
Screenshot showing great Gunbot tradesScreenshot showing market comparisonScreenshot showing how easy it is to connect api credentials in Gunbot
Screenshot showing great Gunbot trades

Get amazing trades

Gunbot comes with great strategy settings out-of-the-box.
This chart shows trades with the stepGrid strategy.

  • step 3.

    Trade like a pro

  • step 2.

    Select market

  • step 1.

    Connect exchange

Easily create a custom trading strategy
Cutting edge trading automation

Powerful, easy to use trading bot

Generate profits by automatically executing your trading strategies. What sets Gunbot apart from other bots are the innovative strategies, speed, extreme flexibility and awesome user community.

Runs on your own computer

No need to trust a cloud service. Gunbot fully runs on your own system: Windows, macOS, Linux or Raspberry Pi.

Plug and play

Some strategies like stepGrid are fully tuned and profitable by default. You just have to turn the bot on.

No limits for power users

Unlimited bot instances, custom strategies, automated config changes. Gunbot allows you to go crazy.

Free updates

Gunbot software updates are free. No subscription, just a one time license fee.
Code custom strategies in JS
You have searched and I believe you have found. SGS is awesome. Thanks.
PascalCommunity member on Telegram
// User prompt:
// Make a short term wick hunter strategy using a self invented TA indicator perfectly suited to finding wicks,  it should buy predicted wicks down, and sell predicted wicks up. use limit orders.  
// Don't buy when there is a bag or an open order, don't sell when there is no bag or there are open orders. Use TRADING_LIMIT for buy amount

// Gunbot AI:

// initialize customStratStore within pairLedger object
gb.data.pairLedger.customStratStore = gb.data.pairLedger.customStratStore || {};

// define custom TA indicator to find wicks
function findWicks() {
  // calculate the difference between high and low of each candle
  const candleRange = gb.data.candlesHigh.map((high, i) => high - gb.data.candlesLow[i]);
  // calculate the average range of the last 10 candles
  const avgRange = candleRange.slice(-10).reduce((acc, val) => acc + val, 0) / 10;
  // calculate the average body size of the last 10 candles
  const avgBody = gb.data.candlesClose.slice(-10).reduce((acc, val, i) => acc + Math.abs(val - gb.data.candlesOpen.slice(-10)[i]), 0) / 10;
  // calculate the predicted wick size as the difference between the average range and average body size
  const predictedWick = avgRange - avgBody;
  // return the predicted wick size
  return predictedWick;
}

// forced wait time reduces risk of double orders
function checkTime() {
  return !gb.data.pairLedger.customStratStore.timeCheck || typeof gb.data.pairLedger.customStratStore.timeCheck !== "number" 
    ? (gb.data.pairLedger.customStratStore.timeCheck = Date.now(), false) 
    : (Date.now() - gb.data.pairLedger.customStratStore.timeCheck > 8000);
}
const enoughTimePassed = checkTime();

// set timestamp for checkTime in next round
const setTimestamp = () => gb.data.pairLedger.customStratStore.timeCheck = Date.now();

if (enoughTimePassed) {
  // calculate the predicted wick size
  const predictedWick = findWicks();
  // calculate the buy and sell prices based on the predicted wick size
  const buyPrice = gb.data.bid - predictedWick;
  const sellPrice = gb.data.ask + predictedWick;
  // calculate the buy amount based on TRADING_LIMIT
  const buyAmount = parseFloat(gb.data.pairLedger.whatstrat.TRADING_LIMIT) / buyPrice;
  // check if there is a bag or open orders
  const hasBag = gb.data.gotBag;
  const hasOpenOrders = gb.data.openOrders.length > 0;
  // check if buy or sell conditions are met
  const buyConditions = predictedWick > 0 && !hasBag && !hasOpenOrders;
  const sellConditions = predictedWick > 0 && hasBag && !hasOpenOrders;
  // fire orders when conditions are met
  if (buyConditions) {
    gb.method.buyLimit(buyAmount, buyPrice, gb.data.pairName);
    setTimestamp();
  } else if (sellConditions) {
    gb.method.sellLimit(gb.data.quoteBalance, sellPrice, gb.data.pairName);
    setTimestamp();
  }
}
      
// Code is machine generated, review it and run in simulator mode first

Now available in preview release

Create AI generated custom strategies

Prototype new strategy ideas in seconds. With just a textual desciption of your idea, Gunbot AI can code complete custom strategies. Powered by the same technology that powers ChatGPT, Gunbot AI is a pretty capable strategy dev. It knows about all Gunbot specific methods and data points. Naturally, be careful with any machine generated code and run it in a simulated bot instance first. Examples have not been edited.

Show another Gunbot AI example

See how easy it is to get started with Gunbot. It takes just a couple of minutes.

Grid strategy with fully automated dca and profit targets
Multi timeframe, easy to use spot and futures strategies

Grid trading like no other bot

Several grid-like strategies make Gunbot easier to use than ever before. To set it up, you only need to enter the amount to invest per trade and set a maximum number of allowed buy orders.

Traditional grid strategies trade in perfectly predictable intervals and can require a lot of capital to use efficiently. Gunbot strategies diverge from traditional grid strategies: built-in trend analysis can prevent buying in unfavorable zones, targets are automatically adjusted to the recent volatility of the market, trailing allows for much better fill rates. By meticulously keeping track of the overall break even price of a 'position' Gunbot can increase sell order size when in profit, even when the trade group of hundreds of smaller orders at different rates.

The default settings of the stepGrid strategy produce exactly the kind of trading shown on the charts images on this page. Each green arrow is a buy order, each orange arrow is a sell order.

It's DCA trading with completely dynamic targets for buying and selling, based on the current price action of any market. Price trailing for all kinds of orders is fully automatic.

Choose your bot

Gunbot plans
Add-ons
Upgrades

All plans are life time: no recurring costs. Prices listed in Bitcoin, payment also possible with 300+ altcoins, stablecoins and PayPal.

Gunbot Trial

Free for 3 days

Gunbot Standard

Ιƒ 0.028

Everything you need to get serious about bot trading on a single exchange.

  • Spot & futures trading
  • For 1 exchange
  • Unlimited trading pairs
  • All strategies
  • Switch exchange anytime
  • AutoConfig
  • 500 Gunthy tokens
  • Telegram community
  • Gunbot School
  • Chat & email support
  • For Windows, Mac, Linux & Raspberry Pi
  • More details about
    gunbot standard

Gunbot Pro

Ιƒ 0.05

For demanding traders on multiple exchanges. With backtesting.

  • Spot & futures trading
  • For 3 exchanges
  • Unlimited trading pairs
  • All strategies
  • Switch exchange anytime
  • AutoConfig
  • Backtesting add-on
  • 750 Gunthy tokens
  • Telegram community
  • Gunbot School
  • Chat & email support
  • For Windows, Mac, Linux & Raspberry Pi
  • More details about
    gunbot pro

Gunbot Ultimate

Ιƒ 0.04 Ιƒ 0.08
50% discount

πŸ”₯ DeFi support, unlimited API slots, mobile app, custom strategies and more

  • Spot & futures trading
  • DeFi trading πŸ”₯
  • For all exchanges
  • Unlimited trading pairs
  • All strategies
  • Switch exchange anytime
  • Custom JS strategies
  • Mobile app
  • Gunbot Simulator
  • AutoConfig
  • Backtesting add-on
  • TradingView add-on
  • 2500 Gunthy tokens
  • Telegram community
  • Gunbot School
  • Chat & email support
  • For Windows, Mac, Linux & Raspberry Pi
  • More details about
    gunbot ultimate

Why many traders choose Gunbot

Gunbot is perfect when you want to accelerate your crypto trading. It allows you to trade profitably 24/7. It's likely the most privacy friendly trading bot out there, Gunbot collects no data at all about the trades users make. Unlike many other bots, this is not a cloud service. Your trades remain private between you and your exchange.

Privacy first

The software runs on your own computer and collects no data about your usage. For security purposes, the API secrets used to connect to exchanges are only saved on your own machine.

Assist manual trading

Bot trading with Gunbot plays nice with manual trading on the same exchange account.

Want to manually add to a position Gunbot opened? No problem! Check out different ways to use Gunbot.

Human support

Get great support for everything Gunbot. Use video courses, live chat, email tickets and more.

The options Gunbot offers can be pretty intimidating. You will get an answer to every question.

Bot trading done right

Innovative strategies

Choose from 20+ preset trading strategies with tested default settings. Using over 150 different parameters, you can customize every strategy to your trading style.

Unlimited trading pairs

There are no limits to the amount of trading pairs Gunbot can actively trade. You decide if you want to trade just one or one hundred markets simultaneously.

Additional trailing

Use configurable price trailing options to get even better trades. This way trades are only placed when prices stopped moving in a certain direction.

Confirming indicators

Use industry standard indicators to restrict trades to very specific market conditions. Choose between ADX, RSI, Stochastic, StochRSI, MFI, EMA, EMAspread & more!

AutoConfig

Don't try to beat a dynamic market with a static strategy. Gunbot is the only trading bot that offers rule based, dynamic config changes. Use built-in filter rules or code your own.

Visual targets

Using the TradingView charting library the targets of a trading strategy are clearly visualized. This way you can easily tune your strategy without even leaving the chart.

Learn more about how trading with Gunbot really works.