Elffuss BraidHub

kikocis/freqtrade-strategies public

minor bugfix, v5.1 bump
Changeset0b0a6a1d1396aecfa8c65a62271eb76f59fe1b62a90dbb6eb1fd48367b469687
AuthorBryan Chain <bryan.chain@cerner.com> · 2021-05-05 00:24 -04:00
CommitterBryan Chain <bryan.chain@cerner.com> · 2021-05-05 00:24 -04:00
Parentse16f5a7c29bb

Browse the files at this changeset

1 file changed

modified strategies/Solipsis_v5.py +5 −24
@@ -34,7 +34,7 @@
3434
3535 I take no responsibility for any success or failure you have using this strategy.
3636
37-VERSION: 5.0
37+VERSION: 5.1
3838 """
3939
4040 class Solipsis5(IStrategy):
@@ -59,14 +59,14 @@
5959 ## Sell Space Params are being used for both custom_stoploss and custom_sell
6060
6161 # Custom Sell Profit (formerly Dynamic ROI)
62- csell_roi_type = CategoricalParameter(['static', 'decay', 'step'], default='static', space='sell', optimize=True)
62+ csell_roi_type = CategoricalParameter(['static', 'decay', 'step'], default='decay', space='sell', optimize=True)
6363 csell_roi_time = IntParameter(720, 1440, default=720, space='sell')
6464 csell_roi_start = DecimalParameter(0.01, 0.05, default=0.01, space='sell')
6565 csell_roi_end = DecimalParameter(0.0, 0.01, default=0, space='sell')
6666 csell_trend_type = CategoricalParameter(['rmi', 'ssl', 'candle', 'any'], default='any', space='sell', optimize=True)
6767 csell_pullback = CategoricalParameter([True, False], default=True, space='sell', optimize=True)
68- csell_pullback_amount = DecimalParameter(0.005, 0.02, default=0.005, space='sell')
69- csell_pullback_respect_roi = CategoricalParameter([True, False], default=True, space='sell', optimize=True)
68+ csell_pullback_amount = DecimalParameter(0.005, 0.03, default=0.01, space='sell')
69+ csell_pullback_respect_roi = CategoricalParameter([True, False], default=False, space='sell', optimize=True)
7070
7171 # Custom Sell Loss (formerly Custom Stoploss)
7272 csell_loss_threshold = DecimalParameter(-0.05, 0, default=-0.03, space='sell')
@@ -369,23 +369,4 @@
369369 else:
370370 return 'loss_timeout'
371371 else:
372- return None
373-
374- """
375- Trade Timeout Overloads
376- """
377- def check_buy_timeout(self, pair: str, trade: Trade, order: dict, **kwargs) -> bool:
378- bid_strategy = self.config.get('bid_strategy', {})
379- ob = self.dp.orderbook(pair, 1)
380- current_price = ob[f"{bid_strategy['price_side']}s"][0][0]
381- if current_price > order['price'] * 1.01:
382- return True
383- return False
384-
385- def check_sell_timeout(self, pair: str, trade: Trade, order: dict, **kwargs) -> bool:
386- ask_strategy = self.config.get('ask_strategy', {})
387- ob = self.dp.orderbook(pair, 1)
388- current_price = ob[f"{ask_strategy['price_side']}s"][0][0]
389- if current_price < order['price'] * 0.99:
390- return True
391- return False
No newline at the end of the file
372+ return None
No newline at the end of the file