Cycle Indicator Functions
不是很懂,欢迎指教
HT_DCPERIOD - Hilbert Transform - Dominant Cycle Period
函数名:HT_DCPERIOD
名称: 希尔伯特变换-主导周期
简介:将价格作为信息信号,计算价格处在的周期的位置,作为择时的依据。
文库文档
NOTE: The HT_DCPERIOD
function has an unstable period.
python
real = HT_DCPERIOD(close)
Learn more about the Hilbert Transform - Dominant Cycle Period at tadoc.org.
HT_DCPHASE - Hilbert Transform - Dominant Cycle Phase
函数名:HT_DCPHASE
名称: 希尔伯特变换-主导循环阶段
NOTE: The HT_DCPHASE
function has an unstable period.
python
real = HT_DCPHASE(close)
Learn more about the Hilbert Transform - Dominant Cycle Phase at tadoc.org.
HT_PHASOR - Hilbert Transform - Phasor Components
函数名:HT_DCPHASE
名称: 希尔伯特变换-希尔伯特变换相量分量
NOTE: The HT_PHASOR
function has an unstable period.
python
inphase, quadrature = HT_PHASOR(close)
Learn more about the Hilbert Transform - Phasor Components at tadoc.org.
HT_SINE - Hilbert Transform - SineWave
函数名:HT_DCPHASE
名称: 希尔伯特变换-正弦波
NOTE: The HT_SINE
function has an unstable period.
python
sine, leadsine = HT_SINE(close)
Learn more about the Hilbert Transform - SineWave at tadoc.org.
HT_TRENDMODE - Hilbert Transform - Trend vs Cycle Mode
函数名:HT_DCPHASE
名称: 希尔伯特变换-趋势与周期模式
NOTE: The HT_TRENDMODE
function has an unstable period.
integer = HT_TRENDMODE(close)
Learn more about the Hilbert Transform - Trend vs Cycle Mode at tadoc.org.
文档
FLOAT_RIGHTAll Function Groups
Statistic Functions 统计学指标
BETA - Beta
函数名:BETA
名称:β系数也称为贝塔系数
简介:一种风险指数,用来衡量个别股票或
股票基金相对于整个股市的价格波动情况
贝塔系数衡量股票收益相对于业绩评价基准收益的总体波动性,是一个相对指标。 β 越高,意味着股票相对于业绩评价基准的波动性越大。 β 大于 1 ,
则股票的波动性大于业绩评价基准的波动性。反之亦然。
用途:
1)计算资本成本,做出投资决策(只有回报率高于资本成本的项目才应投资);
2)计算资本成本,制定业绩考核及激励标准;
3)计算资本成本,进行资产估值(Beta是现金流贴现模型的基础);
4)确定单个资产或组合的系统风险,用于资产组合的投资管理,特别是股指期货或其他金融衍生品的避险(或投机)
real = BETA(high, low, timeperiod=5)
Learn more about the Beta at tadoc.org.
CORREL - Pearson's Correlation Coefficient (r)
函数名:CORREL
名称:皮尔逊相关系数
简介:用于度量两个变量X和Y之间的相关(线性相关),其值介于-1与1之间
皮尔逊相关系数是一种度量两个变量间相关程度的方法。它是一个介于 1 和 -1 之间的值,
其中,1 表示变量完全正相关, 0 表示无关,-1 表示完全负相关。
python
real = CORREL(high, low, timeperiod=30)
Learn more about the Pearson's Correlation Coefficient (r) at tadoc.org.
LINEARREG - Linear Regression
直线回归方程:当两个变量x与y之间达到显著地线性相关关系时,应用最小二乘法原理确定一条最优直线的直线方程y=a+bx,这条回归直线与个相关点的距离比任何其他直线与相关点的距离都小,是最佳的理想直线.
回归截距a:表示直线在y轴上的截距,代表直线的起点.
回归系数b:表示直线的斜率,他的实际意义是说明x每变化一个单位时,影响y平均变动的数量.
即x每增加1单位,y变化b个单位.
函数名:LINEARREG
名称:线性回归
简介:来确定两种或两种以上变量间相互依赖的定量关系的一种统计分析方法
其表达形式为y = w'x+e,e为误差服从均值为0的正态分布。
real = LINEARREG(close, timeperiod=14)
Learn more about the Linear Regression at tadoc.org.
LINEARREG_ANGLE - Linear Regression Angle
函数名:LINEARREG_ANGLE
名称:线性回归的角度
简介:来确定价格的角度变化.
参考
python
real = LINEARREG_ANGLE(close, timeperiod=14)
Learn more about the Linear Regression Angle at tadoc.org.
LINEARREG_INTERCEPT - Linear Regression Intercept
函数名:LINEARREG_INTERCEPT
名称:线性回归截距
python
real = LINEARREG_INTERCEPT(close, timeperiod=14)
Learn more about the Linear Regression Intercept at tadoc.org.
LINEARREG_SLOPE - Linear Regression Slope
函数名:LINEARREG_SLOPE
名称:线性回归斜率指标
real = LINEARREG_SLOPE(close, timeperiod=14)
Learn more about the Linear Regression Slope at tadoc.org.
STDDEV - Standard Deviation
函数名:STDDEV
名称:标准偏差
简介:种量度数据分布的分散程度之标准,用以衡量数据值偏离算术平均值的程度。标准偏差越小,这些值偏离平均值就越少,反之亦然。标准偏差的大小可通过标准偏差与平均值的倍率关系来衡量。
real = STDDEV(close, timeperiod=5, nbdev=1)
Learn more about the Standard Deviation at tadoc.org.
TSF - Time Series Forecast
函数名:TSF
名称:时间序列预测
简介:一种历史资料延伸预测,也称历史引伸预测法。是以时间数列所能反映的社会经济现象的发展过程和规律性,进行引伸外推,预测其发展趋势的方法
real = TSF(close, timeperiod=14)
Learn more about the Time Series Forecast at tadoc.org.
VAR - VAR
函数名: VAR
名称:方差
简介:方差用来计算每一个变量(观察值)与总体均数之间的差异。为避免出现离均差总和为零,离均差平方和受样本含量的影响,统计学采用平均离均差平方和来描述变量的变异程度
real = VAR(close, timeperiod=5, nbdev=1)
Learn more about the Variance at tadoc.org.
文档
FLOAT_RIGHTAll Function Groups
Price Transform Functions
AVGPRICE - Average Price
函数名:AVGPRICE
名称:平均价格函数
python
real = AVGPRICE(open, high, low, close)
Learn more about the Average Price at tadoc.org.
MEDPRICE - Median Price
函数名:MEDPRICE
名称:中位数价格
python
real = MEDPRICE(high, low)
Learn more about the Median Price at tadoc.org.
TYPPRICE - Typical Price
函数名:TYPPRICE
名称:代表性价格
real = TYPPRICE(high, low, close)
Learn more about the Typical Price at tadoc.org.
WCLPRICE - Weighted Close Price
函数名:WCLPRICE
名称:加权收盘价
real = WCLPRICE(high, low, close)
Learn more about the Weighted Close Price at tadoc.org.
文档
FLOAT_RIGHTAll Function Groups
Math Transform Functions
ACOS - Vector Trigonometric ACos
函数名:ACOS
名称:acos函数是反余弦函数,三角函数
real = ACOS(close)
ASIN - Vector Trigonometric ASin
函数名:ASIN
名称:反正弦函数,三角函数
real = ASIN(close)
ATAN - Vector Trigonometric ATan
函数名:ASIN
名称:数字的反正切值,三角函数
real = ATAN(close)
CEIL - Vector Ceil
函数名:CEIL
简介:向上取整数
real = CEIL(close)
COS - Vector Trigonometric Cos
函数名:COS
名称:余弦函数,三角函数
python
real = COS(close)
COSH - Vector Trigonometric Cosh
函数名:COSH
名称:双曲正弦函数,三角函数
python
real = COSH(close)
EXP - Vector Arithmetic Exp
函数名:EXP
名称:指数曲线,三角函数
real = EXP(close)
FLOOR - Vector Floor
函数名:FLOOR
名称:向下取整数
real = FLOOR(close)
LN - Vector Log Natural
函数名:LN
名称:自然对数
real = LN(close)
LOG10 - Vector Log10
函数名:LOG10
名称:对数函数log
real = LOG10(close)
SIN - Vector Trigonometric Sin
函数名:SIN
名称:正弦函数,三角函数
python
real = SIN(close)
SINH - Vector Trigonometric Sinh
函数名:SINH
名称:双曲正弦函数,三角函数
real = SINH(close)
SQRT - Vector Square Root
函数名:SQRT
名称:非负实数的平方根
real = SQRT(close)
TAN - Vector Trigonometric Tan
函数名:TAN
名称:正切函数,三角函数
python
real = TAN(close)
TANH - Vector Trigonometric Tanh
函数名:TANH
名称:双曲正切函数,三角函数
python
real = TANH(close)
文档
FLOAT_RIGHTAll Function Groups