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
1 changed files with 10 additions and 4 deletions

View File

@ -16,10 +16,10 @@ class DefaultStrategy(IStrategy):
# Minimal ROI designed for the strategy
minimal_roi = {
"40": 0.0,
"30": 0.01,
"20": 0.02,
"0": 0.04
"40": 0.0,
"30": 0.01,
"20": 0.02,
"0": 0.04
}
# Optimal stoploss designed for the strategy
@ -35,6 +35,12 @@ class DefaultStrategy(IStrategy):
'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:
"""
Adds several different TA indicators to the given DataFrame