Add can_short to freqai base model

This commit is contained in:
Emre 2022-12-16 23:19:08 +03:00
parent e604047158
commit c293401b22
No known key found for this signature in database
GPG Key ID: 0EAD2EE11B666ABA

View File

@ -104,6 +104,7 @@ class IFreqaiModel(ABC):
self.metadata: Dict[str, Any] = self.dd.load_global_metadata_from_disk()
self.data_provider: Optional[DataProvider] = None
self.max_system_threads = max(int(psutil.cpu_count() * 2 - 2), 1)
self.can_short = True # overridden in start() with strategy.can_short
record_params(config, self.full_path)