抄底之尊(副)
BIAS1:=(C/MA(C,6)-1)*100;
BIAS2:=(C/MA(C,12)-1)*100;
BIAS3:=(C/MA(C,24)-1)*100;
AA1:=((MA(AMOUNT,5)/MA(V,5)-MA(AMOUNT,110)/MA(V,110))
/(MA(AMOUNT,5)/MA(V,5)))< -0.273;
AA1 and BIAS1<=-7 AND BIAS2<=-11 AND BIAS3<=-14;
三丰新OL(主
EMA5:EMA(C,5);EMA34:EMA(C,34);
KS:=(1-C/SMA(C,13,1))*100;RKS:=REF(KS,1);
MLS:=RKS/KS>1.23 AND RKS>10 AND C/REF(C,1)>1.02;
超跌:STICKLINE(KS>=10,H,L,0,1),colorwhite,linethick2;
反弹:STICKLINE(MLS=1,H,L,0,1),colormagenta,linethick2;
STICKLINE(C>=O,H,L,0,0),COLORred;
STICKLINE(C>=O,C,O,8,0),COLORred;
STICKLINE(C<O,H,L,0,0),COLORgreen;
STICKLINE(C<O,C,O,8,0),COLORgreen;
STICKLINE(KS>10,H,L,0,0),colorwhite,linethick2;
STICKLINE(KS>10,O,C,8,1),colorwhite,linethick2;
STICKLINE(MLS,H,L,0,0),colormagenta,linethick2;
STICKLINE(MLS,O,C,8,1),colormagenta,linethick2;
牛线:EMA(C,13)colorred,linethick2;
熊线:EMA(KS*C/100+牛线,3)colorblue,linethick2;
送给新友(主、选)
VAR326:=IF(CLOSE>REF(CLOSE,1),88,0);
VAR327:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND VAR326>0, 91, 0);
TJ:=FILTER(VAR327>1,5);
SG:=EMA(HHV(H,1),8),COLORMAGENTA;
X1:=EMA(CLOSE,8),COLORYELLOW;
JJ:=(H+L+3*C)/5;
VAR21:=EMA(JJ,5);VAR22:=EMA(JJ,13);VAR23:=EMA(JJ,21);VAR24:=EMA(JJ,34);
H1A:=(VAR21+VAR22+VAR23+VAR24)/4;
X4:=EMA(X1,20*3);
X6:=EMA(X1,50*3),COLORWHITE,CIRCLEDOT,LINETHICK2;
X7:=EMA(X1,50*5),COLORMAGENTA,LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
卖:=(X4>X6 AND CROSS(84,RSI)),COLORYELLOW;
DRAWICON(TJ>0,L*0.9978-0.06,1);
DRAWICON(TJ>0,L*0.9978-0.62,9);
DRAWICON(卖=1,H*1.01+0.06,2);
DRAWICON(卖=1,H*1.01+0.50,6);
MA1:=MA(C,5),COLOR33FF33;
K1:=BACKSET(MA1>REF(MA1,1),2);
强:IF(K1,MA1,DRAWNULL),COLORRED,LINETHICK2;
K2:=BACKSET(MA1<REF(MA1,1),2);
弱:IF(K2,MA1,DRAWNULL),COLOR33FF33,LINETHICK2;
十:MA(C,10),COLOR33FFFF;
选股
VAR326:=IF(CLOSE>REF(CLOSE,1),88,0);
VAR327:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND VAR326>0, 91, 0);
XG:FILTER(VAR327>1,5);
{操盘黄金线}(主)
新价:(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINETHICK1;
{RSI原理}
GAO:=HHV(H,30)-LLV(L,30);
高位:新价+0.4*GAO,COLORCYAN;
低位:新价-0.4*GAO,COLORWHITE;
指导线:新价+(SMA(MAX(新价-REF(新价,1),0),5,1)/SMA(ABS(新价-REF(新价,1)),5,1)*GAO-GAO*0.5),COLORMAGENTA,LINETHICK1;
{趋势}
平衡:EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55),COLORRED,LINETHICK0;
IF(C>=平衡,平衡,DRAWNULL),COLORRED,LINETHICK2;
IF(C<平衡,平衡,DRAWNULL),COLORBLUE,LINETHICK2;
苏堤六桥(副)
{ p1 1 99 13 ; p2 1 99 9 }
Var2:=(close-LLV(low,p1))/(HHV(high,p1)-LLV(low,p1))*100;
Var3:=EMA(Var2,P2);
Var4:=EMA(Var3,P1);
Var5:=3*Var3-2*Var4;
Var6:=EMA(Var5,5);
跨虹桥:EMA(Var6,1),linethick2,COLORff00ff;
Var7:=Var2;
Var8:=SMA(Var7,3,1);
Var9:=MA(跨虹桥,2);
VarA:=3*Var8-2*跨虹桥;
STICKLINE(Var9<10,0,6,10,1),COLORYELLOW;
东浦桥:STICKLINE(cross(跨虹桥,Var9) and var9<10 and var6<5.5,10,-10,8,0),color00ff00;
压堤桥:STICKLINE(跨虹桥>70,105,100,10,1),color00ff00;
望山桥:STICKLINE(cross(Var9,跨虹桥) and var9>25 ,95,90,8,0), COLORffcc66;
锁澜桥:if(跨虹桥>10,10,0), COLORRED;
映波桥:if(跨虹桥>70,98,90),COLORYELLOW;
STICKLINE(跨虹桥>70,跨虹桥/2,90,0,0),color0099ff;
STICKLINE(跨虹桥<10,跨虹桥*5,5,0,0),COLORWHITE;
【雪飞短线1】(副图)
{p1:3,16,8}
{p2:2,12,5}
{p3:2,10,4}
Var1:=(CLOSE-LLV(LOW,P1))/(HHV(HIGH,P1)-LLV(LOW,P1))*100;
Var2:=EMA(Var1,P2);
Var3:=EMA(Var2,4);
Var4:=HHV(Var3,0);
Var5:=LLV(Var3,0);
Var6:=EMA(Var2,P1);
Var7:=3*Var2-2*Var6;
Var8:=EMA(Var7,5);
Var9:=EMA(Var7,10);
VarA:=LLV(LOW,50);
VarB:=HHV(HIGH,50);
VarC:=EMA(CLOSE,3);
VarD:=(VarC-VarA)/(VarB-VarA)*100;
VarE:=EMA(VarD,3);
VarF:=EMA(VarE,16);
TX: Var4+4,coloryellow;
MK: Var3,colorf00ff0;
Var10:=EMA(Var6,P3);
MJ: EMA(Var8,2),color00ff00;
RR: EMA(VarF,20), CIRCLEDOT,colorwhite;
DX: Var5-3,colorf0f000;
{雷达一号} 副
Var1:=EMA(VOL/CAPITAL,3);
Var2:=HHV(Var1,240);
Var3:=LLV(Var1,240);
Var4:=MA(CLOSE,33);
Var5:=EMA(CLOSE,13)-EMA(CLOSE,26);
Var6:=EMA(Var5,9);
Var7:=2*(Var5-Var6);
Var8:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var9:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
VarA:=(CLOSE-LLV(LOW,225))/(HHV(HIGH,225)-LLV(LOW,225))*100;
VarB:=SMA(Var8,3,1);
VarC:=SMA(Var9,15,1);
VarD:=SMA(VarA,45,1);
VarE:=(VarD-REF(VarD,1))*50;
VarF:=(VarC-REF(VarC,1))*10;
Var10:=REF(VarC,1)-REF(VarD,1);
Var11:=(VarC-Var10-VarD)*30;
Var12:=VarB-REF(VarB,1);
固定筹码: EMA((Var1-Var3)/Var3*Var4,13);
移动筹码: EMA((Var2-Var1)/Var1*Var4,13);
多空对比: 固定筹码-移动筹码, COLORSTICK;
Var13:=Var7>=-0.035 AND Var7<=0.045 AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,10) AND 多空对比>-100;
大黑马: IF(Var13 AND Var12>7 AND REF(Var12,1)<0 AND Var12-REF(Var12,1)>9,1,0),LINETHICK3 , Color00FFFF;
STICKLINE(大黑马,0,固定筹码,5,0),LINETHICK3 , Color00FFFF;
DRAWICON(大黑马,固定筹码*1.1,1);
{雷达二号}副
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,30);
VAR4:=MA(CLOSE,60);
VAR5:=EMA(COST(85),7);
VAR6:=EMA(COST(15),7);
VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);
VAR8:=INTPART(VAR7*100)/100;
VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);
VARA:=INTPART(VAR9*100)/100;
VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC:=INTPART(VARB*100)/100;
VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE:=EMA(VARD,9);
VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;
VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;
VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;
VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;
VAR13:=REF(VARE,1);
VAR14:=VARE;
VAR15:=VAR14-VAR13;
VAR16:=REF(VARD,1);
VAR17:=VARD;
VAR18:=VAR17-VAR16;
VAR19:=OPEN;
VAR1A:=CLOSE;
短线黑马: IF(VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0,0.5,0),LINETHICK3 , COLOR00FFFF;
STICKLINE(短线黑马,0,短线黑马*0.86,2,1),LINETHICK3 ,COLOR00FFFF;
DRAWICON(短线黑马>0,短线黑马,1);
{波段导航} 副/未来
Var1:=(CLOSE-LLV(LOW,29))/(HHV(HIGH,29)-LLV(LOW,29))*100;
K: SMA(SMA(Var1,3,1),3,1);
D: SMA(K,3,1);
J: 3*K-2*D;
Var2:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
Var3:=(CLOSE+HIGH+LOW+OPEN)/4;
Var4:=LLV(LOW,34);
Var5:=HHV(HIGH,34);
Var6:=EMA((Var3-Var4)/(Var5-Var4)*100,8);
Var7:=EMA(Var6,5);
80, POINTDOT;
50, POINTDOT;
20, POINTDOT;
Var8:=MA(CLOSE,3);
Var9:=REF(CLOSE,2)*0.865;
VarA:=REF(CLOSE,13)*0.772;
VarB:=MIN(Var9,VarA);
VarC:=100*VOL/CAPITAL;
VarD:=MA(CLOSE,13);
VarE:=CLOSE>0.899*REF(CLOSE,1) AND CLOSE<0.901*REF(CLOSE,1);
VarF:=EMA(CLOSE,30)-EMA(CLOSE,17);
Var10:=EMA(VarF,5);
Var11:=CROSS(VarF,Var10) AND TROUGHBARS(3,7,1)<1;
Var12:=IF((CLOSE-VarB)/CLOSE<0.03 AND SUM(VarC,5)/5<1.8,VarE=0,0);
STICKLINE(Var6-Var7>0,Var6,Var7,8,1), Color0000FD;
STICKLINE(Var6-Var7<0,Var6,Var7,8,1), Color00FFFF;
多多强牛 (主图)
VAR1:=DMA(AMOUNT/V/100,V/CAPITAL);
筹码线:VAR1*1.1;
牛熊线:COST(75);
持仓线:MA(CLOSE,20), COLORGRAY;
STICKLINE(C>0,O,C,4,0) ,COLORBLUE;
STICKLINE(C>0,H,L,0.4,0) ,COLORBLUE;
A:=CLOSE>筹码线 AND CLOSE>牛熊线 AND CLOSE>持仓线;
B:=CLOSE>筹码线 AND CLOSE<牛熊线 AND CLOSE>持仓线;
STICKLINE(A>0,O,C,4,0), COLORYELLOW;
STICKLINE(A>0,H,L,0.4,0), COLORYELLOW;
STICKLINE(B>0,H,L,0.4,0) ,COLORMAGENTA;
STICKLINE(B>0,O,C,4,0), COLORMAGENTA;
IF(CLOSE>牛熊线,牛熊线,DRAWNULL),COLORMAGENTA ,LINETHICK2;
IF(CLOSE>持仓线,持仓线,DRAWNULL),COLORGREEN ,LINETHICK2;
IF(CLOSE>筹码线,筹码线,DRAWNULL),COLORRED, LINETHICK2;
四方力道(主)
注:大智慧也可用
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
HY1:=REF(EMA(V1,3),1);
实时线:MA(CLOSE,1),Color006400;
神秘线:HY1,Color400080;
stickline(C>HY1,low,high,1,0),colorred;
stickline(C>HY1,close,open,4.5,0),colorred;
stickline(C>HY1,close,open,4,0),colorred;
stickline(C>HY1,close,open,3,0),colorred;
stickline(C>HY1,close,open,2,0),colorred;
stickline(C<=HY1,close,open,4.5,0),ColorFF4242;
stickline(C<=HY1,close,open,4,0),ColorFF4242;
stickline(C<=HY1,close,open,3,0),ColorFF4242;
stickline(C<=HY1,close,open,2,0),ColorFF4242;
stickline(C<=HY1,low,high,1,0),ColorFF4242;
DRAWtext(CROSS(CLOSE,HY1),LOW,'买点'),LINETHICK2,ColorYELLOW;
DRAWtext(CROSS(HY1,CLOSE),HIGH*1.08,'卖点'),LINETHICK3,colorwhite;
APP:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
ZL:=IF((CLOSE > OPEN),(APP * (HIGH - LOW)),IF((CLOSE < OPEN),(APP * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
SF:=IF((CLOSE > OPEN),(0 - (APP * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (APP * (HIGH - LOW))),(0 - (VOL / 2))));
库存能量:=MA((ZL + SF),2);
库存平均:=MA((ZL + SF),5);
DRAWTEXT(cross(库存能量,库存平均),L*0.97,''),ColorFF00FF,linethick4;
45度必羊上升 (主)
M21:MA(C,21),COLORWHITE;
M55:MA(C,55),COLORYELLOW;
MA72:MA(CLOSE,72),ColorFFFfff,linethick1;
MA98:MA(CLOSE,98),Color00Ffff,linethicK1;
MA250:MA(CLOSE,250),Color00ff00,linethick1;
x1:=(C+L+H)/3;
x2:=EMA(x1,6);
x3:=EMA(x2,5);
stickline(x2>x3 and c>ema(x1,13),low,high,0.1,1),colorred;
stickline(x2>x3 and c>ema(x1,13),close,open,5,1),colorred;
stickline(x2<x3 and c<ema(x1,13),low,high,0.1,1),colorffff54;
stickline(x2<x3 and c<ema(x1,13),close,open,5,0),colorffff54;
gr1:=BARSLAST(BETWEEN("bias.bias2"(6,13,24),0,5));
gr2:=ema(x1,13)>ema(x1,21) and ema(x1,21)>ema(x1,34)
and ema(x1,13)>ref(ema(x1,13),1);
gr3:=count("bias.bias2"(6,13,24)>10 and h=hhv(h,gr1),gr1);
gr4:=h=hhv(h,gr1);
gr5:="macd.macd"(12,26,9)<ref("macd.macd"(12,26,9),1);
gr6:=gr2 and gr3 and gr4;
gr7:=gr2 and gr3 and gr4 and gr5;
gr8:=gr6 and gr7;
LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
换手:=100*v/capital;
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;
波段线(副)
波段线:EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)
-LLV(LOW,19))*100,5,1),3)NODRAW;
VAR1:=EMA(波段线,2);
VAR2:=EMA(VAR1,2);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=CROSS(VAR2,VAR1);
STICKLINE(波段线>20 AND 波段线<50,波段线-2,波段线+2,5,0),COLORYELLOW;
抄底:IF(CROSS(波段线,8) OR CROSS(波段线,15),波段线*3.0,0)
,COLORMAGENTA,LINETHICK2;
卖:IF(VAR4,波段线,0),COLORYELLOW,NODRAW;
DRAWTEXT(VAR3 AND VAR1>20,波段线-12,'买'),COLORRED;
STICKLINE(VAR3 AND VAR1>20,波段线,0,1,0),COLORRED;
买:IF(VAR3 AND VAR1>20 ,波段线,0),COLORRED,LINETHICK2,NODRAW;
STICKLINE(波段线>80,波段线-2,波段线+2,5,0),COLORRED;
STICKLINE(波段线<20,波段线-2,波段线+2,5,0),COLORBLUE;
STICKLINE(波段线>50 AND 波段线<80,波段线-2,波段线+2,5,0),
COLORMAGENTA;
DRAWTEXT(抄底>1,抄底+5,' 抄底'),COLORYELLOW;
DRAWICON(抄底>1,抄底,4);
DRAWTEXT(VAR4,波段线+18,'卖'),COLORYELLOW;
STICKLINE(VAR4,波段线,波段线+20,1,0),COLORGREEN;
波段线(副)
波段线:EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)
-LLV(LOW,19))*100,5,1),3)NODRAW;
VAR1:=EMA(波段线,2);
VAR2:=EMA(VAR1,2);
VAR3:=CROSS(VAR1,VAR2);
VAR4:=CROSS(VAR2,VAR1);
STICKLINE(波段线>20 AND 波段线<50,波段线-2,波段线+2,5,0),COLORYELLOW;
抄底:IF(CROSS(波段线,8) OR CROSS(波段线,15),波段线*3.0,0)
,COLORMAGENTA,LINETHICK2;
卖:IF(VAR4,波段线,0),COLORYELLOW,NODRAW;
DRAWTEXT(VAR3 AND VAR1>20,波段线-12,'买'),COLORRED;
STICKLINE(VAR3 AND VAR1>20,波段线,0,1,0),COLORRED;
买:IF(VAR3 AND VAR1>20 ,波段线,0),COLORRED,LINETHICK2,NODRAW;
STICKLINE(波段线>80,波段线-2,波段线+2,5,0),COLORRED;
STICKLINE(波段线<20,波段线-2,波段线+2,5,0),COLORBLUE;
STICKLINE(波段线>50 AND 波段线<80,波段线-2,波段线+2,5,0),
COLORMAGENTA;
DRAWTEXT(抄底>1,抄底+5,' 抄底'),COLORYELLOW;
DRAWICON(抄底>1,抄底,4);
DRAWTEXT(VAR4,波段线+18,'卖'),COLORYELLOW;
STICKLINE(VAR4,波段线,波段线+20,1,0),COLORGREEN;
指标寻底MACD(副)
VAR1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
VAR2:=( MA((CLOSE-VAR1)/VAR1,1));
买点1: IF(CROSS(VAR2,0) AND LOW/REF(HIGH,1)<1.012,20,0);
最佳点:IF(COUNT(VAR2>REF(VAR2,1),3)=3 AND
COUNT(VAR2<0,10)=10 AND REF(VAR2,3)=LLV(VAR2,10),60,0);
买点2: IF(REF(VAR2,2)=LLV(VAR2,20) AND
REF(VAR2,2)<0.071 AND REF(VAR2,2)<REF(VAR2,1) AND
NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND
CLOSE>REF(CLOSE,1),20,0);
MMA:=EMA(VAR2,12)*0.7;
MMB:=EMA(VAR2,3);
快到底:IF(LLV(MMB-MMA,12)>0,0,-30),LINETHICK2,COLORGREEN;
底初选股:IF( CROSS(0, LLV(MMB-MMA,12)),10,0),LINETHICK0;
DIFF:( EMA(CLOSE,12) - EMA(CLOSE,26))*100,COLORRED;
DEA: EMA(DIFF,9),COLORFFFFFF,LINETHICK1;
MACD:= 2*(DIFF-DEA);
{PARTLINE(DIFF,DIFF>=REF(DIFF,1),RGB(255,0,0),
DIFF<REF(DIFF,1),RGB(0,255,0)),LINETHICK1;}
抄底:IF(快到底<0 AND CROSS(MACD,0),30,0);
DRAWICON( 抄底>0,35 ,1 );
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORGREEN;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLORFFCC33;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,2,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,3,0),COLORMAGENTA;
资金监控(副)
R:=V/1000000;
R1:=IF(C>REF(C,1),R,
IF(C<REF(C,1),(-1)*R,0));
R3:=SUM(R1,8);
A:R3*OPEN,POINTDOT,COLORFFCC00;
B:R3*C,POINTDOT,COLORFFCC00;
AB:STICKLINE(B>=REF(B,1),REF(B,1),B,5,0),COLORRED;
BA:STICKLINE(B<REF(B,1),REF(B,1),B,5,0),COLORGREEN;
快线:MA(B,5),COLORFF00CC,LINETHICK2;
慢线:MA(B,30);
资金监控 : 2*(EMA(CLOSE,10) - EMA(CLOSE,24)-EMA(EMA(CLOSE,10) - EMA(CLOSE,24),9)), COLORSTICK;
三线开花量能(副)
用法说明:黄色圆点KDJ指标的J与K金叉,粉色圆点MACD指标的DIFF与DEA金叉,红色空心五星表示上涨缺口,绿色实体五星表示下跌缺口,三线向上开花是介入点
线A1:=(MA(VOL,5)+MA(VOL,10)+MA(VOL,25))/3,COLOR00FF00;
线A2:=(MA(VOL,5)+MA(VOL,10)+MA(VOL,20)+MA(VOL,60)+MA(VOL,120))/5,COLOR00FF00;
线A3:=(MA(VOL,20)+MA(VOL,60)+MA(VOL,120))/3,COLOR00FF00,LINETHICK2;
ZX:2*(线A1-线A2), COLORSTICK;
STICKLINE(线A1>线A3,线A1,线A3,0.1,1),COLORFF0080;
STICKLINE(线A1<=线A3,线A1,线A3,0.1,1),COLOR22CC33;
线1:IF(线A1<线A3,线A1,线A3),COLOR00FF00;
IF(线A1<线A3,线A3,线A1),COLORRED;
线2:IF(线A2<线A3,线A2,线A3),COLOR00FF00;
IF(线A2<线A3,线A3,线A2),COLORRED;
线3:IF(线A3<线A1,线A3,线A3),COLOR00FF00,LINETHICK2;
IF(线A1<线A3,线A3,线A3),COLORRED,LINETHICK2;
DIFF:=EMA(CLOSE,26) - EMA(CLOSE,12);DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA), COLORSTICK;MACD金叉:IF(CROSS(DIFF,DEA),MACD-0.02,0),COLORFF00FF,POINTDOT;
DRAWTEXT(CROSS(DIFF,DEA),MACD-0.03,'●'),COLORFF00FF;
TYP := (HIGH + LOW + CLOSE)/3;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;JK金叉:IF(CROSS(J,K),MACD-0.02,0),COLORYELLOW,POINTDOT;
DRAWTEXT(CROSS(J,K),MACD-0.03,'●'),COLORYELLOW;上涨缺口:
IF(L>REF(H,1),MACD-0.01,0),COLORRED,POINTDOT;DRAWTEXT(L>REF(H,1),REF(H,1),'☆'),COLORRED;
扬帆启航(副)
VAR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR2:=SMA(VAR1,20,1);
VAR3:=SMA(VAR2,15,1);
VAR4:=(3*VAR2+2*VAR3)/4;
VAR5:= REF(VAR4,1);
RSA:=SMA(MAX(VAR4-VAR5,0),2,1)/SMA(ABS(VAR4-VAR5),2,1)*100;
RSB:=MA(RSA,10);
RSD:=RSA/RSB; 0; 5;
帆:RSA/RSB;
平:IF(CROSS(0.1,RSD),6,10);
帆-0,COLORSTICK;
{短线MACD} (副)
VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR2:=EMA(VAR1,50);
VAR3:=2*(VAR1-VAR2);
STICKLINE(VAR3<REF(VAR3,1) AND VAR3>0,0,VAR3,4,1),COLORYELLOW;
STICKLINE(VAR3>=REF(VAR3,1)AND VAR3>0,0,VAR3,4,1),COLORRED;
STICKLINE(VAR3>REF(VAR3,1)AND VAR3<0,0,VAR3,4,1),COLORFFC8FF;
STICKLINE(VAR3<=REF(VAR3,1)AND VAR3<0,0,VAR3,4,1),COLORFFCC66;
趋势一:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE;
趋势二:EMA(VAR1,50),COLORYELLOW;
三道防线(副)
指标使用说明:防线A:防线A主要用作短线操作,指标由黄变粉色时,个股有短线走弱的趋势。注意风险!防线B:防线B主要用于波段操作,指标由红色变为青色时,本波段风险可能来到,起码个股有调整要求。 指标一但向下击穿辅助线S,最好获利了结。 指标在80以上为超强势区时可能产生钝化现象,此时可持股观望,一但指标向下击穿80线,建议波段离场。 指标低于20为弱势区,此时建议不要进货。S:S为防线B的辅助指标,也是防线B的生命线。防线C:防线C是个股的生命线,个股由弱转强时,指标由蓝色变白色,个股由强转弱时则反之。 指标由白色变蓝色时,代表本次行情可能结束,建议清仓。 对于进货时机大家自已捉摸。注意: 1.防线B和防线C都为重要防线,在正常情况下反应都比较正确,但在庄家震仓操作或面临自已被套时操盘将会使指标在短时发出不正确的信号,这时需要根据自已的经验和对大势分析来把握。 2. 以上三道防线对波性比较强的个股很灵敏,但对慢牛股、慢熊股同样需要自已根据经验选择进、出时机。切记!
VAR1:=(HHV(HIGH,9)-LLV(LOW,9));
VAR2:=(HHV(HIGH,9)-CLOSE);
VAR3:=(CLOSE-LLV(LOW,9));
VAR4:=VAR2/VAR1*100-70 ;
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR6:=(2*C+H+L)/4;
VAR7:=SMA((VAR3/VAR1*100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:= IF(VAR9>100,VAR9-100,0);
VARA:=HHV(HIGH,34);AA:=VAR10*2, COLORFFCCCC;
R1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
R2:=SMA(R1,9,1)+100;
R3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
R4:=SMA(R3,3,1);
R5:=SMA(R4,3,1)+100;
R6:=R5-R2;
防线A:IF(R6>55,R6-55,0);
SMA(防线A,2,1),COLORFF00FF;
防线B:EMA((VAR6-VAR8)/(VARA-VAR8)*100,13),COLORFFCC66;
B1:=EMA(0.667*REF(防线B,1)+0.333*防线B,2);B1,COLORRED;
防线C:SMA(VAR5,20,1),COLORBLUE;SMA(防线C,5,1),COLORBLUE;
A:=SMA(AA,2,1)-AA;B:=EMA(0.667*REF(防线B,1)+0.333*防线B,2)-防线B;
S:EMA(0.382*REF(防线B,2)+0.618*防线B,12),COLORYELLOW;STICKLINE(REF(防线A,1)<防线A,防线A,REF(防线A,1),5,0),COLORYELLOW;STICKLINE(REF(防线A,1)>防线A,防线A,REF(防线A,1),5,0),COLORFF00FF;
STICKLINE(防线B-B1>0,防线B,B1,5,0),COLORRED;
STICKLINE(防线B-B1<0,防线B,B1,5,0),COLORFFCC66;
STICKLINE(防线C-SMA(防线C,5,1)>0,防线C,SMA(防线C,5,1),5,0),COLORWHITE;
STICKLINE(防线C-SMA(防线C,5,1)<0,防线C,SMA(防线C,5,1),5,0),COLORBLUE;
主力资金(副)
A:=VOL*CLOSE;
B:=SUM(A,1)/SUM(VOL,1);
B1:=EMA(B,17);
主力:(B-B1)*100/B,COLORRED;
进:STICKLINE(主力>=0 AND 0>=REF(0,1),0,主力,1,0),COLORRED;
出:STICKLINE(主力<0 AND 0>=REF(0,1),0,主力,1,0),COLORGREEN;
超跌短线买点(副)
A1:=CAPITAL;
A2:=(((H + L) + O) + C) / 4;
A3:=(((INDEXH + INDEXL) + INDEXO) + INDEXC) / 4;
A4:=(A2 - (REF(A2,1))) / (REF(A2,1));
A5:=(A3 - (REF(A3,1))) / (REF(A3,1));
A6:=(((SUM(A4,10)) + (SUM(A5,10))) / 10) * 1000;
A7:=IF(((A6 > 0) AND (A6 < 75)),A6,(IF((A6 > 75),75,0)));
A8:=IF(((A6 < 0) AND (A6 > -75)),REVERSE(A6),(IF((A6 < -75),75,0)));
STICKLINE(A8,150,(150 - A8),3,1),COLOR825200;
STICKLINE(A7,150,(150 - A7),3,1),COLOR7A67CF;
A9:=(VOL * (((A2 * 2) - HIGH) - LOW)) / (HIGH - LOW);
A10:=IF(((HIGH = LOW) AND (A2 < (REF(A2,1)))),(-1 * VOL),VOL);
A11:=IF((HIGH = LOW),A10,A9);
A12:=SUM(A11,11);
A13:=(A12 / (A1 * 11)) * 10000;
A14:=IF(((A13 < 150) AND (A13 > -150)),A13,150);
A15:=IF((A14 > 0),A14,0);
A16:=IF((A14 < 0),REVERSE(A14),0);
STICKLINE((A14 > 0),0,A15,3,1),COLORYELLOW;
STICKLINE((A14 < 0),0,A16,3,0),COLOR2E9F15;
A17:=(SUM((A2 * VOL),16)) / (SUM(VOL,16));
A18:=(SUM((A2 * VOL),11)) / (SUM(VOL,11));
A19:=(SUM((A2 * VOL),6)) / (SUM(VOL,6));
A20:=((SUM((A2 * VOL),7)) - (A2 * VOL)) / ((SUM(VOL,7)) - VOL);
A21:=((A18 - A17) / A2) * 1000;
A22:=IF((A21 > 50),50,(IF((A21 < -50),-50,A21)));
A23:=((A19 - A18) / A2) * 1000;
A24:=IF((A23 > 50),50,(IF((A23 < -50),-50,A23)));
A25:=((((A19 - A20) / A20) * 5) / 4) * 1000;
A26:=IF((A25 > 50),50,(IF((A25 < -50),-50,A25)));
A27:=(A22 + A24) + A26;
红柱线:IF((A27 > 0),A27,0),COLOR003ADB,LINETHICK2;
兰柱线:IF((A27 < 0),REVERSE(A27),0),COLORE99A2C,LINETHICK2;
A28:=IF((兰柱线 < 150),兰柱线,(IF((兰柱线 = 150),65,0)));
A29:=IF((兰柱线 = 150),60,0);
A30:=IF((红柱线 < 150),红柱线,(IF((红柱线 = 150),65,0)));
A31:=IF((红柱线 = 150),60,0);
A32:=(((红柱线 > (REF(红柱线,1))) AND (红柱线 > 49)) AND (CLOSE < (REF(CLOSE,1)))) AND ((OPEN < (REF(CLOSE,1))) OR ((OPEN = (REF(CLOSE,1))) AND ((HIGH / (REF(CLOSE,1))) < 1.02)));
DRAWICON(A32,90,9),COLORGREEN;
超跌短线买点:(兰柱线 = 150) AND ((CLOSE < OPEN) OR (CLOSE > OPEN)),COLORRED;
A33:=SUMBARS(VOL,(A1 * 0.8));
A34:=IF((A33 < 9),9,A33);
A35:=HHV(A2,A34);
A36:=LLV(A2,A34);
A37:=IF((A35 = A36),0,((100 * (A2 - A36)) / (A35 - A36)));
中趋势线:(1.5 * (SUM(A37,6))) / 6,LINETHICK2,COLORRED;
长趋势线:(SUM(中趋势线,6)) / 6,LINETHICK2,COLORGREEN;
A38:=((HIGH - A2) > (A2 - LOW)) OR ((HIGH = LOW) AND (LOW < (REF(CLOSE,1))));
A39:=FILTER(A38,5);
A40:=EMA((((CLOSE - (LLV(LOW,25))) / ((HHV(HIGH,25)) - (LLV(LOW,25)))) * 4),4);
DRAWTEXT((FILTER((A40 < 0.25),5)),30,'考虑买入'),COLORRED;
DRAWTEXT((FILTER((A40 > 3.6),10)),155,'出货'),COLORGREEN;
A42:=(EMA((((CLOSE - (LLV(LOW,33))) / ((HHV(HIGH,21)) - (LLV(LOW,33)))) * 100),20)) * 0.998;
A43:=EMA(((0.667 * (REF(A42,1))) + (0.333 * A42)),1);
STICKLINE((A43 < 20),20,(20 + 20),4,0),COLORMAGENTA;
DRAWTEXT((超跌短线买点 = 1),60,'超跌短线买点'),COLORWHITE;
DRAWTEXT((A32 = 1),60,'超强短线买点'),COLORYELLOW;
买方能量:(A15),COLORYELLOW,LINETHICK1;
雨季彩虹(副)
用法说明:雨季彩虹有六根线,你只要看黄红和粉线就行了,这个公式就看二条线就行了,如是黄线上穿粉线你就买入
用这个公式选买点,一般在目标股买点选择上看60分钟的雨季彩虹. 买时使用雨季彩虹,卖出使用阻力指标,一般来说都能买在底部,卖在顶部.
YS1:=(HIGH+LOW+CLOSE*2)/4;
RK3:=EMA(YS1,10);
RK4:=STD(YS1,10);
RK5:=(YS1-RK3)*100/RK4;
RK6:=EMA(RK5,5);
RK7:=EMA(RK6,10);
彩虹:(EMA(RK6,10)+100)/2-5;
MK:EMA(彩虹,4);
MK1:EMA(MK,4);
MK2:EMA(MK1,4);
MK3:EMA(MK2,4);
MK4:EMA(MK3,4);
MMK:=CROSS(彩虹,MK);
买点:=IF(MMK,20,0),COLORWHITE,POINTDOT;
STICKLINE(买点,20,0,4,0),COLORWHITE;
100,COLOR00FF00,POINTDOT;
0,COLORWHITE,POINTDOT;
雨季彩虹(副)2
用法说明:雨季彩虹有六根线,你只要看黄红和粉线就行了,这个公式就看二条线就行了,如是黄线上穿粉线你就买入
用这个公式选买点,一般在目标股买点选择上看60分钟的雨季彩虹. 买时使用雨季彩虹,卖出使用阻力指标,一般来说都能买在底部,卖在顶部.
YS1:=(HIGH+LOW+CLOSE*2)/4;
RK3:=EMA(YS1,10);
RK4:=STD(YS1,10);
RK5:=(YS1-RK3)*100/RK4;
RK6:=EMA(RK5,5);
RK7:=EMA(RK6,10);
涨:EMA(RK6,10)+100/2-5,COLORRED;
跌:EMA(涨,4),COLORWHITE;
天晴了:IF(CROSS(涨,跌) AND 跌<-10,20,0),COLORCCCCFF;
雨季将来:IF(CROSS(跌,80),80,100),COLORFF3798;
彩虹1:EMA(跌,4),COLORFFFF50;
彩虹2:EMA(彩虹1,4);
彩虹3:=EMA(彩虹2,4),COLORYELLOW;
彩虹4:=EMA(彩虹3,4),COLORCC9900;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),5,0 ),COLOR00BB00;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),4,0 ),COLOR00CC00;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF;
DRAWICON(天晴了>0,20,3);
DRAWTEXT(CROSS(涨,跌) AND 跌<20 AND 跌>-10,40,'日出'),COLORFFFFFF;
DRAWTEXT(天晴了>0,-20,'天晴'),COLORCCCCFF;
VAR11:=SUMBARS(VOL,FINANCE(7)*100);
{SUMBARS为引用函数,表示累加到指定周期数; FINANCE为财务数据函数,N为返回财务数值。}
VAR22:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR3:=(CLOSE-VAR22)/VAR22*100;
VAR4:=HHV(VAR3,VAR11);
VAR5:=LLV(VAR3,VAR11);
VAR6:=(VAR3-VAR5)/(VAR4-VAR5)*100;
K:=SMA(VAR6,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MA1:=MA(J,3),COLORGREEN;
STICKLINE(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,涨,涨+20,6,0);
DRAWTEXT(FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0,60,'注意'),COLORRED;
<资金流向>副
流通:=AMOUNT/VOL;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
ZLL:=VOL/CAPITAL;
HSL1:=IF(ZLL>10,10,ZLL);
HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
STICKLINE(HSL*0.4>=0,HSL*0.4*1.5,0,1,0),COLOR808080;
STICKLINE(HSL*0.4<0,HSL*0.4*1.5,0,1,0),COLOR808080;
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
资金流向:LLJX,LINETHICK0,COLOR0000FF;
STICKLINE(资金流向>0,资金流向,0,7,0),COLOR0000FF;
STICKLINE(资金流向<0,资金流向,0,7,0),COLORFF0000;
流量基线:GJJ,COLOR00FFFF;
ZJLL:=REF(LLJX,1);
QZJJ:=((LLJX-ZJLL)/ZJLL)*100;
流量增幅%:IF(LLJX>0 AND ZJLL<0,ABS(QZJJ),IF(LLJX<0 AND ZJLL<0 AND LLJX<ZJLL,-QZJJ,QZJJ)),LINETHICK0;
力度:HSL/1000,LINETHICK0;
周流向:SUM(LLJX,5),LINETHICK1;
BB:=REF(周流向,1);
ZQZJJ:=((周流向-BB)/BB)*100;
周增幅%:IF(周流向>0 AND BB<0,ABS(ZQZJJ),IF(周流向<0 AND BB<0 AND 周流向<BB,-ZQZJJ,ZQZJJ)),LINETHICK0;
0,COLOR808080;
捕捉牛股(副)
STICKLINE(CLOSE<OPEN AND REF(CLOSE,1)>REF(OPEN,1),REF(CLOSE,1),REF(CLOSE,1),2,0),COLORFFFFFF;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLORRED,LINETHICK2;
支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLOR77AAFF,,LINETHICK2;
AA10:=MA(C,10);
BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;
STICKLINE(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),8,0),COLORRED;
STICKLINE(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),8,1),COLORGREEN;
AA20:=MA(C,20);
BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;
STICKLINE(BB20>1,AA20,REF(AA20,1),8,0),COLORYELLOW;
STICKLINE(BB20<1,AA20,REF(AA20,1),8,1),COLORBBCCCC;
宝华变色MA(主)
MA5:EMA(C,5),COLORWHITE;
工作线:EMA(C,14),COLORF00FF0,LINETHICK1;
二号线:EMA(C,25),COLOR00FF00,LINETHICK1;
九号线:EMA(CLOSE,99),LINETHICK1;
MA120:EMA(CLOSE,120),LINETHICK1;
生命线:EMA(CLOSE,453),LINETHICK1,COLORRED;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
STICKLINE(TJ,H,L,0.5,0),COLORYELLOW;
STICKLINE(TJ,O,C,4,0),COLORYELLOW;
STICKLINE(TJ1 AND TJ,H,L,0.5,0),COLORF00FF0;
STICKLINE(TJ1 AND TJ,O,C,4,1),COLORF00FF0;
STICKLINE(DIFF<DEA,H,L,0.5,0),COLORF0F000;
STICKLINE(DIFF<DEA,O,C,4,0),COLORF0F000;
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),COLORGREEN;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),LINETHICK3,COLORRED;
乖离参考(副)
用法说明:这是一个55日、34日和13日的乖离率的指标,黄色、粉色和红色柱分别代表这3个日期
的正乖离,白色、青色和兰色分别代表3个日期负乖离。通过成交量和换手率计算出中期
负乖离,在图上显示绿色空心柱。上下通道是20日短期乖离率正负1.618*20日长期乖离率
估算标准差的移动平均线,生命轨迹是短期13日乖离率线。通过分析,可以推断负乖离
下破下通道有绿色空心柱出现,则负的乖离率愈大,则空头回补的可能性愈高。正乖离
突破上通道,表示短期获利愈大,则获利回吐的可能性愈高。具体用法可仔细揣摩。}
长期乖离率:(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100,COLORYELLOW,STICK,LINETHICK3;
IF(长期乖离率<=0,长期乖离率,0),COLORWHITE,STICK,LINETHICK3;
中期乖离率:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100,COLORFF00FF,STICK,LINETHICK3;
IF(中期乖离率<=0,中期乖离率,0),COLORFFFF33,STICK,LINETHICK3;
短期乖离率:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100,COLORRED,STICK,LINETHICK3;
IF(短期乖离率<=0,短期乖离率,0),COLORBLUE,STICK,LINETHICK3;
VAR2:=REF(HIGH,1)*1.1;{{昨日最高价*系数}
VAR3:=HIGH*1.1;{当日最高价*系数}
VAR4:=(VAR3*VOL+VAR2*(CAPITAL-VOL))/CAPITAL;
VAR5:=REF(LOW,1)*0.9; {昨日最低价*系数}
VAR6:=LOW*0.9;{当日最低价*系数}
VAR7:=(VAR6*VOL+VAR5*(CAPITAL-VOL))/CAPITAL;
VAR8:=EMA(VAR7,30);{求30日VAR7的移动平均}
VAR9:=EMA(VAR4,30);{求30日VAR4的移动平均}
VAR10:=VAR9-2;
VAR11:=IF(CLOSE<=VAR8,VAR10,VAR9);
VAR12:=VAR11*2.5;
VAR13:=VAR10*2.5;
STICKLINE(VAR12=VAR13,中期乖离率,0,4,1),COLOR66FF99;
上通道:MA(短期乖离率,20)+1.618*STD(长期乖离率,20),COLOR0099FF,LINETHICK2;
下通道:MA(短期乖离率,20)-1.618*STD(长期乖离率,20),COLOR0099FF,LINETHICK2;
生命轨迹:短期乖离率,COLOR00FF00;
{端午祝福 } 副
喜 :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
鹊 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
登 :=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
枝:=(喜+鹊+登)/3;
祝:=ema(枝,5);
五月初五:ema(ema(喜,5),5)*3,colorstick;
端午节日:if(枝<=-20,10,0),linethick2;
愿:=hhv(端午节日,10);
快乐:if(愿 and cross(ma(close,3),ma(close,5)),20,0),linethick2, stick ,colorred;
健康:ema(祝,5)*2,colorffffff;
顺利:ema(健康,5),color00ff00;
发财:健康*3-顺利*2,colorred;
if(cross(发财,健康) and cross(发财,顺利) and cross(健康,顺利),10,0),linethick2,coloryellow,stick;
stickline(发财>顺利,发财,顺利,6,0),colorred;
stickline(发财<顺利,发财,顺利,6,0),color00ff00;
DRAWTEXT((CROSS(发财,顺利)),(发财 * 1.02),'喜鹊'),linethick2,colorwhite;
Var1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
a:=SMA(Var1,7,1);
Var2:=SMA(a,5,1);
b:=IF(CROSS(a,Var2) AND cross(ma(c,5),ma(c,13) and a>50) ,Var2*2,Var2);
LL:=REF(CLOSE,1);
MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;
出: IF(CROSS(80,MM) AND B>A,50,100),COLORYELLOW;
drawtext(CROSS(80,MM)AND B>A,70,'出'),COLOR00ff00;
波段高手(副)
V11:=MA(C,3)=LLV(MA(C,3),7);
V12:=MA(C,3)<MA(C,5);
V13:=MA(V,5)<MA(V,10)*0.99;
V14:=COUNT(MA(C,1)<REF(C,1),2)=2;
黄:IF(V11 AND V12 AND V13 AND V14,100,50),LINETHICK2;
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3)>MA(C,5);
V3:=MA(V,5)>MA(V,10)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
卖:IF(V1 AND V2 AND V3 AND V4,50,0),LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),;
D:SMA(K,3,1);
卷帘操作{主}
{指标要点:
卷帘操作,垂帘休息.
指标原理:
X5、X10、X20均线依次取前4天平均值的5、10、20天最高值,通过运算显示出不同于其它均线运行的趋势,当三条均线由下或由上发散粘合时,股价在不同周期内的最高值趋于一致,股价变动的几率比较大。
指标用法:
X5、X10、X20线在相对低位粘合成一条线时,向上变盘的可能性最大,且股价同时上穿合一线可视为买点,三线发散向上持有或加仓,此时由下向上形成浅色粉帘称为卷帘操作。在高位三线合一应该小心,既有向上变盘的可能性也有向下变盘的可能性。但向下的可能性最大,此时由高向下形成绿色帘称为垂帘休息,应该减仓或择机卖出。三线发散向下,持币观望,等待机会。};
VAR2:=EMA(SLOPE(EMA(CLOSE,20),10)*34+CLOSE,30);
VAR3:=EMA(VAR2,3);
VAR4:=EMA(VAR3,3);
VAR5:=EMA(VAR4,3);
VAR6:=EMA(VAR5,3);
VA7:=EMA(VAR6,3);
VAR7:=EMA(VA7,3);
VA8:=EMA(VAR7,3);
VAR8:=EMA(VA8,3);
VAR9:=EMA(VAR8,3);
VARA:=BARSLAST(CROSS(CLOSE,VAR9));
VARB:=BARSLAST(CROSS(VAR9,CLOSE));
卷帘操作:IF(CLOSE>VAR9 AND CLOSE>REF(CLOSE,VARA),REF(CLOSE,VARA),REF(CLOSE,VARA)),COLORFFC8FF,POINTDOT;
STICKLINE(CLOSE>VAR9 AND CLOSE>REF(CLOSE,VARA),REF(CLOSE,VARA),LOW*1,00,1),COLORFFC8FF;
强:IF(CLOSE<VAR9 AND CLOSE<REF(CLOSE,VARB),REF(CLOSE,VARB),REF(CLOSE,VARB)),COLOR0099FF,POINTDOT;
STICKLINE(CLOSE<VAR9 AND CLOSE<REF(CLOSE,VARB),REF(CLOSE,VARB),HIGH*1,0,1),COLORFFCCCC;
势:IF(CLOSE>VAR9 AND CLOSE<REF(CLOSE,VARA),REF(CLOSE,VARA),REF(CLOSE,VARA)),COLORWHITE,POINTDOT;
STICKLINE(CLOSE>VAR9 AND CLOSE<REF(CLOSE,VARA),REF(CLOSE,VARA),LOW*1.02,0,1),COLORFFCCCC;
垂帘休息:IF(CLOSE>VAR9 AND CLOSE<REF(CLOSE,VARA),REF(CLOSE,VARA),REF(CLOSE,VARA)),COLORFFCCCC,POINTDOT;
STICKLINE(CLOSE>VAR9 AND CLOSE<REF(CLOSE,VARA),REF(CLOSE,VARA),REF(CLOSE,VARA),6,1),COLORFFCCCC;
沉:IF(CLOSE<VAR9,REF(CLOSE,VARB),REF(CLOSE,VARB)),COLORB3B3B3,POINTDOT;
STICKLINE(CLOSE<VAR9,REF(CLOSE,VARB),REF(CLOSE,VARB),16,0),COLORB3B3B3,LINETHICK2;
STICKLINE(CLOSE>VAR9,REF(CLOSE,VARA),REF(CLOSE,VARA),16,0),COLORBLUE,LINETHICK2;
STICKLINE(C>=O,H,L,0,0),COLORRED;
{STICKLINE(C<O,H,L,0,0),COLORFFFF52;
{STICKLINE(C>=O,C,O,4,1),COLORRED;
STICKLINE(C<O,C,O,4,0),COLORFFFF52;}
X5:HHV((REF(CLOSE,1)+REF(CLOSE,2)+REF(CLOSE,3)+REF(CLOSE,4))/4,5),COLOR00FF00;
X10:HHV((REF(CLOSE,2)+REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5))/4,10),COLORYELLOW;
X20:HHV((REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5)+REF(CLOSE,6))/4,20),COLORFF00FF;
BY:=CROSS(C,X5) AND CROSS(C,X10) AND CROSS(C,X20) AND C/REF(C,1)>1.015;
BH:=CROSS(X5,X10) AND C>O;
STICKLINE(BY OR BH,L,L-0.03,4,0),COLORYELLOW;
{DRAWTEXT(BY OR BH,L-0.12,'操作'),COLORYELLOW;}
{DDC:=CROSS(X5,C) AND CROSS(X10,C) AND CROSS(X20,C);
DRAWTEXT(DDC,H+0.15,'●'),COLOR00FF00;}
垂帘听股(主)
MA5:=MA(C,5);
A:=(3*C+L+O+H)/6;
垂帘:(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)
+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)
+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)
+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210,COLORRED,POINTDOT;
听股:MA(垂帘,13),COLORFFCCCC,CIRCLEDOT;
ZAR1:=SLOPE(EMA(CLOSE,2),5)*15+C;
ZAR2:=EMA(ZAR1,5);
ZARA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(ZAR2,5),5),5),5),5),5),5),5);
ZARB:=BARSLAST(CROSS(CLOSE,ZARA));
ZARC:=BARSLAST(CROSS(ZARA,CLOSE));
STICKLINE(CLOSE<ZARA,REF(CLOSE,ZARC),REF(CLOSE,ZARC),12,0),LINETHICK2,COLORFFCCCC;
STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),垂帘,0.2,0),COLORFFC8FF;
STICKLINE(CLOSE>ZARA AND CLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),REF(CLOSE,ZARB),12,0),COLORFFC8FF,LINETHICK2;
{上涨:=0,COLORFFC8FF;}
STICKLINE(CLOSE<ZARA AND CLOSE<REF(CLOSE,ZARC),REF(CLOSE,ZARC),垂帘,0.2,0),COLOR00FF00;
{止盈止损:0,COLOR00FF00;}
VAR41:= EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
VAR42:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);
VAR4A:=REF(VAR41,1)>92 AND VAR41<92;
DRAWTEXT(VAR4A,H+0.12,'●短卖'),COLOR00FF00;
STICKLINE(C>=O,H,L,0,0),COLORRED;
STICKLINE(C<O,H,L,0,0),COLORFFFF52;
STICKLINE(C>=O,C,O,4,1),COLORRED;
STICKLINE(C<O,C,O,4,0),COLORFFFF52;
MA13:MA(C,13),COLORWHITE,LINETHICK2;
MA55:=MA(C,55),COLORFF00FF;
MA125:=MA(C,125),COLORFFCC66;
MA250:=MA(C,250),COLORBLUE;
{STICKLINE(CROSS(MA5,听股) AND MA5>听股 AND C>O,MA13,MA13-0.09,4,0),COLORYELLOW;}
DRAWTEXT(CROSS(MA5,听股) AND MA5>听股 AND C>O,MA13-0.12,'垂帘听股'),COLORWHITE;
T:=BARSLAST(L>REF(H,1));
E:=COUNT(L<REF(H,T+1),T)<2;
STICKLINE(L<REF(H,T+1 ) AND E,L,L-0.09,4,0),COLOR0099FF;
DRAWTEXT(L<REF(H,T+1 ) AND E,L-0.12,'缺口回补'),COLOR0099FF;
VLL:=CROSS(MA(C,13),MA(C,21));
DRAWTEXT(VLL,MA13,'●圆弧底'),COLORYELLOW;
风险系数(副)
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K1:=SMA(RSV,10,1);
D1:=SMA(K1,5,1);
KK:=INTPART(K1);
DD:=INTPART(D1);
TFXXS:=KK+DD,LINETHICK0,COLORYELLOW;{//变异KD风险系数}
TGLXS:=(TFXXS-REF(TFXXS,1))*10,LINETHICK0,COLORGREEN;{//变异KD乖离系数}
TYCFX:=TFXXS+TGLXS,LINETHICK0,COLORGREEN;{//变异KD预测风险}
{//——————【数值显示】}
风险系数:TFXXS,LINETHICK0,COLORYELLOW;
乖离系数:TGLXS,LINETHICK0,COLORGREEN;
预测风险:TYCFX,LINETHICK0,COLORCYAN;
STICKLINE(TGLXS>0,100,100+TGLXS,4,0),COLOR0000CC;
STICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR0000DD;
STICKLINE(TGLXS>0,100,100+TGLXS,2,0),COLOR0000EE;
STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR00DD00;
STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00EE00;
STICKLINE(TGLXS<0,100,100+TGLXS,1,0),COLOR00FF00;{//绿柱}
STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,100+TGLXS,8,0),COLORRED;
STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,100+TGLXS,8,0),COLORGREEN;
{风险系数}
IF(TFXXS<160 AND TFXXS>50,TFXXS,DRAWNULL),LINETHICK2,COLORFF66FF;
IF(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1),TFXXS,DRAWNULL),LINETHICK2,COLORWHITE;
IF(TFXXS<=50,TFXXS,DRAWNULL),LINETHICK2,COLORYELLOW;
IF(TFXXS>=160,TFXXS,DRAWNULL),LINETHICK2,COLORBLUE;
{预测风险}
IF(C>0,TYCFX,DRAWNULL),COLORCYAN;
压力支撑(主)
上市日期:FINANCE(42)/100, NODRAW ;
VAR1:=MA(CLOSE,5),COLOR00FFFF;
VAR2:MA(CLOSE,13),COLOR00FF33;
VAR5:MA(CLOSE,34),COLORFF9900;
VAR6:=MA(CLOSE,54),COLORFF9900;
VAR7:((EMA(CLOSE,5)*7+EMA(CLOSE,5)*3)/10),COLORBBBBBB;
VAR8:= DMA(EMA(CLOSE,12),SUM(VOL/CAPITAL,5)/3),LINETHICK2;
VARA:=REF(CLOSE,1);
VARE:=SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100;
DRAWTEXT(DATE>700101 AND CROSS(84,VARE),HIGH,'☆机构减仓'),COLORGREEN;
VARF:=(2*CLOSE+HIGH+LOW)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VARF-VAR10)/(VAR11-VAR10)*100,6);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,4);
VAR14:=LLV(LOW,120);
VAR15:=HHV(HIGH,120);
VAR16:=VAR15-VAR14;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VAR12>VAR13,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),LOW,'★机构进场'),COLORYELLOW;
STICKLINE(VAR7>VAR2,VAR2,VAR7,0.01,1),COLORFF00FF;
STICKLINE(VAR7<VAR2,VAR2,VAR7,0.01,1),COLOR33FF33;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR00FF33,LINETHICK1;
支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORCC33CC,LINETHICK1;
支撑价:LLV(LOW,19) , COLOR009900,LINETHICK2;
阻力价:HHV(HIGH,19),COLORFF9900, LINETHICK2;
VAR4:EMA(C,21),COLOR0000FF, LINETHICK2;
{龙行天下} 副
VAR1:=RANGE(CLOSE,999999,1000000000);
VAR2:=FILTER(CLOSE>OPEN,5);
VAR3:=COUNT(CLOSE>OPEN,20);
VAR4:=COUNT(CLOSE<OPEN,20);
VAR5:=IF(VAR3>VAR4,CLOSE,HIGH);
VAR6:=EMA(VAR5,13);
VAR7:=EMA(VAR5,60);
VAR8:=(VAR6-VAR7)*10;
飞龙:MA(VAR8,5);
火龙:MA(VAR8,13),LINETHICK2;
龙行天下:MA(VAR8,34);
神龙:IF( CROSS( 飞龙,火龙) AND 龙行天下<0,飞龙,0);
STICKLINE(VAR8>=0,VAR8,VAR8+1,3,0),COLORRED;
STICKLINE(VAR8>=0 AND VAR8<REF(VAR8,1),VAR8,VAR8+1,3,0),COLORYELLOW;
STICKLINE(VAR8<=0 AND VAR8>REF(VAR8,1),VAR8,VAR8-1,3,0),COLORGREEN;
IF(飞龙>REF(飞龙,1),飞龙,REF(飞龙,1)),COLORRED,LINETHICK2;
IF(飞龙<REF(飞龙,1),飞龙,REF(飞龙,1)),COLORFFFF00,LINETHICK2;
IF(火龙<REF(火龙,1),火龙,REF(火龙,1));
IF(龙行天下>REF(龙行天下,1),龙行天下,REF(龙行天下,1)),COLORFFAAFF;
VARF1:=COUNT(CROSS(飞龙,神龙),2)=1;
VARF2:=COUNT(CROSS(火龙,神龙),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(神龙,ZAI,'→¤启动'),COLORWHITE;
均衡:EMA(火龙,2),COLORYELLOW;
{DRAWTEXT(ZAI,均衡,'→¤启动');}
加仓:DRAWICON(CROSS(飞龙,均衡),飞龙-0.1,9);
DRAWICON(CROSS(均衡,飞龙),均衡-0.003,3);
{IF(均衡>REF(均衡,1),均衡,REF(均衡,1));}
IF(均衡<REF(均衡,1),均衡,REF(均衡,1));
VAR9:=LONGCROSS(VAR1,VAR4,10);
{海面:0, POINTDOT;
天空:5, POINTDOT;
海底:-5, POINTDOT;
VARA:COUNT(VAR9,10)=1; };
副图(名字不知道)
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
波: VAR3;
段: VAR4;
VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;
DRAWTEXT(FILTER(VAR5,10)=1,40,'底'),COLORRED;
STICKLINE(FILTER(VAR5,10)=1,0,30,10,0),COLORRED;
VAR9:=CROSS(VAR4,VAR3) AND VAR3>80;
STICKLINE(FILTER(VAR9,5)=1,80,100,10,0),COLORGREEN;
DRAWTEXT(FILTER(VAR9,5)=1,70,'顶'),COLORGREEN;
VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;
STICKLINE(VAR8,85,100,10,0),COLOR0099FF;
100,COLORBBBBBB,LINETHICK3;
0,LINETHICK3;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
云:80,COLORFF00FF;
天:87.5,COLOR00FF00;
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
飞:DD,COLOR0000FF,LINETHICK2;
海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
买B:IF(CROSS(海,90) AND (飞<40),70,0),COLORFFFF00;
累:10,COLOR0000FF;
买A:IF((COUNT((飞>REF(飞,1)),1)=1) AND (REF(飞,1)<REF(REF(飞,1),1)) AND (飞<累),50,0),COLORF00FF0;
{量能红孩儿} 副
n:1 100 23
VAR1:=(100-100/(1+SUM(VOL,N)/CAPITAL))*CAPITAL*96/10000;
LNC:=VAR1*CLOSE;
B1:=REF(LNC,1);B2:=REF(LNC,2);
SS:=IF(LNC>REF(LNC,1) AND REF(LNC,1)>=REF(LNC,2),1,IF(LNC<REF(LNC,1) AND REF(LNC,1)<=REF(LNC,2),-1,IF(LNC>REF(LNC,2) AND REF(LNC,2)>REF(LNC,1),2,IF(LNC<REF(LNC,2) AND REF(LNC,2)<REF(LNC,1),-2,0))));
SM:=IF(REF(SS,1)>0,REF(SS,1),IF(REF(SS,2)>0,REF(SS,2),IF(REF(SS,3)>0,REF(SS,3),IF(REF(SS,4)>0,REF(SS,4),IF(REF(SS,5)>0,REF(SS,5),IF(REF(SS,6)>0,REF(SS,6),IF(REF(SS,7)>0,REF(SS,7),0)))))));
MC:=IF(REF(SS,1)>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
SS1:=IF(LNC>REF(LNC,1) AND REF(LNC,1)>=REF(LNC,2),1,IF(LNC<REF(LNC,1) AND REF(LNC,1)<=REF(LNC,2),-1,IF(LNC>REF(LNC,2) AND REF(LNC,2)>REF(LNC,1),2,IF(LNC<REF(LNC,2) AND REF(LNC,2)<REF(LNC,1),-2,0))));
SM1:=IF(REF(SS,1)<0,REF(SS,1),IF(REF(SS,2)<0,REF(SS,2),IF(REF(SS,3)<0,REF(SS,3),IF(REF(SS,4)<0,REF(SS,4),IF(REF(SS,5)<0,REF(SS,5),IF(REF(SS,6)<0,REF(SS,6),IF(REF(SS,7)<0,REF(SS,7),0)))))));
MC1:=IF(REF(SS,1)<0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;
A:MA(SQRT(MC),1),COLORFF9933,LINETHICK2;
IF(A>=REF(A,1),A,DRAWNULL),COLORRED,LINETHICK4;
IF(A<REF(A,1),A,DRAWNULL),COLORFF9933,LINETHICK2;
A1:MA(SQRT(MC1),5),COLOR33FF33,LINETHICK2;
IF(A1>=REF(A1,1),A1,DRAWNULL),COLORFF00FF,LINETHICK3;
IF(A1<REF(A1,1),A1,DRAWNULL),COLOR33FF33,LINETHICK2;
IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00FFFF,POINTDOT,LINETHICK5;
冰火两重天(副)
P1(1,100,16)
能量:=SQRT(VOL)*(((C-(H+L)/2))/((H+L)/2));
平滑能量:=EMA(能量,P1);
能量惯性:EMA(平滑能量,P1) ;
STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.05),(能量惯性-能量惯性*0.15),3,0), COLOR0000CC;
STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.2),(能量惯性-能量惯性*0.35),3,0), COLOR0066FF;
STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.4),(能量惯性-能量惯性*0.55),3,0),COLOR0099FF;
STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.6),(能量惯性-能量惯性*0.75),3,0), COLOR00CCFF;
STICKLINE(能量惯性>=0,(能量惯性-能量惯性*0.8),(能量惯性-能量惯性*0.95),3,0), COLOR00FFFF;
STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.05),(能量惯性-能量惯性*0.15),3,0), COLORFF3300;
STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.2),(能量惯性-能量惯性*0.35),3,0), COLORFF6600;
STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.4),(能量惯性-能量惯性*0.55),3,0), COLORFF9900;
STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.6),(能量惯性-能量惯性*0.75),3,0), COLORFFCC00;
STICKLINE(能量惯性<0,(能量惯性-能量惯性*0.8),(能量惯性-能量惯性*0.95),3,0), COLORFFFF00;
买卖频谱(副)
买线:EMA(C,3);
卖线:EMA(SLOPE(C,21)*20+C,55);
买卖差:=买线-卖线;
STICKLINE(买卖差>=0,(买线-买卖差*0.05),(买线-买卖差*0.15),5,0) ,COLOR00FFFF;
STICKLINE(买卖差>=0,(买线-买卖差*0.2),(买线-买卖差*0.35),5,0) ,COLOR00CCFF;
STICKLINE(买卖差>=0,(买线-买卖差*0.4),(买线-买卖差*0.55),5,0) ,COLOR0099FF;
STICKLINE(买卖差>=0,(买线-买卖差*0.6),(买线-买卖差*0.75),5,0) ,COLOR0066FF;
STICKLINE(买卖差>=0,(买线-买卖差*0.8),(买线-买卖差*0.95),5,0) ,COLOR0000CC;
STICKLINE(买卖差<0,(卖线+买卖差*0.05),(卖线+买卖差*0.15),5,0) ,COLOR006600;
STICKLINE(买卖差<0,(卖线+买卖差*0.2),(卖线+买卖差*0.35),5,0) ,COLOR009900;
STICKLINE(买卖差<0,(卖线+买卖差*0.4),(卖线+买卖差*0.55),5,0) ,COLOR00CC00;
STICKLINE(买卖差<0,(卖线+买卖差*0.6),(卖线+买卖差*0.75),5,0) ,COLOR00FF00;
STICKLINE(买卖差<0,(卖线+买卖差*0.8),(卖线+买卖差*0.95),5,0) ,COLOR66FF00;
波段无敌(副)
P1:=0;
P2:= IF (CLOSE>MA(CLOSE,5),P1+10,P1-10);
P3:= IF (CLOSE>MA(CLOSE,10),P2+10,P2-10);
P4:= IF (CLOSE>MA(CLOSE,10),P3+10,P3-10);
P5:= IF (MA(CLOSE,5)>MA(CLOSE,10),P4+10,P4-10);
P6:= IF (MA(CLOSE,10)>MA(CLOSE,20),P5+10,P5-10);
BD:P6;
STICKLINE(BD>=-50,-50,BD,3,0),COLORGREEN;
STICKLINE(BD>=-30,-30,BD,3,0),COLORFFFF00;
STICKLINE(BD>=0,0,BD,3,0),COLORYELLOW;
STICKLINE(BD<=50 AND BD>=30,30,BD,3,0),COLORRED;
{STICKLINE(BD<=50 OR BD>=30,30,BD,3,0),COLORRED;};
底部出击(副)
注:信号较少
Var1:=INDEXC;
Var2:=MA(Var1,6);
Var3:=MA(Var1,24);
Var4:=MA(Var1,32);
Var5:=MA(Var1,62);
Var6:=MA(Var1,105);
Var7:=Var5<REF(Var5,1) AND Var6<REF(Var6,1) AND Var5<Var6*0.98;
Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095;
Var9:=Var2>Var1*0.95;
飞狐***专用:0;
百发百中:Var7 AND Var8 AND Var9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)),coloryellow;
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,colorgreen;
绝对底部二:COUNT(百发百中=1,5)=1 and 底部,linethick2,colorred;
绝对底部:STICKLINE( FILTER(绝对底部二=1,5),0 ,1.5,5 , 0.8),colorred;
绝对底部出击:百发百中=1 and 底部=1 ,colorred;
{真实量比}副
V1:=AMOUNT/10000;
业绩: FINANCE(33), POINTDOT,COLORFFCC66;
MA1:MA(AMOUNT/10000,5);
MA2:MA(AMOUNT/10000,24);
MA3:MA(AMOUNT/10000,60);
VAR1:=REF(C,1);
VAR2:=(VAR1-L)/(H-L);
VAR3:=V1*VAR2;
VAR4:=V*VAR2;
VAR5:=ABS(VAR4);
VAR6:=ABS(VAR3);
VAR7:=ABS(V1-VAR6);
大单卖盘:ABS(V-VAR5)/100,COLOR00FFFF;
买盘:VAR3/100,COLORFF00FF;
成交金额:V1/1000,COLOR00FF00;
买卖盘比%:ABS(V-VAR3)/V*100,COLORC0C0C0;
STICKLINE(C>0,0,VAR6,1,0),COLORFFFF00;
换手:100*V/CAPITAL,COLORRED;
STICKLINE(换手<3,VAR6,V1 ,1 ,0),COLORRED;
STICKLINE(换手>=3 AND 换手<7,VAR6, V1,1.5,0),COLORYELLOW;
STICKLINE(换手>=7,VAR6, V1, 1,0) ,COLOR00FF00;
{黑马跟踪} 副
n10:= BARSLAST(CROSS(C,eMA(C,14)));
n20:= BARSLAST(CROSS(eMA(C,14),c));
a:=if(n10<n20,n10+1,0);
智慧黑马:IF(C>eMA(C,250),a,0);{在年线上跟踪}
乖离率:=(c-ema(c,250))/ema(c,250)*100;
n1:=barslast(cross(c,eMA(c,250)));
n2:=barslast(cross(eMA(c,250),c));
长期趋势:if(n1<n2,n1+1,0);
峰值:hhv(乖离率,长期趋势);
谷值:llv(乖离率,长期趋势);
换手:=VOL/CAPITAL*100 ;
百日换手:=sum(换手,100),linethick0;{分析,飞狐可启用}
换手跟踪:=sum(换手,0)-ref(sum(换手,0),长期趋势);
日均换手:换手跟踪/长期趋势;
涨幅跟踪:(c-ref(c,长期趋势))/ref(c,长期趋势);
跟踪系数:涨幅跟踪/换手跟踪*100;
选股:智慧黑马>0 AND 智慧黑马<4 AND 谷值>0 AND 峰值<45 and 长期趋势>100;
金牌逃顶优化指标(副)
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势: IF(VAR6>45,VAR6-45,0);
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),5,0),colorff00ff;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),5,0),color00ff00;
强弱分界:50,POINTDOT,Colorffffcc;
0,Color00Ffff;
20,POINTDOT,COlORFFAA66,linethick1;
80,POINTDOT,COlORFFAA66,linethick1;
100,Colorffff33;
v1:=llv(low,10);
v2:=hhv(h,25);
价位线:=ema((c-v1)/(v2-v1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),7,'●'),ColorFFFfff;
DRAWTEXT(CROSS(3.5,价位线),102,'●'),ColorFFFfff;
Var2q:=REF(LOW,1);
Var3q:=SMA(ABS(LOW-Var2q),3,1)/SMA(MAX(LOW-Var2q,0),3,1)*100;
Var4q:=EMA(IF(CLOSE*1.3,Var3q*10,Var3q/10),3);
Var5q:=LLV(LOW,30);
Var6q:=HHV(Var4q,30);
Var7q:=IF(MA(CLOSE,58),1,0);
Var8q:=EMA(IF(LOW<=Var5q,(Var4q+Var6q*2)/2,0),3)/618*Var7q;
Var9q:=IF(Var8q>100,100,Var8q);
吸筹:STICKLINE(Var9q>-120,0,Var9q,6,1),coloryellow;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
AA6:=SMA(AA3,21,8);
卖临界:STICKLINE(走势-AA6>85,103,100,15,1),Color0000ff,linethick2;
主图(优化)未来
顶压:HHv(ma(h,11),50),Color00FFFF;
短压:HHv(ma(h,11),15),Color0090E0;
XL1:=llv(ma(h,11),1);
趋势:IF(XL1>=短压,短压,XL1),ColorFFFFFF;
x1:=(3*C+H+L+O)/6;
x2:=EMA(x1,10);
x3:=REF(x2,1);
x4:=(REF(HIGH,1)+REF(LOW,1))/2;
x5:=MA(CLOSE,21)+2*STD(CLOSE,21);
x6:=REF(CLOSE,1);{出货}
x7:=SMA(MAX(CLOSE-x6,0),7,1)/SMA(ABS(CLOSE-x6),7,1)*100;
x8:=CROSS(79,x7);
x9:=FILTER(x8,4);{40}
WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{减}
WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);
WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);
WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;
Dk:=SMA(WZ4,3,1)*1.5;
DD:=SMA(Dk,3,1);
DJ:=3*Dk-2*DD;
WZ5:= EMA(CLOSE,12) - EMA(CLOSE,26);
WZ6:= EMA(WZ5,9);
WZ7:= 2*(WZ5-WZ6);{50}
WZ8:= ref(WZ7,1);
WZ9:= CROSS(WZ8,WZ7) and WZ8>0;
DRAWTEXT(WZ9 and dj>250,H,'←减'),ColorBCFF8B;
var11:=EMA(CLOSE,8);{起步}
var2:=EMA(var11,20);
var3:=CROSS(var11,var2);
var4:=var11<MA(CLOSE,120);
var5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;{逃命}
var6:=SMA(var5,5,1);
var7:=SMA(var6,8,1);{60}
var8:=CROSS(var6,var7) AND var7<20;
var9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND var8;
varA:=IF(CLOSE>1000,var8,var9);
起步:= var3 AND var4;
逃遁:= varA;
stickLINE(x2>x3,x2*0.98,x2,6,1),Color0000FF,LINETHICK2;
stickLINE(x2<x3,x2*0.98,x2,6,1),ColorF10011,LINETHICK2;
Ww1:= sum( ma(c,10),9)/10.110,coloryellow;
Xx1:=MA(LOW,2)*0.96;
Xx2:=MA(LOW,26)*0.85;
Xx3:= REF(Xx1,1)<Xx2 AND REF(Xx1,1)<Xx1 AND REF(Xx1,1)<REF(Xx1,2);
var1:=INDEXC;
var12:=MA(var1,6);
var13:=MA(var1,24);
var14:=MA(var1,32);
var15:=MA(var1,62);
var16:=MA(var1,105);
var17:=var15<REF(var15,1) AND var6<REF(var16,1) AND var15<var6*0.98;
var18:=var14>var12*1.11 AND var13>var12*1.095;
var19:=var12>var1*0.95;
var111:=EMA(WINNER(CLOSE)*70,3);
var112:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
var113:=CLOSE/MA(CLOSE,40)*100<76;
var114:=CLOSE/MA(CLOSE,60)*100<74;
var115:=HIGH>LOW*1.051;
var116:=var115 AND COUNT(var15,5)>1;
var117:=var17 AND var8 AND var19 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN)
AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND CLOSE>0.1 OR var16
AND (var113 OR var114) AND var112<20 AND var111<20
AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5 or TROUGHBARS(3,15,1)<4
AND CROSS(EMA(CLOSE,21)-EMA(CLOSE,8),EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));
XL11:=EMA(CLOSE,10)/100;{70}
XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;
XL3:= MA(XL2,3);
XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) and x2>x3,l-0.1,'←●反弹'),COLORGREEN;
DRAWTEXT(IF(CROSS((var11-LLV(var1,4))/(HHV(var11,4)-LLV(var11,4))*4*25,87.5) AND
var1<40,87,0) and x2>x3,l-0.2,'←●短买'),ColorFFBBD8;
DRAWTEXT(CROSS(var1,10) and x2>x3,l-0.3,'←●买'),Color89B2FF;
DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/
4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) and x2>x3,l-0.4,'←●加仓'),ColorFF5ED8;{80}
Ll1:=(EMA(CLOSE,3) - EMA(CLOSE,13));
Ll2:=EMA(Ll1,9);
Ll3:=BARSLAST(cross(Ll1,Ll2));
Ll4:=ref(Ll3,Ll3+1);
Ll5:=Ll2<ref(Ll2,Ll4);
变盘:=cross(Ll1,Ll2) and Ll5;
DRAWTEXT(起步>0,L,'★起步?'),Color00FF00;
STICKLINE(起步>0,C*1.05,C,7,0),COLORred;
DRAWTEXT(逃遁>0,H*1.04,'●←逃'),Color7FFFD6;
股市搏击(主)
上线:=sma(c,6.5,1);
下线:=sma(c,13.5,1);
上线1:=sma(c,3,1);
下线1:=sma(c,8,1);
STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),colorred,linethick2;
stickline(下线>上线,上线,下线,2.5,0),coloryellow,linethick2;
DRAWTEXT( cross(上线,下线),low *0.98,'全仓买' ),color00ff00;
drawtext(cross(下线1,上线1),h*1.02,'清仓'),coloryellow;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+3*STD(BBI,13),linethick2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,60),linethick2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'减仓') ,COLORff9966,linethick2;
A7:=(2*C+H+L)/4;
操作:MA(a7,5),linethick2;
操作1:=MA(a7,5)*1.03,linethick2;
操作2:=MA(a7,5)*0.97,linethick2;
var1:LLV(a7,21);
var2:HHV(a7,21);
SK:=EMA((A7-var1)/(var2-var1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(count(close<ref(close,1),8)/8>6/10 and vol>=1.5*ma(vol,5) and
count(sk>=sd,3) and ref(low,1)=LLV(Low,120),1,0),LOW*0.98,'买进') ,COLOR0099ff;
DRAWTEXT(IF(count(close<ref(close,1),13)/13>6/10 and
count(sk>sd,6) and ref(low,5)=LLV(Low,120) and ref(close>=open,4) and
ref(close>open,3) and REF(CLOSE>OPEN,2) AND ref(open>close,1) and
open>ref(close,1),1,0),LOW*0.98,'买进') ,COLOryellow;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(if(CLOSE<D and VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'抄底'),coloryellow;
{蛮准} 副
Var2:=REF(LOW,1);
Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100;
Var4:=EMA(IF(CLOSE*1.3,Var3*10,Var3/10),3);
Var5:=LLV(LOW,30);
Var6:=HHV(Var4,30);
Var7:=IF(MA(CLOSE,58),1,0);
Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7;
Var9:=IF(Var8>100,100,Var8);
吸筹:STICKLINE(Var9>-120,0,Var9,6,1),colorf00ff0;
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,COLORFF937F;
黄买:filter((ref(close,2)<close and rsi<25),7),colorYELLOW;
stickline(黄买,0,18,10,1),colorYELLOW;
黄卖:=filter((ref(close,2)>close and rsi>80),7);
stickline(黄卖,100,82,10,1),colorYELLOW;
红买:filter(CROSS(RSI,11),7),colorred;
stickline(红买,0,12,6,1),colorred;
红卖:=filter(CROSS(89,RSI),7);
stickline(红卖,100,88,6,1),colorred;
绿买:filter(CROSS(rsi,20),7),color00ff00;
stickline(绿买,0,6,6,1),color00ff00;
绿卖:=filter(CROSS(80,rsi),7);
stickline(绿卖,100,94,6,1),color00ff00;
浮筹 (副)
注:很多关于筹码的公式都有未来的,这个我没找到.
VAR0:=(2*CLOSE+HIGH+LOW)/4;
VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
B:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);
短线:SMA(SMA(VAR2,2,1)+3,2,1),COLORRED;
浮筹:EMA(B,4),LINETHICK2,COLORGREEN;
空方:SMA(VAR1,3,1);
DRAWICON(短线>浮筹,0,10);
DRAWICON(短线<浮筹,0,11);
浮筹1:浮筹+0.5,LINETHICK0;
浮筹2:浮筹+1,LINETHICK0;
浮筹3:浮筹+1.5,LINETHICK0;
浮筹4:浮筹+2,LINETHICK0;
云之魂实战KDJ (副)
RSV:=(c-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K:SMA(RSV,3,1),colorwhite;
D:SMA(K,3,1),coloryellow;
J:3*K-2*D,colorff00ff;
if(cross(d,k) and k>80,30,100),coloryellow;
抄底:if(cross(k,d) and d<17,70,0),colorred;
Var1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=SMA(Var3,3,1);
波:= Var3;
段:= Var4;
Var6:=CROSS(Var3,Var4) AND Var3<20;
DRAWTEXT(FILTER(Var6,10)=1,40,'抄底'),color00ff00;
STICKLINE(FILTER(Var6,10)=1,0,30,10,0),colorwhite;
Var7:=CROSS(Var4,Var3) AND Var3>80;
STICKLINE(FILTER(Var7,5)=1,80,100,10,0),colorffff00;
DRAWTEXT(FILTER(Var7,5)=1,70,'逃顶'),colorred;
Var8:=CROSS(Var2,Var3) AND Var3>80 AND Var3>Var4;
STICKLINE(Var8,85,100,10,0),colorgreen;
选股:if(var6>0,1,0),LINETHICK0;
90,colorblue;
耶稣短线(副)
RSV:=(c-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),colorwhite;
D:=SMA(K,3,1),coloryellow;
J:3*K-2*D;
J1:ref(j,1);
主图
MA6:MA(C,6),COLOR0000FF;
MA18:MA(C,18),COLOR0096FF;
MA30:MA(C,30),COLOR00FF99;
MA60:MA(C,60),COLORFF00FF;
AAF:LLV(LOW,34),LINETHICK1,COLORFFFFCC;
BBF:MA(AAF,4),LINETHICK1,COLORYELLOW;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
DRAWICON(CROSS(RSI,11) ,L*0.99,4);
VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND EMA(CLOSE,12)/LOW>1.15,5),LOW,'☆'),COLORFF00FF;
VARA:=((AMOUNT)/(VOL))/(100);
VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
VARD:=DMA(VARB,(VOL)/(VARC));
VARE:=((CLOSE-VARD)/(VARD))*(100);
VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
VARJ:=MA(VARE,20)+STD(VARE,20);
BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
AA:=SMA(VARF,3,1);
SS:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>79);
DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>SS) AND CROSS(84,RSI),H*1.01,'☆'),LINETHICK7,COLORYELLOW;
DRAWTEXT(CROSS(84,RSI) AND CROSS(76,VAR28),H*1.01,'☆'),LINETHICK7,COLORYELLOW;
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1),LINETHICK3;
V5:=SMA(操盘线,2,1);
DRAWICON(CROSS(操盘线,V5) AND MA6>REF(MA6,1),L,4);
DRAWICON(操盘线<REF(操盘线,1) AND REF(操盘线,1)>REF(操盘线,2) AND MA30<REF(MA30,1) AND REF(操盘线,1)>40 AND CROSS(V5,操盘线),H*1.01,5);
STICKLINE((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>SS) AND CROSS(84,RSI) AND CROSS(76,VAR28),C,O,8,0),COLORYELLOW,LINETHICK2;{底位红色}
STICKLINE(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 AND V5>REF(V5,1) AND AAF=BBF AND MA18<REF(MA18,1),C,O,8,0),COLORMAGENTA,LINETHICK2;{底位红色}
STICKLINE(操盘线>REF(操盘线,1) AND CROSS(操盘线,V5) AND V5<50 AND (AAF=BBF OR AAF>BBF) AND MA18<REF(MA18,1),C,O,8,0),COLORMAGENTA,LINETHICK2;{底位红色}
STICKLINE(操盘线>REF(操盘线,1) AND CROSS(操盘线,V5) AND V5<50 AND MA18>REF(MA18,1),C,O,8,0),COLORMAGENTA,LINETHICK2;{底位红色};
一出手就赢(副)
N 1 100 2 M 1 100 3
Var2:=1;
Var3:=REF(HIGH,1)*1.1;
Var4:=HIGH*1.1;
Var5:=(Var4*VOL+Var3*(CAPITAL-VOL))/CAPITAL;
Var6:=REF(LOW,1)*0.9;
Var7:=LOW*0.9;
Var8:=(Var7*VOL+Var6*(CAPITAL-VOL))/CAPITAL;
Var9:=EMA(Var8,30);
VarA:=EMA(Var5,30);
VarB:=VarA-2;
VarC:=IF(CLOSE<=Var9,VarB,VarA);
VarD:=MA(CLOSE,80)-MA(CLOSE,10)/17;
出手: STICKLINE(VarC-VarB=0 AND Var2 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),50,0,5,0),colorcc9966;
赢: DRAWTEXT(FILTER(VarC-VarB=0 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),4),55,'买入'),COLORRED;
VarE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
卖出线: SMA(SMA(VarE,3,1),3,1),colorff6633;
买入线: 3*SMA(VarE,3,1)-2*卖出线,colorred;
DRAWICON(CROSS(90,买入线),90,2);
黄金点: STICKLINE(SMA(VarE,3,1)>卖出线,SMA(VarE,3,1),卖出线,4,0),COLOR1133ff ;
{超强趋势}主图
少爷精品:=EMA(EMA(EMA(CLOSE,2),2),2);
少:(MA(少爷精品,13) * 0.99),linethick2;
爷:(MA(少爷精品,13) * 0.999),linethick2;
线:=MA(少爷精品,120);
一道分离:6*HHV(少爷精品,2)-5*少爷精品;
二道分离:2*少爷精品-一道分离;
三道分离:6*HHV(少,3)-5*少,colorred,linethick2;
四道分离:6*HHV(爷,4)-5*爷,linethick2;
容维中华方圆终极版[主图]
说明:容维中华方圆图信号为“▲,◆,□,●”等,图中的均线趋势线也是容维原码的;多空转向的的信号设置为“蓝★卖 红★买”。当出现了 方图底方提示后,又接着出现▲图或者★图甚至一起出现时,就应该特别研究下是否该进场了;当出现了 圆顶图提示后,应该开始减仓了,如果有接着出现了蓝★卖出信号,则不用犹豫了,清仓吧。
补充一下以免误人,横盘时信号弱,在横盘时候是尽量不操作。
不是看底也不是看顶的信号,也不是买卖信号,用只吃鱼身的原理去看待它,是你是否继续待股或止损又或止赢的辅助信号。多空趋势的一种介于中线与短线之间的计算,用来组合看盘吧.没有任何一个信号可以应付复杂的市场变化!
MA1:MA(CLOSE,6);
MA2:MA(CLOSE,13);
MA3:MA(CLOSE,62);
MA4:MA(CLOSE,120);
MA5:MA(CLOSE,250);
X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);
Y:=EMA(CLOSE,10);
LL:=REF(CLOSE,2);
MM:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100);
DB:=IF(((MM < REF(MM,1)) AND (MM > 79)),MM,0);
DRAWTEXT(CROSS(Y,X),(LOW * 0.985),'▲'),LINETHICK2,colorred;
DRAWTEXT(CROSS(X,Y),(HIGH * 1.02),'◆'),LINETHICK2,color00ff00;
DRAWTEXT(DB,(HIGH * 1.02),'●'),LINETHICK2,color00ff00;
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.99),'□'),LINETHICK2,color33CC99;
DRAWTEXT((AB = 1),(LOW * 0.99),'□'),LINETHICK2,colorwhite;
c1:=(CLOSE+LOW+HIGH)/3;
c2:=EMA(c1,6);
c3:=EMA(c2,5);
c4:=CROSS(c2,c3);
DRAWTEXT(c4,LOW/1.01,'★'),,COLORRED;
c5:=CROSS(c3,c2);
DRAWTEXT(c5,HIGH*1.03,'★'),,COLORBLUE;
老杨格格(主图)
{简要说明:
1、是在原来优化的飞天格格基础上进一步优化而来的,信号较以前有较大改进。
2、必须研究快线和慢线的运行趋势和交叉关系,股价经常在高于或低于快线的轨道两侧运行,大家不难找到规律。
3、增加一条天空线。股价突破或击穿任意一条线时,都应密切注意其可能变盘的动态。}
A1:=(3*c+l+o+h)/6;
快线:(20*A1+19*REF(A1,1)+18*REF(A1,2)+17*REF(A1,3)+16*REF(A1,4)+15*REF(A1,5)+14*REF(A1,6)
+13*REF(A1,7)+12*REF(A1,8)+11*REF(A1,9)+10*REF(A1,10)+9*REF(A1,11)+8*REF(A1,12)
+7*REF(A1,13)+6*REF(A1,14)+5*REF(A1,15)+4*REF(A1,16)+3*REF(A1,17)+2*REF(A1,18)+REF(A1,20))/210;
慢线:ma(快线,10),Color00ff00;
A2:=(2*C+H+L)/4;
A3:=LLV(LOW,34);
A4:=HHV(HIGH,34);
A5:=EMA((A2-A3)/(A4-A3)*A4,7);
A6:=CROSS(A5,MA(A5,10));
A7:=(INDEXC-HHV(INDEXC,8))/HHV(INDEXC,8)<-0.05 and MA(INDEXA,125)/MA(INDEXV,125)/(MA(INDEXA,5)/MA(INDEXV,5))>1.12;
A8:=BARSLAST(A7)<13;
A9:=(2*CLOSE+LOW+HIGH)/4;
海底:EMA(A9,89)*0.74,LINETHICK1,Color4DA1FF;
海平面: EMA(A9,89)*0.84,CROSSDOT,ColorEE8400;
天际: EMA(A9,134)*0.98,Color0000FF;
天空: EMA(A9,134)*1.08;
半:=A6 AND 快线<=海平面 AND c>=海底;
全:=A6 AND C<=海底 AND A8;
全仓:=REF(C,1)<海底 AND C>O AND C>海底;
DRAWTEXT(FILTER(A6 AND C>海平面 AND A8 AND(C<REF(C,5)*1.05)AND L<天际,5),L*0.97,'⊙←买 '),coloryellow;
DRAWICON(FILTER(REF(C,1)<海平面 AND C>O AND C>海平面,10),海平面,1);
DRAWTEXT(FILTER(全 OR 全仓,5),L*0.97,'全仓买'),Color0000FF;
DRAWICON(FILTER(REF(L,1)>天空 AND C<天空,10),天空*1.02,2);
A10:=FILTER(快线>ref(快线,2)AND((C/REF(C,3)>1.1)AND(V/REF(V,1)>1.7)),5);
A11:=CROSS(MA(C,30),MA(C,36))AND(C>REF(C,5)*1.05);
DRAWTEXT(FILTER((A10 OR A11)AND C>天际,5),H*1.03,'⊙←卖 '),COLOR00FF00;
DRAWTEXT(FILTER((快线>REF(快线,3) OR 快线>REF(快线,4))AND 快线<REF(快线,1) AND 快线>天空,8),H*1.05,'全仓卖'),COLOR00FF00;
莉莉(主图)
短线BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORGREEN,LINETHICK2;
长线EBBI:(EMA(C,6)+EMA(C,18)+EMA(C,54)+EMA(C,162))/4,COLOR0000FF,LINETHICK2;
STICKLINE(CROSS(短线BBI,长线EBBI),L,L-0.09,4,0),COLORYELLOW;
DRAWTEXT(CROSS(短线BBI,长线EBBI),L-0.13,'走牛') ,COLORYELLOW;
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,O,3,1),COLORRED;{红1}
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,H,H,0,0),COLORRED;{红1};
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,O,3,0),COLORFFCC66;
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,H,L,0,0),COLORFFCC66;
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,1),COLORYELLOW;
{VAR19;}
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,H,O,4,2),COLORWHITE{98FD};
AAF:LLV(LOW,34),LINETHICK1,COLORWHITE;
BBF:IF(VAR19>0,MA(AAF,4)*1.06,MA(AAF,4)),LINETHICK1,COLORFFAAFF;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
DRAWICON(CROSS(RSI,11) ,L*0.99,1);
VAR27:=REF(CLOSE,1);
VAR28:=SMA(MAX(CLOSE-VAR27,0),5.5,1)/SMA(ABS(CLOSE-VAR27),6,1)*100;
DRAWICON((IF(CROSS(76,VAR28),1,0)) OR CROSS(84,RSI),H*1.03,2);
DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND EMA(CLOSE,12)/LOW>1.15,5),LOW,'☆'),LINETHICK3 ;
VARA1:=((AMOUNT)/(VOL))/(100);
VARB1:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VARC1:=((SUM(AMOUNT,7))/(VARA1))/(100);
VARD1:=DMA(VARB1,(VOL)/(VARC1));
VARE1:=((CLOSE-VARD1)/(VARD1))*(100);
VARF1:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
VARJ1:=MA(VARE1,20)+STD(VARE,20);
BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
AA:=SMA(VARF1,3,1);
SS:=(REF(BIAS18,1)>=5) AND CROSS(VARJ1,VARE1) AND (AA>79);
DRAWTEXT(REF(BIAS18,1)>=5 AND CROSS(VARJ1,VARE1) AND AA>SS,H*1.02,'☆'),LINETHICK3,COLORGREEN;
大盘神针(副)
VAR1:=INDEXA/100000000;
VAR2:=INDEXADV;
VAR3:=INDEXDEC;
VAR4:=VAR2/(VAR2+VAR3);
VAR5:=VAR3/(VAR2+VAR3);
VAR6:=EMA(VAR4,3);
VAR7:=EMA(VAR5,3);
VAR8:=EMA(VAR6,5);
VAR9:=EMA(VAR7,5);
进场资金: EMA(VAR8,10)/150 ,CIRCLEDOT,COLORRED;
资金: EMA(VAR9,10)/150, CIRCLEDOT,COLORGREEN;
大盘神针:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,3)),7,1)*100<20
AND SMA(MAX(CLOSE-REF(CLOSE,3),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,3)),13,1)*100<25
AND MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,5)>-19
AND (LOW>LLV(LOW,5) AND (CLOSE-HHV(CLOSE,8))/HHV(CLOSE,8)<-0.05 AND
MA(AMOUNT,125)/MA(VOL,125)/(MA(AMOUNT,5)/MA(VOL,5))>1.12))*0.75;
买:=BARSLAST(大盘神针)<15 AND CROSS(MACD.DIF,MACD.DEA);
底:=BARSLAST(LLV(L,4)=LLV(L,120))<5 ;
均线买:=CROSS(MA(C,5),MA(C,20));
介入:=(底 AND 均线买 AND (进场资金>资金) OR 买);
STICKLINE(介入,资金-0.5,资金+0.1,2,0),COLORRED;
DRAWTEXT(介入,资金-0.15,'介入'),COLORWHITE;
STICKLINE(大盘神针,资金-0.2,资金+0.6,2,0),COLORFFFF00;
DRAWTEXT(大盘神针,资金+0.5,'神针'),COLORFFFF00;
安全区:STICKLINE(底,资金-0.1,资金,3,0),COLORRED;
股海英雄(主)
上线:=SMA(C,6.5,1);
下线:=SMA(C,13.5,1);
上线1:=SMA(C,3,1);
下线1:=SMA(C,8,1);
STICKLINE(上线>下线 , 上线,下线 ,2.5, 0),COLORRED,LINETHICK2;
STICKLINE(下线>上线,上线,下线,2.5,0),COLORYELLOW,LINETHICK2;
DRAWTEXT( CROSS(上线,下线),LOW *0.98,'全仓买' ),COLOR00FF00;
DRAWTEXT(CROSS(下线1,上线1),H*1.02,'清仓'),COLORYELLOW;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+3*STD(BBI,13),LINETHICK2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,60),LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'减仓') ,COLORFF9966,LINETHICK2;
A7:=(2*C+H+L)/4;
操作:MA(A7,5),LINETHICK2;
操作1:=MA(A7,5)*1.03,LINETHICK2;
操作2:=MA(A7,5)*0.97,LINETHICK2;
VAR1:LLV(A7,21);
VAR2:HHV(A7,21);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'买进') ,COLOR0099FF;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0),LOW*0.98,'买进') ,COLORYELLOW;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'抄底'),COLORYELLOW;
布林3(主)
X:=C;
X1:=(MA(X,3)+MA(X,5)+MA(X,8)+MA(X,13))/4;
X3:=X1+5*SLOPE( X1, 3);
X4:=EMA(X3,2);
X5:=EMA(X4,2);
X6:=(X3+X4+X5)/3;
X0:=(MA(X6,3)+MA(X6,5)+MA(X6,8)+MA(X6,13))/4;
J1:=X0+3*STD(X0,10);
J2:=X0-3*STD(X0,10);
UO:=MA(X,20);
UO1:=UO + 2*STD(X,20);
UO2:=UO - 2*STD(X,20);
PO1:=(MA(X,3)+MA(X,5)+MA(X,8)+MA(X,13))/4;
PO2:=PO1+3*STD(PO1,10);
PO3:=PO1-3*STD(PO1,10);
C1:=REF(C,1);
C2:=HHV(C1,2);
C3:=LLV(C1,2);
ET:=HHV(C1,2);
ET1:=REF(ET,1);
XB:=LLV(C1,2);
XB1:=REF(XB,1);
M:=BARSLAST(C<XB AND C1>=XB1);
M1:=REF(M,1);
NN:=BARSLAST(C>ET AND C1<=ET1);
N1:=REF(NN,1);
M2:=BARSLAST(M-NN>0 AND M1<=N1)+1;
N2:=BARSLAST(NN-M>0 AND N1<=M1)+1;
ET2:=HHV(ET,M2);
XB2:=LLV(XB,N2);
A:=IF(M-NN>0 AND M1<=N1,1,IF(NN-M>0 AND N1<=M1,0,2));
STICKLINE(M-NN>0,C,ET2,6,1),COLOR0099FF;
STICKLINE(M-NN<0,C,XB2,6,0),COLORCYAN;
STICKLINE(A=1,C,C2,6,1),COLOR0099FF;
STICKLINE(A=1,C2,XB2,6,0),COLORCYAN;
STICKLINE(A=0,C3,C,6,0),COLOR0099FF;
STICKLINE(A=0,C3,ET2,6,1),COLOR0099FF;
OPP1: (J1+UO1)/2,COLORFF9966;
OPP2: (J2+UO2)/2,COLORRED;
OPP3: (OPP1+OPP2)/2,COLOR500500;
短线逃顶(副)
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
S: IF(VAR6>100,VAR6-100,0);
STICKLINE(REF(S,1)<S,S,REF(S,1),5,0);
STICKLINE(REF(S,1)>S,S,REF(S,1),5,0);
顶底极品
n:1 20 18
m:1 20 14
i:10 30 26
VAR1:=INDEXV*INDEXC;
VAR2:=EMA(VAR1,5)/EMA(INDEXV,5);
VAR3:=(INDEXC-VAR2)/VAR2*100;
VAR4:=VAR3<=-1.5 AND VAR3>-100;
VAR5:=SUM(VAR4>0,N)/SUM(VAR4=0,N);
VAR6:=VAR5<5 AND VAR5>=0.25;
VAR7:=(LOW+HIGH+CLOSE)/3;
VAR8:(VAR7-MA(VAR7,M))/(0.015*AVEDEV(VAR7,M));
VAR9:EMA(VAR8,3);
VARA:=(HIGH+LOW+CLOSE)/3;
VARB:SUM(MAX(0,HIGH-REF(VARA,1)),I)/SUM(MAX(0,REF(VARA,1)-LOW),I)*100;
VARC:REF(MA(VARB,3),2.2);
VARD:=REF(MA(VARB,13),6.2);
VARE:=REF(MA(VARB,89),36.6);
VARF:=CROSS(VARC,VARB) AND VARB>150;
IF(VAR6 AND CROSS(VAR8,VAR9),0,-250),,COLORRED;
IF(VARF,0,300),,COLORGREEN;
{主力成交量}(副)
成交量:VOL,LINETHICK0;
VAR2:=(HIGH - LOW);
VAR3:=ABS((OPEN - CLOSE));
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR6:=((VAR3 / VAR2) * VOL);
VAR7:=((VAR4 / VAR2) * VOL);
VAR8:=((VAR5 / VAR2) * VOL);
VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));
VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);
VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));
VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));
多头成交:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,3,1),COLOR0000FF;
空头成交:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,3,1),,COLOR00FF00;
上攻量:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,3,0),,COLOR0000FF;
下攻量:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,3,0),,COLOR00FF00;
上探量:STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,3,0),,COLORCCCC66;
下探量:STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,3,0),,COLORFF6633;
相对地量:STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,2.2,0),,COLOR00FFFF;
地量:DRAWTEXT(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),VOL,'地量'),,COLOR00FFFF;
放量:STICKLINE((VOL > (MA(VOL,5) * 2.5)),0,VOL,2.2,0),,COLORFFFFFF;
高出:DRAWTEXT(((((((((VAR7 > VAR6) AND (VARA > 2)) AND (VAR7 > VAR8)) AND (CLOSE > MA(CLOSE,5))) AND (CLOSE > MA(CLOSE,30))) AND (HIGH > MA(CLOSE,60))) AND (VOL > MA(VOL,5))) AND (VAR7 >= MA(VOL,5))),VOL,'高出'),COLOR00FF00;
低进:DRAWTEXT(((((((VAR8 > VAR6) AND (VAR8 > VAR7)) AND (VARA < (0 - 2))) AND (CLOSE < MA(CLOSE,30))) AND (VAR8 < (MA(VOL,5) / 2))) AND (MA(VOL,5) < MA(VOL,10))),VOL,'低进'),,COLOR00FFFF;
强势参与:DRAWTEXT((((((VAR6 > (MA(VOL,5) * 2)) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB)),VOL,'参与'),,COLOR00FF00;
空头释放:DRAWTEXT(((((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)) AND ((VAR6 / VOL) > 0.7)) AND VARC) AND (VAR6 > MA(VOL,5))),(VAR6 * 2),'空头释放'),,COLOR00FF00;
MA5:MA(VOL,5);
MA10:MA(VOL,10);
机构建仓(副)
N:=9;M1:=3;M2:=3;P:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1),COLORRED,LINETHICK2;
D:=SMA(K,M2,1),COLOR00FF00;
JJ:=P*(3*D-2*K),COLOR00FF00;
J:=((3 * K) - (2 * D));
MAIRU:= CROSS(K,D) AND K<20;
MAICHU:= CROSS(D,K) AND D>80;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORF00FF0;
快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F;
慢线:SMA(快线,M1,1),COLORRED,LINETHICK2;
空:SMA(慢线,M2,1),COLOR00FF00;
牛股:IF(BARSLAST(CROSS(慢线,空))<P AND BARSLAST(CROSS(空,慢线))<P AND CROSS(慢线,空) AND 慢线<20,90,0),STICK,COLORFF937F;
STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F;
BB:=IF(BARSLAST(CROSS(慢线,快线))>=3 AND CROSS(快线,慢线) AND 慢线<30,20,0);
买:STICKLINE(BB,0,20,7,1),COLORYELLOW;
AA:=IF(BARSLAST(CROSS(快线,慢线))>=4 AND CROSS(慢线,快线) AND 快线>50,20,0);
卖:STICKLINE(AA,80,100,7,1),COLOR00FF00;
{色彩峰 副图}
VARA:=EMA(REF(CLOSE,1),4);
色彩峰:=(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100);
STICKLINE(色彩峰,0,200,5,0),COLOR66FFCC;
STICKLINE(色彩峰,0,-200,5,0),COLOR8BA433;
STICKLINE(色彩峰>0,0,色彩峰,5,0),COLOR66FF00;
AA:=100*EMA((100*(HIGH-REF(LOW,1))/REF(LOW,1)-2.618),2);
VARA1:=VOL/CAPITAL/100< 0.015;
VARA2:=C/REF(C,1)> 1.05 AND C>O;
VARA3:=CLOSE<=1.47*LLV(CLOSE,58) AND CLOSE<=15;
VARA4:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
VARZ:=IF(VARA1 AND VARA2 AND VARA4<40,1,0);
PF1 :=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RSV:=SMA(PF1,9,1);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD :=2000* (2*(DIFF-DEA))/EMA(C,30),LINETHICK0;
FASTK1:=SMA(RSV,3,1);
K1:=SMA(FASTK1,2,1),COLORYELLOW;
D1:=SMA(K1,5,1),COLORB56C00;
T3:=(K1-D1)>REF((K1-D1),5);
STICKLINE(MACD>=0,0,MACD,4,0),COLORFF3366;
STICKLINE(MACD>=0 AND MACD>REF(MACD,1),0,MACD,3,0),COLORFF00FF;
STICKLINE(MACD<0,0,0.3*MACD,0.1,0),COLORFF00FF;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,0.3*MACD,0.1,0),COLORFF3366;
RSV2:= (CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
FASTK:=SMA(RSV2,3,1);
K:=SMA(FASTK,2,1), COLORYELLOW;
D:=SMA(K,5,1),COLORB56C00;
STICKLINE(K1>=D1,D1,K1,2,0),COLORMAGENTA;
STICKLINE(K1<D1,D1,K1,2,0),COLORB56C00;
STICKLINE(K>=D,D,K,1,0),COLORMAGENTA;
STICKLINE(K<D,D,K,1,0),COLORB56C00;
DRAWTEXT(色彩峰<3.5,-50,'ャ'),COLOR3333CC;
DRAWTEXT(色彩峰<3.5,-50,'︼'),COLOR688EC1;
DRAWTEXT(CROSS( 0,MACD)AND 色彩峰>75,120,'☆'),COLOR3300CC;
DRAWTEXT(CROSS(色彩峰,90),98,'卖'),COLORFF33CC;
DRAWTEXT(FILTER(MACD<0 AND MACD>REF(MACD,1) AND 色彩峰<20,5) AND T3,-1,'Ψ'), COLORBROWN;
一目均衡图(主)
{n1(8,2,100),n2(22,2,100),n3(44,2,100)}
AA:=(HHV(HIGH,120)-LLV(LOW,120))/30,LINETHICK;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
转换线:(HHV(HIGH,N1)+LLV(LOW,N1))/2,COLORMAGENTA,LINETHICK;
基准线:(HHV(HIGH,N2)+LLV(LOW,N2))/2,COLORGREEN,LINETHICK;
云带A:=REF((转换线+基准线)/2,N2);
云带B:=REF((HHV(HIGH,N3)+LLV(LOW,N3))/2,N2);
STICKLINE(云带A<云带B,云带A,云带B,0.1,0),COLOR339933;
STICKLINE(云带A>=云带B,云带A,云带B,0.1,0),COLOR0033CC;
IF(C>0,云带A,DRAWNULL),COLORGRAY;
IF(C>0,云带B,DRAWNULL),COLORGRAY;
IF(C>0,基准线,DRAWNULL),COLORGREEN;
IF(C>0,转换线,DRAWNULL),COLORMAGENTA;
DRAWTEXT(CROSS(转换线,基准线) AND VAR1<MIN(云带A,云带B),MIN(基准线,LOW)*0.995,'▲'),COLORRED;
DRAWTEXT(CROSS(转换线,基准线) AND RANGE(VAR1,MIN(云带A,云带B),MAX(云带A,云带B)),LOW*0.995,'▲N▲'),COLORRED;
DRAWTEXT(CROSS(转换线,基准线) AND VAR1>MAX(云带A,云带B),LOW-AA*0.5,'▲N▲N▲'),COLORRED;
DRAWTEXT(CROSS(基准线,转换线) AND VAR1<MIN(云带A,云带B),MAX(基准线,HIGH)+AA*2,'▼N▼N▼'),COLORFF9966;
DRAWTEXT(CROSS(基准线,转换线) AND RANGE(VAR1,MIN(云带A,云带B),MAX(云带A,云带B)),MAX(基准线,HIGH)+AA,'▼N▼'),COLORFF9966;
DRAWTEXT(CROSS(基准线,转换线) AND VAR1>MAX(云带A,云带B),MAX(基准线,HIGH)+AA,'▼'),COLORFF9966;
{庄影难逃}(副)
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
有庄的影子: STICKLINE(VAR8,0,VAR8,6,1) , COLORFFAAFF;
趋势线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 , COLORAABBDD;
AA:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-30) AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-30,趋势线),1) AND CROSS(趋势线,-30)) OR 趋势线=-30;
DRAWTEXT(AA,500,'砸锅卖田买'),COLORYELLOW;
砸锅卖田买:IF(AA,500,-30),COLORYELLOW;
BB:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-20 AND 趋势线>-25) AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-20,趋势线),1) AND CROSS(趋势线,-20));
DRAWTEXT(BB,300,'见底信号'),COLORRED;
见底信号:IF(BB,300,-20),COLORRED;
CC:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-25 AND 趋势线>-30) AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-25,趋势线),1) AND CROSS(趋势线,-25));
DRAWTEXT(CC,400,'莫错失机会'),COLOR00FF00;
莫错失机会:IF(CC,400,-25),COLOR00FF00;
底部快显:IF(CROSS(-20,趋势线),100,-20),LINETHICK2,COLORF0F000;
DRAWTEXT(CROSS(-20,趋势线),120,'★'),COLORF0F000;
机会来临:IF(CROSS(-25,趋势线),150,-25),LINETHICK2,COLORF00FF0;
DRAWTEXT(CROSS(-25,趋势线),170,'★'),COLORF00FF0;
砸锅卖田等:IF(CROSS(-30,趋势线),200,-30),LINETHICK2,COLORWHITE;
DRAWTEXT(CROSS(-30,趋势线),220,'★'),COLORWHITE;
{见底信号:-20,COLORRED,POINTDOT;
{莫要错失机会:-25,COLORLIME,POINTDOT;
{砸锅卖田等着你:-30,COLORYELLOW,POINTDOT;}
金风满楼(副)
var1:=(c-llv(l,13))/(hhv(h,13)-llv(l,13))*100;
牛:sma(var1,7,1);
var2:=sma(牛,5,1);
熊:if(cross(牛,var2) and cross(ma(c,5),ma(c,13) and 牛>50),var2*2,var2);
var3:=ema(c,8);
var4:=ema(c,20);
stickline(牛>var2,牛,熊,0,0);
stickline(牛<var2,牛,var2,0,0);
短线进出:3*sma((c-llv(l,13))/(hhv(h,13)-llv(l,13))*100,5,1)-2*sma(sma((c-llv(l,13))/(hhv(h,13)-llv(l,13))*100,5,1),3,1);
var5:=10;
低吸区:if(短线进出<=10,10,0);
买入:if(cross(短线进出,var5),20,0);
var6:=(2*c+h+l+o)/5;
var7:=llv(l,33);
var8:=hhv(h,33);
目前位置:ema((var6-var7)/(var8-var7)*100,5);
生命线:ema(0.667*ref(目前位置,1)+0.333*目前位置,4),circledot;
var9:=if(cross(生命线,目前位置) and 目前位置>=77,77,89);
vara:=if(cross(目前位置,20) or cross(目前位置,生命线) and 目前位置>20,20,5);
卖出区:var9;
varb:=llv(l,55);
varc:=hhv(h,34);
vard:=ema((var6-varb)/(varc-varb)*100,3);
vare:=(目前位置+vard)/2;
varf:=ema(0.667*ref(vard,1)+0.333*目前位置,2);
var10:=ema(vare,5);
var11:=ema(0.667*ref(var10,1)+0.333*var10,2);
强弱:50,pointdot;
100,pointdot;
20;
招财猫(主图及选股)
OK:=EMA(O,60);
CG:=EMA(C,60);
PDU:=IF(OK> REF(OK,1) AND CG> REF(CG,1),1,0);
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
LIFE:=(EMA(C,60)+EMA(C,90))/2;
VAR1:=(2*C+H+L)/4;
SNOOK:=EMA(VAR1,99)*0.91;
A1:=(C-REF(C,1))/REF(C,1)*100;
MA5:=BARSLAST(A1> 3);
MA20:=IF(MA5> 0,1,0);
STICKLINE(C>ZX AND C>=LIFE,O,C,3,0),COLOR0000FF;
STICKLINE(C> ZX AND C<=SNOOK,O,C,3,0),COLOR00FF00;
STICKLINE(C> ZX AND C> SNOOK AND C<LIFE,O,C,3,0),COLORFF0000;
STICKLINE(C> ZX AND MA20=0,O,C,3,0),COLOR00FFFF;
STICKLINE(C> ZX,O,C,1,0),COLORFFFFFF;
DRAWICON(CROSS(C,ZX),L*0.99,1);
DRAWICON(CROSS(ZX,C),H*1.01,5);
BY20:=MA(C,5);
招财猫:MA(C,20),LINETHICK2,COLOR00FFFF;
鼠变异:IF(BY20> 招财猫,招财猫,BY20),LINETHICK2,COLOR808080;
选股:=CROSS(C,ZX) AND C> ZX AND MA20=0 ,LINETHICK0;
RB:=BARSCOUNT(C)=ISLASTBAR;
RD:=BARSLAST(RB);
K2:=HHV(H,50);
K1:=LLV(L,50);
T1:=C> ZX AND C>=LIFE;
T2:=C> ZX AND C>SNOOK AND C<LIFE;
T3:=C> ZX AND C<=SNOOK;
T4:=C<=ZX;
T5:=鼠变异>REF(鼠变异,1) AND 鼠变异=招财猫 ;
T6:=鼠变异> REF(鼠变异,1) AND 鼠变异=招财猫 AND PDU=1;
T7:=鼠变异> REF(鼠变异,1) AND 鼠变异=招财猫 AND PDU=1;
T8:=C> ZX AND MA20=0 ;
EEE:=T1+T2+T3+T4+T5+T6+T7+T8 ;
E:=(K2-K1)/(EEE+8) ;
DRAWTEXT(C> 0 AND T1> 0 AND ISLASTBAR,K2-E,'出洞了逮住它!'),COLOR0000FF;
DRAWTEXT(C> 0 AND T2> 0 AND ISLASTBAR,K2-E,'鼠玩猫守着它!,'),COLORFF7700;
DRAWTEXT(C> 0 AND T3> 0 AND ISLASTBAR,K2-E,'露尾巴动作快!,'),COLOR00FF00;
DRAWTEXT(C> 0 AND T4> 0 AND ISLASTBAR,K2-E,'没有了打个盹!,'),COLOR808080;
DRAWTEXT(C> 0 AND T5> 0 AND ISLASTBAR,K2-E*2,'发现鼠迹!'),COLOR00FF00;
DRAWTEXT(C> 0 AND T6> 0 AND ISLASTBAR,K2-E*2,'瞬间鼠影!'),COLORFF66FF;
DRAWTEXT(C> 0 AND T7> 0 AND ISLASTBAR,K2-E*2,'恶鼠难遁!'),COLOR0000FF;
选股公式
A1:=(C-REF(C,1))/REF(C,1)*100;
MA5:=BARSLAST(A1>3);
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
MA20:=IF(MA5>0,1,0);
选股:CROSS(C,ZX) AND MA20=0;
智能解盘(主)
A001:=CLOSE-REF(CLOSE,6);
A002:=MA(A001,6);
A003:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100;
A004:=SMA(A003,3,1);
A005:=SMA(A004,3,1);
A006:=EMA((3*A004-2*A005),2);
A007:=(HIGH+LOW+CLOSE)/3;
A008:=((A007-MA(A007,14))/(0.015*AVEDEV(A007,14)))/2;
A009:=(A008+(EMA(((0-(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))))+100)/100,3)*200-100))/2;
A010:=A009-REF(A009,14);
A011:=A009-REF(A009,26);
A012:=(A009+A010+A011)/3;
KKM:=EMA(A012,4);
A013:=HHV(HIGH,34);
A014:=(2*CLOSE+HIGH+LOW)/4;
A015:=LLV(LOW,34);
A016:=EMA(((A014-A015)/(A013-A015))*100,13);
A017:=EMA(0.667*REF(A016,1)+0.333*A016,2);
KKMD:=A016-A017>1 AND A016<30 AND A017<30;
KKML:=A016-A017<0 AND A016>80 AND A017>80 AND REF(A016-A017,1)>0;
KKMQ:=COUNT(A016-A017>0,2)=2;
KKAL:=(A016-A017)<0;
生命线:MA(CLOSE,20),LINETHICK2,COLOR0000FF;
取舍线:MA(CLOSE,10),LINETHICK2;
DRAWTEXT(FILTER(KKMD,30),L,'最佳买入时机'),COLOR00FFFF;
DRAWTEXT(FILTER(KKML,30),H,'最佳卖出时机'),COLORFFFF00;
DRAWTEXT(FILTER(KKMQ,30),C,'持仓区'),COLOR00FF00;
DRAWTEXT(FILTER(KKAL,30),H,'空仓区'),COLORFF8080;
DRAWTEXT(FILTER(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),30),L*0.95,'该股强于大盘'),COLORFF00FF;
DRAWTEXT(CROSS(MA(CLOSE,5),MA(CLOSE,10)),L*0.92,'可出手'),COLORFF00FF;
DRAWTEXT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),H*1.08,'收手了'),COLORFF0000;
DRAWTEXT(FILTER(KKM>EMA(KKM,4) AND KKM>REF(KKM,1),30),L*0.98,'快速介入');
DRAWTEXT(FILTER(KKM<EMA(KKM,4) AND KKM<REF(KKM,1),30),H*1.02,'风险较大');
DRAWTEXT(FILTER(KKM>EMA(KKM,4) AND KKM<REF(KKM,1),30),H,'休息观望~'),COLORAA8800;
DRAWTEXT(FILTER(KKM<EMA(KKM,4) AND KKM>REF(KKM,1),30),L,'有防御能力')
,COLORAA00AA;
K线同图周日(主)
WC:"001引用.C1#WEEK"LINETHICK0;
WO1:=IF(WEEKDAY<REF(WEEKDAY,1),O,DRAWNULL);
WO2:=IF(WO1= DRAWNULL,REF(WO1,1), WO1);
WO3:=IF(WO2= DRAWNULL,REF(WO2,1), WO2);
WO4:=IF(WO3= DRAWNULL,REF(WO3,1), WO3);
WO:IF(WO4= DRAWNULL,REF(WO4,1), WO4)LINETHICK0;
WH:HHV(H,WEEKDAY),LINETHICK0;
WL:LLV(L,WEEKDAY),LINETHICK0;
STICKLINE(WC>=WO,WO,WC,4,0),COLOR003399;
STICKLINE(WC<WO,WO,WC,4,0),COLOR993300;
DRAWKLINE(H,O,L,C);
MA5:MA(C,5),COLORWHITE;
MA10:MA(C,13),COLORYELLOW;
JC:=(REF(C,3)+REF(C,5)+REF(C,7)+REF(C,8)+REF(C,13)+REF(C,21))/6;
参考价:=SMA(JC,5,1), CIRCLEDOT,COLORGREEN;
价:=IF(C>=参考价,参考价,DRAWNULL),CIRCLEDOT,COLOR0000FF;
支撑(主)
上市日期:FINANCE(42)/100, NODRAW ;
VAR1:=MA(CLOSE,5),COLOR00FFFF;
VAR2:MA(CLOSE,13),COLOR00FF33;
VAR5:MA(CLOSE,34),COLORFF9900;
VAR6:=MA(CLOSE,54),COLORFF9900;
VAR7:((EMA(CLOSE,5)*7+EMA(CLOSE,5)*3)/10),COLORBBBBBB;
VAR8:= DMA(EMA(CLOSE,12),SUM(VOL/CAPITAL,5)/3),LINETHICK2;
VARA:=REF(CLOSE,1);
VARE:=SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100;
DRAWTEXT(DATE>700101 AND CROSS(84,VARE),HIGH,'☆机构减仓'),COLORGREEN;
VARF:=(2*CLOSE+HIGH+LOW)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VARF-VAR10)/(VAR11-VAR10)*100,6);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,4);
VAR14:=LLV(LOW,120);
VAR15:=HHV(HIGH,120);
VAR16:=VAR15-VAR14;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VAR12>VAR13,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),LOW,'★机构进场'),COLORYELLOW;
STICKLINE(VAR7>VAR2,VAR2,VAR7,0.01,1),COLORFF00FF;
STICKLINE(VAR7<VAR2,VAR2,VAR7,0.01,1),COLOR33FF33;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR00FF33,LINETHICK1;
支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORCC33CC,LINETHICK1;
支撑价:LLV(LOW,19) , COLOR009900,LINETHICK2;
阻力价:HHV(HIGH,19),COLORFF9900, LINETHICK2;
VAR4:EMA(C,21),COLOR0000FF, LINETHICK2;
一线定盈亏(副)
BIAS1:=MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*100,COLORWHITE;
BIAS3:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*100,COLORFF00FF,LINETHICK2;
操作区:IF(BIAS3<0,BIAS3,0),COLOR00EE00,LINETHICK2;
观望区:IF(BIAS3>0,BIAS3,0),COLORFF00FF,LINETHICK2;
见底:IF(BIAS3<-15,10,0),LINETHICK2,COLORYELLOW;
抄底:IF(COUNT(BIAS3<0,8)>=8 AND COUNT(BIAS3>0,34)>13 AND COUNT(BIAS3<0,55)>30,15,0),LINETHICK3;
买卖特灵(副)
趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1), , COLORBLUE;
见底信号: 10, , COLORRED;
买点准备: IF(趋势线<=10,50,0), , COLORGREEN;
买入时间: IF(CROSS(趋势线,见底信号),100,0), , COLORYELLOW;