副图公式源码支持: 手机/电脑
GUA1:=(CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
GUA2:=SMA(GUA1,3,1);
小牛:=SMA(GUA2,2,1);
大牛:=SMA(小牛,5,1);
DRAWBAND(大牛,RGB(0,104,154),小牛,RGB(255,0,0));
STICKLINE(小牛>=大牛,大牛,小牛,3,0),COLOR000085;
STICKLINE(小牛<大牛,大牛,小牛,3,0),COLOR324800;
DRAWTEXT(CROSS(大牛,小牛) AND 小牛>70,50,'卖'),COLORGREEN;
GUA3:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*200-60;
小马:SMA(GUA3,3,1),COLORYELLOW;
大马:=SMA(小马,3,1),COLORRED;
DRAWBAND(大马,RGB(0,128,0),小马,RGB(255,97,0));
DRAWTEXT(CROSS(大马,小马)AND 小马>78,小马,'←快卖');
AF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(AF,9);
MACD:=1000* (2*(AF-DEA))/EMA(C,30);
GUPA:=EMA(REF(CLOSE,1),4);
GUP1:=(SMA(MAX(CLOSE-GUPA,0),6,1)/SMA(ABS(CLOSE-GUPA),6,1)*100);
GUP2:=FILTER(MACD<0 AND MACD>REF(MACD,1) AND GUP1<20,5);
GUP3:=CROSS(GUP1,90);
准备:IF(GUP1<3.5,15,0),COLORCYAN,LINETHICK2;
DRAWTEXT(GUP1<3.5,7,'准备'),COLORCYAN;
买进:IF(GUP2,20,0),COLORMAGENTA,LINETHICK3;
DRAWTEXT(GUP2,10,'买进'),COLORRED;
GUP4:=LLV(LOW,10);
GUP5:=HHV(H,25);
GUP6:=EMA((C-GUP4)/(GUP5-GUP4)*4,4);
DRAWTEXT(CROSS(3.5,GUP6),110,'急卖');
致富:STICKLINE(CROSS(GUP6,0.3),-50,-30,3,0), COLOR00AAFF,LINETHICK1;
STICKLINE(CROSS(GUP6,0.3),-40,-30,3,0),COLORRED,LINETHICK1;
DRAWTEXT(CROSS(GUP6,0.3),-45,'致富'),COLORMAGENTA;
发家:STICKLINE(CROSS(3.5,GUP6),100,120,2,0), COLORRED,LINETHICK2;
STICKLINE(CROSS(3.5,GUP6),110,120,2,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(3.5,GUP6),90,'发家'),COLORYELLOW;
马影:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)
-LLV(LOW,27))*100,5,1),3,1);
牛飞:IF(马影<=10,-20,-40),COLOR0000FF,LINETHICK2;
选股公式源码
{选股公式一:致富}
GUP4:=LLV(LOW,10);
GUP5:=HHV(H,25);
GUP6:=EMA((C-GUP4)/(GUP5-GUP4)*4,4);
{致富:STICKLINE(CROSS(GUP6,0.3),-50,-30,3,0), COLOR00AAFF,LINETHICK1;
STICKLINE(CROSS(GUP6,0.3),-40,-30,3,0),COLORRED,LINETHICK1;
DRAWTEXT(CROSS(GUP6,0.3),-45,'致富'),COLORMAGENTA;}
致富:CROSS(GUP6,0.3);
{选股公式二:准备}
GUPA:=EMA(REF(CLOSE,1),4);
GUP1:=(SMA(MAX(CLOSE-GUPA,0),6,1)/SMA(ABS(CLOSE-GUPA),6,1)*100);
{准备:IF(GUP1<3.5,15,0),COLORCYAN,LINETHICK2;
DRAWTEXT(GUP1<3.5,7,'准备'),COLORCYAN;}
准备:GUP1<3.5;
{选股公式三:买进}
AF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(AF,9);
MACD:=1000* (2*(AF-DEA))/EMA(C,30);
GUPA:=EMA(REF(CLOSE,1),4);
GUP1:=(SMA(MAX(CLOSE-GUPA,0),6,1)/SMA(ABS(CLOSE-GUPA),6,1)*100);
GUP2:=FILTER(MACD<0 AND MACD>REF(MACD,1) AND GUP1<20,5);
{买进:IF(GUP2,20,0),COLORMAGENTA,LINETHICK3;
DRAWTEXT(GUP2,10,'买进'),COLORRED;}
买进:GUP2; |