Skip to content

Commit

Permalink
[Fix] close vnpy#2666
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Sep 17, 2020
1 parent 3847dcb commit f6bc137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vnpy/trader/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,11 +778,11 @@ def mfi(self, n: int, array: bool = False) -> Union[float, np.ndarray]:
return result
return result[-1]

def ad(self, n: int, array: bool = False) -> Union[float, np.ndarray]:
def ad(self, array: bool = False) -> Union[float, np.ndarray]:
"""
AD.
"""
result = talib.AD(self.high, self.low, self.close, self.volume, n)
result = talib.AD(self.high, self.low, self.close, self.volume)
if array:
return result
return result[-1]
Expand Down

0 comments on commit f6bc137

Please sign in to comment.