精准线,抓强势主力实用公式(通达信公式 主图 源码 测试图)
{精准线主图}{参数顶底开关 0 1 0点位差0 1 0指定点 01000 0}V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);ZT:=C/REF(C,1)>1.097;{涨停红色}ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF>9.5,C,O,3.1,0),COLOR0000CC;STICKLINE(ZDF>9.5,C,O,2.1,0),COLOR0000DD;STICKLINE(ZDF>9.5,C,O,1.2,0),COLOR0000EE;STICKLINE(ZDF>9.5,C,O,0.2,0),COLOR0000FF;STICKLINE(ZDF>9.5,H,L,0,0),COLOR0000FF;L0:=点位差/100;前极点精准线:IF(顶底开关=0,CONST(REF(L,指定点)),CONST(REF(H,指定点))),COLOR178448;DRAWICON(ABS(L-前极点精准线)<=L0,前极点精准线,38);DRAWICON(ABS(H-前极点精准线)<=L0,前极点精准线,39);DRAWICON(ABS(O-前极点精准线)<=L0,前极点精准线,40);DRAWICON(ABS(C-前极点精准线)<=L0,前极点精准线,37);{DRAWTEXT(ABS(L-前极点精准线)<=L0 ,L*0.98,'最低价精准'),COLORRED;DRAWTEXT(ABS(H-前极点精准线)<=L0 ,H*0.98,'最高价精准'),COLORRED;DRAWTEXT(ABS(O-前极点精准线)<=L0 ,O*0.98,'开盘价精准'),COLORRED;DRAWTEXT(ABS(C-前极点精准线)<=L0 ,C*0.98,'收盘价精准'),COLORRED;}STICKLINE(前极点精准线=L AND 前极点精准线=O ,H,L,0,0),COLORWHITE;{前极点精准线1:IF(顶底开关=0,CONST(REF(C,指定点)),CONST(REF(H,指定点))),COLOR178448;DRAWICON(ABS(L-前极点精准线1)<=L0,前极点精准线1*0.99,38);DRAWICON(ABS(H-前极点精准线1)<=L0,前极点精准线1*1.01,39);};{前极点精准线2:IF(顶底开关=0,CONST(REF(O,指定点)),CONST(REF(H,指定点))),COLOR178448;DRAWICON(ABS(L-前极点精准线2)<=L0,前极点精准线2*0.99,38);DRAWICON(ABS(H-前极点精准线2)<=L0,前极点精准线2*1.01,39);};{前极点精准线3:IF(顶底开关=0,CONST(REF(H,指定点)),CONST(REF(H,指定点))),COLOR178448;DRAWICON(ABS(L-前极点精准线3)<=L0,前极点精准线3*0.99,38);DRAWICON(ABS(H-前极点精准线3)<=L0,前极点精准线3*1.01,39);};{H极点精准线:CONST(REF(H,指定点)),COLOR7777FF;DRAWICON(ABS(H极点精准线-H)<=L0,H极点精准线*1.01,35);DRAWICON(ABS(H极点精准线-L)<=L0,H极点精准线*0.99,34);}{极点精准线:CONST(L),COLOR0077FF;DRAWICON(ABS(L-极点精准线)<=L0,极点精准线*0.99,1);DRAWICON(ABS(H-极点精准线)<=L0,极点精准线*1.01,2);同向极点精准数:COUNT(ABS(L-极点精准线)<=L0,60)-1,COLOR0077FF,NODRAW;异向极点精准数:COUNT(ABS(H-极点精准线)<=L0,60),COLOR0077FF,NODRAW;XG:=同向极点精准数>0 AND 异向极点精准数>0;}{DIFF:=10*(EMA(CLOSE,12)-EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);量缩价涨:=C<REF(O,1) AND V<REF(V,1) AND MACD>REF(MACD,1) AND C>REF(C,1) AND REF(C<O,1) AND C>O;阴KDAY:=BARSLAST(量缩价涨)+1;STICKLINE(V,REF(O,阴KDAY),REF(O,阴KDAY),3.5,0),COLORMAGENTA;DRAWICON(CROSS(C,REF(O,阴KDAY)),L,1);};{DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK);};
找了很久的东西! 感谢楼主分享好资源 谢谢,谢谢!找了很久了! 我是来挣鲜花的,嘿嘿 多谢分享! 我抢、我抢、我抢沙发~ 相当不错,感谢无私分享精神! 这个资源我有了,不过还是感谢楼主分享
页:
[1]