Web Interface Guide

Basic

The Basic config editor is designed to make things simpler, easier to read and prevent typos from stopping ProfitTrailer functioning how you intended.

The Header is shown below:

  • HotConfig - Open a dialog box in order to enter HotConfig commands. (Only displays when active Config is selected)
  • ACTIVE - The name of the config ProfitTrailer is using.
  • EDITING - The name of the config that is being displayed/edited.
  • Delete - Click this to delete the configuration being displayed. (You will not have the option to delete the Active Config)
  • Save - Save any changed you have made.
  • New - Save the config displayed as a new config with a new name
  • Drop Downs - Described below.
  • Pairs - View/configure the pairs.properties file for the editing config.
  • DCA - View/configure the dca.properties file for the editing config.
  • Indicators - View/configure the indicators.properties file for the editing config.

The left most drop down menu allows you to select a config for editing.

If we selected BTC Beginner the header would change as shown.

The next drop down allows you to select a specific coin for which you wish to change settings. Leave it set to DEFAULT to edit the overall configuration.

You can learn more about Coin Specific Settings from the FAQ.




Other things to change when GUI config is launched

  • Hotconfig only available in advanced
  • config menu gone
  • links to config menu
  • settings menu screenshot
  • public configs
  • PBL reasons (SELL WALL DETECTED)
  • Buy tab

Application.properties

server.contextPath
server.contextPath = /binancebtc

Adds a custom base url to the Web server.

Using the example above you would now access ProfitTrailer from http://localhost:8081/binancebtc/monitoring.

Notes:

  1. This does not change the requirement to run each bot on a different port.

server.exchangeUrl
server.exchangeUrl = https://www.binance.com/tradeDetail.html?symbol=%c_%b

Define custom url to be used when a coin pair is clicked in the Web GUI.

The %c and %b values are variables based on the coin pair being clicked.

%c = currency (DOGE)
%b = base (BTC)

If you are wanting to link to TV instead of the exchange this is also possible.
Binance: https://www.tradingview.com/chart/?symbol=BINANCE:%c%b
Bittrex: https://www.tradingview.com/chart/?symbol=BITTREX:%c%b
Poloniex: https://www.tradingview.com/chart/?symbol=POLONIEX:%c%b

Pairs.properties

DEFAULT_trailing_profit_type
DEFAULT_trailing_profit_type = GROW

Coin Specific - click for more infoOptional - click for more info

Valid values: DEFAULT, GROW, SHRINK

Set the trailing_profit to grow or shrink when the profit increases. The altered trailing profit is calculated based on the highest profit percentage reached and will remain in use until the coin sells or the trailing ends without a sale.

The formula used is:

Grow

multiplier = trailingValue / sellValue;
newTrailingValue = Math.abs(multiplier * highestTrailingValue);

Shrink

multiplier = trailingValue * sellValue;
newtrailingValue = Math.abs(multiplier / highestTrailingValue);

Note

  1. Using DEFAULT will not alter the trailing_profit value at all.


TOP


DEFAULT_A_buy_strategy_label
DEFAULT_A_buy_strategy_label = SMASLOWCROSS

Coin Specific - click for more infoOptional - click for more info

Valid Values: Any name you choose.

Set a unique label for your strategy in order to facilitate the same indicator being used multiple times.

Example:
in indicators.properties we define SMACROSS and SMASLOWCROSS values

SMA_cross_candles = 2
SMA_candle_period = 300
SMA_fast_length = 12
SMA_slow_length = 24

SMASLOWCROSS_cross_candles = 2
SMASLOWCROSS_candle_period = 900
SMASLOWCROSS_fast_length = 100
SMASLOWCROSS_slow_length = 200

In pairs.properties we can now use either of these individually or both at once.

DEFAULT_A_buy_strategy = SMACROSS
DEFAULT_A_buy_value = -2

DEFAULT_B_buy_strategy_label = SMASLOWCROSS
DEFAULT_B_buy_strategy = SMACROSS
DEFAULT_B_buy_value = -2

Note:

  1. The label can be anything alphanumeric. 1337SUPERDUPER420 will work


TOP


DEFAULT_A_sell_strategy_label
DEFAULT_A_sell_strategy_label = RSI900

Coin Specific - click for more infoOptional - click for more info

Valid Values: Any name you choose.

Set a unique label for your strategy in order to facilitate the same indicators being used multiple times.

For an example of usage see DEFAULT_A_buy_strategy_label

