Skip to content

Commit

Permalink
Fix some minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Nov 7, 2022
1 parent 6559384 commit 884014a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/freqai-running.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ The `--timerange` parameter must not be informed, as it will be automatically ca
Each model has an identifier derived from the training end date. If you have only 1 model trained, FreqAI will backtest from the training end date until the current date. If you have more than 1 model, each model will perform the backtesting according to the training end date until the training end date of the next model and so on. For the last model, the period of the previous model will be used for the execution.

!!! Note
Currently, there is no checking for expired models, even if the expired_hours parameter is set.
Currently, there is no checking for expired models, even if the `expired_hours` parameter is set.


### Downloading data to cover the full backtest period
Expand Down
2 changes: 1 addition & 1 deletion freqtrade/freqai/freqai_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ def log_backtesting_progress(self, tr_train: TimeRange, pair: str,
train_it: int, total_trains: int):
"""
Log the backtesting progress so user knows how many pairs have been trained and
hoe many more pairs/trains remain.
how many more pairs/trains remain.
:param tr_train: the training timerange
:param train_it: the train iteration for the current pair (the sliding window progress)
:param pair: the current pair
Expand Down
2 changes: 1 addition & 1 deletion freqtrade/freqai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def record_params(config: Dict[str, Any], full_path: Path) -> None:
)


def get_timerange_backtest_live_models(config: Config):
def get_timerange_backtest_live_models(config: Config) -> str:
"""
Returns a formated timerange for backtest live/ready models
:param config: Configuration dictionary
Expand Down
4 changes: 2 additions & 2 deletions freqtrade/optimize/backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def __init__(self, config: Config) -> None:
self.precision_mode = self.exchange.precisionMode

if self.config.get('freqai_backtest_live_models', False):
from freqtrade.freqai import utils
self.config['timerange'] = utils.get_timerange_backtest_live_models(self.config)
from freqtrade.freqai.utils import get_timerange_backtest_live_models
self.config['timerange'] = get_timerange_backtest_live_models(self.config)

self.timerange = TimeRange.parse_timerange(
None if self.config.get('timerange') is None else str(self.config.get('timerange')))
Expand Down

0 comments on commit 884014a

Please sign in to comment.