同花顺副图指标集-(源码)
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;
STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
主力:EMA(CLOSE,10),COLORRED;
小股民:EMA(CLOSE,5),COLORWHITE;
绿降:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;
操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;
界点:MA(CLOSE,20),COLORMAGENTA;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'),COLOR0000FF;
TR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TR,14);{大智慧加上这两句定义}
AA:=(HHV(HIGH,20) - (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));
DRAWTEXT((B1 = 1),(LOW - 0.6),'跟进'),COLORYELLOW;
DRAWTEXT((B2 = 1),(LOW - 0.6),'加码'),COLORFFAAFF;
OK:=EMA(O,60);
BARSCOUNTOK:=EMA(O,60);
SUMBARSOK:=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)=0;
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) ;
j:=FILTER(C>0 AND t1>0,COUNT(C>0 AND t1>0,0));
j2:=FILTER(C>0 AND t2>0,COUNT(C>0 AND t2>0,0));
j3:=FILTER(C>0 AND t3>0,COUNT(C>0 AND t3>0,0));
j4:=FILTER(C>0 AND t4>0,COUNT(C>0 AND t4>0,0));
j5:=FILTER(C>0 AND t5>0,COUNT(C>0 AND t5>0,0));
DRAWTEXT(j,K2-E,'出洞了逮住它'),COLOR0000FF;
DRAWTEXT(j2 ,K2-E+0.2,'鼠玩猫守着它'),COLORFF9900;
DRAWTEXT(j3 ,K2-E,'露尾巴动作快'),COLOR00FF00;
DRAWTEXT(j4 ,K2-E,'没有了打个盹'),COLOR808080;
DRAWTEXT(j5,K2-E*2,'发现鼠迹'),COLOR00FF00;
Var3:=LLV(HIGH,240);
Var4:=100*(CLOSE-Var3)/Var3;
Var5:=REF(LLV(CLOSE,480),1);
Var6:=REF(HHV(CLOSE,480),1);
Var7:=100*(CLOSE-Var5)/(Var6-Var5);
Var8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
Var9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
VarA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
VarB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
VarC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;
VarD:=IF(VarC>23.16,VarC,0);
VarE:=VarC<1;
VarF:=VarD;
Var10:=Var4<0 AND Var7<0;
Var11:=1;
Var12:=(HIGH+LOW+CLOSE*2)/4*Var11;
Var13:=EMA(Var12,21);
Var14:=STD(Var12,21);
Var15:=((Var12-Var13)/Var14*100+200)/4*Var11;
Var16:=(EMA(Var15,89)-25)*1.56*Var11;
Var17:=EMA(Var16,5)*1.22*Var11;
Var18:=EMA(Var17,3)*Var11;
Var19:=3*Var17-2*Var18*Var11;
Var1A:=IF(CROSS(Var19,Var17) AND CROSS(Var19,Var18) AND CROSS(Var17,Var18),1,0);
Var1B:=IF(CROSS(Var17,Var19) AND CROSS(Var18,Var19) AND CROSS(Var18,Var17),1,0);
买点:IF(FILTER(Var8=0 AND VarE AND Var10 AND Var1A,5)=1,10,0), colorred;
卖点:IF(FILTER(Var8=100 AND VarF AND Var1B,5)=1,10,0), colorgreen;
Var1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4;
Var1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
Var1E:=EMA(Var1D,30);
Var1F:=2*(Var1D-Var1E)*10;
Var20:=POW(Var1F,3)*0.1+POW(Var1F,2);
Var21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
Var22:=EMA(Var21*0.97,3);
Var23:=(HIGH+LOW+CLOSE)/3;
Var24:=(Var23-MA(Var23,14))/(0.015*AVEDEV(Var23,14));
Var25:=IF(YEAR<2008 AND Var1F>0.015,Var20,0)/45;
庄拉线: Var25,coloryellow ;
Var26:=EMA(CLOSE,2)-EMA(CLOSE,150);
Var27:=EMA(Var26,100);
Var28:=2*(Var26-Var27);
Var29:=POW(Var28,3)*0.1+POW(Var28,1);
Var2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
Var2B:=EMA(Var2A*0.97,3);
Var2C:=(HIGH+LOW+CLOSE)/3;
Var2D:=(Var2C-MA(Var2C,14))/(0.015*AVEDEV(Var2C,14));
黑马线:IF( Var28>0.1,Var29,0)*5, colorcyan;
量价线:(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100, colorwhite;
Var2E:=IF(FILTER(量价线>0 AND 量价线<3,5)=1,12,0);
涨幅前兆: IF(FILTER(庄拉线>0 AND 庄拉线<0.5 AND Var2E AND Var1C<3,10)=1,10,0), colorred;
选股利器: IF(FILTER(Var2E>0 AND Var1C<2 AND 庄拉线>0 AND 庄拉线<1
AND 黑马线>0 AND 黑马线<1.5 AND Var2E>0,5)=1,10,0),colorff1166;
DRAWTEXT(买点>0,10,'买'),colorred;
DRAWTEXT(卖点>0,10,'卖'),colorgreen;
DRAWTEXT(涨幅前兆>0,10,'前兆'),colorred;
DRAWTEXT(选股利器>0,10,'选股利器'),Colorff1166;
VARAA:=MA(CLOSE,20);
布林极限:100*(CLOSE-VARAA)/STD(CLOSE,20),colorddddff;
布林K值:EMA(布林极限,10),color00ff00;
VARAB:=EMA(布林极限,5);
VARAC:=EMA(布林K值,5);
VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((Var4*0.96+Var5*0.96+Var6*0.96+Var1*0.558+Var2*0.558+Var3*0.558)/6,21);
VAR8:=EMA((Var4*1.25+Var5*1.23+Var6*1.2+Var1*0.55+Var2*0.55+Var3*0.65)/6,21);
VAR9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68+Var3*0.68)/6,21);
VARA:=EMA((Var7*3+Var8*2+Var9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100;
VAR10:=IF(CLOSE*1.35<=VARA,VARC*10,VARC/10);
VARD:=EMA(VAR10,3);
VARE:=LLV(LOW,30);
VARF:=HHV(VarD,30);
VAR11:=IF(LOW<=VARE,(VARD+VARF*2)/2,0);
VAR12:=EMA(VAR11,3)/500-100;
HYS1:=0.2*VAR12;
HYS2:=1.2*VAR12;
DY1:=(2*CLOSE+HIGH+LOW)/4;
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,34);
VAR13:=(DY1-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
BDA:=EMA(VAR13,3);
BDB:=EMA(BDA,3);
BDC:=EMA((DY1-DY2)/(DY3-DY2)*100,9);
BDD:=EMA((0.667*REF(BDC,1)+0.333*BDC),3);
VAR14:=LLV(H,240);
MYP:=100*(C-VAR14)/VAR14;
VAR15:=HHV(H,240);
MYL:=100*(VAR15-C)/C;
VAR16:=REF(HHV(C,60),1);
VAR17:=REF(LLV(C,60),1);
RPY:=100*(C-VAR17)/(VAR16-VAR17);
可以考虑出击了:IF(HYS1<REF(HYS1,1) AND REF(HYS1,1)>REF(HYS1,2) AND REF(HYS1,2)>REF(HYS1,3) AND HYS2<REF(HYS2,1) AND REF(HYS2,1)>REF(HYS2,2) AND REF(HYS2,2)>REF(HYS2,3) AND REF(HYS2,1)>0,200,0),linethick2,colorcyan;
STICKLINE(CROSS(RPY,MYP) AND CROSS(布林极限,布林K值) AND CLOSE>=OPEN AND BDC<=50 AND BDD<=50 AND BDA>=BDC AND BDB>=BDD,200,0),linethick2,colorff00bb;
STICKLINE(CROSS(REF(RPY,1),REF(MYP,1)) AND CROSS(布林极限,布林K值) AND CLOSE>=OPEN AND BDC<=50 AND BDD<=50 AND BDA>=BDC AND BDB>=BDD,200,0),linethick2,color00ffcc;
STICKLINE(CROSS(REF(MYP,1),REF(MYL,1)) AND CROSS(布林极限,布林K值) AND CLOSE>=OPEN AND BDC<=50 AND BDD<=50 AND BDA>=BDC AND BDB>=BDD,200,0),linethick2,color0099ff;
100,POINTDOT,color99ffcc;
-100,POINTDOT,color99ffcc;
170,color99ffcc;
-170,color99ffcc;
STICKLINE(布林极限>=布林K值,布林极限,布林K值,6,0),colorred;
STICKLINE(布林极限<布林K值,布林K值,布林极限,6,0),colorff00ff;
STICKLINE(VARAB>=VARAC,VARAB,VARAC,6,0),colorgreen;
STICKLINE(VARAB<VARAC,VARAC,VARAB,6,0),coloryellow;
STICKLINE(CROSS(布林极限,布林K值),布林极限,布林K值,6,0),colorblue;
STICKLINE(布林极限>=170,布林极限,布林K值,6,0),colorwhite;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B,A,B,5,0),COLORYELLOW;
STICKLINE(A<B,A,B,5,0),COLORBLUE;
M1:EMA(CLOSE,3);
M2:EMA(CLOSE,8);
M3:EMA(M2,13);
M4:EMA(M2,55);
VAR1:=EMA(M3,55);
M5:EMA(M4,81), COLORRED,LINETHICK2;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖出'), COLORGREEN;
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;
VAR6:=CROSS(79,VAR5);
VAR7:=FILTER(VAR6,4);
DRAWICON(VAR7,HIGH*1.035,2);
DRAWTEXT(VAR7,HIGH*1.02,'卖出'), COLORGREEN;
A7:=(2*C+H+L)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
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,'●买进') ,COLORRED;
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,'●买进'), COLORRED;
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,'●抄底'),COLORRED;
绝无未来:
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
天线:200,colorgreen;
逃顶线:100,colorred,LINETHICK3;
趋势线:CCI,colorgray,LINESTICK,LINETHICK1;
零轴线: 0,coloryellow,CIRCLEDOT,LINETHICK1;
抄底线:-100,colorwhite;
地线:-200,colorgreen;
DRAWTEXT(CROSS(CCI,-100),-100,'●抄底'),LINETHICK3,colorred;
DRAWTEXT(CROSS(100,CCI),100,'●逃顶'),LINETHICK3,colorgreen;
var1:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
var2:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
var3:=REF(var1,1)<-20 AND var2;
var4:=REF(var1,1)<-20 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
var5:=FILTER(var3 OR var4,3);
var6:=OPEN>CLOSE AND HIGH-IF(CLOSE>OPEN,CLOSE,OPEN)>IF(OPEN<CLOSE,OPEN,CLOSE)-LOW;
var7:=REF(var1,1)>ABS(-20) AND var6;
var8:=REF(var1,1)>ABS(-20) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
var9:=FILTER(var7 OR var8,3);
vara:=REF(var1,1)<-13 AND var2;
varb:=REF(var1,1)<-13 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
varc:=FILTER(vara OR varb,3);
vard:=REF(var1,1)>ABS(-13) AND var6;
vare:=REF(var1,1)>ABS(-13) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
varf:=FILTER(vard OR vare,3);
DRAWICON(var5*var1>0,LOW,1);
DRAWICON(var9*var1>0,HIGH,2);
DRAWTEXT(varc*var1>0,1.02*REF(CLOSE,1),'关注'),colorffffff ;
DRAWTEXT(varf*var1>0,0.99*REF(CLOSE,1),'风险'),color1010ff ;
var10:=(2*CLOSE+HIGH+LOW+OPEN)/5;
a1: (EMA(var10,3)+EMA(var10,6)+EMA(var10,12)+EMA(var10,24))/4;
a2: EMA(a1,2);
a3: EMA(a2,2);
a4: EMA(a3,2);
a5: EMA(a4,2);
a6: EMA(a5,2);
a7: EMA(a6,2);
生命线: EMA(CLOSE,55),color10ff10;
var11:=LLV(LOW,5);
var12:=HHV(HIGH,4);
var13:=EMA((var10-var11)/(var12-var11)*100,4);
var14:=EMA(0.667*REF(var13,1)+0.333*var13,2);
DRAWTEXT(CROSS(var13,var14) AND var13<40,LOW,'买'),color10ff10 ;
var15:=EMA(var10,13)-EMA(var10,34);
var16:=EMA(var15,5);
var17:=(-2)*(var15-var16)*3.8;
DRAWTEXT(CROSS(var17,MA(var17,3))AND (var15>var16) ,HIGH,'卖'),color10ffff;
var18:=(2*CLOSE+LOW+HIGH)/4;
天堂: EMA(var18,45)*1.15,colorffff10;
地狱: EMA(var18,40)*0.85;
七天线:EMA(CLOSE,7);
持股线:EMA(CLOSE,13),COLORRED,LINETHICK2;
生命线:EMA(CLOSE,25),LINETHICK2;
月初线:EMA(CLOSE,34),COLORYELLOW;
双月线:EMA(CLOSE,56),COLOR0099FF;
一百二十日均线:MA(CLOSE,120),COLORGREEN;
长牛线:EMA(CLOSE,235),COLORBLUE;
牛熊线:EMA(CLOSE,453),COLORWHITE;
这些指标都不含未来函数的,大可放心使用,不过信号不一定准哦,毕竟只是信号,定夺权利永远都只在你的手中。。有美德的回个贴,股票大大的涨,不回帖的给你再好的指标都是无效的~~!
- 上一篇公式:顾比图(副图源码)
- 下一篇公式:波段操作(简简单单的好指标,买入信号明确。不看后悔。源码)