🚀
Pay with crypto and get up to $100 discount!
Official partners
Automate with built-in strategies, or design your own unique approach.
Strategies adapt to trends across various timeframes for smarter trading decisions.
Enhance your crypto trading capabilities with Gunbot — the automated trading bot for crypto traders and automation experts. Use proven strategies or easily craft your own trading algorithms.
Unlike cloud-based crypto trading bots, Gunbot runs locally on your device. Maintain total control and privacy on Windows, macOS, Linux, or Raspberry Pi.
Activate pre-tuned trading algorithms like stepgridscalp in moments. Gunbot starts trading immediately, and even supports leveraged trades on futures/derivatives platforms.
We love our power users. Launch unlimited bot instances, create personalized strategies, and automate configuration changes effortlessly. Enjoy endless flexibility with our multi-platform trading bot. Gunbot also has a full API.
Gunbot includes free updates even for lifetime licenses. Pay once, enjoy continuous enhancements, or choose a subscription if lifetime isn't your choice yet.
// 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
Turn your trading ideas into real strategy prototypes within seconds. Gunbot AI lets you write trading bots using simple descriptions, quickly turning your concepts into fully functional automation. Powered by the same technology as ChatGPT, Gunbot AI understands all specific Gunbot methods and data points, empowering both experienced crypto traders and automation enthusiasts to rapidly create custom crypto trading bots. Always test machine-generated strategies in a simulated bot environment before real trading to ensure its reliability. Experience what a crypto AI trading bot can do for you and transform your approach to crypto auto trading. Examples have not been edited.
Explore more AI trading strategy examplesGunbot's smart grid strategies redefine trading. Unlike typical gridbots, Gunbot offers smarter controls:
Easy Limit Gridbots: Simple-to-use gridbot with limit orders, custom grid sizes, and auto-rebalancing.
Built-in Trend Detection: Avoid risky market conditions with automatic trend analysis.
Dynamic Targeting: Targets dynamically adjust according to recent volatility, optimizing returns.
Price Trailing: Improve fill rates significantly using Gunbot's advanced trailing options - even in grid strategies.
If you're more into TA or DCA trading, Gunbot got you covered too. Our strategies cover the full spectrum.
Everything you need to get serious about bot trading
Get Gunbot StandardEverything in Standard, plus backtesting and more exchange slots
Get Gunbot Pro🔥 DeFi support, no exchange limit, app, custom strategies and more
Get Gunbot UltimateGunbot values your privacy. Unlike typical bot trading platforms, Gunbot never tracks your trading data. The only exception to this is our voluntary leaderboard, which needs minimal data collection only used for the leaderboard.
Receive quick, helpful human support, detailed documentation, and community insights anytime.
Access 20+ thoroughly tested trading strategies. Fine-tune them with over 150 configurable parameters to match your trading style.
Trade without restrictions. Launch your cryptocurrency trading bot on one or hundreds of markets simultaneously — the choice is yours.
Improve your trading outcomes with customizable trailing options. Trades trigger only when prices stabilize, increasing precision.
Integrate popular indicators like ADX, RSI, Stochastic, StochRSI, MFI, EMA, EMAspread, and more to refine your entry and exit points.
Adapt to market shifts automatically. Gunbot is the only trading bot offering rule-based dynamic configurations — use built-in filter rules or create your own.
Clearly visualize your trading strategy goals using the integrated TradingView charts. Fine-tune strategies directly from the chart view.