Updated Writing Properties (markdown)

HojouFotytu 2019-03-25 22:04:57 +09:00
parent 8297a97314
commit 170c72687c
1 changed files with 13 additions and 7 deletions

@ -1,25 +1,31 @@
This page is here to explain how to setup your settings correctly to overwrite the PAIRS.PROPERTIES, DCA.PROPERTIES or INDICATORS.PROPERTIES of your Profit Trailer using PT Magic. This page is here to explain how to setup your settings correctly to overwrite the PAIRS.PROPERTIES, DCA.PROPERTIES or INDICATORS.PROPERTIES of your Profit Trailer using PT Magic.
# General # General
In general you have two options to specify settings for Profit Trailer to get used by PT Magic. In general you have two options to specify settings for Profit Trailer to get used by PT Magic. You can have a single set of PAIRS/DCA/INDICATORS settings in your default folder, and specify individual changes in your global settings, OR you can have a differet set of settings files for EVERY global setting. You can also use a combination of these two approaches.
## 1. Using a preset file ## 1. Using a preset file
By using a preset file, you are able to load a complete file (for example PAIRS.PROPERTIES) and apply them to your Profit Trailer settings. By using a preset file, you are able to load a complete file when a global setting is true (for example PAIRS.PROPERTIES) and apply them to your Profit Trailer settings.
The file has to be located in the folder "_presets/SETTINGNAME/" to be found by PTMagic. The file has to be located in the folder "_presets/SETTINGNAME/" to be found by PTMagic. The name of the folder must EXACTLY match the name of the global setting.
**Example:** **Example:**
`"SettingName": GlobalSetting1 {`
`"PairsProperties": {` `"PairsProperties": {`
`"File": "PAIRS.PROPERTIES"` `"File": "PAIRS.PROPERTIES"`
`"(any other settings you like)"`
`}`
`}` `}`
## 2. Using a collection of properties ## 2. Using a collection of properties
When you are using a collection of properties, you are able to specifically overwrite only single properties of your settings and leave the rest as it currently is. When you are using a collection of properties, you are able to specifically overwrite only single properties of your settings and leave the rest as it currently is.
**Example:** **Example:**
`"SettingName": GlobalSetting1 {`
`"PairsProperties": {` `"PairsProperties": {`
`"DEFAULT_buy_value": -0.9,` `"DEFAULT_buy_value": -0.9,`
`"DEFAULT_trailing_profit": 0.15` `"DEFAULT_trailing_profit": 0.15`
`}` `}`
`}`
# Flat values # Flat values
You can set a Profit Trailer property to a specific new value to fully overwrite the old value. You can set a Profit Trailer property to a specific new value to fully overwrite the old value.