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.

How to work with it

Gunbot will open one position, either long or short, and close this position when the target is reached. When the stop is hit before profitably closing a trade, Gunbot will place a stop order at loss. After closing a position, Gunbot will again look to open a new long or short position. Gunbot will not add to existing open positions.

Please don't manually add to or reduce positions opened by Gunbot, unless you stop running Gunbot on this trading pair until you've closed this position.

The examples below show how the basic triggers for pp work. Additionally, you can use confirming indicators and settings like ROE trailing.

Buy method conditions

Trend following (regular)

Opening a long position is allowed when the ask price is equal to or above PP_BUY.

Mean reversion

In MEAN_REVERSION mode the behavior for PP_BUY and PP_SELL is reversed in this strategy.

Opening a long position is allowed when the ask price is equal to or below PP_BUY.

Sell method conditions

Trend following (regular)

Opening a short position is allowed when the bid price is equal to or below PP_SELL.

Mean reversion

In MEAN_REVERSION mode the behavior for PP_BUY and PP_SELL is reversed in this strategy.

Opening a short position is allowed when the bid price is equal to or above PP_SELL.

Conditions to close

A position is closed when the desired ROE is reached.

Conditions to stop

A position is closed at loss when its stop is reached.

Long settings

Buy settings are the primary trigger for long orders. These parameters control the execution of long orders when using pp as buy method.

Buy enabled

Set this to false to prevent Gunbot from opening long positions.


PP Buy

This sets the exact target price for placing a buy order. A buy order will be placed as soon as this price is hit or an even better price is available.

For example: when trading a BTC-x pair with PP_BUY set to 0.00123456, a buy order will be placed in the first cycle where the ask price is 0.00123456 or lower.


Short settings

Buy settings are the primary trigger for short orders. These parameters control the execution of short orders when using pp as sell method.

Sell enabled

Set this to false to prevent Gunbot from opening short positions.


PP Sell

This sets the exact target price for placing a sell order. A sell order will be placed as soon as this price is hit or an even better price is available.

For example: when trading a BTC-x pair with PP_SELL set to 0.00123456, a buy order will be placed in the first cycle where the bid price is 0.00123456 or lower.


Indicator settings

As pp is purely price based, there are no indicators that directly influence trading with pp.