指标源码: A1:=EMA(C,12)-EMA(C,25); A2:=EMA(A1,6); VAR1:=EMA(VOL/CAPITAL,3); VAR2:=HHV(VAR1,240); VAR3:=LLV(VAR1,240); VAR4:=MA(CLOSE,33); VAR5:=EMA(CLOSE,13)-EMA(CLOSE,26); 获利回吐:(A2>=0)*A2,COLORWHITE,LINETHICK0; 坚绝做空:(A1<0)*A1,COLORB00058,LINETHICK0; 买入持股:(A1>=0)*A1,COLORRED,LINETHICK0; 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; STICKLINE(A2>=0,A2,0,5,0),COLORWHITE; STICKLINE(A2<0,A2,0,5,0),COLORD4FF7F; STICKLINE(A1<0,A1,0,5,0),COLORB00058; STICKLINE(A1>=0,A1,0,5,0),COLORRED; 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); VARW:=TROUGHBARS(3,15,1)<4; 多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW) /4,30)*100,3),COLORWHITE; 0,COLORRED; VAR11:=(VARC-VAR10-VARD)*30;VAR12:=VARB-REF(VARB,1); 固定筹码:EMA((VAR1-VAR3)/VAR3*VAR4,13); 移动筹码: EMA((VAR2-VAR1)/VAR1*VAR4,13); STICKLINE(FILTER(VARW=1,5) AND 多空<-10,50,0,15,0),COLORF00FF0; STICKLINE(FILTER(VARW=1,5),50,0,8,0),COLORYELLOW; 多空对比:固定筹码-移动筹码, COLORSTICK; DRAWTEXT(FILTER(VARW=1,3),25,'黑马'),COLORRED; 欢迎大家自行尝试! 关于指标大家可以私信找我免费领取! |