专业版API - 五、六西格玛算法专业版

专业版函数接口文档

适用平台:KT交易师

///本文件列出六西格玛算法专业版所有函数清单
INPUT:PERIODN(21,3,9999,1);
RUN:="SixSigmaKTPro@SixSigmaRun"(PERIODN); //必须放第一行运行
///网格模型
//LINECEN:"SixSigmaKTPro@LINECEN"(PERIODN); //筹码中轨
//PRICE1UCL:"SixSigmaKTPro@PRICE1UCL"(PERIODN); //价位台阶上沿、转折
//PRICE1LCL:"SixSigmaKTPro@PRICE1LCL"(PERIODN); //价位台阶下沿、转折
//COSTUCL:"SixSigmaKTPro@COSTUCL"(PERIODN); //价格中枢上沿
//COSTLCL:"SixSigmaKTPro@COSTLCL"(PERIODN); //价格中枢下沿
//VALUEUCL:"SixSigmaKTPro@VALUEUCL"(PERIODN); //价值区间上沿
//VALUELCL:"SixSigmaKTPro@VALUELCL"(PERIODN); //价值区间下沿
//PRICE1MID:"SixSigmaKTPro@PRICE1MID"(PERIODN); //价位台阶中位线
//COSTMID:"SixSigmaKTPro@COSTMID"(PERIODN); //价格中枢中位线
//VALUEMID:"SixSigmaKTPro@VALUEMID"(PERIODN); //价值区间中位线

///状态监控信号
//PRICERATE:"SixSigmaKTPro@PRICERATE"(PERIODN); //价位未成熟随机值
//COSTRATE:"SixSigmaKTPro@COSTRATE"(PERIODN); //价格未成熟随机值
//PRICEUPCLOSEBARS:"SixSigmaKTPro@PRICEUPCLOSEBARS"(PERIODN); //价位台阶即将转折
//PRICEDWCLOSEBARS:"SixSigmaKTPro@PRICEDWCLOSEBARS"(PERIODN); //向下台阶即将转折
//COSTUPCLOSEBARS:"SixSigmaKTPro@COSTUPCLOSEBARS"(PERIODN); //向上中枢即将封闭
//COSTDWCLOSEBARS:"SixSigmaKTPro@COSTDWCLOSEBARS"(PERIODN); //向下中枢即将封闭
//VALUEUPCLOSEBARS:"SixSigmaKTPro@VALUEUPCLOSEBARS"(PERIODN); //向上区间即将封闭
//VALUEDWCLOSEBARS:"SixSigmaKTPro@VALUEDWCLOSEBARS"(PERIODN); //向下区间即将封闭

///形态信号
//IsPriceUp:"SixSigmaKTPro@IsPriceUp"(PERIODN); //价位台阶上移信号
//IsPriceDown:"SixSigmaKTPro@IsPriceDown"(PERIODN); //价位台阶下移信号
//IsCostUp:"SixSigmaKTPro@IsCostUp"(PERIODN); //价格中枢上封信号
//IsCostDown:"SixSigmaKTPro@IsCostDown"(PERIODN); //价格中枢下封信号
//IsValueUp:"SixSigmaKTPro@IsValueUp"(PERIODN); //价值区间上封信号
//IsValueDown:"SixSigmaKTPro@IsValueDown"(PERIODN); //价值区间下封信号

///时间形态
//PriceLastBars:"SixSigmaKTPro@PriceLastBars"(PERIODN); //价位台阶上封信号发生周期数
//CostLastBars:"SixSigmaKTPro@CostLastBars"(PERIODN); //价格中枢上封信号发生周期数
//ValueLastBars:"SixSigmaKTPro@ValueLastBars"(PERIODN); //价值区间下封信号发生周期数

///空间形态
//BandOKCount:"SixSigmaKTPro@BandOKCount"(PERIODN); //网格归位次数
//TopPriceTurningCount:"SixSigmaKTPro@TopPriceTurningCount"(PERIODN); //价位台阶上移序数
//BotPriceTurningCount:"SixSigmaKTPro@BotPriceTurningCount"(PERIODN); //价位台阶下移序数
//TopCostTurningCount:"SixSigmaKTPro@TopCostTurningCount"(PERIODN); //价格中枢上移序数
//BotCostTurningCount:"SixSigmaKTPro@BotCostTurningCount"(PERIODN); //价格中枢下移序数
//TopValueTurningCount:"SixSigmaKTPro@TopValueTurningCount"(PERIODN); //价值区间上移序数
//BotValueTurningCount:"SixSigmaKTPro@BotValueTurningCount"(PERIODN); //价值区间下移序数

///筹码区引力(收敛度)
//PriceCvg:"SixSigmaKTPro@PriceCvg"(PERIODN); //价位筹码收敛度
//CostCvg:"SixSigmaKTPro@CostCvg"(PERIODN); //价格筹码收敛度
//ValueCvg:=0-"SixSigmaKTPro@ValueCvg"(PERIODN); //价值筹码收敛度

