股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 3829|回复: 1
打印 上一主题 下一主题

请老师修改一个分时T+0的指标,谢谢!!

[复制链接]

刺使

Rank: 6Rank: 6

听众
7
跳转到指定楼层
楼主
发表于 2016-8-27 17:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
请老师修改一下这个分时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);

最佳答案

查看完整内容

今日参数:=分时参数.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

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
1
沙发
发表于 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);
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-24 04:46 , Processed in 0.148108 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表