【通达信免费源码】包主升指标主图 波段 短线 买卖点 趋势 压力支撑
ED1:=(-2REF(C,2)+REF(C,1)+2C);
ED2:=(-0.4REF(C,4)-0.4REF(C,3)-1.1REF(C,2)+0.9REF(C,1)+2*C);
ED3:=(-0.8REF(C,4)-0.8REF(C,3)-0.2REF(C,2)+0.8REF(C,1)+2*C);
JF1:SMA(SMA(ED1,3,1),3,1),COLORYELLOW;
JF2:SMA(SMA(ED2,4,1),3,1),COLORWHITE;
BC:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水岭:=IF(MA(CLOSE,17)<BC,BC,MA(CLOSE,17)),COLORFF00FF,LINETHICK2;
操作线:=分水岭-(EMA(C,3)-分水岭),COLOR00FFFF,LINETHICK2;
H1:EMA(C,8);
H2:EMA(H1,20);
DRAWBAND(H1,RGB(150,10,10),H2,RGB(10,150,10));
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
STICKLINE(A1X>=0,基准,突破,5,0),COLOR000099;
双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;
单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,COLOR0000FF;
黑马起飞线:EXPMA(CLOSE,89),COLORWHITE,LINETHICK1;
DRAWBAND(JF1,RGB(255,10,10),JF2,RGB(35,135,30));
DRAWICON(CROSS(ED2,JF2),L/1.001,1);
DRAWICON(CROSS(JF2,ED2),H*1.001,2);
VL:=REF(LOW,1);
VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
VAR14:=MA(VAR12,13);
VAR15:=LLV(LOW,34);
VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);
VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))100,7,1)16.18-VAR110*10.9;
T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);
DRAWTEXT(T,LOW-0.4,'←变盘'),COLORFF00FF;
DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2)));
DRAWTEXT(BT AND CROSS(VAR111,20),L*0.99,'短牛'),COLOR0000FF;
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)260;
BBB:=AAA-REF(AAA,1);
起爆:=CROSS(BBB,15),COLORWHITE,LINETHICK2;
DRAWTEXT(起爆,L*0.98,'暴'),COLORYELLOW,LINETHICK2;
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
趋势:= EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),LINETHICK2,COLORRED;
人气:=EMA(0.667REF(趋势,1)+0.333趋势,2),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(趋势,人气) AND 趋势<15 AND BT AND VAR111>=20,L*0.98,'牛吸'),COLORYELLOW;
MAV:=(C*2+H+L)/4;
SK := EMA(MAV,1) - EMA(MAV,40);
SD := EMA(SK,5);
B:=(SK-SD)*100;
猛牛拉升:=IF(B<-20,-20,IF(B>100,100,B)),COLORRED,LINETHICK2;
STICKLINE(猛牛拉升>=10,O,C,3,0),COLORYELLOW;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
A1:=EMA(DIFF,5)*100;
A2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*100;
DRAWTEXT(CROSS(趋势,人气) AND 趋势<40 AND 猛牛拉升>=10 AND A2>A1 ,L,'吸'),COLORYELLOW;
止跌:=(REF(EVERY(C<O,2),1) AND C>O);
VAR1N:=MA(CLOSE,5),;
VAR2N:=MA(CLOSE,10);
VAR3N:=(VAR1N-CLOSE)/CLOSE>3/100;
VAR4N:=(VAR2N-VAR1N)/VAR1N>0.03;
VAR5N:=LLV(CLOSE,30)=LLV(CLOSE,120);
底部:=VAR3N AND VAR4N AND VAR5N;
包赚不赔:=BARSLAST(底部)<=2 AND 止跌;
STICKLINE(包赚不赔,O,C,3,0),COLORMAGENTA;
CCI:=CCI(84),COLORWHITE;
DRAWTEXT(包赚不赔 AND CCI>REF(CCI,1),L,'包'),COLORWHITE;
DRAWICON(CROSS(CCI,0),L,24);
B1:=(HHV(H,35)-C)/(HHV(H,35)-LLV(LOW,35))*100-35;
B2:=SMA(B1,35,1)+100;
B3:=(C-LLV(L,35))/(HHV(H,35)-LLV(L,35))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
控盘程度:=(IF(B6>1,B6-1,0))*2.5,COLORRED,LINETHICK2;
控盘上:=IF(控盘程度>REF(控盘程度,1), 控盘程度,DRAWNULL),
STICK,COLORYELLOW,LINETHICK1;
控盘下:=IF(控盘程度<REF(控盘程度,1), 控盘程度,DRAWNULL),
STICK,COLORFF9900,LINETHICK1;
DRAWTEXT(猛牛拉升>=10 AND 控盘下>0,H*1.01,'?'),COLORYELLOW;
DRAWTEXT(控盘上>REF(控盘上,1) AND 控盘程度>100 AND C<REF(C,1)AND C<O,H*1.01,'险'),COLORWHITE;
发:=(CLOSE2+HIGH+LOW)/410;
S:=EMA(发,13)-EMA(发,34);
J1:=EMA(S,5);
顺:=2(S-J1)5.5;
主力拉:=IF(CLOSE<0,0,IF(顺>=0,顺,0)),LINETHICK2,COLOR0000FF;
底部1:=7.0,COLOR70DB93;
前抢:REF(C,BARSLAST(CROSS(主力拉,底部1))),COLOR00FF00,POINTDOT;
DRAWTEXT(CROSS(主力拉,底部1),H,'抢'),COLORYELLOW;
STICKLINE(C,前抢,前抢,8,0)LINETHICK2,COLORCYAN;
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR9:=MA(TR1,22);
止损线: HHV(H-3*ATR9,22),COLORWHITE,DOTLINE;
DRAWTEXT(ISLASTBAR,止损线,'止损线'),COLORWHITE;
STICKLINE(ISLASTBAR,HHV(C,5),HHV(C,5),218,1)COLORBLUE;
STICKLINE(ISLASTBAR,HHV(C,5)0.95,HHV(C,5)0.95,218,1)COLORRED;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!