把分时抓涨停中出现的“抓”、“绝杀”分别做两个选股的
2019/12/1 18:31:12
公式编写说明:
{分时抓涨停}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;
公式源码回答:
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));
投股票 网 www.tou18.c n
股市公式下载推荐