本文档的内容在“六玛API”指标内容中提供,可以通过公式编辑器进行查看与复制使用。
///本文件列出六西格玛算法进阶版所有函数清单
INPUT:PERIODN(21,3,9999,1); //参数设置
RUN:="SixSigmaJztAdv@SixSigmaRun"(PERIODN); {//必须放其他函数之前运行}
///网格模型
//LINECEN:"SixSigmaKTAdv@LINECEN"(PERIODN); //筹码中轨
//PRICE1UCL:"SixSigmaKTAdv@PRICE1UCL"(PERIODN); //价位台阶上沿、转折
//PRICE1LCL:"SixSigmaKTAdv@PRICE1LCL"(PERIODN); //价位台阶下沿、转折
//COSTUCL:"SixSigmaKTAdv@COSTUCL"(PERIODN); //价格中枢上沿
//COSTLCL:"SixSigmaKTAdv@COSTLCL"(PERIODN); //价格中枢下沿
//VALUEUCL:"SixSigmaKTAdv@VALUEUCL"(PERIODN); //价值区间上沿
//VALUELCL:"SixSigmaKTAdv@VALUELCL"(PERIODN); //价值区间下沿
//PRICE1MID:"SixSigmaKTAdv@PRICE1MID"(PERIODN); //价位台阶中位线
//COSTMID:"SixSigmaKTAdv@COSTMID"(PERIODN); //价格中枢中位线
//VALUEMID:"SixSigmaKTAdv@VALUEMID"(PERIODN); //价值区间中位线
///状态监控信号
//PRICERATE:"SixSigmaKTAdv@PRICERATE"(PERIODN); //价位未成熟随机值
//COSTRATE:"SixSigmaKTAdv@COSTRATE"(PERIODN); //价格未成熟随机值
//PRICEUPCLOSEBARS:"SixSigmaKTAdv@PRICEUPCLOSEBARS"(PERIODN); //价位台阶即将转折
//PRICEDWCLOSEBARS:"SixSigmaKTAdv@PRICEDWCLOSEBARS"(PERIODN); //向下台阶即将转折
//COSTUPCLOSEBARS:"SixSigmaKTAdv@COSTUPCLOSEBARS"(PERIODN); //向上中枢即将封闭
//COSTDWCLOSEBARS:"SixSigmaKTAdv@COSTDWCLOSEBARS"(PERIODN); //向下中枢即将封闭
//VALUEUPCLOSEBARS:"SixSigmaKTAdv@VALUEUPCLOSEBARS"(PERIODN); //向上区间即将封闭
//VALUEDWCLOSEBARS:"SixSigmaKTAdv@VALUEDWCLOSEBARS"(PERIODN); //向下区间即将封闭
///形态信号
//IsPriceUp:"SixSigmaKTAdv@IsPriceUp"(PERIODN); //价位台阶上移信号
//IsPriceDown:"SixSigmaKTAdv@IsPriceDown"(PERIODN); //价位台阶下移信号
//IsCostUp:"SixSigmaKTAdv@IsCostUp"(PERIODN); //价格中枢上封信号
//IsCostDown:"SixSigmaKTAdv@IsCostDown"(PERIODN); //价格中枢下封信号
//IsValueUp:"SixSigmaKTAdv@IsValueUp"(PERIODN); //价值区间上封信号
//IsValueDown:"SixSigmaKTAdv@IsValueDown"(PERIODN); //价值区间下封信号
///时间形态
//PriceLastBars:"SixSigmaKTAdv@PriceLastBars"(PERIODN); //价位台阶上封信号发生周期数
//CostLastBars:"SixSigmaKTAdv@CostLastBars"(PERIODN); //价格中枢上封信号发生周期数
//ValueLastBars:"SixSigmaKTAdv@ValueLastBars"(PERIODN); //价值区间下封信号发生周期数
///空间形态
//BandOKCount:"SixSigmaKTAdv@BandOKCount"(PERIODN); //网格归位次数
//TopPriceTurningCount:"SixSigmaKTAdv@TopPriceTurningCount"(PERIODN); //价位台阶上移序数
//BotPriceTurningCount:"SixSigmaKTAdv@BotPriceTurningCount"(PERIODN); //价位台阶下移序数
//TopCostTurningCount:"SixSigmaKTAdv@TopCostTurningCount"(PERIODN); //价格中枢上移序数
//BotCostTurningCount:"SixSigmaKTAdv@BotCostTurningCount"(PERIODN); //价格中枢下移序数
//TopValueTurningCount:"SixSigmaKTAdv@TopValueTurningCount"(PERIODN); //价值区间上移序数
//BotValueTurningCount:"SixSigmaKTAdv@BotValueTurningCount"(PERIODN); //价值区间下移序数
///筹码区引力(收敛度)
//PriceCvg:"SixSigmaKTAdv@PriceCvg"(PERIODN); //价位筹码收敛度
//CostCvg:"SixSigmaKTAdv@CostCvg"(PERIODN); //价格筹码收敛度
//ValueCvg:=0-"SixSigmaKTAdv@ValueCvg"(PERIODN); //价值筹码收敛度
///动力、能量指标
//PowPeak:"SixSigmaKTAdv@PowPeak"(PERIODN); //能量波峰波谷
//PClose:"SixSigmaJztAdv@PowPeak"(PERIODN); //波峰波谷分水线(预测今日Powpeak与明日Powpeak相等时的收盘价)
///入场点位
IsPosition:"SixSigmaKTAdv@IsPosition"(PERIODN); //入场点集合(1多头入场,-1空头入场)
OnePosition:"SixSigmaKTAdv@OnePosition"(PERIODN); //台阶买卖信号集合(3第一买点-3第一卖点,1反弹点-1回调点,2支撑点,-2压力点)
TwoPosition:"SixSigmaKTAdv@TwoPosition"(PERIODN); //中枢买卖信号集合(6第三买点-6第三卖点,4第二买点-4第二卖点,2向上中继点-2向下中断点,3向上反转点,-3向下反转点)
ThreePosition:"SixSigmaKTAdv@ThreePosition"(PERIODN); //区间买卖信号集合(2低吸点-2高抛点,4第四买点-4第四卖点)
///MACD监控指标
//DiffView:"SixSigmaKTAdv@DiffView"(PERIODN); //MACD Diff线主图指标
//DeaView:"SixSigmaKTAdv@DeaView"(PERIODN); //MACD Dea线主图指标
///分布统计
//ZsUpSummary1:"SixSigmaKTAdv@ZsUpSummary1"(PERIODN); //中枢上移1次的情况出现的次数
//ZsUpSummary2:"SixSigmaKTAdv@ZsUpSummary2"(PERIODN); //中枢上移2次的情况出现的次数
//ZsUpSummary3:"SixSigmaKTAdv@ZsUpSummary3"(PERIODN); //中枢上移3次的情况出现的次数
//ZsUpSummary4:"SixSigmaKTAdv@ZsUpSummary4"(PERIODN); //中枢上移4次的情况出现的次数
//ZsUpSummary5:"SixSigmaKTAdv@ZsUpSummary5"(PERIODN); //中枢上移5次的情况出现的次数
//ZsUpSummary6:"SixSigmaKTAdv@ZsUpSummary6"(PERIODN); //中枢上移6次的情况出现的次数
//ZsUpSummary7:"SixSigmaKTAdv@ZsUpSummary7"(PERIODN); //中枢上移7次的情况出现的次数
//ZsUpSummary8:"SixSigmaKTAdv@ZsUpSummary8"(PERIODN); //中枢上移8次的情况出现的次数
//ZsUpSummary9:"SixSigmaKTAdv@ZsUpSummary9"(PERIODN); //中枢上移9次的情况出现的次数
//ZsUpSummary10:"SixSigmaKTAdv@ZsUpSummary10"(PERIODN);//中枢上移10次的情况出现的次数
//
//ZsDownSummary1:"SixSigmaKTAdv@ZsDownSummary1"(PERIODN); //中枢下移1次的情况出现的次数
//ZsDownSummary2:"SixSigmaKTAdv@ZsDownSummary2"(PERIODN); //中枢下移2次的情况出现的次数
//ZsDownSummary3:"SixSigmaKTAdv@ZsDownSummary3"(PERIODN); //中枢下移3次的情况出现的次数
//ZsDownSummary4:"SixSigmaKTAdv@ZsDownSummary4"(PERIODN); //中枢下移4次的情况出现的次数
//ZsDownSummary5:"SixSigmaKTAdv@ZsDownSummary5"(PERIODN); //中枢下移5次的情况出现的次数
//ZsDownSummary6:"SixSigmaKTAdv@ZsDownSummary6"(PERIODN); //中枢下移6次的情况出现的次数
//ZsDownSummary7:"SixSigmaKTAdv@ZsDownSummary7"(PERIODN); //中枢下移7次的情况出现的次数
//ZsDownSummary8:"SixSigmaKTAdv@ZsDownSummary8"(PERIODN); //中枢下移8次的情况出现的次数
//ZsDownSummary9:"SixSigmaKTAdv@ZsDownSummary9"(PERIODN); //中枢下移9次的情况出现的次数
//ZsDownSummary10:"SixSigmaKTAdv@ZsDownSummary10"(PERIODN); //中枢下移10次的情况出现的次数
//
//StpUpSummary1:"SixSigmaKTAdv@StpUpSummary1"(PERIODN); //台阶上移1次的情况出现的次数
//StpUpSummary2:"SixSigmaKTAdv@StpUpSummary2"(PERIODN); //台阶上移2次的情况出现的次数
//StpUpSummary3:"SixSigmaKTAdv@StpUpSummary3"(PERIODN); //台阶上移3次的情况出现的次数
//
//StpDownSummary1:"SixSigmaKTAdv@StpDownSummary1"(PERIODN); //台阶下移1次的情况出现的次数
//StpDownSummary2:"SixSigmaKTAdv@StpDownSummary2"(PERIODN); //台阶下移2次的情况出现的次数
//StpDownSummary3:"SixSigmaKTAdv@StpDownSummary3"(PERIODN); //台阶下移3次的情况出现的次数
{六玛算法进阶版.通达信版API}
RUN:=TDXDLL3(0,CLOSE,N,0); {六玛启动函数必须放在最前面}
LINECEN:TDXDLL3(2,CLOSE,N,0); {LINECEN网格中轨}
PRICE1UC:TDXDLL3(4,CLOSE,N,0); {PRICE1UC价位台阶上沿}
PRICE1LCL:TDXDLL3(5,CLOSE,N,0); {PRICE1LCL价位台阶下沿}
COSTUCL:TDXDLL3(6,CLOSE,N,0); {COSTUCL价格中枢上沿}
COSTLCL:TDXDLL3(7,CLOSE,N,0); {COSTLCL价格中枢下沿}
VALUEUCL:TDXDLL3(8,CLOSE,N,0); {VALUEUCL价值区间上沿}
VALUELCL:TDXDLL3(9,CLOSE,N,0); {VALUELCL价值区间下沿}
PRICE1MID:TDXDLL3(10,CLOSE,N,0); {PRICE1MID价位台阶中位线}
PRICE2MID:TDXDLL3(11,CLOSE,N,0); {PRICE2MID价值价位台阶中位线}
COSTMID:TDXDLL3(12,CLOSE,N,0); {COSTMID价格中枢中位线}
VALUEMID:TDXDLL3(13,CLOSE,N,0); {VALUEMID价值中枢中位线}
MALINE:TDXDLL3(14,CLOSE,N,0); {MALINE均线函数0.SMA,1.EMA,2.SMMA,3.LWMA}
POWPEAK:TDXDLL3(15,CLOSE,N,0); {POWPEAK波峰波谷}
PCLOSE:TDXDLL3(75,CLOSE,N,0); {PCLOSE波峰波谷分水线(今POWPEAK=明POWPEAK时,CLOSE的预测值)}
DIFFVIEW:TDXDLL3(16,CLOSE,N,0); {DIFF监控}
DEAVIEW:TDXDLL3(17,CLOSE,N,0); {DEA监控}
PRICERATE:TDXDLL3(18,CLOSE,N,0); {PRICERATE中轨线所处半转折线区间的比例比例位置0%~100%}
COSTRATE:TDXDLL3(19,CLOSE,N,0); {COSTRATE中轨所处中枢区间的比例位置0%~100%}
COSTUPCLSBARS:TDXDLL3(20,CLOSE,N,0); {COSTUPCLOSEBARS价格区间关闭所需周期}
COSTDWCLSBARS:TDXDLL3(21,CLOSE,N,0); {COSTDWCLOSEBARS价格区间关闭所需周期}
PRICEUPCLSBARS:TDXDLL3(22,CLOSE,N,0); {PRICEUPCLOSEBARS台阶关闭所需周期}
PRICEDWCLSBARS:TDXDLL3(23,CLOSE,N,0); {PRICEDWCLOSEBARS台阶关闭所需周期}
VALUEUPCLSBARS:TDXDLL3(24,CLOSE,N,0); {VALUEUPCLOSEBARS区间关闭所需周期}
VALUEDWCLSBARS:TDXDLL3(25,CLOSE,N,0); {VALUEDWCLOSEBARS区间关闭所需周期}
ISPRICEUP:TDXDLL3(26,CLOSE,N,0); {ISPRICEUP价位台阶上封信号}
ISPRICEDOWN:TDXDLL3(27,CLOSE,N,0); {ISPRICEDOWN价位台阶下封信号}
ISCOSTUP:TDXDLL3(28,CLOSE,N,0); {ISCOSTUP价格中枢上封信号}
ISCOSTDOWN:TDXDLL3(29,CLOSE,N,0); {ISCOSTDOWN价格中枢下封信号}
ISVALUEUP:TDXDLL3(30,CLOSE,N,0); {ISVALUEUP价值区间上封信号}
ISVALUEDOWN:TDXDLL3(31,CLOSE,N,0); {ISVALUEDOWN价值区间下封信号}
PRICELASTBARS:TDXDLL3(32,CLOSE,N,0); {PRICELASTBARS价位台阶上封信号发生周期数}
COSTLASTBARS:TDXDLL3(33,CLOSE,N,0); {COSTLASTBARS价格中枢上封信号发生周期数}
VALUELASTBARS:TDXDLL3(34,CLOSE,N,0); {VALUELASTBARS价值区间下封信号发生周期数}
BANDOKCOUNT:TDXDLL3(35,CLOSE,N,0); {BANDOKCOUNT通道已经发生归位次数}
TOPPRICETURNCNT:TDXDLL3(36,CLOSE,N,0); {TOPPRICETURNINGCOUNT向上价位台阶序数}
BOTPRICETURNCNT:TDXDLL3(37,CLOSE,N,0); {BOTPRICETURNINGCOUNT向下价位台阶序数}
TOPCOSTTURNCNT:TDXDLL3(38,CLOSE,N,0); {TOPCOSTTURNINGCOUNT向上价格中枢封闭次数}
BOTCOSTTURNCNT:TDXDLL3(39,CLOSE,N,0); {BOTCOSTTURNINGCOUNT向下价格中枢封闭次数}
TOPVALUETURNCNT:TDXDLL3(40,CLOSE,N,0); {TOPVALUETURNINGCOUNT向上价格中枢封闭次数}
BOTVALUETURNCNT:TDXDLL3(41,CLOSE,N,0); {BOTVALUETURNINGCOUNT向下价格中枢封闭次数}
PRICECVG:TDXDLL3(42,CLOSE,N,0); {PRICECVG价位筹码收敛度}
COSTCVG:TDXDLL3(43,CLOSE,N,0); {COSTCVG价格筹码收敛度}
VALUECVG:TDXDLL3(44,CLOSE,N,0); {VALUECVG价值筹码收敛度}
ISPOSITION:TDXDLL3(45,CLOSE,N,0); {ISPOSITION多空头入场1多头,-1空头}
ONEPOSITION:TDXDLL3(46,CLOSE,N,0); {ONEPOSITION价位台阶买卖信号}
TWOPOSITION:TDXDLL3(47,CLOSE,N,0); {TWOPOSITION价格中枢买卖信号}
THREEPOSITION:TDXDLL3(48,CLOSE,N,0); {THREEPOSITION价值区间买卖信号}
ZSUPSUMMARY1:TDXDLL3(49,CLOSE,N,0); {ZSUPSUMMARY1统计价格中枢向上封闭分布}
ZSUPSUMMARY2:TDXDLL3(50,CLOSE,N,0); {ZSUPSUMMARY2统计价格中枢向上封闭分布}
ZSUPSUMMARY3:TDXDLL3(51,CLOSE,N,0); {ZSUPSUMMARY3统计价格中枢向上封闭分布}
ZSUPSUMMARY4:TDXDLL3(52,CLOSE,N,0); {ZSUPSUMMARY4统计价格中枢向上封闭分布}
ZSUPSUMMARY5:TDXDLL3(53,CLOSE,N,0); {ZSUPSUMMARY5统计价格中枢向上封闭分布}
ZSUPSUMMARY6:TDXDLL3(54,CLOSE,N,0); {ZSUPSUMMARY6统计价格中枢向上封闭分布}
ZSUPSUMMARY7:TDXDLL3(55,CLOSE,N,0); {ZSUPSUMMARY7统计价格中枢向上封闭分布}
ZSUPSUMMARY8:TDXDLL3(56,CLOSE,N,0); {ZSUPSUMMARY8统计价格中枢向上封闭分布}
ZSUPSUMMARY9:TDXDLL3(57,CLOSE,N,0); {ZSUPSUMMARY9统计价格中枢向上封闭分布}
ZSUPSUMMARY10:TDXDLL3(58,CLOSE,N,0); {ZSUPSUMMARY10统计价格中枢向上封闭分布}
ZSDOWNSUMMARY1:TDXDLL3(59,CLOSE,N,0); {ZSDOWNSUMMARY1统计价格中枢向下封闭分布}
ZSDOWNSUMMARY2:TDXDLL3(60,CLOSE,N,0); {ZSDOWNSUMMARY2统计价格中枢向下封闭分布}
ZSDOWNSUMMARY3:TDXDLL3(61,CLOSE,N,0); {ZSDOWNSUMMARY3统计价格中枢向下封闭分布}
ZSDOWNSUMMARY4:TDXDLL3(62,CLOSE,N,0); {ZSDOWNSUMMARY4统计价格中枢向下封闭分布}
ZSDOWNSUMMARY5:TDXDLL3(63,CLOSE,N,0); {ZSDOWNSUMMARY5统计价格中枢向下封闭分布}
ZSDOWNSUMMARY6:TDXDLL3(64,CLOSE,N,0); {ZSDOWNSUMMARY6统计价格中枢向下封闭分布}
ZSDOWNSUMMARY7:TDXDLL3(65,CLOSE,N,0); {ZSDOWNSUMMARY7统计价格中枢向下封闭分布}
ZSDOWNSUMMARY8:TDXDLL3(66,CLOSE,N,0); {ZSDOWNSUMMARY8统计价格中枢向下封闭分布}
ZSDOWNSUMMARY9:TDXDLL3(67,CLOSE,N,0); {ZSDOWNSUMMARY9统计价格中枢向下封闭分布}
ZSDOWNSUMMARY10:TDXDLL3(68,CLOSE,N,0); {ZSDOWNSUMMARY10统计价格中枢向下封闭分布}
STPUPSUMMARY1:TDXDLL3(69,CLOSE,N,0); {STPUPSUMMARY1统计价位台阶向上移动次数分布}
STPUPSUMMARY2:TDXDLL3(60,CLOSE,N,0); {STPUPSUMMARY2统计价位台阶向上移动次数分布}
STPUPSUMMARY3:TDXDLL3(71,CLOSE,N,0); {STPUPSUMMARY3统计价位台阶向上移动次数分布}
STPDOWNSUMMARY1:TDXDLL3(72,CLOSE,N,0); {STPDOWNSUMMARY1统计价位台阶向下移动次数分布}
STPDOWNSUMMARY2:TDXDLL3(73,CLOSE,N,0); {STPDOWNSUMMARY2统计价位台阶向下移动次数分布}
STPDOWNSUMMARY3:TDXDLL3(74,CLOSE,N,0); {STPDOWNSUMMARY3统计价位台阶向下移动次数分布};
风险提示:本站所有算法模型仅作为学习研究、统计、模拟分析等辅助,不可作为投资决策依据。风险自担!