股票论坛

标题: 请老师修改一个分时T+0的指标,谢谢!! [打印本页]

作者: 上官阳荣    时间: 2016-8-27 17:25
标题: 请老师修改一个分时T+0的指标,谢谢!!
请老师修改一下这个分时T+0的指标,没法显示标记的符号,有时还显示编译不成功。非常感谢

{分时T+0}
今日参数:=分时参数.XZ参数2#DAY;
个股均价:=AMOUNT/VOL/100;
大盘均价:=SUM(V*C,0)/SUM(V,0);
均价:IF(C>2000,大盘均价,个股均价),COLORYELLOW,LINETHICK2;
价位:C,COLORWHITE,LINETHICK4;

{///////////////////////////////////////////}
V1:=V;
HH:=C>REF(C,1) AND (C/均价)*100>(100+今日参数);
LL:=C<REF(C,1) AND (C/均价)*100<(100-今日参数);
HH1:=CROSS(SUM(HH,0),0.5);
LL1:=CROSS(SUM(LL,0),0.5);
SS1:=SUM(HH1,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH1)),0.5);
BB1:=SUM(LL1,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL1)),0.5);
CS1:CONST(SUM(IF(SS1,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK2;
CB1:CONST(SUM(IF(BB1,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK2;

HH2:=CROSS(SUM(HH AND C>CS1*1.03,0),0.5);
LL2:=CROSS(SUM(LL AND C<CB1*0.97,0),0.5);
SS2:=SUM(HH2,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH2)),0.5);
BB2:=SUM(LL2,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL2)),0.5);
CS2:CONST(SUM(IF(SS2,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;
CB2:CONST(SUM(IF(BB2,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK1;

DRAWICON(HH1 OR HH2,C*1.01,39);
DRAWICON(LL1 OR LL2,C*0.99,38);
DRAWICON(BB1 OR BB2,REF(C,1)*0.99,7);
DRAWICON(SS1 OR SS2,REF(C,1)*1.01,8);
作者: 叶昕    时间: 2016-8-27 17:25
今日参数:=分时参数.XZ参数2#DAY;
均价:=SUM(V*C,0)/SUM(V,0);
价位:C,COLORWHITE,LINETHICK4;

{///////////////////////////////////////////}
V1:=V;
HH:=C>REF(C,1) AND (C/均价)*100>(100+今日参数);
LL:=C<REF(C,1) AND (C/均价)*100<(100-今日参数);
HH1:=CROSS(SUM(HH,0),0.5);
LL1:=CROSS(SUM(LL,0),0.5);
SS1:=SUM(HH1,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH1)),0.5);
BB1:=SUM(LL1,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL1)),0.5);
CS1:CONST(SUM(IF(SS1,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK2;
CB1:CONST(SUM(IF(BB1,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK2;

HH2:=CROSS(SUM(HH AND C>CS1*1.03,0),0.5);
LL2:=CROSS(SUM(LL AND C<CB1*0.97,0),0.5);
SS2:=SUM(HH2,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH2)),0.5);
BB2:=SUM(LL2,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL2)),0.5);
CS2:CONST(SUM(IF(SS2,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;
CB2:CONST(SUM(IF(BB2,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK1;

DRAWICON(HH1 OR HH2,C*1.01,39);
DRAWICON(LL1 OR LL2,C*0.99,38);
DRAWICON(BB1 OR BB2,REF(C,1)*0.99,7);
DRAWICON(SS1 OR SS2,REF(C,1)*1.01,8);




欢迎光临 股票论坛 (http://100000w.com/) Powered by Discuz! X3.2