Advanced Strategy Parameters

Advanced Strategy Parameters

Quick article search

DropDetection Strategy and Its Parameters

The purpose of this strategy is to detect a specified depth of price drop within a given time interval.


DropDetection strategy

General Parameters


  • DropsMaxTime: a field for specifying the period of analysis for the coin, in whole seconds. All parameters described below are evaluated relative to this interval.
    Example:
    if DropsMaxTime = 100 seconds, the price change over the last 100 seconds is analyzed; after each new second the window shifts, and a new 100-second interval is evaluated;

  • DropsPriceMA: a field for specifying the time interval, in whole seconds, used for averaging the price. The strategy will take the average price over this specified interval.
    Example:
    if DropsPriceMA = 20 seconds and DropsMaxTime = 100 seconds, then within the 100-second analysis period the following averaging zones will be used: 1–21 sec, 2–22 sec, 3–23 sec … 81–100 sec — each zone has its own average price.
    If you do not want any averaging, set this parameter to a value below 2 (the terminal receives prices from the exchange approximately every 2 seconds). In this case, with DropsMaxTime = 100 seconds, zones of 2 seconds will be used (1–2, 2–3, 3–4, 4–5 … 99–100), and each zone will have a price;

  • DropsLastPriceMA: a field for specifying the number of 2-second intervals used for averaging the most recent prices. If set to 0, averaging is not performed. In this case, a sharp price spike downward followed by an instant recovery will still trigger the strategy;

  • DropsPriceDelta: a field for specifying the minimum price-drop delta (in %), over the analysis period.
    Calculated as: (Highest price / Lowest price – 1) × 100.

  • DropsPriceIsLow: checkbox YES/NO.
    If YES is selected, then in addition to all the above conditions, the current market price must also be the hourly low.

  • DropsUseLastPrice: checkbox YES/NO.
    If YES, then the LastPrice (derived from the detector calculation) will be used for determining the buy price.
    Example:
    suppose the following parameters are set: DropsMaxTime = 100 sec, DropsPriceMA = 20 sec, DropsLastPriceMA = 1 sec, DropsPriceDelta = 2%. It means that Moonbot monitors price movement over the last 100 seconds. For every 20-second interval it calculates the average price, finds the highest of these average prices, and compares it to the current market price. If the current market price is 2% lower than the highest interval price, the strategy triggers) (example values: highest average price = 102 USDT, current price = 100 USDT.) Price drop = (102 / 100 − 1) × 100 = 2%.
    ⚠️ Important! This example describes only the drop detector logic. The strategy may not trigger if it fails other filters that apply to all strategies, as described earlier.