From f39859a5462d5469d3919826cc7987bf57421b73 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Fri, 8 Nov 2019 22:50:59 +0800 Subject: [PATCH] [Del] remove sma_ohlc --- vnpy/trader/utility.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/vnpy/trader/utility.py b/vnpy/trader/utility.py index f9ef2839..3df538a9 100644 --- a/vnpy/trader/utility.py +++ b/vnpy/trader/utility.py @@ -508,15 +508,6 @@ class ArrayManager(object): return result return result[-1] - def sma_ohlc(self, n, array=False): - """ - Simple moving average for open, high, low, close. - """ - medio = (self.open + self.high + self.low + self.close) / 4 - result = talib.SMA(medio, n) - if array: - return result - return result[-1] def virtual(func: "callable"): """