VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; VAR2:=LLV(LOW,21);
VAR3:=HHV(HIGH,21);
SK:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
SD:EMA(0.667*REF(SK,1)+0.333*SK,4);
20;
买:CROSS(SK,SD) AND SK<20,colorred,LINETHICK0;
卖:CROSS(SD,SK) AND SK>=60,colorgreen,LINETHICK0;
STICKLINE(CROSS(SK,SD) AND SK<20,0,10,3,0),colorred;
STICKLINE(CROSS(SD,SK) AND SK>=60,0,10,3,0),colorgreen;
VAR6:=LLV(LOW,55);
VAR7:=HHV(HIGH,34);
VAR8:=EMA((VAR1-VAR6)/(VAR7-VAR6)*100,3);
VAR9:=(SK+VAR8)/2;
VARA:=EMA(0.667*REF(VAR8,1)+0.333*SK,2);
VARB:=EMA(VAR9,5);
VARC:=EMA(0.667*REF(VARB,1)+0.333*VARB,2);
IF(VARB>=40,10,0);
DRAWTEXT(CROSS(SK,SD),SK+18,'始'),colorred;
DRAWTEXT(CROSS(SD,SK),SD-10,'终'),colorgreen;
|