///动力、能量指标
//PowPeak:"SixSigmaKTPro@PowPeak"(PERIODN); //能量波峰波谷

///入场点位
IsPosition:"SixSigmaKTPro@IsPosition"(PERIODN); //入场点集合(1多头入场,-1空头入场)
OnePosition:"SixSigmaKTPro@OnePosition"(PERIODN); //台阶买卖信号集合(3第一买点-3第一卖点,1反弹点-1回调点,2支撑点,-2压力点)
TwoPosition:"SixSigmaKTPro@TwoPosition"(PERIODN); //中枢买卖信号集合(6第三买点-6第三卖点,4第二买点-4第二卖点,2向上中继点-2向下中断点,3向上反转点,-3向下反转点)
ThreePosition:"SixSigmaKTPro@ThreePosition"(PERIODN); //区间买卖信号集合(2低吸点-2高抛点,4第四买点-4第四卖点)

///MACD监控指标
//DiffView:"SixSigmaKTPro@DiffView"(PERIODN); //MACD Diff线主图对应线
//DeaView:"SixSigmaKTPro@DeaView"(PERIODN); //MACD Dea线主图对应线

///分布统计
//ZsUpSummary1:"SixSigmaKTPro@ZsUpSummary1"(PERIODN); //中枢上移1次的情况出现的次数
//ZsUpSummary2:"SixSigmaKTPro@ZsUpSummary2"(PERIODN); //中枢上移2次的情况出现的次数
//ZsUpSummary3:"SixSigmaKTPro@ZsUpSummary3"(PERIODN); //中枢上移3次的情况出现的次数
//ZsUpSummary4:"SixSigmaKTPro@ZsUpSummary4"(PERIODN); //中枢上移4次的情况出现的次数
//ZsUpSummary5:"SixSigmaKTPro@ZsUpSummary5"(PERIODN); //中枢上移5次的情况出现的次数
//ZsUpSummary6:"SixSigmaKTPro@ZsUpSummary6"(PERIODN); //中枢上移6次的情况出现的次数
//ZsUpSummary7:"SixSigmaKTPro@ZsUpSummary7"(PERIODN); //中枢上移7次的情况出现的次数
//ZsUpSummary8:"SixSigmaKTPro@ZsUpSummary8"(PERIODN); //中枢上移8次的情况出现的次数
//ZsUpSummary9:"SixSigmaKTPro@ZsUpSummary9"(PERIODN); //中枢上移9次的情况出现的次数
//ZsUpSummary10:"SixSigmaKTPro@ZsUpSummary10"(PERIODN);//中枢上移10次的情况出现的次数
//
//ZsDownSummary1:"SixSigmaKTPro@ZsDownSummary1"(PERIODN); //中枢下移1次的情况出现的次数
//ZsDownSummary2:"SixSigmaKTPro@ZsDownSummary2"(PERIODN); //中枢下移2次的情况出现的次数
//ZsDownSummary3:"SixSigmaKTPro@ZsDownSummary3"(PERIODN); //中枢下移3次的情况出现的次数
//ZsDownSummary4:"SixSigmaKTPro@ZsDownSummary4"(PERIODN); //中枢下移4次的情况出现的次数
//ZsDownSummary5:"SixSigmaKTPro@ZsDownSummary5"(PERIODN); //中枢下移5次的情况出现的次数
//ZsDownSummary6:"SixSigmaKTPro@ZsDownSummary6"(PERIODN); //中枢下移6次的情况出现的次数
//ZsDownSummary7:"SixSigmaKTPro@ZsDownSummary7"(PERIODN); //中枢下移7次的情况出现的次数
//ZsDownSummary8:"SixSigmaKTPro@ZsDownSummary8"(PERIODN); //中枢下移8次的情况出现的次数
//ZsDownSummary9:"SixSigmaKTPro@ZsDownSummary9"(PERIODN); //中枢下移9次的情况出现的次数
//ZsDownSummary10:"SixSigmaKTPro@ZsDownSummary10"(PERIODN); //中枢下移10次的情况出现的次数
//
//StpUpSummary1:"SixSigmaKTPro@StpUpSummary1"(PERIODN); //台阶上移1次的情况出现的次数
//StpUpSummary2:"SixSigmaKTPro@StpUpSummary2"(PERIODN); //台阶上移2次的情况出现的次数
//StpUpSummary3:"SixSigmaKTPro@StpUpSummary3"(PERIODN); //台阶上移3次的情况出现的次数
//
//StpDownSummary1:"SixSigmaKTPro@StpDownSummary1"(PERIODN); //台阶下移1次的情况出现的次数
//StpDownSummary2:"SixSigmaKTPro@StpDownSummary2"(PERIODN); //台阶下移2次的情况出现的次数
//StpDownSummary3:"SixSigmaKTPro@StpDownSummary3"(PERIODN); //台阶下移3次的情况出现的次数

//线段

//xdNo:="SixSigmaKTPro@xdNo"(PERIODN); //线段序号

