Add support for different order types

This commit is contained in:
Matthias
2018-11-15 06:58:24 +01:00
parent 23958ba96a
commit 6a71f80a9e
5 changed files with 35 additions and 16 deletions

View File

@@ -28,6 +28,13 @@ class DefaultStrategy(IStrategy):
# Optimal ticker interval for the strategy
ticker_interval = '5m'
# Optional order types
order_types = {
'buy': 'limit',
'sell': 'limit',
'stoploss': 'market'
}
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
"""
Adds several different TA indicators to the given DataFrame