副图公式 源码支持手机/电脑
GUP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
GUP2:=SMA(SMA(GUP1,3,1),3,1)/28.57;
GUP3:=EMA(GUP2,5);
GUP4:=3*GUP2-2*GUP3;
GUP5:=CROSS(GUP4,GUP2) AND GUP2<2.1 AND CLOSE>OPEN;
STICKLINE(GUP5,82,0,0.005,0),COLORRED;
DRAWICON(GUP5>0,85,1),COLORYELLOW;
GUP7:=(2*CLOSE+HIGH+LOW)/4;
GUP8:=LLV(LOW,13);
GUP9:=HHV(HIGH,13);
GUP10:=EMA((GUP7-GUP8)/(GUP9-GUP8)*100,13);
GUP11:=EMA(0.667*REF(GUP10,1)+0.333*GUP10,2);
STICKLINE(GUP10>GUP11,GUP10,GUP11,3,0),COLOR0055AA,LINETHICK3;
STICKLINE(GUP10>GUP11,GUP10,GUP11,2.8,0),COLOR0066BB,LINETHICK3;
STICKLINE(GUP10>GUP11,GUP10,GUP11,2.5,0),COLOR0077CC,LINETHICK3;
STICKLINE(GUP10>GUP11,GUP10,GUP11,2.2,0),COLOR0088DD,LINETHICK3;
STICKLINE(GUP10>GUP11,GUP10,GUP11,1.7,0),COLOR0099EE,LINETHICK3;
STICKLINE(GUP10>GUP11,GUP10,GUP11,1.2,0),COLOR00AAFF,LINETHICK3;
STICKLINE(GUP10>GUP11,GUP10,GUP11,0.7,0),COLOR00CCFF,LINETHICK3;
STICKLINE(GUP10>GUP11,GUP10,GUP11,0.2,0),COLORYELLOW,LINETHICK3;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,3,0),COLOR990099,LINETHICK3;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,2.8,0),COLOR990088,LINETHICK3;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,2.5,0),COLOR990077,LINETHICK3;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,2.2,0),COLOR990066,LINETHICK3;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,1.7,0),COLOR990055,LINETHICK3;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,1.2,0),COLORBB00BB,LINETHICK3;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,0.7,0),COLORDD00DD,LINETHICK3;
STICKLINE(GUP10<=GUP11,GUP10,GUP11,0.2,0),COLORMAGENTA,LINETHICK3;
DRAWTEXT(GUP5,78,' 买入'),COLORRED;
选股公式源码
{选股公式:买入}
GUP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
GUP2:=SMA(SMA(GUP1,3,1),3,1)/28.57;
GUP3:=EMA(GUP2,5);
GUP4:=3*GUP2-2*GUP3;
GUP5:=CROSS(GUP4,GUP2) AND GUP2<2.1 AND CLOSE>OPEN;
GUP7:=(2*CLOSE+HIGH+LOW)/4;
GUP8:=LLV(LOW,13);
GUP9:=HHV(HIGH,13);
GUP10:=EMA((GUP7-GUP8)/(GUP9-GUP8)*100,13);
买入:GUP5;
|