mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Force high priority pair to be trained before anything else.
This commit is contained in:
parent
7523ed825e
commit
0b0dd8dd80
|
@ -123,10 +123,6 @@ class FreqaiDataDrawer:
|
|||
self.pair_dict[metadata['pair']]['priority'] = len(self.pair_dict)
|
||||
return
|
||||
|
||||
# def create_training_queue(self, pairs: list) -> None:
|
||||
# for i, pair in enumerate(pairs):
|
||||
# self.training_queue[pair] = i + 1
|
||||
|
||||
def pair_to_end_of_training_queue(self, pair: str) -> None:
|
||||
# march all pairs up in the queue
|
||||
for p in self.pair_dict:
|
||||
|
|
|
@ -215,7 +215,8 @@ class IFreqaiModel(ABC):
|
|||
self.data_drawer.return_null_values_to_strategy(dataframe, dh)
|
||||
return dh
|
||||
|
||||
if (not self.training_on_separate_thread and not self.follow_mode):
|
||||
if (not self.training_on_separate_thread and not self.follow_mode
|
||||
and self.data_drawer.pair_dict[metadata['pair']]['priority'] == 1):
|
||||
file_exists = False
|
||||
|
||||
if trained_timestamp != 0: # historical model available
|
||||
|
|
Loading…
Reference in New Issue
Block a user