当前位置: 爱约股 > 飞狐答疑 > > 把分时抓涨停中出现的“抓”、“绝杀”分别做两个选股的
把分时抓涨停中出现的“抓”、“绝杀”分别做两个选股的
来源:Internet,编辑:爱约股,2012-07-31
编写要求:
{分时抓涨停} 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均价 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;
爱约股解答:
BU:=BARSLAST(CLOSE=HHV(CLOSE,2000));
SE:=BARSLAST(CLOSE=LLV(CLOSE,2000));
KK1:=SE;
KK2:=BU;
抓:CROSS(KK1,KK2);
================================
BU:=BARSLAST(CLOSE=HHV(CLOSE,2000));
SE:=BARSLAST(CLOSE=LLV(CLOSE,2000));
KK1:=SE;
KK2:=BU;
T:=OPENMINUTES(TIME);
总量:=SUM(VOL,T);
总额:=SUM(AMOUNT,T);
均价:=总额/(总量*100);
绝杀:CROSS(CLOSE,均价) and CROSS(KK1,KK2) and CROSS(CLOSE,COST(80));