kikocis/freqtrade-strategies public
Changesets · Branches · Tags · Compare
| Changeset | 0b0a6a1d1396aecfa8c65a62271eb76f59fe1b62a90dbb6eb1fd48367b469687 |
|---|---|
| Author | Bryan Chain <bryan.chain@cerner.com> · 2021-05-05 00:24 -04:00 |
| Committer | Bryan Chain <bryan.chain@cerner.com> · 2021-05-05 00:24 -04:00 |
| Parents | e16f5a7c29bb |
1 file changed
modified strategies/Solipsis_v5.py +5 −24
| @@ -34,7 +34,7 @@ | ||
| 34 | 34 | |
| 35 | 35 | I take no responsibility for any success or failure you have using this strategy. |
| 36 | 36 | |
| 37 | -VERSION: 5.0 | |
| 37 | +VERSION: 5.1 | |
| 38 | 38 | """ |
| 39 | 39 | |
| 40 | 40 | class Solipsis5(IStrategy): |
| @@ -59,14 +59,14 @@ | ||
| 59 | 59 | ## Sell Space Params are being used for both custom_stoploss and custom_sell |
| 60 | 60 | |
| 61 | 61 | # 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) | |
| 63 | 63 | csell_roi_time = IntParameter(720, 1440, default=720, space='sell') |
| 64 | 64 | csell_roi_start = DecimalParameter(0.01, 0.05, default=0.01, space='sell') |
| 65 | 65 | csell_roi_end = DecimalParameter(0.0, 0.01, default=0, space='sell') |
| 66 | 66 | csell_trend_type = CategoricalParameter(['rmi', 'ssl', 'candle', 'any'], default='any', space='sell', optimize=True) |
| 67 | 67 | 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) | |
| 70 | 70 | |
| 71 | 71 | # Custom Sell Loss (formerly Custom Stoploss) |
| 72 | 72 | csell_loss_threshold = DecimalParameter(-0.05, 0, default=-0.03, space='sell') |
| @@ -369,23 +369,4 @@ | ||
| 369 | 369 | else: |
| 370 | 370 | return 'loss_timeout' |
| 371 | 371 | 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 |