Gunbot wiki
Wiki em português
English
English
  • Welcome to the Gunbot wiki
  • About
    • What's new?
      • New in v22
      • New in v20
      • New in v18
      • New in v16.7+
      • New in v16
      • New in v15
      • New in v13 / v14
      • New in v12
      • New in v11
      • New in v10
      • New in v9
      • New in v8
      • New in v7
      • New in v6
    • Supported exchanges
      • Creating API keys
      • Websockets support
    • License info & system specs
      • How to create a wallet
    • Purchasing Gunbot
  • Setup & general settings
    • Installation & startup
      • Quickstart guide
      • Download software
      • Windows installation
      • macOS installation
      • Linux installation
      • ARM installation
      • How to enable SSL/TLS
      • Running multiple instances
      • Headless mode
    • Global settings
      • Import settings
      • Bot settings
      • Cancel orders
      • Advanced
    • Profile settings
      • Exchanges
      • Gunthy wallet
      • Edit license
      • GUI authentication
      • Telegram
      • Tournament
  • How to work with Gunbot
    • Learning the basics
      • Trading logic
      • Important settings
      • Order types
      • Period
      • Trailing
      • ROE trailing
    • Strategies & pairs
      • Easy edit
      • Strategy editor
      • Trading pairs
        • Pair processing
    • Chart & results
    • Extra modules
      • AutoConfig
      • Backtesting
      • Code editor
      • TradingView Alerts
        • IMAP listener
      • Alerts (beta)
  • Trading strategy options
    • About Gunbot strategies
      • Trading methods
      • Protections
    • Regular strategies (spot trading)
      • ADX
      • ATRTS
      • Bollinger Bands
      • Bollinger Bands (TA)
      • EMA spread
      • Emotionless
      • Gain
      • Ichimoku
      • MACD
      • MACDH
      • Pingpong
      • Stepgain
      • Spotgrid
      • Spotgrid Advanced
      • StepGrid
      • SMA cross
      • Support / Resistance
      • Tssl (trailing stop / stop limit)
      • Time series analysis
    • Margin trading strategies
      • ADX
      • ATRTS
      • Bollinger Bands
      • Bollinger Bands (TA)
      • EMA spread
      • Futures Grid
      • Gain
      • Ichimoku
      • MACD
      • MACDH
      • Pingpong
      • Stepgain
      • SMA cross
      • Tenkan
      • Tssl (trailing stop / stop limit)
      • Time series analysis
    • Custom strategies
    • Balance settings
    • Confirming indicators
    • Dollar Cost Avg (DCA)
    • Reversal trading (RT)
    • TrailMe
    • Misc settings
  • More
    • Config marketplace
  • Various
    • Backups
    • Logs
    • Handling bags
    • Acronyms
  • Troubleshooting
    • Critical errors
    • Bot does not trade
    • Reset password
Powered by GitBook
On this page
  • Trading example
  • Strategy parameters
  • Buy settings
  • Buy enabled
  • PP Buy
  • NBA
  • Sell settings
  • Sell enabled
  • PP Sell
  • Double Check Gain
  • Gain
  • Indicator settings
  • TrailMe settings
  • Balance settings
  • Confirming indicator + advanced indicator settings
  • Dollar cost avg settings
  • Reversal trading settings
  • Misc settings
  • Placeholders

Was this helpful?

  1. Trading strategy options
  2. Regular strategies (spot trading)

Pingpong

PreviousMACDHNextStepgain

Last updated 5 years ago

Was this helpful?

This strategy can be used for pairs that move up and down between a predictable price range for longer periods. You set fixed prices at which Gunbot should buy and sell, Gunbot will buy or sell as soon as the exact target is hit or exceeded.

To refine this strategy, other indicators are available to be used as confirmation for both buying and selling. For example you could have Gunbot buy at a specific price only when RSI is 30 or lower.

This strategy can be also used to trade purely on signals from confirming indicators, by setting unrealistic buy and sell prices.

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, make sure to set a negative value for GAIN.

Trading example

Strategy parameters

Following settings options are available for pp and can be set in the strategy configurator of the GUI or the strategies section of the config.js file.

These settings are global and apply to all pairs running this strategy. When you want a specific parameter to be different for one or more pairs, use an override at the pair level.

Buy settings

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

Buy enabled

Set this to false to prevent Gunbot from placing buy orders.

Values: true or false

Default value: true

Affects

Does not affect

Strategy buy

Strategy sell

DCA buy

Stop limit

RT buy

Close

RT buyback

RT sell

Parameter name in config.js: BUY_ENABLED

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.

Values: numerical – represents a price in base currency.

Default value: 0

Affects

Does not affect

Strategy buy

Strategy sell

Stop limit

Close

RT sell

DCA buy

RT buy

RT buyback

Parameter name in config.js: PP_BUY

