同花顺先军布林副图指标
源码
MA1:MA(C,5),colorred,LINETHICK1;MA2:MA(C,10),coloryellow,LINETHICK1; MA3:MA(C,30),COLOR9933CC,LINETHICK1;MA4:MA(C,60),colorgreen,LINETHICK1; K1:=BACKSET(MA1 K2:=BACKSET(MA2 K3:=BACKSET(MA3 阻力价:HHV(HIGH,19),LINETHICK1,NODRAW;Y:=(MA(C,5)-MA(C,30))/MA(C,5)*100; YY1:=C MA(C,5) AND OPENMA(C,10) AND OPEN YY5:=C MA(C,30) AND OPEN DRAWTEXT(YY1 AND YY5 AND YY3,LOW*0.97,'双龙出海'),colorred;VAR1:=HHV(HIGH,25); VAR2:=LLV(LOW,25);VAR3:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20); VAR4:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5); VAR5:=CROSS(VAR4,VAR3);DRAWICON(CROSS(VAR4,VAR3) ,LOW*0.97,11); X3:DRAWICON(CROSS(MA1,MA2),MA2,1);X4:DRAWICON(CROSS(MA1,MA3),MA3,1); X5:DRAWICON(CROSS(MA2,MA3),MA3,1);M5:MA(CLOSE,5),colorwhite; M10:MA(CLOSE,10),colorred;VarD:=EMA(CLOSE,21)-EMA(CLOSE,8);VarE:=EMA(VarD,5); Var10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH LOW+0.04,4,0); Var11:=ZIG(3,6) REF(ZIG(3,6),1) AND REF(ZIG(3,6),1) =REF(ZIG(3,6),2) AND REF(ZIG(3,6),2) =REF(ZIG(3,6),3); Var12:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2) =REF(ZIG(3,6),3); Var13:=ZIG(3,22) REF(ZIG(3,22),1) AND REF(ZIG(3,22),1) =REF(ZIG(3,22),2) AND REF(ZIG(3,22),2) =REF(ZIG(3,22),3); Var14:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2) =REF(ZIG(3,22),3); Var15:=ZIG(3,51) REF(ZIG(3,51),1) AND REF(ZIG(3,51),1) =REF(ZIG(3,51),2) AND REF(ZIG(3,51),2) =REF(ZIG(3,51),3); Var16:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2) =REF(ZIG(3,51),3); Var17:=ZIG(3,72) REF(ZIG(3,72),1) AND REF(ZIG(3,72),1) =REF(ZIG(3,72),2) AND REF(ZIG(3,72),2) =REF(ZIG(3,72),3); Var18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2) =REF(ZIG(3,72),3); 买点2:=(Var11+Var13+Var15+Var17); 卖点1:=(Var12+Var14+Var16+Var18),linethick2; 买点1:=Var10;DRAWTEXT(买点1 0,LOW-0.01,'*n买n点n1'),colorred,ALIGN0; DRAWTEXT(买点2 0,LOW-0.01,'*n买n点n2'),colorgreen,ALIGN0; BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,colorwhite; UPR:BBI+2*STD(BBI,20),coloryellow; DWN:BBI-2*STD(BBI,20),colorff00ff; LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; DRAWICON(CROSS(84,RSI) ,H*1.03,5);DRAWICON(CROSS(RSI,11) ,L*0.99,4); 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),H*1.03,5); DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12) 0 AND EMA(CLOSE,12)/LOW 1.15,5),LOW,''),linethick7 , 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 DRAWTEXT((REF(BIAS18,1) =5) AND CROSS(VARJ,VARE) AND(aa ss),H*1.02,''),LINETHICK7,colorgreen;Var1:=ZIG(3,10)REF(ZIG(3,10),2);Var2:=ZIG(3,10) REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)REF(ZIG(3,10),1) AND REF(ZIG(3,10),1);