副图公式源码 支持: 手机/电脑
GUA1:EMA(CLOSE,5),COLORRED,LINETHICK2;
GUA2:EMA(SLOPE(CLOSE,21)*20+CLOSE,42),LINETHICK2;
GUA3:=CROSS(GUA1,GUA2);
DRAWTEXT(GUA3,LOW-0.1,'←买进'),COLORRED,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
G:=95;
DRAWTEXT(CROSS(J,D),L*0.999,'←加仓'),COLOR00FFFF,LINETHICK2;
GUP29:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GUP2A:=SMA(GUP29,5,1);
GUP2B:=SMA(GUP2A,10,1);
GUP2C:=CROSS(GUP2B,GUP2A);
GUP2D:=GUP2B>80 OR GUP2A>80;
GUP2E:=GUP2C AND GUP2D;
GUP33:=HIGH;
GUP34:=LOW;
最后出逃:STICKLINE(GUP2E,GUP33,GUP34,4,0);
DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),HIGH*1.03,'-收手'),COLORYELLOW;
GUB6:=REF(CLOSE,1);
GUB7:=SMA(MAX(CLOSE-GUB6,0),7,1)/SMA(ABS(CLOSE-GUB6),7,1)*100;
GUB8:=CROSS(79,GUB7);
GUB9:=FILTER(GUB8,4);
DRAWTEXT(GUB9,HIGH*1.02,'←出货'),COLOR9000F5;
选股公式源码
{卖出公式一:出货}
GUB6:=REF(CLOSE,1);
GUB7:=SMA(MAX(CLOSE-GUB6,0),7,1)/SMA(ABS(CLOSE-GUB6),7,1)*100;
GUB8:=CROSS(79,GUB7);
GUB9:=FILTER(GUB8,4);
出货:GUB9;
{卖出公式二:收手}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
G:=95;
收手:CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20));
{卖出公式三:最后出逃}
GUP29:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GUP2A:=SMA(GUP29,5,1);
GUP2B:=SMA(GUP2A,10,1);
GUP2C:=CROSS(GUP2B,GUP2A);
GUP2D:=GUP2B>80 OR GUP2A>80;
GUP2E:=GUP2C AND GUP2D;
最后出逃:GUP2E;
{选股公式一:买进}
GUA1:=EMA(CLOSE,5),COLORRED,LINETHICK2;
GUA2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42),LINETHICK2;
GUA3:=CROSS(GUA1,GUA2);
买进:GUA3;
{选股公式二:加仓}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
G:=95;
加仓:CROSS(J,D);
|