From 0ff6cb1d89c83bbacd0f2fe0052288e46e4bb39d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 17 Feb 2019 16:06:39 +0100 Subject: [PATCH] Update strategies with latest parameters --- README.md | 13 +++++++------ user_data/strategies/Strategy001.py | 24 ++++++++++++++++++++++++ user_data/strategies/Strategy002.py | 24 ++++++++++++++++++++++++ user_data/strategies/Strategy003.py | 24 ++++++++++++++++++++++++ user_data/strategies/Strategy004.py | 24 ++++++++++++++++++++++++ user_data/strategies/Strategy005.py | 24 ++++++++++++++++++++++++ 6 files changed, 127 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f758137..af65ea2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Freqtrade strategies -This Git repo contains free buy/sell strategies for [Freqtrade](https://github.com/freqtrade/freqtrade) >= `0.16.0`. +This Git repo contains free buy/sell strategies for [Freqtrade](https://github.com/freqtrade/freqtrade). ## Disclaimer @@ -48,6 +48,9 @@ page. Strategies from this repo are free to use. Feel free to update them. Most of them were designed from Hyperopt calculations. +Some only work in specific market conditions, while others are more "general purpose" strategies. +It's noteworthy that depending on the exchange and Pairs used, further optimization can bring better results. + ## Share your own strategies and contribute to this repo Feel free to send your strategies, comments, optimizations and pull requests via an @@ -83,7 +86,7 @@ enabled and disabled. ### How to install a strategy? -First you need a [working Freqtrade](https://freqtrade.io) in version >= 0.16.0. +First you need a [working Freqtrade](https://freqtrade.io). Once you have the bot on the right version, follow this steps: @@ -111,12 +114,10 @@ python3 ./freqtrade/main.py -s Strategy001 backtesting python3 ./freqtrade/main.py -s Strategy001 backtesting --refresh-pairs-cached ``` +*Note:* Generally, it's recommendet to use static backtest data (from a defined period of time) for compareable results. + #### Test with live data ```bash python3 ./freqtrade/main.py -s Strategy001 backtesting --live ``` - -## Can I have your configuration file? - -You will find them into [user_data/](https://github.com/freqtrade/freqtrade-strategies/tree/master/user_data) folder. diff --git a/user_data/strategies/Strategy001.py b/user_data/strategies/Strategy001.py index ac9b055..a58fc68 100644 --- a/user_data/strategies/Strategy001.py +++ b/user_data/strategies/Strategy001.py @@ -39,6 +39,30 @@ class Strategy001(IStrategy): # Optimal ticker interval for the strategy ticker_interval = '5m' + # trailing stoploss + trailing_stop = False + trailing_stop_positive = 0.01 + trailing_stop_positive_offset = 0.02 + + # Optimal ticker interval for the strategy + ticker_interval = '5m' + + # run "populate_indicators" only for new candle + ta_on_candle = False + + # Experimental settings (configuration will overide these if set) + use_sell_signal = True + sell_profit_only = True + ignore_roi_if_buy_signal = False + + # Optional order type mapping + order_types = { + 'buy': 'limit', + 'sell': 'limit', + 'stoploss': 'market', + 'stoploss_on_exchange': False + } + def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Adds several different TA indicators to the given DataFrame diff --git a/user_data/strategies/Strategy002.py b/user_data/strategies/Strategy002.py index e7e2452..3c2ced5 100644 --- a/user_data/strategies/Strategy002.py +++ b/user_data/strategies/Strategy002.py @@ -36,6 +36,30 @@ class Strategy002(IStrategy): # Optimal ticker interval for the strategy ticker_interval = '5m' + # trailing stoploss + trailing_stop = False + trailing_stop_positive = 0.01 + trailing_stop_positive_offset = 0.02 + + # Optimal ticker interval for the strategy + ticker_interval = '5m' + + # run "populate_indicators" only for new candle + ta_on_candle = False + + # Experimental settings (configuration will overide these if set) + use_sell_signal = True + sell_profit_only = True + ignore_roi_if_buy_signal = False + + # Optional order type mapping + order_types = { + 'buy': 'limit', + 'sell': 'limit', + 'stoploss': 'market', + 'stoploss_on_exchange': False + } + def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Adds several different TA indicators to the given DataFrame diff --git a/user_data/strategies/Strategy003.py b/user_data/strategies/Strategy003.py index 7dce883..c369ba6 100644 --- a/user_data/strategies/Strategy003.py +++ b/user_data/strategies/Strategy003.py @@ -36,6 +36,30 @@ class Strategy003(IStrategy): # Optimal ticker interval for the strategy ticker_interval = '5m' + # trailing stoploss + trailing_stop = False + trailing_stop_positive = 0.01 + trailing_stop_positive_offset = 0.02 + + # Optimal ticker interval for the strategy + ticker_interval = '5m' + + # run "populate_indicators" only for new candle + ta_on_candle = False + + # Experimental settings (configuration will overide these if set) + use_sell_signal = True + sell_profit_only = True + ignore_roi_if_buy_signal = False + + # Optional order type mapping + order_types = { + 'buy': 'limit', + 'sell': 'limit', + 'stoploss': 'market', + 'stoploss_on_exchange': False + } + def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Adds several different TA indicators to the given DataFrame diff --git a/user_data/strategies/Strategy004.py b/user_data/strategies/Strategy004.py index 3b35290..ab6509e 100644 --- a/user_data/strategies/Strategy004.py +++ b/user_data/strategies/Strategy004.py @@ -35,6 +35,30 @@ class Strategy004(IStrategy): # Optimal ticker interval for the strategy ticker_interval = '5m' + # trailing stoploss + trailing_stop = False + trailing_stop_positive = 0.01 + trailing_stop_positive_offset = 0.02 + + # Optimal ticker interval for the strategy + ticker_interval = '5m' + + # run "populate_indicators" only for new candle + ta_on_candle = False + + # Experimental settings (configuration will overide these if set) + use_sell_signal = True + sell_profit_only = True + ignore_roi_if_buy_signal = False + + # Optional order type mapping + order_types = { + 'buy': 'limit', + 'sell': 'limit', + 'stoploss': 'market', + 'stoploss_on_exchange': False + } + def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Adds several different TA indicators to the given DataFrame diff --git a/user_data/strategies/Strategy005.py b/user_data/strategies/Strategy005.py index ba48c78..b9ed18a 100644 --- a/user_data/strategies/Strategy005.py +++ b/user_data/strategies/Strategy005.py @@ -38,6 +38,30 @@ class Strategy005(IStrategy): # Optimal ticker interval for the strategy ticker_interval = '5m' + # trailing stoploss + trailing_stop = False + trailing_stop_positive = 0.01 + trailing_stop_positive_offset = 0.02 + + # Optimal ticker interval for the strategy + ticker_interval = '5m' + + # run "populate_indicators" only for new candle + ta_on_candle = False + + # Experimental settings (configuration will overide these if set) + use_sell_signal = True + sell_profit_only = True + ignore_roi_if_buy_signal = False + + # Optional order type mapping + order_types = { + 'buy': 'limit', + 'sell': 'limit', + 'stoploss': 'market', + 'stoploss_on_exchange': False + } + def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Adds several different TA indicators to the given DataFrame