Hi,
I realized if I use
historical_data = history(390*100, '1m', 'price')
last_10_day_mean = historical_data.tail(390*10).mean()
last_30_day_mean = historical_data.tail(390*30).mean()
last_90_day_mean = historical_data.tail(390*90).mean()
It dramatically slows down or even errors out.
QdbExecutionTimeout: Executing 'historical_data = history(390*100, '1m', 'price')' exceeded the max time of 50 second
due to tool it takes to get the data. Is there anyway to use mavg() to accomplish this? Do I have to do mavg(390*day)?
The reason, I went with history(390*100, '1m', 'price') to begin with is because it fits better with my existing algo. But I guess I have to alter it if I have to.
Thank you