Note:

  1. The label can be anything alphanumeric. 1337SUPERDUPER420 will work


TOP


DEFAULT_combine_pending_orders
DEFAULT_combine_pending_orders = false

Coin Specific - click for more infoOptional - click for more info

Valid Values: true/false

Choose to combine pending orders for the same coin into one item in the pending log or keep them as separate items.

Default value is true if not set.


TOP


DEFAULT_A_sell_value_limit
DEFAULT_A_sell_value_limit = 

Coin Specific - click for more infoOptional - click for more info

Valid values: positive or negative decimal numbers depending on the Sell Strategy

This value sets the outer limit of a “sell zone” with the sell value as the other limit. Do not include this parameter if no limit is desired.

NOTE: The set sell_value_limit needs to be further into the sell zone than the buy value otherwise a sell cannot take place. Trailing will not work beyond the limit.

Example: EMASPREAD
DEFAULT_A_sell_value = -1.5
DEFAULT_A_sell_value_limit = -2.5
The bot will only sell if EMASPREAD is between -1.5% and -2.5%

Example: EMASPREAD
DEFAULT_A_sell_value = 0.55
DEFAULT_A_sell_value_limit = 2.5
The bot will only sell if EMASPREAD is between 0.5% and 2.5%

Example: LOWBB
DEFAULT_A_sell_value = -20
DEFAULT_A_sell_value_limit = -45
The bot will only buy if the price is between LOWBB -20 and LOWBB -45

Example: LOWBB
DEFAULT_A_sell_value = 15
DEFAULT_A_sell_value_limit = -50
The bot will only sell if the price is between LOWBB 15 and LOWBB -50

Example: RSI
DEFAULT_A_sell_value = 30
DEFAULT_A_sell_value_limit = 15
The bot will only sell if RSI is between 15 and 30


TOP


sell_wall_orderbook_depth
sell_wall_orderbook_depth = 40

Optional - click for more info

Valid Values: Integer values greater than 0

Set the depth of the orderbook to look back and identify the largest sell order. If you set 30, ProfitTrailer will look at the top 30 orders. ProfitTrailer will then calculate the average the top 30 orders (excluding the largest one) and determine if the difference from the largest order exceeds your sell_wall_diff_percentage setting. If it exceeds the allowed difference the coin will not be purchased.

Note:


TOP


sell_wall_diff_percentage
sell_wall_diff_percentage = 600

Optional - click for more info

Valid Values: Decimal values greater than 100

Set the maximum difference allowed from the average order size within the sell_wall_orderbook_depth. If this difference is exceeded then the coin will not be bought.

Example:
sell_wall_orderbook_depth = 20
sell_wall_diff_percentage = 600

Average of the bottom 20 sell orders (excluding largest order) is e.g 0.05 BTC in size. If the largest order is 600% or 6 times the average (e.g 0.3 BTC) then this will be identified as a sell wall.

Note:


TOP


DCA.properties

SOM_DCA_buy_percentage
SOM_DCA_buy_percentage = 100

Optional - click for more infoDCA level specific - click for more info

Valid values: Integer values greater than 0

Set the buy percentage to be used instead of DEFAULT_DCA_buy_percentage when sell only mode (SOM) is on. The set value is the % of the current holding to be purchased at the next DCA level.

Note:

  1. The unnumbered default parameter will be used if no DCA level specific alternative is configured.
  2. If you have DCA level specific buy triggers you need to set SOM triggers for each level also.


TOP


DCA_max_trading_pairs
DCA_max_trading_pairs = 10

Optional - click for more info

Valid values: Integer values greater than and equal to 0.

Set the maximum number of coins that are permitted to enter DCA at any given time.

Note:

  1. If not set (including missing from the file completely) then there is no limit and all coins can be DCA'd.
  2. If you lower this limit below the number of coins you already have in DCA, ProfitTrailer will randomly select the ones that stay in DCA.


TOP


DEFAULT_DCA_trailing_profit_type
DEFAULT_DCA_trailing_profit_type = GROW

Coin Specific - click for more infoOptional - click for more info

Valid values: DEFAULT, GROW, SHRINK

Set the trailing_profit to grow or shrink when the profit increases. The altered trailing profit is calculated based on the highest profit percentage reached and will remain in use until the coin sells or the trailing ends without a sale.

The formula used is:

Grow

multiplier = trailingValue / sellValue;
newTrailingValue = Math.abs(multiplier * highestTrailingValue);

Shrink

