Allow control from strategy

This commit is contained in:
Matthias
2018-08-09 19:24:00 +02:00
parent 029d61b8c5
commit c4e43039f2
3 changed files with 17 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ class TestStrategy(IStrategy):
# Optimal ticker interval for the strategy
ticker_interval = '5m'
# run "populate_indicators" only for new candle
ta_on_candle = False
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
"""
Adds several different TA indicators to the given DataFrame