NBA

"Never Buy Above". Use this to only allow buy orders below the last sell rate.

This sets the minimum percentage difference between the last sell order and the next buy. The default setting of 0 disables this option.

When set to 1, Gunbot will only place a buy order when the strategy buy criteria meet and price is at least 1% below the last sell price.

Values: numerical, represents a percentage.

Default value: 0

Affects

Does not affect

Strategy buy

Strategy sell

Stop limit

Close

RT sell

DCA buy

RT buy

RT buyback

Parameter name in config.js: NBA

Sell settings

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

Sell enabled

Set this to false to prevent Gunbot from placing sell orders.

Values: true or false

Default value: true

Affects

Does not affect

Strategy sell

Strategy buy

Stop limit

RT buy

RT sell

RT buyback

Close

DCA buy

Parameter name in config.js: SELL_ENABLED

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 sell order will be placed in the first cycle where the bid price is 0.00123456 or higher.

Values: numerical – represents a price in base currency.

Default value: 0

Affects

Does not affect

Strategy sell

Strategy buy

Stop limit

Close

RT sell

DCA buy

RT buy

RT buyback

Parameter name in config.js: PP_SELL

Double Check Gain

Disable this to allow sell orders below the break-even point.

Values: true or false

Default value: true

Affects

Does not affect

Strategy sell

Strategy buy

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: DOUBLE_CHECK_GAIN

Gain

This sets the minimum target for selling when DOUBLE_CHECK_GAIN is enabled.

Values: numerical – represents a percentage.

Default value: 0.5

Affects

Does not affect

Strategy sell

Strategy buy

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: GAIN

Indicator settings

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

TrailMe settings

Parameters to configure additional trailing for various types of orders. Trailing works just like it does for the TSSL strategy, the difference being the starting point of trailing.

Orders resulting from trailing are only placed when the main strategy criteria are met, and confirming indicators (if any) allow the order. All these conditions must occur in the same cycle.

Balance settings

Confirming indicator + advanced indicator settings

Dollar cost avg settings

Reversal trading settings

Misc settings

Placeholders

The following parameters in config.js have no function for this strategy and act as placeholder.

Parameter

Description

ATRX

Placeholder.

ATR_PERIOD

Placeholder.

BUYLVL1

Placeholder.

BUYLVL2

Placeholder.

BUYLVL3

Placeholder.

BUYLVL

Placeholder.

BUY_LEVEL

Placeholder.

BUY_RANGE

Placeholder.

DISPLACEMENT

Placeholder.

FAST_SMA

Placeholder.

HIGH_BB

Placeholder.

ICHIMOKU_PROTECTION

Placeholder.

KIJUN_CLOSE

Placeholder.

KIJUN_PERIOD

Placeholder.

KIJUN_STOP

Placeholder.

KUMO_CLOSE

Placeholder.

KUMO_SENTIMENTS

Placeholder.

KUMO_STOP

Placeholder.

LEVERAGE

Placeholder.

LONG_LEVEL

Placeholder.

LOW_BB

Placeholder.

MACD_LONG

Placeholder.

MACD_SHORT

Placeholder.

MACD_SIGNAL

Placeholder.

MAKER_FEES

Placeholder.

MEAN_REVERSION

Placeholder.

PRE_ORDER_GAP

Placeholder.

PRE_ORDER

Placeholder.

RENKO_ATR

Placeholder.

RENKO_BRICK_SIZE

Placeholder.

RENKO_PERIOD

Placeholder.

ROE_CLOSE

Placeholder.

ROE_LIMIT

Placeholder.

ROE_TRAILING

Placeholder.

ROE

Placeholder.

SELLLVL1

Placeholder.

SELLLVL2

Placeholder.

SELLLVL3

Placeholder.

SELLLVL

Placeholder.

SELL_RANGE

Placeholder.

SENKOUSPAN_PERIOD

Placeholder.

SHORT_LEVEL

Placeholder.

SLOW_SMA

Placeholder.

TAKE_BUY

Placeholder.

TAKE_PROFIT

Placeholder.

TBUY_RANGE

Placeholder.

TENKAN_CLOSE

Placeholder.

TENKAN_PERIOD

Placeholder.

TENKAN_STOP

Placeholder.

TP_PROFIT_ONLY

Placeholder.

TP_RANGE

Placeholder.

TSSL_TARGET_ONLY

Placeholder.

USE_RENKO

Placeholder.

Example of how trading with this strategy can perform.

Using the BUY_METHOD and SELL_METHOD parameters you can combine different methods for buying and selling. This strategy page assumes both BUY_METHOD and SELL_METHOD are set to pp. Accepted values are all strategy names as listed .

Details and settings
here
TrailMe
Balance settings
Confirming indicators
Dollar Cost Avg (DCA)
Reversal trading (RT)
Misc settings