removing total capital in favour of stake amount
This commit is contained in:
parent
d613553306
commit
aacc1d5004
@ -63,7 +63,6 @@
|
|||||||
"enabled": false,
|
"enabled": false,
|
||||||
"process_throttle_secs": 3600,
|
"process_throttle_secs": 3600,
|
||||||
"calculate_since_number_of_days": 2,
|
"calculate_since_number_of_days": 2,
|
||||||
"total_capital_in_stake_currency": 0.5,
|
|
||||||
"allowed_risk": 0.01,
|
"allowed_risk": 0.01,
|
||||||
"stoploss_range_min": -0.01,
|
"stoploss_range_min": -0.01,
|
||||||
"stoploss_range_max": -0.1,
|
"stoploss_range_max": -0.1,
|
||||||
|
@ -82,6 +82,8 @@ Allowed capital at risk is calculated as follows:
|
|||||||
|
|
||||||
**allowed capital at risk** = **total capital** X **allowed risk per trade**
|
**allowed capital at risk** = **total capital** X **allowed risk per trade**
|
||||||
|
|
||||||
|
**total capital** is your stake amount.
|
||||||
|
|
||||||
**Stoploss** is calculated as described above against historical data.
|
**Stoploss** is calculated as described above against historical data.
|
||||||
|
|
||||||
Your position size then will be:
|
Your position size then will be:
|
||||||
@ -89,8 +91,7 @@ Your position size then will be:
|
|||||||
**position size** = **allowed capital at risk** / **stoploss**
|
**position size** = **allowed capital at risk** / **stoploss**
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
Let's say your total capital is 3 ETH, you would allow 1% of risk for each trade. thus your allowed capital at risk would be **3 x 0.01 = 0.03 ETH**. Let's assume Edge has calculated that for **XLM/ETH** market your stoploss should be at 2%. So your position size will be **0.03 / 0.02= 1.5ETH**.<br/>
|
Let's say your stake amount is 3 ETH, you would allow 1% of risk for each trade. thus your allowed capital at risk would be **3 x 0.01 = 0.03 ETH**. Let's assume Edge has calculated that for **XLM/ETH** market your stoploss should be at 2%. So your position size will be **0.03 / 0.02= 1.5ETH**.<br/>
|
||||||
**Notice:** if Edge is enabled, the stake_amount config is overriden by total_capital_in_stake_currency config explained below (see configuration part)
|
|
||||||
|
|
||||||
## Configurations
|
## Configurations
|
||||||
Edge has following configurations:
|
Edge has following configurations:
|
||||||
@ -108,9 +109,6 @@ Number of days of data against which Edge calculates Win Rate, Risk Reward and E
|
|||||||
Note that it downloads historical data so increasing this number would lead to slowing down the bot<br/>
|
Note that it downloads historical data so increasing this number would lead to slowing down the bot<br/>
|
||||||
(default to 7)
|
(default to 7)
|
||||||
|
|
||||||
#### total_capital_in_stake_currency
|
|
||||||
This your total capital at risk in your stake currency. If edge is enabled then stake_amount is ignored in favor of this parameter
|
|
||||||
|
|
||||||
#### allowed_risk
|
#### allowed_risk
|
||||||
Percentage of allowed risk per trade<br/>
|
Percentage of allowed risk per trade<br/>
|
||||||
(default to 1%)
|
(default to 1%)
|
||||||
|
@ -178,7 +178,6 @@ CONF_SCHEMA = {
|
|||||||
"enabled": {'type': 'boolean'},
|
"enabled": {'type': 'boolean'},
|
||||||
"process_throttle_secs": {'type': 'integer', 'minimum': 600},
|
"process_throttle_secs": {'type': 'integer', 'minimum': 600},
|
||||||
"calculate_since_number_of_days": {'type': 'integer'},
|
"calculate_since_number_of_days": {'type': 'integer'},
|
||||||
"total_capital_in_stake_currency": {'type': 'number'},
|
|
||||||
"allowed_risk": {'type': 'number'},
|
"allowed_risk": {'type': 'number'},
|
||||||
"stoploss_range_min": {'type': 'number'},
|
"stoploss_range_min": {'type': 'number'},
|
||||||
"stoploss_range_max": {'type': 'number'},
|
"stoploss_range_max": {'type': 'number'},
|
||||||
|
@ -787,7 +787,7 @@ def edge_conf(default_conf):
|
|||||||
"enabled": True,
|
"enabled": True,
|
||||||
"process_throttle_secs": 1800,
|
"process_throttle_secs": 1800,
|
||||||
"calculate_since_number_of_days": 14,
|
"calculate_since_number_of_days": 14,
|
||||||
"total_capital_in_stake_currency": 0.5,
|
#"total_capital_in_stake_currency": 0.5,
|
||||||
"allowed_risk": 0.01,
|
"allowed_risk": 0.01,
|
||||||
"stoploss_range_min": -0.01,
|
"stoploss_range_min": -0.01,
|
||||||
"stoploss_range_max": -0.1,
|
"stoploss_range_max": -0.1,
|
||||||
|
Loading…
Reference in New Issue
Block a user