股票论坛

标题: 分时抓涨停的公式通不过,请老师帮忙,谢谢!! [打印本页]

作者: 我的名字很长    时间: 2015-12-2 16:55
标题: 分时抓涨停的公式通不过,请老师帮忙,谢谢!!
原码如下:
{分时抓涨停}
BU:=BARSLAST(CLOSE=HHV(CLOSE,2000));
SE:=BARSLAST(CLOSE=LLV(CLOSE,2000));
KK1:=SE;
KK2:=BU;
DRAWICON(CROSS(KK1,KK2),OPEN*1,1);
DRAWTEXT(CROSS(KK1,KK2),OPEN*0.99,'抓'),colorFF00;
A: POLYLINE(CLOSE<COST(50),COST(20)),POINTDOT,color8800;
B: POLYLINE(CLOSE<COST(50),COST(80)),POINTDOT,color66CC00;
T:=OPENMINUTES(TIME);CLOSE=DYNAINFO(7);
总量:=SUM(VOL,T);
总额:=SUM(AMOUNT,T);
均价:=总额/(总量*100);
次数:=COUNT(CLOSE>均价,T);
占比:=次数/T*100;
分时强势: DRAWICON(CROSS(CLOSE,均价) AND CLOSE>均价 AND 占比>80 AND T>5,CLOSE*0.99,4);
DRAWTEXT(CROSS(CLOSE,均价) and CROSS(KK1,KK2) and CROSS(CLOSE,COST(80)),CLOSE*0.995,'绝杀'),COLORRED;


当前公式 : 分时涨停 (指标画线公式)  
错误句 :
DRAWTEXT(CROSS(KK1,KK2),OPEN*0.99,363),COLORFF00
详细信息 : 未知字符串 COLORFF00
错误起始位置 : 171 ; 长度: 9

请注意,由于有好几个COLOR,无法测试其他的能不能通过。请老师多测试一次。谢谢。
作者: 陪练专家    时间: 2015-12-2 16:56
{分时抓涨停}
BU:=BARSLAST(CLOSE=HHV(CLOSE,2000));
SE:=BARSLAST(CLOSE=LLV(CLOSE,2000));
KK1:=SE;
KK2:=BU;
DRAWICON(CROSS(KK1,KK2),OPEN*1,1);
DRAWTEXT(CROSS(KK1,KK2),OPEN*0.99,'抓'),COLOR00FF00;

T:=FROMOPEN;
总量:=SUM(VOL,T);
总额:=SUM(AMOUNT,T);
均价:=总额/(总量*100);


DRAWTEXT(CROSS(CLOSE,均价)
AND CROSS(KK1,KK2) AND CROSS(CLOSE,COST(80)),CLOSE*0.995,'绝杀'),COLORRED;




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