macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
24
2024 / 11 / 20
2023-05-15 16:02:21 通达信指标网
公式源码:
{变色彩带}
VAR1:=(2*CLOSE+HIGH+LOW)/4;
操盘线: (EMA(VAR1,2)+EMA(VAR1,3)+EMA(VAR1,5)+EMA(VAR1,8)+EMA(VAR1,11)+EMA(VAR1,13))/6.4,COLORFFFF00,LINETHICK2,CIRCLEDOT;
IF(操盘线>REF(操盘线,1),操盘线,DRAWNULL),COLOR0000FF,LINETHICK2,CIRCLEDOT;
最新:C,COLORFFFFFF,CIRCLEDOT,NODRAW;
IF(C>=REF(C,1),C,DRAWNULL),COLORRED,CIRCLEDOT,NODRAW;
AA10:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB10:=BETWEEN(C/AA10,C+H,C-H);
DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);
DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);
CC1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD0:=DMA(CLOSE,CC1);
EE:=(1-14/100)*DD0;
底:BETWEEN(C,EE*0.98,EE*1.01),STICK,COLORFFFFFF;
DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信订阅号:翔博软件工作室'),COLORRED;
DRAWTEXT(底>0,0.7,' 底'),COLOR00FFFF;
DRAWICON(底>0,底,23);
{VOL}
AA:=V/CONST(HHV(V,90))*100;
买1:STICKLINE(C>=O,AA+50,50,2,1),COLOR0000FF;
STICKLINE(C<O OR(C=O AND C<REF(C,1)) ,AA+50,50,2,1),COLORFFFF00;
{KDJ}
RSV:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
K:SMA(RSV,3,1),COLORBLUE,LINETHICK1;
D:SMA(K,3,1),COLORBLACK,LINETHICK1;
J:3*K-2*D,COLOR00FFFF,LINETHICK2;
DRAWBAND(K,RGB(758,8,18),D,RGB(0,200,200));
IF(K<REF(K,1),K,DRAWNULL),COLOR919100,LINETHICK1;
IF(D<REF(D,1),D,DRAWNULL),COLOR919100,LINETHICK1;
IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK2;
IF(K>REF(K,1),K,DRAWNULL),COLOR4444FF,LINETHICK1;
IF(D>REF(D,1),D,DRAWNULL),COLOR4444FF,LINETHICK1;
IF(J>REF(J,1),J,DRAWNULL),COLOR1E1EFF,LINETHICK2;
VAR11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR13:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR4:=(VAR11+2*VAR12+3*VAR13)/7;
VAR5:=MA(VAR4,1);
预警:STICKLINE(VAR5<=-8,68,50,1,0),COLORYELLOW;
底部准备: IF(VAR5<-8,75,50),LINETHICK1,COLORCYAN;
底部预警: IF(VAR5<-8,82,50),LINETHICK1,COLOR000091;
QQ:= CLOSE>REF(CLOSE,1)*1.02;
BB:=SMA(MAX(CLOSE-REF(CLOSE,1),0),21,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),21,1)*1000;
GG:=MA(BB-LLV(BB,27),5);
AA0:=(REF(H,4)-REF(L,1))/C*100>10;
RB:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100/2+22)*1;
QB:=((EMA(AMOUNT,13) /EMA(VOL,13)) / 100);
ZH:=(((((CLOSE -QB) / QB) * 100) < (0)) AND ZXNH);
CD:=ZH AND (CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100<RB-2;
底买:AA0 AND QQ AND CD>0,STICK,COLORRED;
DRAWTEXT(底买,0.7,' 底买'),COLORFFFFFF;
DRAWICON(底买>0,底买,23);
多头排列:=MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,60)
AND MA(C,60)>REF(MA(C,60),1);
倍量:=VOL>1.1*REF(VOL,1);
回调入:REF(DOWNNDAY(C,3),2) AND REF(C,1)<REF(C,2) AND C>=O AND 多头排列 AND 倍量,STICK,COLORRED;
DRAWTEXT(回调入,0.7,' 回调入'),COLORYELLOW;
DRAWICON(回调入>0,回调入,13);M2:=EMA(C,2);
M18:=EMA(C,18);
买点:=IF(CROSS(M18,M2),5,0* 10000),COLORFF00FF,LINETHICK2;
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
Q:=EMA(VOL,13);
Y0:=EMA(AMOUNT,13);
S:=((Y0 /Q) / 100);
X:=(((CLOSE -S) / S) * 100);
F:=((X < (0)) AND ZXNH);
XQ:=F AND RSVV<VARB2-2;
阴买:买点 AND XQ ,STICK,COLOR00FF00;
DRAWTEXT(阴买>0,0.6,' 阴买'),COLOR00FF00;
DRAWICON(阴买>0,阴买,23);
原文链接:https://www.tdxzb.com/?id=1291
本文版权:如无特别标注,本站文章均为原创。