以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  我在大交易师上的指标公式,怎么在贵公司软件不能用呢  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=55475)

--  作者:qq代人发帖
--  发布时间:2013/8/21 10:11:21
--  我在大交易师上的指标公式,怎么在贵公司软件不能用呢

请教

我在大交易师上的指标公式,怎么在贵公司软件不能用呢?

请把xopen:=(REF(OPEN,N)+REF(CLOSE,N))/2;
xclose:=CLOSE;
xhigh:=MAX(HIGH,xopen);
xlow:=MIN(LOW,xopen);
volality:=MA(xhigh-xlow,8);
凰线:MA(xclose,5)+volality/2;
凤线:MA(xclose,5)-volality/2;
bu:=CROSS(xclose,凰线);
sel:=CROSS(凤线,xclose);
var1:=BARSLAST(bu);
var2:=BARSLAST(sel);
DRAWICON(REF(var1,1)>var2 and var1=0,xlow*0.995,4),align1;
DRAWICON(REF(var2,1)>var1 and var2=0,xhigh*1.005,5),align1;

STICKLINE(xclose>xopen and var1<var2,xclose,xopen ,8,0 ),colorred;
STICKLINE(xclose>xopen and var1<var2,xhigh,xclose ,0.5,0 ),colorred;
STICKLINE(xclose>xopen and var1<var2,xopen,xlow ,0.5,0 ),colorred;
STICKLINE(xclose<=xopen and var1<var2,xclose,xopen ,8,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1<var2,xhigh,xopen ,0.5,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1<var2,xclose,xlow ,0.5,0 ),coloryellow;

 
STICKLINE(xclose<=xopen and var1>var2,xclose ,xopen ,8,0 ),colorgreen;
STICKLINE(xclose<=xopen and var1>var2,xopen ,xhigh ,0.5,0 ),colorgreen;
STICKLINE(xclose<=xopen and var1>var2,xclose,xlow ,0.5,0 ),colorgreen;

STICKLINE(xclose>xopen and var1>var2,xclose ,xopen ,8,0 ),colorblue;
STICKLINE(xclose>xopen and var1>var2,xclose,xhigh ,0.5,0 ),colorblue;
STICKLINE(xclose>xopen and var1>var2,xopen,xlow ,0.5,0 ),colorblue;

改编成可以使用的指标,谢谢


--  作者:jinzhe
--  发布时间:2013/8/21 10:14:39
--  

开头加一句n:=5;

5可以改成自己所需要的任何数字

 

下面是n=5时的效果


图片点击可在新窗口打开查看此主题相关图片如下:2.png
图片点击可在新窗口打开查看
[此贴子已经被作者于2013/8/21 10:15:24编辑过]