副图公式源码支持 手机/电脑
一周:MA(CLOSE,5);半月:MA(CLOSE,10);
一月:MA(CLOSE,20);半季:MA(CLOSE,30);
一季:MA(CLOSE,60);半年:MA(CLOSE,120);
一年:MA(CLOSE,240);一年半:MA(CLOSE,360);
N:=5;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;
VAR2:=8,COLORGREEN,LINETHICK0;
JC:=CROSS(VAR1,VAR2);
DRAWTEXT(JC,LOW* 0.97,'建仓'),COLORRED;
GDIF:=(EMA(CLOSE,6)-EMA(CLOSE,13))*100;
GDEA:=EMA(GDIF,5);
GZ:=CROSS(GDIF,GDEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
DRAWTEXT(GZ,LOW* 0.93,'共振'),COLORRED;
选股公式源码
{选股公式一:共振}
GDIF:=(EMA(CLOSE,6)-EMA(CLOSE,13))*100;
GDEA:=EMA(GDIF,5);
GZ:=CROSS(GDIF,GDEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
{DRAWTEXT(GZ,LOW* 0.93,'共振'),COLORRED;}
共振:GZ;
{选股公式二:建仓}
N:=5;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;
VAR2:=8,COLORGREEN,LINETHICK0;
JC:=CROSS(VAR1,VAR2);
{DRAWTEXT(JC,LOW* 0.97,'建仓'),COLORRED;}
建仓:JC; |