Merge pull request #1656 from freqtrade/fix/1633
Default value for minimal_roi
This commit is contained in:
commit
2959600f52
@ -119,9 +119,10 @@ See the example below:
|
|||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
Most of the strategy files already include the optimal `minimal_roi`
|
Most of the strategy files already include the optimal `minimal_roi` value.
|
||||||
value. This parameter is optional. If you use it in the configuration file, it will take over the
|
This parameter can be set in either Strategy or Configuration file. If you use it in the configuration file, it will override the
|
||||||
`minimal_roi` value from the strategy file.
|
`minimal_roi` value from the strategy file.
|
||||||
|
If it is not set in either Strategy or Configuration, a default of 1000% `{"0": 10}` is used, and minimal roi is disabled unless your trade generates 1000% profit.
|
||||||
|
|
||||||
### Understand stoploss
|
### Understand stoploss
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class StrategyResolver(IResolver):
|
|||||||
# Set attributes
|
# Set attributes
|
||||||
# Check if we need to override configuration
|
# Check if we need to override configuration
|
||||||
# (Attribute name, default, experimental)
|
# (Attribute name, default, experimental)
|
||||||
attributes = [("minimal_roi", None, False),
|
attributes = [("minimal_roi", {"0": 10.0}, False),
|
||||||
("ticker_interval", None, False),
|
("ticker_interval", None, False),
|
||||||
("stoploss", None, False),
|
("stoploss", None, False),
|
||||||
("trailing_stop", None, False),
|
("trailing_stop", None, False),
|
||||||
|
Loading…
Reference in New Issue
Block a user