added SL interval to configuration document
This commit is contained in:
parent
da51ef40f8
commit
08d98773f3
@ -144,10 +144,10 @@ end up paying more then would probably have been necessary.
|
|||||||
|
|
||||||
### Understand order_types
|
### Understand order_types
|
||||||
|
|
||||||
`order_types` contains a dict mapping order-types to market-types as well as stoploss on or off exchange type. This allows to buy using limit orders, sell using limit-orders, and create stoploss orders using market. It also allows to set the stoploss "on exchange" which means stoploss order would be placed immediately once the buy order is fulfilled.
|
`order_types` contains a dict mapping order-types to market-types as well as stoploss on or off exchange type and stoploss on exchange update interval in seconds. This allows to buy using limit orders, sell using limit-orders, and create stoploss orders using market. It also allows to set the stoploss "on exchange" which means stoploss order would be placed immediately once the buy order is fulfilled. In case stoploss on exchange is set then the bot will use `stoploss_on_exchange_interval` to check it periodically and update it if necessary (e.x. in case of trailing stoploss).
|
||||||
This can be set in the configuration or in the strategy. Configuration overwrites strategy configurations.
|
This can be set in the configuration or in the strategy. Configuration overwrites strategy configurations.
|
||||||
|
|
||||||
If this is configured, all 4 values (`"buy"`, `"sell"`, `"stoploss"`, `"stoploss_on_exchange"`) need to be present, otherwise the bot warn about it and will fail to start.
|
If this is configured, all 4 values (`"buy"`, `"sell"`, `"stoploss"` and `"stoploss_on_exchange"`) need to be present, otherwise the bot warn about it and will fail to start.
|
||||||
The below is the default which is used if this is not configured in either Strategy or configuration.
|
The below is the default which is used if this is not configured in either Strategy or configuration.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@ -155,7 +155,8 @@ The below is the default which is used if this is not configured in either Strat
|
|||||||
"buy": "limit",
|
"buy": "limit",
|
||||||
"sell": "limit",
|
"sell": "limit",
|
||||||
"stoploss": "market",
|
"stoploss": "market",
|
||||||
"stoploss_on_exchange": False
|
"stoploss_on_exchange": False,
|
||||||
|
"stoploss_on_exchange_interval": 60
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -163,6 +164,9 @@ The below is the default which is used if this is not configured in either Strat
|
|||||||
Not all exchanges support "market" orders.
|
Not all exchanges support "market" orders.
|
||||||
The following message will be shown if your exchange does not support market orders: `"Exchange <yourexchange> does not support market orders."`
|
The following message will be shown if your exchange does not support market orders: `"Exchange <yourexchange> does not support market orders."`
|
||||||
|
|
||||||
|
!!! Note
|
||||||
|
stoploss on exchange interval is not mandatory. Do not change it's value if you are unsure of what you are doing.
|
||||||
|
|
||||||
### Understand order_time_in_force
|
### Understand order_time_in_force
|
||||||
`order_time_in_force` defines the policy by which the order is executed on the exchange. Three commonly used time in force are:<br/>
|
`order_time_in_force` defines the policy by which the order is executed on the exchange. Three commonly used time in force are:<br/>
|
||||||
**GTC (Goog Till Canceled):**
|
**GTC (Goog Till Canceled):**
|
||||||
|
Loading…
Reference in New Issue
Block a user