Clear last check and last coefficient column on clear history.

This commit is contained in:
Jamie Cash
2021-03-11 09:50:52 +00:00
parent 8c2cbf5df8
commit ab6c2ae338
3 changed files with 15 additions and 6 deletions
+5
View File
@@ -10,6 +10,7 @@ from scipy.stats.stats import pearsonr
import pickle
import inspect
import sys
import numpy as np
from mt5_correlation.mt5 import MT5
@@ -369,6 +370,10 @@ class Correlation:
# Clear tick data
self.__monitor_tick_data = {}
# Clear columns from coefficient data
self.coefficient_data['Last Check'] = np.NaN
self.coefficient_data['Last Coefficient'] = np.NaN
def get_ticks(self, symbol, date_from=None, date_to=None, cache_time=0, cache_only=False):
"""
Returns the ticks for the specified symbol. Get's from cache if available and not older than cache_timeframe.