Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
application.properties [2018/07/25 23:16]
sgtbatten [Other Options]
application.properties [2019/02/14 18:00] (current)
sgtbatten [Example application.properties file]
Line 2: Line 2:
  
 **Changes to this file will require you to restart the bot.** **Changes to this file will require you to restart the bot.**
- 
-[[application.properties1|Click here for Version 1 settings]] 
  
   * [[application.properties#​General Settings]]   * [[application.properties#​General Settings]]
Line 17: Line 15:
 [[application.properties#​license]] = your ProfitTrailer license\\ [[application.properties#​license]] = your ProfitTrailer license\\
 [[application.properties#​server.port]] = 8081\\ [[application.properties#​server.port]] = 8081\\
 +[[application.properties#​server.address]] = \\
 [[application.properties#​server.api_token]] = \\ [[application.properties#​server.api_token]] = \\
  
Line 25: Line 24:
 [[application.properties#​trading.exchange]] = BINANCE\\ [[application.properties#​trading.exchange]] = BINANCE\\
 [[application.properties#​trading.log_history]] = 8\\ [[application.properties#​trading.log_history]] = 8\\
 +[[application.properties#​trading.signal_providers]] = \\
  
 [[application.properties#​server.timezone_offset]] = +00:00\\ [[application.properties#​server.timezone_offset]] = +00:00\\
 +[[application.properties#​server.timezone]] = America/​New_York \\
 [[application.properties#​server.language]] = engb\\ [[application.properties#​server.language]] = engb\\
 [[application.properties#​server.skin]] = dark\\ [[application.properties#​server.skin]] = dark\\
Line 40: Line 41:
 [[application.properties#​telegram|telegram.bot_token_1]] = \\ [[application.properties#​telegram|telegram.bot_token_1]] = \\
 [[application.properties#​telegram|telegram.chat_1]] = \\ [[application.properties#​telegram|telegram.chat_1]] = \\
 +[[application.properties#​telegram.new_signal_notification]] = true\\
 [[application.properties#​telegram.disable_notification]] = false\\ [[application.properties#​telegram.disable_notification]] = false\\
  
 [[application.properties#​discord|discord.bot_token_1]] = \\ [[application.properties#​discord|discord.bot_token_1]] = \\
 [[application.properties#​discord|discord.chat_1]] = \\ [[application.properties#​discord|discord.chat_1]] = \\
 +[[application.properties#​discord.new_signal_notification]] = true\\
 +[[application.properties#​discord.new_signal_notification_channel]] = \\
  
 [[application.properties#​api_keys|default_api_key]] ​         = The Exchange API key registered with PT Assistant\\ [[application.properties#​api_keys|default_api_key]] ​         = The Exchange API key registered with PT Assistant\\
Line 59: Line 63:
 #testmode does paper trading so you will see buy and sell activity.\\ #testmode does paper trading so you will see buy and sell activity.\\
 [[application.properties#​server.test_mode]] = true\\ [[application.properties#​server.test_mode]] = true\\
 +[[application.properties#​server.use_testnet]] = false\\
  
 #timeout in seconds\\ #timeout in seconds\\
Line 91: Line 96:
 **Note:** **Note:**
   - 8085 is reserved for some VM applications and might not work on some operating systems.   - 8085 is reserved for some VM applications and might not work on some operating systems.
 +
 +----
 +== server.address ==
 +
 +<file java>
 +server.address = 123.123.123.123
 +</​file>​
 +
 +Bind the Profit trailer instance to a specific WAN/Public IP address. Useful for uses with multiple public IP addresses and multiple bots.
  
 ---- ----
Line 98: Line 112:
 trading.exchange = BITTREX trading.exchange = BITTREX
 </​file>​ </​file>​
-Use to set the exchange you want the bot to connect to. Possible values (POLONIEX, BITTREX, BINANCE).+Use to set the exchange you want the bot to connect to. Possible values (POLONIEX, BITTREX, BINANCE, KUCOIN, HUOBI, BITMEX).
 Must be in CAPITALS. Must be in CAPITALS.
 ---- ----
Line 107: Line 121:
 </​file>​ </​file>​
 Set the unique text you wish to appear in the browser tab (website title). This it also used in [[application.properties#​Discord]] and [[application.properties#​Telegram]] Notifications Set the unique text you wish to appear in the browser tab (website title). This it also used in [[application.properties#​Discord]] and [[application.properties#​Telegram]] Notifications
 +
 ---- ----
 == trading.log_history == == trading.log_history ==
Line 116: Line 131:
  
 The bot can easily manage a a couple of months of history. The maximum value is 1826 days (5 years). ​ The bot can easily manage a a couple of months of history. The maximum value is 1826 days (5 years). ​
 +
 +----
 +== trading.signal_providers ==
 +
 +<file java>
 +trading.signal_providers = SGNLAWESOMESIGNALS,​ SGNLPTTRADINGVIEW
 +</​file>​
 +
 +Define the Signal providers you wish to receive signal from. This property is **only required** if your bot is receiving signals from **multiple providers**.
 +If you have signed up for 3 signal providers and you want a certain bot to receive signals from only 2 of those providers. You can define the providers you want to use separated by a comma. ​
 +
 +The valid values are the SKU from the ProfitTrailer shop **without the trailing number**.
 +
 +{{::​signal_sku.png?​180&​direct|}}
 +
 ---- ----
 == server.timezone_offset == == server.timezone_offset ==
Line 124: Line 154:
 Set your desired timezone relative to where you live. Important Correct format +hh:mm or -hh:mm Set your desired timezone relative to where you live. Important Correct format +hh:mm or -hh:mm
 See **[[https://​www.timeanddate.com/​time/​map/​]]** if you have no idea what timezone you live in. See **[[https://​www.timeanddate.com/​time/​map/​]]** if you have no idea what timezone you live in.
 +
 +**Note:**
 +  - ''​[[application.properties#​server.timezone]]''​ will be used instead of the offset if it is entered.
 +
 +----
 +== server.timezone ==
 +
 +<file java>
 +server.timezone = US/Central
 +</​file>​
 +Valid Values: [[https://​garygregory.wordpress.com/​2013/​06/​18/​what-are-the-java-timezone-ids|Java Time Zones]]
 +
 +Set the timezone ID of the location you live. This will take precedence over ''​[[application.properties#​server.timezone_offset]]''​ and will automatically handle daylight saving times.
  
 ---- ----
Line 234: Line 277:
  
 ---- ----
 +== telegram.new_signal_notification ==
  
 +<file java>
 +telegram.new_signal_notification = true
 +</​file>​
 +Set to true to enable a notification to be sent when a new [[Signals|signal]] is received.
 +
 +----
 == telegram.disable_notification == == telegram.disable_notification ==
  
Line 241: Line 291:
 </​file>​ </​file>​
 Set to true disable the sound on telegram notifications. Set to true disable the sound on telegram notifications.
- 
  
 ---- ----
Line 270: Line 319:
 </​file>​ </​file>​
 Your first Discord bot token. ​ Your first Discord bot token. ​
 +
 ---- ----
 == discord.chat_1 == == discord.chat_1 ==
Line 277: Line 327:
 </​file>​ </​file>​
 The channel name that the bot will post notifications in. The channel name that the bot will post notifications in.
 +
 ---- ----
 == discord.bot_token_2 == == discord.bot_token_2 ==
Line 284: Line 335:
 </​file>​ </​file>​
 Your second Discord bot token. ​ Your second Discord bot token. ​
 +
 ---- ----
 == discord.chat_2 == == discord.chat_2 ==
Line 291: Line 343:
 </​file>​ </​file>​
 The channel name that the second bot will post notifications in. The channel name that the second bot will post notifications in.
 +
 +----
 +== discord.new_signal_notification ==
 +
 +<file java>
 +discord.new_signal_notification = true
 +</​file>​
 +Set to true to enable a notification to be sent when a new [[Signals|signal]] is received.
 +
 +----
 +== discord.new_signal_notification_channel ==
 +
 +<file java>
 +discord.new_signal_notification_channel = channel name
 +</​file>​
 +Set a separate channel for new SIGNAL notifications to be sent to. If nothing is set ''​discord.chat_1''​ will be used instead.
 +
 ---- ----
 == discord.startup_notification == == discord.startup_notification ==
Line 298: Line 367:
 </​file>​ </​file>​
 Set to true to add discord notifications on startup. Set to true to add discord notifications on startup.
 +
 ---- ----
 == discord.shutdown_notification == == discord.shutdown_notification ==
Line 337: Line 407:
 The bot will do full paper trading, tracking and trading coins in the console and Web GUI as if it were live trading and record sales and profits/​losses in.  The bot will do full paper trading, tracking and trading coins in the console and Web GUI as if it were live trading and record sales and profits/​losses in. 
  
-When changing from test mode to live trading a restart is required. ​You may see some incorrect balances in your live bot for a minute or so after the restart. The test data will automatically clear itself completely.+When changing from test mode to live trading a restart is required. ​Reset the testmode ​data using the reset button in the GUI before restarting
  
-Use button in the settings menu or the url http://​localhost:​8081/​settings/​test/​reset to reset test_mode sales, pairs and DCA data without restarting if you wish to try another strategy with a clean slate.+You can use the button in the settings menu or the url http://​localhost:​8081/​settings/​test/​reset to reset test_mode sales, pairs and DCA data without restarting if you wish to try another strategy with a clean slate.
  
 **Notes:​** ​ **Notes:​** ​
Line 347: Line 417:
   - Even if you ran a live bot and a test mode bot side by side the results would sometimes differ. The test mode bot will assume all attempts to buy or sell were successful where as if it were live it might have expired. ​   - Even if you ran a live bot and a test mode bot side by side the results would sometimes differ. The test mode bot will assume all attempts to buy or sell were successful where as if it were live it might have expired. ​
  
 +----
 +== server.use_testnet ==
 +
 +<file java>
 +server.use_testnet = true
 +</​file>​
 +Set to true to use the test net instead of the live net on Bitmex. ​
 +
 +**Notes:**
 +  - Not applicable to any other exchanges.
 +  - unlike ProfitTrailers [[application.properties#​server.test_mode]] the Bitmex testnet is not using the exact same data as the live net.
  
 ---- ----
Line 418: Line 499:
  
 Available Languages: Available Languages:
-  * ENGB = English with European ​data format+  * ENGB = English with European ​date format
   * ENUS = English with US date format   * ENUS = English with US date format
   * KO = Korean ​   * KO = Korean ​
  • application.properties.1532560565.txt.gz
  • Last modified: 7 months ago
  • by sgtbatten