上涨红色波段,降价绿色波段,简单易看,希望对大家有所帮助。
源码
VAR1A:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR2A:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
VAR3A:=SMA(SMA(VAR2A,3,1),3,1);
VAR4A:=EMA(VAR3A,5);
VAR5A:=LLV(LOW,26);
VAR6A:=HHV(HIGH,34);
VAR7A:=EMA((CLOSE-VAR5A)/(VAR6A-VAR5A)*4,4)*25;
VAR8A:=(2*C+H+L)/4;
VAR9A:=LLV(LOW,9);
VAR10A:=HHV(HIGH,9);
VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
MW:= EMA(VAR2W,3);///www.guhai.com.cn
VAR3W:=EMA(VAR2W,7);
M1:= EMA(VAR3W,5);
MB1:=CROSS(MW,M1) AND M1<20;
MG1:=IF(CROSS(M1,MW) AND REF(MW,1)>80,80 ,0) ;
波段:=EMA((VAR8A-VAR9A)/(VAR10A-VAR9A)*100,9),colorred;
B1:=EMA(0.667*REF(波段,1)+0.333*波段,2),COLOR00FF00;
STICKLINE(波段>B1,波段,B1,10,1),colorred;
STICKLINE(波段<=B1,波段,B1,10,1),COLOR00FF00;