通达信版接口
{本文件是基础版所有可用函数的接口}
{参数N,最小值2,最大值99999,默认值21}
RUN:=TDXDLL1(0,CLOSE,N,0); {六西格玛启动函数,必须放第一行运行}
LINECEN:TDXDLL1(2,CLOSE,N,0); {价格中枢网格中轨线}
PRICE1UCL:TDXDLL1(4,CLOSE,N,0); {价位台阶上沿}
PRICE1LCL:TDXDLL1(5,CLOSE,N,0); {价位台阶下沿}
COSTUCL:TDXDLL1(6,CLOSE,N,0); {价格中枢上沿}
COSTLCL:TDXDLL1(7,CLOSE,N,0); {价格中枢下沿}
VALUEUCL:TDXDLL1(8,CLOSE,N,0); {价值区间上沿}
VALUELCL:TDXDLL1(9,CLOSE,N,0); {价值区间下沿}
PRICE1MID:TDXDLL1(10,CLOSE,N,0); {价位台阶中位线}
PRICE2MID:TDXDLL1(11,CLOSE,N,0); {价值价位台阶中位线}
COSTMID:TDXDLL1(12,CLOSE,N,0); {价格中枢中位线}
VALUEMID:TDXDLL1(13,CLOSE,N,0); {价值中枢中位线}
MALINE:TDXDLL1(14,CLOSE,N,T); {均线函数,T参数值:0.SMA,1.EMA,2.SMMA,3.LWMA}
POWPEAK:TDXDLL1(15,CLOSE,N,0); {波峰波谷}
DIFFVIEW:TDXDLL1(16,CLOSE,N,0); {DIFF监控主图指标}
DEAVIEW:TDXDLL1(17,CLOSE,N,0); {DEA监控主图指标};
KT交易师版接口
///本文件列出六西格玛算法基础版所有函数
INPUT:PERIODN(21,3,9999,1);
///网格模型
//RUN:="SixSigmaKT@SixSigmaRun"(PERIODN); //六西格玛启动函数,必须放在第一行
//LINECEN:"SixSigmaKT@LINECEN"(PERIODN); //价格筹码中轨线
//PRICE1UCL:"SixSigmaKT@PRICE1UCL"(PERIODN); //价位台阶上沿、转折
//PRICE1LCL:"SixSigmaKT@PRICE1LCL"(PERIODN); //价位台阶下沿、转折
//COSTUCL:"SixSigmaKT@COSTUCL"(PERIODN); //价格中枢上沿
//COSTLCL:"SixSigmaKT@COSTLCL"(PERIODN); //价格中枢下沿
//VALUEUCL:"SixSigmaKT@VALUEUCL"(PERIODN); //价值区间上沿
//VALUELCL:"SixSigmaKT@VALUELCL"(PERIODN); //价值区间下沿
//PRICE1MID:"SixSigmaKT@PRICE1MID"(PERIODN); //价位台阶中位线
//COSTMID:"SixSigmaKT@COSTMID"(PERIODN); //价格中枢中位线
//VALUEMID:"SixSigmaKT@VALUEMID"(PERIODN); //价值区间中位线
///动力、能量指标
//PowPeak:"SixSigmaKT@PowPeak"(PERIODN); //波峰波谷
//DiffView:"SixSigmaKT@DiffView"(PERIODN); //Diff监控主图指标
//DeaView:"SixSigmaKT@DeaView"(PERIODN); //Dea监控主图指标
风险提示:本站所有算法模型仅作为学习研究、统计、模拟分析等辅助,不可作为投资决策依据。风险自担!