Bitget App
Trade smarter
Buy cryptoMarketsTradeCopyBotsEarnWeb3

Spot Martingale Bot Instance: How to Create It?

iconShare
2023-11-02
Spot Martingale Bot Instance: How to Create It?

Creating a Spot Martingale Bot instance can be an effective strategy for traders looking to capitalize on market volatility. Here's a step-by-step guide on how to create your very own Spot Martingale Bot instance.
  1. Select your trading mode
• AI mode: use the parameters recommended by the system to set your investment amount. Based on your risk appetite, choose your trading style: aggressive, secure, or conservative.
• Manual mode: set your parameters based on your trading habits and risk appetite.
  1. Creating a bot
• The first order placed when opening a position is called the initial order. If the price rises or falls by more than the replenishment ratio after the initial order is filled, the first replenishment order will be placed.
• The size of the initial order and the multiple of the replenishment order will affect the subsequent maker orders. The larger the multiple of the replenishment order, the greater the difference between the subsequent replenishment order amounts, and the average entry price will continuously decrease.
  1. Running the bot
When the price continues to fall, a forward Martingale bot will buy low in batches and sell when the price rebounds.
When the price continues to rise, a reverse Martingale bot will sell high in batches and buy when the price falls.
  1. Terminating the bot
All orders will be canceled when the bot is terminated.
If the bot is terminated, the system will automatically sell the coins bought by the strategy at marke t price. Otherwise, all the coins will remain in your spot account.
  1. 2. Spot Martingale demonstration ( BTCUSDT )
  2. Trigger
Trigger type: immediate
Price action (down): 5.00%
Target profit: 10.00%
  1. Investment
Initial investment: 100 USDT
Max replenishment orders: 4
  1. Scaling (advanced parameters)
Interval price multiplier of replenishment orders: 1.5X
Multiplier of replenishment amount: 2.0X
Total strategy funds: 3100 USDT
  1. Running the bot
Initial order: if the BTCUSDT price is 20,000 USDT when the bot is created, and the user selects the immediate trigger mode, a market order of 100 USDT will be placed, based on the initial investment.
Position (base currency): 100 ÷ 20,000 = 0.005 BTC
Position (quote currency): 3100 - 100 = 3000 USDT
Average holding cost = 20,000 USDT
Take-profit price for this trading cycle = 20,000 × (1 + 10.00%) = 22,000 USDT
Replenishment 1: Trigger price = 20,000 × (1 - 5%) = 19,000 USDT. Order amount: 200 USDT
Replenishment 2: Trigger price = 20,000 × (1 - 5% - 5% x 1.5) = 17,500 USDT. Order amount: 200 × 2.0 = 400 USDT
Replenishment 3: Trigger price: 20,000 × (1 - 5% - 5% × 1.5 - 5% × 1.5^2) = 15,250 USDT, order amount: 200 × 2.0^2 = 800 USDT
Safety order #4: Trigger price: 20,000 × (1 - 5% - 5% × 1.5 - 5% × 1.5^2 - 5% × 1.5^3)= 11,875 USDT. Order amount: 200 × 2.0^3 = 1600 USDT
T1 - Price briefly drops: BTC/USDT drops to 15,000 USDT. In this case, replenishments 1, 2, and 3 are executed, but not replenishment 4.
Position (base currency): 100 ÷ 20,000 + 200 ÷ 19,000 + 400 ÷ 17,500 + 800 ÷ 15,250 = 0.0908 BTC
Position (quote currency): 3000 - 1400 = 1600 USDT
Average holding cost = (100 + 200 + 400 + 800) ÷ 0.0908 = 16,512.10 USDT
Take-profit price for this trading cycle = 16,512.10 × (1 + 10.00%) = 18,163.31 USDT
T2 - Price rebounds: BTC/ USDT price hit the take-profit price of 18,163.31 USDT. The take-profit price of this trading cycle has been reached. All positions will be sold and the current trading cycle will end.
Position (base currency): 0 BTC
Position (quote currency): 1600 + 18,163.31 × 0.0908 = 3249.23 USDT
Disclaimer
Spot Martingale is a transaction tool. The above-mentioned information should not be considered as financial or investment advice from Bitget. Profits from spot Martingale may be impacted by one-sided market conditions or improper price intervals. You can adjust your spot Martingale bots according to market conditions.
Join Bitget, the World's Largest Crypto Copy Trading Platform
Recommended