红绿绸带同花顺副图指标
本公式是多个波段,短中长,明确走势,顶底有提示,增加颜色亮度
趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK1,colorwhite;
趋势1: EMA(MA(趋势,5),3),LINETHICK1,colorgreen;
STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,10,0),COLORFF0000;
STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,8,0),COLORFFFFFF;
STICKLINE(趋势>=趋势1,趋势,趋势1,1,0),colorred;
STICKLINE(趋势<趋势1,趋势,趋势1,1,0),colorgreen;
STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,8,0),COLORF00FF0;
STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,8,0),COLORF0F000;
底: IF(CROSS(趋势,5),40,0),LINETHICK2,STICK,coloryellow;
VARK1:=ZIG(3,12);
VARK2:=REF(VARK1,2)>REF(VARK1,1) AND VARK1>REF(VARK1,1);
VARK3:=REF(VARK1,2)<REF(VARK1,1) AND VARK1<REF(VARK1,1);
STICKLINE((VARK2=1),70,60,8,0),colorred;
STICKLINE((VARK3=1),0,20,8,0),colorligreen;
VARFS2:=TROUGHBARS(3,15,1)<4;
VARFS1:=PEAKBARS(3,15,1)<4;
STICKLINE(FILTER(VARFS2=1,5),70,60,8,0),coloryellow;
STICKLINE(FILTER(VARFS1=1,5),0,20,8,0),colorcyan;
R1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*200;
R2:=EMA((CLOSE-(LLV(LOW,5)))/((HHV(HIGH,5))-(LLV(LOW,5)))*100,4)*2;
R3:=EMA(0.618*REF(R2,1)+0.382*R2,2);
R4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
R5:=POW(MA(LOW,5),2)+MA(LOW,5);
R6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
R7:=(R4-LLV(R5,64))/(HHV(R6,64)-LLV(R5,64))*150+65-10;
R8:=SMA((SMA(R7,3,1)*1.5-100),3,1);
R9:=3*(SMA(R7,3,1)*1.5-100)-2*R8;
R10:=(HIGH+LOW+CLOSE*2)/4;
R11:=(R10-(EMA(R10,13)))*100/(STD(R10,13));
R12:=EMA((EMA(R11,5)),13)+200-100;
R13:=(SMA(R1,3,1))+R2+(SMA(R7,3,1)*1.5-100)+R12;
R14:=(SMA((SMA(R1,3,1)),3,1))+R3+R8+(EMA(R12,10));
R15:=(3*(SMA(R1,3,1))-2*(SMA((SMA(R1,3,1)),3,1)))+(3*R12-2*(EMA(R12,10)))+
R9+(3*R12-2*(EMA(R12,10)));
R16:=(HIGH+LOW+CLOSE)/3;
R17:=(R16-MA(R16,34))/(0.015*AVEDEV(R16,34));
R18:=(HIGH+LOW+CLOSE+R16)/4;
R19:=(R18-(EMA(R18,24)))/(STD(R18,24))*100;
R20:=(R16-MA(R16,24))/(0.015*AVEDEV(R16,24));
R21:=(((EMA(R19,5))+R20+R17)/3+165)/4;
R22:=(R13+R14+R15*30)/32/5-15;
出:STICKLINE(CROSS(90,EMA(((R21+R22)/2/1.3),1)),65,50,7,0),colorwhite;
DRAWTEXT(CROSS((EMA(((R21+R22)/2/1.3),1)),(MA((EMA(((R21+R22)/2/1.3),1)),4))),(EMA(((R21+R22)/2/1.3),1)),'★'),colorcyan;
建: IF(SMA(MAX(CLOSE-REF(CLOSE,2),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),5,1)*100<16,50,70,0),colorred,LINETHICK2;
买: (ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)<REF(ZIG(3,35),2)) *60,STICK,colorred,LINETHICK4;
卖: (ZIG(3,35)<REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)>REF(ZIG(3,35),2)) *70,STICK,colorgreen,LINETHICK4;
VARFF:=TROUGHBARS(3,15,1)<4;
DRAWTEXT(FILTER(VARFF=1,3),85,'升'), coloryellow;
VARFR2:=TROUGHBARS(3,15,1)<4;
VARFR1:=PEAKBARS(3,15,1)<4;
STICKLINE (VARFR2=1,-10,VARFR2,8,0),coloryellow;
STICKLINE (VARFR1=1,-10,VARFR1,8,0),colorwhite;
短线:=EMA(CLOSE,17),LINETHICK1,colorwhite;
A:=(3*C+L+O+H)/6;
X:=(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;
中线:=EMA(X,13),LINETHICK1,COLORFF00FF;
STICKLINE(BARSLAST(短线<中线)>30,0,10,6,0),colorred;
STICKLINE(BARSLAST(短线>中线)>30,70,77,7,0),colorgreen;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
准备:STICKLINE((EMA(V11,3))<11,(EMA(V11,3)),11,5,0),colorred;
VVRFF8:=MA(CLOSE,27);
VVRFF9:=(CLOSE-VVRFF8)/VVRFF8*100;
VVARAF:=MA(VVRFF9,2);
VVARBF:=BARSLAST(CROSS(-10,VVARAF)=1);
金: IF(VVARAF<-10 AND VVARBF>3,VVARAF,0),LINETHICK1,coloryellow;
长买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,50,70),LINETHICK2,colorwhite;
长卖: IF(PEAKBARS(3,15,1)=1,30,0),LINETHICK2,colorgreen;
var1:=REF(CLOSE,1);
var2:=SMA(MAX(CLOSE-var1,0),7,1)/SMA(ABS(CLOSE-var1),7,1)*100,coloryellow;
超卖:IF(var2>80,-22,0),COLORFFFF50;
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*CLOSE+HIGH+LOW)/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);
VAR11:=HHV(HIGH,34);
VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);
STICKLINE(VAR12-VAR13>0,VAR12,VAR13,9,0),colorred;
STICKLINE(VAR12-VAR13<0,VAR12,VAR13,9,0),COLOR00FF0F;
买:CROSS(VAR12,VAR13) AND VAR12>VAR13,NODRAW,colorred;
卖:CROSS(VAR13,VAR12) AND VAR12<VAR13,NODRAW,colorgreen;
IF((EMA(VAR13,5))>=REF((EMA(VAR13,5)),1),(EMA(VAR13,5)),DRAWNULL),colorred,LINETHICK2;
AAS:=IF(BARSLAST(CROSS((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1)))>=4 AND CROSS(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1),(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100) AND (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100>50,20,0);
STICKLINE(AAS,80,70,8,0),COLOR00FF00;
RSV2:=(CLOSE-LLV(LOW,168))/(HHV(HIGH,168)-LLV(LOW,168))*100;
K2:=SMA(RSV2,30,1);
D2:=SMA(K2,12,1);
STICKLINE(K2>D2,K2,D2,8,0),colorred,LINETHICK1;
STICKLINE(D2>=K2,D2,K2,8,0),colorligreen,LINETHICK1;