我正在嘗試使用xlwings來複制一個簡單的技術分析指標。但是,列表/數據似乎不能讀取Excel值。下面是代碼 import pandas as pd
import datetime as dt
import numpy as np
@xw.func
def EMA(df, n):
EMA = pd.Series(pd.ewma(df['Close'], span = n, m
在計算系列的平均真實範圍[ATR]時,我被卡住了。 ATR基本上TrueRange的精通企圖不平均[TR] TR is nothing but MAX of -
Method 1: Current High less the current Low
Method 2: Current High less the previous Close (absolute value)