Ping pong trading strategy
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
.
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
.
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 the ping pong strategy can perform. Details and settings
Strategy settings for Pingpong​
Buy settings​
Label | Config Parameter | Default Value | Detailed Description |
---|---|---|---|
Buy enabled | BUY_ENABLED | true | When enabled, allows the strategy to initiate buy or long orders. |
Pingpong buy | PP_BUY | 1000 | This 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​
Label | Config Parameter | Default Value | Detailed Description |
---|---|---|---|
Sell enabled | SELL_ENABLED | true | When 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 sell | PP_SELL | 1000 | This 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 sell | COUNT_SELL | 9999 | This 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​
Label | Config Parameter | Default Value | Detailed Description |
---|---|---|---|
Period | PERIOD | 15 | The 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 Parameter | Affected Order Types | Not Affected Order Types |
---|---|---|
Buy Enabled | Strategy buy, DCA buy, RT buy, RT buyback | Strategy sell, Stop limit, Close, RT sell |
PP Buy | Strategy buy | Strategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback |
Sell Enabled | Strategy sell, Stop limit, RT sell | Strategy buy, RT buy, RT buyback, Close, DCA buy |
PP Sell | Strategy sell | Strategy buy, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback |
Gain | Strategy sell | Strategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit |