time in force drafted

time in force drafted
This commit is contained in:
misagh 2018-11-25 20:44:40 +01:00
parent 59fc67f85b
commit fb7b65c909

View File

@ -16,10 +16,10 @@ class DefaultStrategy(IStrategy):
# Minimal ROI designed for the strategy # Minimal ROI designed for the strategy
minimal_roi = { minimal_roi = {
"40": 0.0, "40": 0.0,
"30": 0.01, "30": 0.01,
"20": 0.02, "20": 0.02,
"0": 0.04 "0": 0.04
} }
# Optimal stoploss designed for the strategy # Optimal stoploss designed for the strategy
@ -35,6 +35,12 @@ class DefaultStrategy(IStrategy):
'stoploss': 'limit' 'stoploss': 'limit'
} }
# Optional time in force for orders
order_time_in_force = {
'buy': 'gtc',
'sell': 'gtc',
}
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
""" """
Adds several different TA indicators to the given DataFrame Adds several different TA indicators to the given DataFrame