macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
28
2024 / 11 / 20
2023-03-20 15:21:50 通达信指标网
{精准线主图}
{参数 顶底开关 0 1 0 点位差0 1 0 指定点 0 1000 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);};
原文链接:https://www.tdxzb.com/?id=1128
本文版权:如无特别标注,本站文章均为原创。