MK1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
MK2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
MK3:=SMA(MK2,9,1);
MK4:=SMA(MK3,3,1);
AA:=3*MK3-2*MK4;
MK5:=AA>1*REF(AA,1);
MK6:=LLVBARS(LOW,50);
MK7:=SUM(VOL,MK6);
AP1:EMA(MK3,3),COLORFFDDCC;
AP2:EMA(AP1,3),COLORFFBBCC;
AP3:EMA(AP2,3),COLORFF99CC;
AP4:EMA(AP3,3),COLORFF55CC;
AP5:EMA(AP4,3),COLORFF33CC;
AP6:EMA(AP5,3),COLORFF11CC;
AP7:EMA(AP6, 3),COLORMAGENTA;
AP8:EMA(AP7,3),COLOR1010FF;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
KDB:=IF(COUNT(VAR3<=14,2),30,0);
VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VARB:=100-ABS(VARA);
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=VAR11-CLOSE;
VAR13:=REF(CLOSE,1);
VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;
VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;
VAR16:=BARSCOUNT(CLOSE);
VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
买入:CROSS(AP1,AP3) AND AP1<18 AND C>REF(C,1)*1.01 AND C<REF(C,1)*1.096,COLORYELLOW,NODRAW;
DRAWICON(买入,AP1+0.2,1);
{
选股公式:
MK2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
MK3:=SMA(MK2,9,1);
AP1:=EMA(MK3,3);
AP2:=EMA(AP1,3);
AP3:=EMA(AP2,3);
CROSS(AP1,AP3) AND AP1<18 AND C>REF(C,1)*1.01 AND C<REF(C,1)*1.096;
}