multiplier = trailingValue * sellValue;
newtrailingValue = Math.abs(multiplier / highestTrailingValue);

Note

  1. Using DEFAULT will not alter the trailing_profit value at all.


TOP


DEFAULT_A_buy_strategy_label
DEFAULT_A_buy_strategy_label = RSI900

Coin Specific - click for more infoOptional - click for more info

Valid Values: Any alphanumeric name you choose.

Set a unique label for your strategy in order to facilitate the same indicator being used multiple times.

Example:
in indicators.properties we define RSI and RSI900 values

RSI_candle_period = 900
RSI_length = 35

RSI900_candle_period = 900
RSI900_length = 35

In dca.properties we can now use either of these individually or both at once.

DEFAULT_DCA_A_buy_strategy = RSI
DEFAULT_DCA_A_buy_value = 37

DEFAULT_DCA_B_buy_strategy_label = RSI900
DEFAULT_DCA_B_buy_strategy = RSI
DEFAULT_DCA_B_buy_value = 45

Note:

  1. The label can be anything alphanumeric. 24NUGGETSFOR995 will work


TOP


DEFAULT_DCA_A_sell_strategy_label
DEFAULT_DCA_A_sell_strategy_label = RSI900

Coin Specific - click for more infoOptional - click for more info

Valid Values: Any alphanumeric name you choose.

Set a unique label for your strategy in order to facilitate the same indicators being used multiple times.

For an example of usage see DEFAULT_DCA_A_buy_strategy_label

Note:

  1. The label can be anything alphanumeric. WELOVESGTBATTEN will work


TOP

Indicators.Properties

STOCHRSI_candle_period

Define the period (in seconds) used to calculate the STOCHRSI.
Check the Exchanges page for valid settings for each exchange

STOCHRSI_candle_period = 300

STOCHRSI_rsi_length

Define the RSI time frame (in candles) used to calculate the STOCHRSI. (Max 500)

STOCHRSI_rsi_length = 14

STOCHRSI_stoch_length

Define the STOCH time frame (in candles) used to calculate the STOCHRSI. (Max 500)

STOCHRSI_stoch_length = 14

STOCHRSI_K

Define the time period to be used to calculate the K divergence when using STOCHRSI.

STOCHRSI_K = 1


STOCHRSI_D

Define the time period to be used to calculate the D divergence when using STOCHRSI

STOCHRSI_D = 1

FAQ

Common Errros

Incorrect trailing value for GROW. Value should be between 0 and your exit value. Using DEFAULT instead

You sell_value and trailing_profit values are equal which means the formula used to calculate the new trailing_profit when using DEFAULT_trailing_profit_type or DEFAULT_DCA_trailing_profit_type will not work. The bot has defaulted to using the DEFAULT trailing_profit.


TOP


BUY and Sell Strategies

  • LOWBB can be used as sell strategy

TVSTOCHRSI

This buy/sell strategy is true when

From this article on StockCharts.com (much more info here, please read):

StochRSI is an oscillator that measures the level of RSI relative to its high-low range over a set time period. StochRSI applies the Stochastics formula to RSI values, instead of price values. This makes it an indicator of an indicator. The result is an oscillator that fluctuates between 0 and 1. Traders looking to enter a stock based on an overbought or oversold reading in RSI might find themselves continuously on the sidelines. Chande and Kroll developed StochRSI to increase sensitivity and generate more overbought/oversold signals. A move above 0.80 is considered overbought, while a move below 0.20 is considered oversold. Second, it can be used to identify the short-term trend.


The Numbers

Valid Values: Values between 0 and 1 are valid.


The Parameters

STOCHRSI_candle_period
STOCHRSI_rsi_length
STOCHRSI_stoch_length
STOCHRSI_K
STOCHRSI_D


The Formula

StochRSI = (RSI - Lowest Low RSI) / (Highest High RSI - Lowest Low RSI)

Examples

DEFAULT_A_buy_value = 0.2 → buy zone begins when the calculated value is less than 0.2. DEFAULT_A_buy_value_limit must be less than 0.2 if used.
DEFAULT_A_sell_value = 0.8 → sell zone begins when the calculated value is greater than 0.8.
DEFAULT_DCA_B_buy_value = 0.3 → buy zone begins when the calculated value is less than 0.3. DEFAULT_DCA_B_buy_value_limit must be less than 0.3 if used.


TOP

  • coming_in_a_future_release.txt
  • Last modified: 4 days ago
  • by sgtbatten