Runbot Documentation
How it worksIndicatorsTriggers BoxesNFTs
  • Introduction
  • Interactive Tutorial
  • HOW IT WORKS
    • Box synergies
    • Signal list
      • Long/Short signal
      • Cancel signal
      • Stop signal
      • Custom signal
    • Glossary
  • Parimutuels Markets
  • Strategy Boxes
    • Strategy list
    • Strategy management (Backtest box)
    • Signals Box
    • Selectors Box
    • Indicators box
      • Offset Candle
      • Signal creation
      • Signal duration rule
  • Indicators
    • Basic triggers
    • Runbot Indicators
      • RSI
      • Candle
      • MACD
      • MA
      • Stochastic
      • Streak
      • ATR
      • Bollinger Bands
      • Funding (8h Rates)
      • Orderflow
      • Liquidations
      • Pivot Points
      • ATR Bands
      • Fibonacci
      • CHOP
      • Potential Cumulative Liquidations
      • Open Interest
      • Volume Profile
      • Ichimoku
      • SAR
      • TD9
      • VWAP/MVWAP
      • Calendar
      • SuperTrend
      • CCI
      • Fear & Greed Index
      • MA Bands
      • Volume Anomaly
      • Orderbook
      • AI News Sentiment
    • #AI Indicators: Harmonia
    • VeloData Indicators
      • Aggregated Datas
        • Premium Index
        • Volume Index
      • Options Markets
        • Options Premium Index
        • Option Volume
        • Option Skew
        • Implied Volatility
        • Delta
        • Vega
        • Gamma
  • Triggers Boxes
    • Entry in position rules
      • Majority of signals
      • Unanimity of signals
      • Equality
      • Minimum number of signals
      • Maximum number of signals
      • No previous trade
    • Exit position rules
      • Stop %/ATR
      • Confirmation stop %/ATR
      • TP ATR %/ATR
      • TP/SL signal
      • Trailing %/ATR
      • Decaying TP %/ATR
      • Magnetic TP %/ATR
      • Stop candle %/ATR
      • TP Candle %/ATR
      • Number of candles
      • Opposite trade
    • Adjust position rules
      • Increase/Decrease order size
      • Delay between two triggers
      • Signals occurs
      • Max position size
  • Risk management Boxes
    • Position size
      • Leverage
      • Constant USD
      • Orderbook
      • Risk % capital per %/ATR
      • Risk constant USD per %/ATR
      • Candle distance
    • Entry in position methods
      • Market order
      • Slippage market
      • Sequential Market
      • Pyramid orders
      • Delay
  • Runbot NFTs
    • Connect your Web3 Wallet
    • Strategy NFTs
    • Mint Open-Source NFT
    • Mint Rental NFT
    • Community NFTs Indicators
      • Black Flamingo Indicators
      • Harmonia Indicators
      • VeloData Indicators
    • FAQ Marketplace & NFTs
  • Webhooks (Trading Bots)
    • BingX (free bots)
    • Bitget (free bots)
    • Phemex (free bots)
    • Blofin (free bots)
    • OKX
    • Bybit
    • Tealstreet
    • Mizar
    • WunderTrading
    • Alertatron
    • Zignaly
    • Discord
    • Custom URL
  • Advanced Tools
    • Strategies Composer
    • Strategy Optimiser
      • Random Search
      • Simulated annealing
      • Combinatorial
      • Tips to Optimize your strategy
  • Free plan and Credits
Powered by GitBook
On this page

Was this helpful?

  1. Risk management Boxes
  2. Position size

Orderbook

PreviousConstant USDNextRisk % capital per %/ATR

Last updated 1 year ago

Was this helpful?

The orderbook feature to enter a trade allows you to consider current liquidity in the orderbook. It is designed to avoid slippage and optimize the execution of large market orders.

The bot will execute a market order considering a maximum slippage. However, you may not fill the full initial position desired.

1 tick is equivalent to 0.5$. If Market price is 20 000$, 1 tick on the buy side is 19 999,5$, 1 tick on the sell side is 20 000,5$.

Ex: [Constant entry size: 10M $] [A size of 100% of the first 4 orderbook ticks]

The bot triggers a market order long position and wants to open a maximum size of 10M$ but with a maximum slippage of 2$ which is equivalent to 4 ticks. However, Market price is 18 870$ and liquidity on the sell side up to 18 872$ (18 870$ market price + 2$ max slippage) is 1 691 907$. The bot will then execute an equivalent of a market order (limit buy price above market price) of 1 691 907$ at 18 872$ to immediatly fill a long position with a maximum slippage of 2$.

With a normal market buy order of 10M$, the slippage would be more than 20$ and the strategy may no longer be worth it.