Setting Up Your First Bot

🟢 Iniciante · 2025-03-28

Setting Up Your First Bot

Este guia te leva passo a passo por creating your first grid bot from start to finish. No final, voce tera um bot funcionando em modo demo, pronto para testar antes de comprometer capital real.

Pre-requisitos

Before starting, make sure voce tem:

  • A Gridera account with a connected Pacifica DEX wallet.
  • Sufficient balance in your Pacifica account (if planning to go live later).
  • A basic understanding of what grid trading does. If not, read What is Gridera? first.

Passo 1: Choose Your Trading Pair

Select the asset voce quer to trade. For your first bot, pick an asset voce esta familiar with and that has good liquidity on Pacifica DEX. Popular choices include SOL-PERP and ETH-PERP.

Liquidity matters because it affects order fill quality. Altaer liquidity means sua ordems fill at the expected price with minimal slippage.

Passo 2: Determine Your Grid Range

The faixa de grid defines o preco boundaries where seu bot operates. You need two values:

Grid low: The lowest price where o bot coloca ordens de compra. Set this below the preco atual at a level you consider strong support.

Grid high: The highest price where take-profit orders execute. Set this above the preco atual at a level you consider resistance.

For your first bot, a moderate range of 15-25% total width e recomendado. Por exemplo, if SOL is at $150:

  • Grid low: $130 (about 13% below)
  • Grid high: $170 (about 13% above)

This gives enough room for normal price fluctuations sem being so wide that seu capital is spread too thin.

Passo 3: Set Grid Levels

The number of nivel de grids determines how many price points o bot uses within your range. More levels mean tighter spacing and more frequent trades but smaller profit per trade.

For beginners, 15-25 levels is a good starting point. This provides a balance between trade frequency and per-trade profit.

Quando voce enter “20 grids,” the system creates 20 equal segments with 21 nivel de precos (including ambos boundaries). With grid low $130 and grid high $170, the spacing is $2 per level. Each completed trade captures roughly $2 profit per unit minus fees.

Passo 4: Set Your Total Budget

Enter the Total Budget — the total amount of capital voce quer to deploy. The system automatically divides this across your nivel de grids.

For your first bot, start conservatively:

  • $100-200 for a small test account.
  • $500-1,000 for moderate accounts.
  • $2,000+ for serious trading.

The tamanho da ordem per nivel de grid e calculado automatically: Total Budget Ă· Grid Levels = Order per Grid. Por exemplo, $200 budget with 10 levels = $20 per nivel de grid.

Your required balance is approximately Total Budget Ă— 1.2. The 1.2 multiplier provides a safety margin.

Passo 4b: Use Strategy Presets (Optional)

Instead of configuring manually, voce pode use Strategy Presets. Open the Strategy Presets panel — the system analyzes live market data (trend, volatility, support/resistance) and recommends the best strategy for current conditions.

Each preset shows a match percentage based on market analysis. Presets with 80%+ match are highlighted as recommended. Click “Apply” to auto-fill your grid settings.

Before starting with real money, run a Backtest. Open the Backtest panel, enter your grid settings, select a time period (1 week, 1 month, etc.), and click “Run Backtest.”

The system simulates sua estrategia against real historical price data and shows: Net PnL, ROI, Win Rate, Total Trades, Fees, and Max Drawdown. This te ajuda a validate sua estrategia before risking capital.

Passo 5: Set Leverage

For your first bot, use 1x or 2x leverage. Altaer leverage amplifies ambos profits and risks, and until voce esta comfortable with how grid bots behave, conservative leverage protects you from unexpected losses.

At 1x leverage, ha effectively no risco de liquidacao. At 2x, the preco de liquidacao is roughly 45% below your average entry, which provides ample safety margin for most grid configurations.

Passo 6: Configure Safety Settings

Grid break mode: Set to shutdown. Isso significa o bot automatically stop and close positions se o preco exits sua faixa de grid. This is your primary safety mechanism.

Grid break buffer: Set to 0.2% (default). This small buffer prevents false triggers from brief price wicks.

Grid break confirmation: Set to 30-60 seconds. O preco must stay outside the range for this duration before shutdown triggers. Isso previne shutdown on momentary spikes.

Stop loss: Set Stop Loss to 10-15% for your first bot. This is a last-resort protection if o preco cai sharply through your range.

Bias Mode (optional): You can adjust o bot’s order sizing strategy in em tempo real. The default is “Neutral” (equal orders). Advanced users can switch to “Long Biased” (heavier buys low), “Aggressive” (+50% orders), or “Conservative” (-30% orders). Leave this on Neutral for your first bot.

Step 7: Enable Paper Mode

For your first bot, always start in paper mode. Set dry_run: true in sua configuracao. This runs o bot with real market prices but sem placing actual orders on o exchange.

Paper mode lets you observe o bot’s behavior, verify your grid spacing generates trades, and check that safety settings work as expected, all sem risking capital.

Step 7b: Connect Telegram (Optional)

Go to Connect Telegram in the sidebar. Follow the 3-step setup to receive bot notifications on your Telegram — start/stop alerts, risk warnings, TP/SL triggers, and grid break notifications.

Step 8: Launch the Bot

With sua configuracao complete, start o bot from the dashboard. You should see:

  • O bot status change to “running.”
  • Grid levels appearing in o bot view.
  • Buy orders being placed (simulated) below the preco atual.
  • Log entries showing the cycle running every 15 seconds.

Step 9: Monitor and Learn

Let the paper mode bot run for at least 3-5 days. During this time, observe:

  • How often trades complete (buy followed by TP sell).
  • How o bot handles price drops (fills more buy levels).
  • How o bot handles price rises (TP orders fill, levels free up).
  • Whether o bot self-heals any issues through reconciliation.

Check the dashboard daily to review PnL, trade count, and bot health indicators.

Passo 10: Go Live

Quando voce are satisfied with paper mode performance, transition to live trading:

  1. Stop the paper mode bot.
  2. Change dry_run: false in sua configuracao.
  3. Verify sua conta balance covers the required capital.
  4. Start o bot.

Keep o mesmo configuration you tested. Changing parameters during the transition defeats the purpose of paper testing.

Resumo

  • Start with a moderate faixa de grid (15-25% width), 15-25 levels, conservative tamanho da ordem, and 1x-2x leverage.
  • Sempre begin in paper mode to validate sua configuracao before risking real capital.
  • Monitor paper mode for 3-5 days, then transition to live with the exact same settings.

Proximo Passo

Learn more about paper mode testing in Paper Mode Testing.

✨ Este artigo foi util?

Faca suas perguntas no Discord →