问道巅峰 顶:=85; 中:=50; 底:=20; 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); VARA:=IF(VAR9>100,VAR9-100,0); VARB:=HHV(HIGH,34); AA:= VARA*2; BB:= EMA((VAR6-VAR8)/(VARB-VAR8)*100,13); VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2); VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; CC:SMA(VAR5,20,1),colorred; CC1:SMA(CC,5,1),colorgreen; STICKLINE(CC>CC1,CC,CC1,1,0),colorred; STICKLINE(CC1>CC,CC,CC1,1,0),colorblack; DRAWICON(CC < REF(CC,1) AND REF(CC,1) < REF(CC,2) AND CC> CC1,100,2); DRAWICON(CROSS(CC1,CC),100,15); VAR10:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100; CC2:SMA(VAR10,20,1),colorred; CC3:SMA(CC2,5,1),colorgreen; STICKLINE(CC2>CC3,CC2,CC3,1,0),colorgreen; STICKLINE(CC3>CC2,CC2,CC3,1,0),colorblack; DRAWICON(CC2< REF(CC2,1) AND REF(CC2,1) < REF(CC2,2) AND CC2 > CC3,100,2); DRAWICON(CROSS(CC3,CC2),100,15); VAR11:=(CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100; CC4:SMA(VAR11,20,1),colorred; CC5:SMA(CC4,5,1),colorgreen; STICKLINE(CC4>CC5,CC4,CC5,1,0),colorblue; STICKLINE(CC5>CC4,CC4,CC5,1,0),colorblack; DRAWICON(CC4< REF(CC4,1) AND REF(CC4,1) < REF(CC4,2) AND CC4 > CC5,100,2); DRAWICON(CROSS(CC5,CC4),100,15); VAR12:=(CLOSE-LLV(LOW,377))/(HHV(HIGH,377)-LLV(LOW,377))*100; CC6:SMA(VAR12,20,1),colorred; CC7:SMA(CC6,5,1),colorgreen; STICKLINE(CC6>CC7,CC6,CC7,1,0),colorblue; STICKLINE(CC7>CC6,CC6,CC7,1,0),colorblack; DRAWICON(CC6< REF(CC6,1) AND REF(CC6,1) < REF(CC6,2) AND CC6 > CC7,100,2); DRAWICON(CROSS(CC7,CC6),100,15); VAR13:=(CLOSE-LLV(LOW,610))/(HHV(HIGH,610)-LLV(LOW,610))*100; CC8:SMA(VAR13,20,1),colorred; CC9:SMA(CC8,5,1),colorgreen; STICKLINE(CC8>CC9,CC8,CC9,1,0),colorblue; STICKLINE(CC9>CC8,CC8,CC9,1,0),colorblack; DRAWICON(CC8< REF(CC8,1) AND REF(CC8,1) < REF(CC8,2) AND CC8 > CC9,100,2); DRAWICON(CROSS(CC9,CC8),100,15); R1:IF((CROSS(CC,CC1) AND (CC1 < 顶) ),80,0),colorred; R2:IF((CROSS(CC2,CC3) AND (CC3 < 顶) ),80,0),colorgreen; R3:IF((CROSS(CC4,CC5) AND (CC5 < 顶) ),80,0),colorblue; R4:IF((CROSS(CC6,CC7) AND (CC7 < 顶) ),80,0),coloryellow; R5:IF((CROSS(CC8,CC9) AND (CC9 < 顶) ),80,0),colorcyan; |
上一篇:趋势买卖(同花顺公式源码)
下一篇:回头疯牛(同花顺公式源码)