kikocis/freqtrade-strategies public
Changesets · Branches · Tags · Compare
| Changeset | 5e70c765dff4d9bff4830ba89c3e921f506e5595cadb5930914cf1077a724e82 |
|---|---|
| Author | Bryan Chain <bryan.chain@cerner.com> · 2021-05-08 00:34 -04:00 |
| Committer | Bryan Chain <bryan.chain@cerner.com> · 2021-05-08 00:34 -04:00 |
| Parents | 4d85a65c0537 |
2 files changed
modified README.md +4 −0
| @@ -90,6 +90,10 @@ | ||
| 90 | 90 | |
| 91 | 91 | ### v5 |
| 92 | 92 | |
| 93 | +May 7, 2021 (version 5.1.1): | |
| 94 | +- **General** | |
| 95 | + - Changed default for `base_trigger` from `optimize=False` to `optimize=True` | |
| 96 | + | |
| 93 | 97 | May 5, 2021 (version 5.1): |
| 94 | 98 | - **Bugfixes** |
| 95 | 99 | - Fixed bug causing hyperopt output to not align correctly with a backtest using the outputted parameters. |
modified strategies/Solipsis_v5.py +3 −3
| @@ -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.1 | |
| 37 | +VERSION: 5.1.1 | |
| 38 | 38 | """ |
| 39 | 39 | |
| 40 | 40 | class Solipsis5(IStrategy): |
| @@ -47,7 +47,7 @@ | ||
| 47 | 47 | base_rmi_min = IntParameter(0, 30, default=20, space='buy') |
| 48 | 48 | base_ma_streak = IntParameter(1, 4, default=1, space='buy') |
| 49 | 49 | base_rmi_streak = IntParameter(3, 8, default=3, space='buy') |
| 50 | - base_trigger = CategoricalParameter(['pcc', 'rmi', 'none'], default='rmi', space='buy', optimize=False) | |
| 50 | + base_trigger = CategoricalParameter(['pcc', 'rmi', 'none'], default='rmi', space='buy', optimize=True) | |
| 51 | 51 | inf_pct_adr = DecimalParameter(0.70, 0.99, default=0.80, space='buy') |
| 52 | 52 | # BTC Informative |
| 53 | 53 | xbtc_guard = CategoricalParameter(['strict', 'lazy', 'none'], default='lazy', space='buy', optimize=True) |
| @@ -299,7 +299,7 @@ | ||
| 299 | 299 | def custom_sell(self, pair: str, trade: Trade, current_time: datetime, current_rate: float, |
| 300 | 300 | current_profit: float, dataframe: DataFrame, |
| 301 | 301 | **kwargs) -> Optional[Union[str, bool]]: |
| 302 | - | |
| 302 | + | |
| 303 | 303 | trade_open_date = timeframe_to_prev_date(self.timeframe, trade.open_date_utc) |
| 304 | 304 | trade_row = dataframe.loc[dataframe['date'] == trade_open_date] |
| 305 | 305 | if trade_row is None: |