SS:=(MA(CLOSE,5));
DD:=(MA(CLOSE,13));
GG:=(MA(CLOSE,21));
能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,2,1) * 1.5)));
VAR3C:=EMA(能量线,1);
VAR4C:=REF(能量线,1);
STICKLINE(((VAR3C > VAR4C)),VAR3C,VAR4C,5,8),colorFFFF;
多:=EMA(CLOSE,3);
空:=EMA(CLOSE,5);
均衡:EMA(空,5),COLORWHITE;
中轨:HHV(MA(HIGH,3),3),COLORGREEN,LINETHICK2;
趋势:LLV(MA(HIGH,3),1),COLORRED,LINETHICK2;
varA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
varB:=EMA(0.667*REF(varA,1)+0.333*varA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(varA>=varB AND varA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'买入');
varC:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
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;
var4:=FILTER(IF(COUNT(var3<20,5)>=1 AND COUNT(var1=LLV(var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0),5);
DRAWICON(var4,LOW,1);
var5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND CLOSE>REF(CLOSE,1),11);
var6:=REF(CLOSE,1);
var7:=SMA(MAX(CLOSE-var6,0),6,1)/SMA(ABS(CLOSE-var6),6,1)*100;
{技术指标公式:H主图 缺省周期:日线}
M1: MA(CLOSE,5),COLORMAGENTA;
M2:= MA(CLOSE,10);
M3:= MA(CLOSE,30);
M4: MA(CLOSE,30),COLORWHITE,linethick2;
Var1:=1;
Var2:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
Var3:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
Var4:=REF(Var2,1)<-20 AND Var3;
Var5:=REF(Var2,1)<-20 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
Var6:=FILTER(Var4 OR Var5,3);
Var7:=OPEN>CLOSE AND HIGH-IF(CLOSE>OPEN,CLOSE,OPEN)>IF(OPEN<CLOSE,OPEN,CLOSE)-LOW;
Var8:=REF(Var2,1)>ABS(-20) AND Var7;
Var9:=REF(Var2,1)>ABS(-20) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
VarA:=FILTER(Var8 OR Var9,3);
VarB:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
VarC:=REF(Var2,1)<-13 AND Var3;
VarD:=REF(Var2,1)<-13 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
VarE:=FILTER(VarC OR VarD,3);
VarF:=OPEN>CLOSE AND HIGH-IF(CLOSE>OPEN,CLOSE,OPEN)>IF(OPEN<CLOSE,OPEN,CLOSE)-LOW;
Var10:=REF(Var2,1)>ABS(-13) AND Var7;
Var11:=REF(Var2,1)>ABS(-13) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
Var12:=FILTER(Var10 OR Var11,3);
DRAWICON(Var6*Var1>0,LOW,1);
DRAWICON(VarA*Var1>0,HIGH,2);
DRAWTEXT(SYSPARAM(2)=BARSCOUNT(CLOSE),CLOSE,BLKNAME),color66CCCC,align5,COLORMAGENTA;
DRAWTEXT((SYSPARAM(2) = BARPOS),CLOSE,('证券代码:' + STKLABEL)),ALIGN4,colorFF,Linethick4,COLORMAGENTA; |