股票论坛

标题: 求如何把该指标改为通信达 [打印本页]

作者: 我的名字很长    时间: 2015-8-22 17:32
标题: 求如何把该指标改为通信达
原为大智慧指标
只要求首次攻击,再次攻击,正常显示即可
主力:=EMA((EMA(CLOSE,500)-REF(EMA(CLOSE,500),1))/REF(EMA(CLOSE,500),1)*100,120)-0.0004;
散户:=EMA((EMA(CLOSE,500)-REF(EMA(CLOSE,500),1))/REF(EMA(CLOSE,500),1)*100,200);
首次攻击:CROSS(主力,散户)*0.5,LINETHICK2,COLORff7f50;
Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
再次攻击:CROSS((C/Q2),1.03)*0.8;
首次预警:=BARSLAST(首次攻击);
再次预警:BARSLAST(再次攻击),linethick0;
提醒1:IF(首次预警>0,0.5,0),POINTDOT,linethick2;
提醒2:IF(再次预警>0,0.8,0),POINTDOT,linethick2;
A1:=(VOL/CLOSE)/3;
A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);
A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((BARSTATUS=2),((100*A2)/A6),0);
A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));
A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));
A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));
机构买盘:=(A2);
机构卖盘:=(A3);
散户买盘:=(A4);
散户卖盘:=(A5);
TJ:=机构买盘>机构卖盘 AND 机构买盘>散户买盘 AND 机构买盘>散户卖盘;

DRAWTEXTABS(2,5,'所属板块:'+BKNAME),COLORFF50FF,linethick1;
流通盘:=FINANCE2(37)/1000000*100;
DRAWTEXTABS(2,20,'流通盘:'+NUMTOSTRN(流通盘,2)+'亿'),LINETHICK1,COLORRED;  
每股收益:=FINANCE2(3);  
利润增长:=FINANCE2(10);
作者: 叶昕    时间: 2015-8-22 17:32
只要求首次攻击,再次攻击,正常显示即可
主力:=EMA((EMA(CLOSE,500)-REF(EMA(CLOSE,500),1))/REF(EMA(CLOSE,500),1)*100,120)-0.0004;
散户:=EMA((EMA(CLOSE,500)-REF(EMA(CLOSE,500),1))/REF(EMA(CLOSE,500),1)*100,200);
首次攻击:=CROSS(主力,散户),LINETHICK2,COLORff7f50;
Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
再次攻击:=CROSS((C/Q2),1.03);
首次预警:=BARSLAST(首次攻击);
drawtext(再次攻击,l,'再次攻击');
drawtext(首次攻击,l,'首次攻击');
作者: 学习    时间: 2016-11-1 11:21
学习




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