macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
15
2024 / 11 / 20
2023-11-12 13:14:01 通达信指标网
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖线,CLOSE,OPEN,3.3,0), COLOR7070FF;
STICKLINE(买线>=卖线,LOW,HIGH,0,0), COLORYELLOW;
STICKLINE(买线<卖线,CLOSE,OPEN,3.3,0), COLORFF6600;
STICKLINE(买线<卖线,LOW,HIGH,0,0), COLORCCCC66;
趋势:MA(CLOSE,9),POINTDOT,COLORWHITE,LINETHICK1;
压力:MA(REF(HHV(C,30),1),2),COLOR009900,LINETHICK1;
支撑:MA(REF(LLV(C,30),1),2),COLOR1880FF,LINETHICK1;
支撑价:LLV(LOW,34) ,COLORFF7F00,LINETHICK1;
阻力价:HHV(HIGH,34),COLORYELLOW,LINETHICK1;
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
{ VOL+获利比}
获利比:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20);
VOLUME:=MA(VOL,1),COLOR005000;
MA5:MA(VOL,5),COLOR400080;
MA10:MA(VOL,10),COLOR808080;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),
VOL/2)),COLORRED, LINETHICK0;
卖量:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),COLORGREEN,LINETHICK0;
进出量:买量+卖量,COLOR400080;
VAR7B:=IF(TROUGHBARS(3,6,1)=0 AND HIGH>LOW+0.04,4,0);
STICKLINE(REF(VAR7B>0,1),VOL,0,2.1,0),COLORYELLOW,LINETHICK1;
买:REF(VAR7B>0,1),COLORYELLOW,LINETHICK1;
VAR3:=PEAKBARS(3,6,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
卖:顶>REF(顶,1),COLORGREEN;
STICKLINE(顶>REF(顶,1),VOL,0,2.1,0),COLORGREEN;
STICKLINE(进出量<0,0,进出量,3.0,0),COLORFF6600;
STICKLINE(进出量<0,0,进出量,2.0,0),COLORFF9900;
STICKLINE(进出量<0,0,进出量,0.0,0),COLORFFCC00;
STICKLINE(进出量<0,0,进出量,0.0,0),COLORFFCC00;
STICKLINE(进出量<0,0,进出量,0.0,0),COLORCYAN;
STICKLINE(进出量>0,0,进出量,3.0,0),COLOR000099;
STICKLINE(进出量>0,0,进出量,2.0,0),COLOR0000CC;
STICKLINE(进出量>0,0,进出量,0.0,0),COLOR0000FF;
STICKLINE(进出量>0,0,进出量,0.0,0),COLORCC66FF;
HY1:=REF(EMA(V1,3),1);
DRAWTEXT(CROSS(CLOSE,HY1),LOW,'买进'),COLORYELLOW;
SHORT:=12;
LONG:=26;
M:=9;
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
DRAWTEXT(低位金叉,L*0.92,'低位金叉'),COLOR8000FF;
A1:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(A1=2,21)=1;
DRAWTEXT(二次金叉,L*0.90,'二次金叉');
X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);
Y:=EMA(CLOSE,10);
DRAWTEXT(CROSS(Y,X),(LOW * 0.95),'安全C级');
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
DD:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);
VAR6:=((AK + VAR5) / 2);
VAR7:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);
VAR8:=EMA(VAR6,5);
BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);
AB:=CROSS(AK1,AK);
BB1:=(CROSS(AK1,BB) AND (BB < 30));
CD:=(BB1 * 0.6);
DRAWTEXT((CD = 0.6),(LOW * 0.95),'安全A级');
DRAWTEXT((AB = 1),(LOW * 0.97),'安全 B 级'),COLOR33CC99;
多空:MA(CLOSE,30){,CIRCLEDOT},COLOR808080,LINETHICK1;
玌价:=MA(CLOSE,1);
加仓:=MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>MA(C,10) AND V>MA(V,5) AND CROSS(C,MA(C,5));
DRAWTEXT(加仓=1,L*0.98,'加仓'),COLORRED;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,'∠45上升'),COLORWHITE;
画线 : STICKLINE(CLOSE<OPEN AND REF(CLOSE,1)>REF(OPEN,1),REF(CLOSE,1),REF
(CLOSE,1),10,0),COLORGREEN,LINETHICK6;
原文链接:https://www.tdxzb.com/?id=1817
本文版权:如无特别标注,本站文章均为原创。