Help Center
Spot & Margin
Entrusted Transaction

Loop Order | Gate

2026-01-08 UTC
327,121 Read
5

1.What is a loop order?

Loop order is a compound order to auto your market timing strategy in a volatile market by buying low and selling high , or selling high and buying low.

A loop contains an (buy/sell) order(limit or market,limit order only at this time), a take profit order (limit order) and a stop loss (conditional) order.

The logic is as follows:

Step 1 .Place an order to buy (sell) a specific amount of a given coin.

Step 2. When the step 1 order fills fully, place a take profit order( at a predefined percentage of profit) to sell(buy) the coin of the same quantity; meanwhile, place a stop loss (conditional)order at a predefined percentage of loss;

Step 3. If the take profit order fills fully, the stop loss (conditional) order will not be triggered. This loop ends and a new loop starts from step 1 again.

Step 4. If stop loss (conditional) order is triggered, the take profit order is canceled. A stop loss order will be placed at the predefined loss percentage. If this stop order fills fully, it will suspend for a while( a preset interval) before it begin a new loop from Step 1 again.

2.What is a Stop loss (conditional)order?

The stop loss (conditional)order will monitor market price changes. When the change range in the last price reaches predefined loss percentage, the stop loss (conditional) order is triggered and it will place a limit order to protect you from further loss.

If you place a buy order on Step 1, the stop loss (conditional) order will be triggered when:

Last price is = < the average price of order in step 1X(1- stop loss percentage)

If you place a sell order on Step 1, the stop loss(conditional)order will be triggered when:

Last price >= the average price of order in Step 1X(1+ stop loss percentage)

3.How to calculate the prices of the stop loss order and take profit order ?

If you buy in Step 1,

Take profit order price= average buy price X (1+ take profit percentage)

Stop loss order price=average buy price X(1-stop loss percentage)

If you sell in step 1,

Take profit order price= average buy price X(1- take profit percentage)

Stop loss order price=average buy price X (1+stop loss percentage)

4.What is a loop and how to set the number of loops?

A complete loop starts from step1 and ends at the completion of a take profit or stop loss order. The predefined number of loops is the maximum possible loops a loop order might have . If loops are set as zero, no cap for the number of loops.

5.How to calculate a valid period?

The valid period is calculated from the time the order in step 1 is placed. At the end of the valid period, the loop order will expire and cancel the order it places.

6.Other instructions:

  1. The loop order stops when it fails to place an order , be it an order in step 1, or a take profit/stop loss order.
  2. If you cancel any limit order placed as part of this loop order, the loop order stops.
  3. If order in step 1 partially fills, the loop order does not move further to the following step until it fills fully.
  4. The loop order will cancel limit order it places when
    1. the valid period ends
    2. you cancel the loop order or any order placed as part of this loop order.


Disclaimer

The content provided herein is for reference and educational purposes only and does not constitute any financial, investment, trading, or legal advice, nor does it constitute an offer or solicitation to buy or sell any digital assets. Gate makes no express or implied representations or warranties regarding the accuracy, completeness, or timeliness of the information contained herein. Product features, interfaces, rules, and fee structures may be updated or adjusted at any time. Please refer to the latest announcements and the actual information displayed on the Gate platform for the most accurate details.
Digital asset investments involve significant risk, and prices may fluctuate substantially. You may lose the entire amount of your investment. Please make decisions cautiously based on your own financial situation and risk tolerance after fully understanding the associated risks. If necessary, you are advised to consult an independent professional financial or legal advisor.
For more information about potential risks, please refer to Gate's Risk Disclosure and User Agreement.
Sign up now for your chance to win up to $10,000!
signup-tips