//xdBars:="SixSigmaKTPro@xdBars"(PERIODN); //线段高低点K线序号
//xdPower:="SixSigmaKTPro@xdPower"(PERIODN); //动力之梯
//xdPrice:="SixSigmaKTPro@xdPrice"(PERIODN); //为线段高低点
//xdFlag:="SixSigmaKTPro@xdFlag"(PERIODN); //保存线段顶底标记(1顶,-1底)

//拟合中枢
//zsNo:="SixSigmaKTPro@zsNo"(PERIODN); //中枢序号
//zsZg:="SixSigmaKTPro@zsZg"(PERIODN); //中枢上沿
//zsZd:="SixSigmaKTPro@zsZd"(PERIODN); //中枢下沿
//zsStart:="SixSigmaKTPro@zsStart"(PERIODN); //中枢开始
//zsEnd:="SixSigmaKTPro@zsEnd"(PERIODN); //中枢结束
//zsMonitor:="SixSigmaKTPro@zsMonitor"(PERIODN); //中枢监视器 

//台阶
//zsUpStep:="SixSigmaKTPro@zsUpStep"(PERIODN); //价位台阶
//zsDnStep:="SixSigmaKTPro@zsDnStep"(PERIODN); //价位台阶

//价值区间
//qjNo:="SixSigmaKTPro@qjNo"(PERIODN); //区间序号
//qjZg:="SixSigmaKTPro@qjZg"(PERIODN); //区间上沿
//qjZd:="SixSigmaKTPro@qjZd"(PERIODN); //区间下沿
//qjStart:="SixSigmaKTPro@qjStart"(PERIODN); //区间开始
//qjEnd:="SixSigmaKTPro@qjEnd"(PERIODN); //区间结束
//qjMonitor:="SixSigmaKTPro@qjMonitor"(PERIODN); //区间监视器 


适用平台:通达信 

{PRO01网格模型函数}
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波峰波谷}
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统计价位台阶向下移动次数分布};


{PRO02几何动力函数}
GRDRUN:=TDXDLL4(0,CLOSE,N,0); {网格模型启动函数}
PWRRUN:=TDXDLL4(1,CLOSE,HIGH,LOW); {几何动力启动函数}
ZSNO:=TDXDLL4(75,CLOSE,HIGH,LOW); {中枢序号}
ZSZG:=TDXDLL4(76,CLOSE,HIGH,LOW); {中枢上沿}
ZSZD:=TDXDLL4(77,CLOSE,HIGH,LOW); {中枢下沿}
ZSSTART:=TDXDLL4(78,CLOSE,HIGH,LOW); {中枢开始}
ZSEND:=TDXDLL4(79,CLOSE,HIGH,LOW); {中枢结束}
ZSMONITOR:=TDXDLL4(80,CLOSE,HIGH,LOW); {中枢监视器(中枢中位线)}
ZSUPSTEP:=TDXDLL4(81,CLOSE,HIGH,LOW); {向上价位台阶}
ZSDNSTEP:=TDXDLL4(82,CLOSE,HIGH,LOW); ;{向下价位台阶}
QJNO:=TDXDLL4(83,CLOSE,HIGH,LOW); {区间序号 }
QJZG:=TDXDLL4(84,CLOSE,HIGH,LOW); {区间上沿}
QJZD:=TDXDLL4(85,CLOSE,HIGH,LOW); {区间下沿}
QJSTART:=TDXDLL4(86,CLOSE,HIGH,LOW); {区间开始}
QJEND:=TDXDLL4(87,CLOSE,HIGH,LOW); {区间结束}
QJMONITOR:=TDXDLL4(88,CLOSE,HIGH,LOW); {区间监视器(区间中位线)}
BINO:=TDXDLL4(89,CLOSE,HIGH,LOW); {笔序号}
BIBARS:=TDXDLL4(90,CLOSE,HIGH,LOW); {笔高低点K线序号}
BIFLAG:=TDXDLL4(91,CLOSE,HIGH,LOW); {笔段顶底标记(1顶,-1底)}
BIPRICE:=TDXDLL4(92,CLOSE,HIGH,LOW); {笔高低点价格}
BIPOWER:=TDXDLL4(93,CLOSE,HIGH,LOW); {笔高低点动能}
XDNO:=TDXDLL4(94,CLOSE,HIGH,LOW); {线段序号}
XDBARS:=TDXDLL4(95,CLOSE,HIGH,LOW); {线段高低点K线序号}
XDFLAG:=TDXDLL4(96,CLOSE,HIGH,LOW); {保存线段顶底标记(1顶,-1底)}
XDPRICE:=TDXDLL4(97,CLOSE,HIGH,LOW); {线段高低点价格}
XDPOWER:=TDXDLL4(98,CLOSE,HIGH,LOW); {线段高低点动能};

∑六西格玛操盘术官网
鄂ICP备2021013451号 Copyright © 2021-2059 SixSigma All rights reserved.

风险提示:本站所有算法模型仅作为学习研究、统计、模拟分析等辅助,不可作为投资决策依据。风险自担!