接口的使用
org.dromara.northstar.indicator.Indicator
使用Indicator的程序包
程序包
说明
-
org.dromara.northstar.indicator中Indicator的使用
返回变量类型为Indicator的类型的org.dromara.northstar.indicator中的方法修饰符和类型方法说明AbstractIndicator.dependencies()Indicator.dependencies()获取该指标的依赖指标 此接口主要用于暴露指标的依赖关系,从而可以让模组上下文通过该接口递归获取指标的依赖树关系,为指标更新与图表可视化提供入口 -
org.dromara.northstar.indicator.helper中Indicator的使用
修饰符和类型类说明class求两指标值之差class最大值指标class最小值指标class对源指标的计算值进行归一化处理class简单值指标class标准差指标class求两指标值之和返回变量类型为Indicator的类型的org.dromara.northstar.indicator.helper中的方法修饰符和类型方法说明DiffIndicator.dependencies()HHVIndicator.dependencies()LLVIndicator.dependencies()NormalizeIndicator.dependencies()StandardDeviationIndicator.dependencies()SumIndicator.dependencies()限定符构造器说明DiffIndicator(Configuration cfg, Indicator line1, double multiplier1, Indicator line2, double multiplier2) DiffIndicator(Configuration cfg, Indicator line1, Indicator line2) HHVIndicator(Configuration cfg, Indicator indicator) LLVIndicator(Configuration cfg, Indicator indicator) NormalizeIndicator(Configuration cfg, Indicator srcIndicator) StandardDeviationIndicator(Configuration cfg, Indicator indicator) 标准差指标SumIndicator(Configuration cfg, Indicator line1, double multiplier1, Indicator line2, double multiplier2) SumIndicator(Configuration cfg, Indicator line1, Indicator line2) -
org.dromara.northstar.indicator.momentum中Indicator的使用
修饰符和类型类说明classKD指标 N,M1,M2为KD指标参数 RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。classclassRSI指标,本质上是一个单值指标 LC := REF(CLOSE,1);//前一周期收盘价 RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;//当根K线收盘价与前一周期收盘价做差,在该差值与0之间取最大值,做N1周期移动平均。返回变量类型为Indicator的类型的org.dromara.northstar.indicator.momentum中的方法修饰符和类型方法说明KDIndicator.dependencies()KDIndicator.RSVIndicator.dependencies()RSIIndicator.dependencies() -
org.dromara.northstar.indicator.trend中Indicator的使用
修饰符和类型类说明classEMA指数加权平均线classMACD指标 算法: DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);//短周期与长周期的收盘价的指数平滑移动平均值做差。classMA算术平均线classclass瀑布线指标classSMA扩展指数加权移动平均线返回变量类型为Indicator的类型的org.dromara.northstar.indicator.trend中的方法修饰符和类型方法说明EMAIndicator.dependencies()MACDIndicator.dependencies()MAIndicator.dependencies()PBXIndicator.dependencies()PuBuIndicator.dependencies()SMAIndicator.dependencies()限定符构造器说明EMAIndicator(Configuration cfg, Indicator indicator, int barCount) MACDIndicator(Configuration cfg, Indicator fastLine, Indicator slowLine, int signalBarCount) 求任意两个指标线的MACD值MAIndicator(Configuration cfg, Indicator srcIndicator, int barCount) SMAIndicator(Configuration cfg, Indicator srcIndicator, int barCount, int weight) -
org.dromara.northstar.indicator.volatility中Indicator的使用
修饰符和类型类说明class布林带指标class真实波幅指标 本指标只求TR,ATR只是对TR做平均处理 TR : MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));//求最高价减去最低价,一个周期前的收盘价减去最高价的绝对值,一个周期前的收盘价减去最低价的绝对值,这三个值中的最大值 ATR : MA(TR,N);//求N个周期内的TR的简单移动平均返回变量类型为Indicator的类型的org.dromara.northstar.indicator.volatility中的方法 -
org.dromara.northstar.indicator.volume中Indicator的使用
修饰符和类型类说明class日内成交量加权均价,近似于SETTLE 按1分钟K线计算class成交放量阈值指标class成交量加权平均价格(Volume Weighted Average Price)返回变量类型为Indicator的类型的org.dromara.northstar.indicator.volume中的方法修饰符和类型方法说明IntraDaySettlePriceIndicator.dependencies()VolumeBoostingIndicator.dependencies()VWAPIndicator.dependencies() -
org.dromara.northstar.indicator.wave中Indicator的使用
返回变量类型为Indicator的类型的org.dromara.northstar.indicator.wave中的方法限定符构造器说明MABasedWaveIndicator(Configuration cfg, Indicator maLine, int numOfBarToConfirmTheSegment, MABasedWaveIndicator.EndpointType type) -
org.dromara.northstar.strategy中Indicator的使用
参数类型为Indicator的org.dromara.northstar.strategy中的方法