How to Calculate Order Size

🟢 Iniciante · 2025-03-28

How Order Size is Calculated

In Gridera, you enter a Total Budget — the total capital voce quer to deploy. The system automatically calculates the tamanho da ordem per nivel de grid by dividing your budget across all levels.

The Formula

Order per Grid = Total Budget / Number of Grids

If voce tem $1,000 and 10 nivel de grids:

Order Size = $1,000 / 10 = $100 per level

Each ordem de compra would purchase $100 worth of the asset at its respective nivel de grid.

Adding a Safety Buffer

Na pratica, voce deveria not allocate 100% of seu capital to o grid. A safety buffer accounts for fees, slippage, and potential additional margin requirements (in trading de futuros). The standard buffer is 20%:

Usable Capital = Total Capital x 0.80
Order Size = Usable Capital / Grid Levels

With $1,000 and 10 levels:

Usable Capital = $1,000 x 0.80 = $800
Order Size = $800 / 10 = $80 per level

The remaining $200 serves as a reserve for fees, unexpected price movements, and margin maintenance.

Calculating Quantity from USD Size

Exchanges typically require orders in asset quantity (e.g., SOL), not USD value. To convert:

Quantity = Order Size (USD) / Grid Level Price

For a $80 order at nivel de grid $125:

Quantity = $80 / $125 = 0.64 SOL

Nota que each nivel de grid has a slightly different quantity porque o price differs. A $80 order at $120 buys 0.667 SOL, while $80 at $135 buys 0.593 SOL.

Futures Grid: Leverage Adjustment

In futures grid trading, leverage multiplies your effective position size. No entanto, the tamanho da ordem in sua configuracao should reflect the margin amount, not a alavancagemd notional:

Margin per Level = Order Size (USD)
Notional per Level = Margin per Level x Leverage

With $80 per level and 5x leverage:

Notional = $80 x 5 = $400 exposure per level

Isso significa each level controls a $400 position with only $80 of seu capital. While this amplifies profits, it equally amplifies losses. Crucially, your total margin requirement remains $80 x 10 = $800.

Minimum Order Size

Every exchange has minimum order requirements. Check your exchange’s minimum before configuring:

Exchange TypeTypical Minimum
Centralized (Binance, Bybit)$5-10 per order
Decentralized (Pacifica, dYdX)$1-5 per order

If the minimum is $10 and your calculated tamanho da ordem is $8, voce tem two options:

  1. Reduce the number of nivel de grids so each level gets more capital.
  2. Increase your total capital.

Equal vs Weighted Sizing

The formulas above assume equal sizing — every level gets o mesmo dollar amount. Some advanced strategies use weighted sizing:

Pyramid weighting: Baixaer nivel de grids receive larger orders. This e baseado em the principle that lower prices represent better value, so voce quer more exposure there.

Level $120: $120 (1.5x)
Level $125: $100 (1.25x)
Level $130: $80  (1.0x)
Level $135: $60  (0.75x)

Inverse pyramid: Altaer levels receive larger orders. This is less common and typically used in short grids.

For beginners, equal sizing e recomendado. It is simpler para gerenciar and the performance difference versus weighted approaches is modest in most condicoes de mercado.

Quick Reference Calculation

Here is a complete example for a typical setup:

Total Capital:    $2,000
Safety Buffer:    20%
Usable Capital:   $1,600
Grid Levels:      15
Order Size:       $1,600 / 15 = $106.67 per level
Grid Range:       $110 - $150
Average Price:    $130
Avg Quantity:     $106.67 / $130 = 0.82 SOL per level
Leverage:         3x
Notional/Level:   $106.67 x 3 = $320

Resumo

  • Calculate tamanho da ordem by dividing usable capital (total minus 20% buffer) by the number of nivel de grids.
  • Convert USD tamanho da ordem to asset quantity by dividing by the nivel de grid price, and account for exchange minimum order requirements.
  • In futures grids, your configured tamanho da ordem represents a margem amount; the actual position exposure is multiplied by leverage.

Proximo Passo

Explore how the distance between levels affects sua estrategia in Grid Spacing Types.

✨ Este artigo foi util?

Faca suas perguntas no Discord →