Martingale strategy

2 min readOct 18, 2021


UniDexBot got a new Martingale strategy.

Martingale is a cost-averaging strategy. It does this by “doubling exposure” on losing trades. This results in lowering of your average entry price.

The important thing to know about Martingale is that it doesn’t increase your odds of winning. Your long-term expected return is still exactly the same. It’s governed by your success in picking winning trades and the right market. Read more…

This is the first launch Martingale trading strategy in UniDexBot. Use only small amounts to understand it and identify possible errors

To activate the strategy, you must toggle the switch to On

Turn on Martingale strategy for trade

When you change the strategy settings, the description will change to the current values. So that it would be clear to the user how the trade will take place:


The field (MATIC for screenshot) is the volume value for each buy level in the order grid;
The Orders count is the count orders for grid;
The Grid indentation is the indentation between the orders in the grid (is set in percent);
The Take profit is the profit from the average price of purchases in the grid (is set in percent);

After creating a trade, the bot will follow two directions at once — buying the next level in the grid and selling the already bought volume with Take profit

(1) Count of completed cycles / left count cycles
(2) Сount of completed grid orders / count orders of grid
(3) Strategy for buying next order of grid
(4) Strategy for selling the purchased volume
(5) Current price buying order (current %)
(6) Average purchase price
(7) Set the next grid order at the current price
(8) Set to sell the entire purchased volume at the current price

Successful testing!!!

— — — — —

Expected improvements:

  • Adding the martingale coefficient (each next order in the grid will be larger than the previous one)
  • Adding pulling up after price changes (if the price has gone too high, the bot will raise the grid after the price)



TG News:
TG Trading:
Knowledge base: Link to all medium articles:




Uniswap Private Limit Orders and Automatic Trading Cycles | TG: |