Skip to main content

Pingpong

This fixed-price strategy is ideal for trading pairs that fluctuate within a predictable price range for extended periods. Simply set buy and sell prices, and Gunbot will execute trades as soon as the target price is met or exceeded.

To enhance this approach, Gunbot offers additional indicators for both buying and selling confirmation. For instance, you can configure Gunbot to purchase at a specified price only when the RSI (relative strength index) is 30 or lower.

Moreover, you can trade solely on signals from confirming indicators by setting unattainable buy and sell prices using this method.

How to work with it

Buy method conditions

A buy order is allowed when price is at or below PP buy.

tip

Normal constraints like "buy once, sell once" don't apply to this strategy: each time buying criteria occur, Gunbot will place a buy order as high as set in your balance settings.

Sell method conditions

A sell order is allowed when price is at or above PP sell.

info

Gain protection is optional for this strategy. Be aware that this can lead to sell orders below your break-even point.

When you want to allow sell orders at loss, set a negative value for GAIN.

Trading example

Example of how trading with this strategy can perform. Details and settings

Strategy settings for Pingpong

Buy settings

LabelConfig ParameterDefault ValueDetailed Description
Buy enabledBUY_ENABLEDtrueWhen enabled, allows the strategy to initiate buy or long orders.
Pingpong buyPP_BUY1000This setting specifies the exact price target for buying using the pingpong strategy. It is set to trigger a buy order when the price hits 1000.

Sell settings

LabelConfig ParameterDefault ValueDetailed Description
Sell enabledSELL_ENABLEDtrueWhen enabled, allows you to initiate sell or short orders. This setting is crucial for strategies that involve selling assets to capture profits or minimize losses.
Pingpong sellPP_SELL1000This setting specifies the exact price target for selling using the pingpong strategy. It is set to trigger a sell order when the price hits 1000.
Count sellCOUNT_SELL9999This setting determines the maximum number of sell orders before disabling a pair. It is used to limit sell orders to a total of 9999 since adding the pair, preventing excessive selling after a set number of transactions.

Indicators

LabelConfig ParameterDefault ValueDetailed Description
PeriodPERIOD15The Period setting is used to define the duration, in minutes, of candlesticks for indicator calculations. Make sure to select a value that is supported by your exchange, as incorrect settings can lead to improper trading signals. The default setting is 15 minutes.

Overview of effects on different order types

Config ParameterAffected Order TypesNot Affected Order Types
Buy EnabledStrategy buy, DCA buy, RT buy, RT buybackStrategy sell, Stop limit, Close, RT sell
PP BuyStrategy buyStrategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback
Sell EnabledStrategy sell, Stop limit, RT sellStrategy buy, RT buy, RT buyback, Close, DCA buy
PP SellStrategy sellStrategy buy, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback
GainStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit