副图公式源码支持 手机/电脑
SHORT:=10;LONG:=50;
GUP1:=(CLOSE-MA(CLOSE,SHORT))/MA(CLOSE,SHORT)*100;
GUP2:=(CLOSE-LLV(LOW,LONG))/(HHV(HIGH,LONG)-LLV(LOW,LONG))*100;
GUP3:=SMA(GUP2,2,1);
顶线:100+(-ABS(GUP1)),COLORGREEN;
股价:SMA(GUP3,2,1);
底线:ABS(GUP1),COLORRED;
牛熊线:50,COLORFFAA00,LINETHICK3;
顶部:80;
底部:20;
买:STICKLINE(CROSS(股价,底线),3,20,2,0),COLORRED,LINETHICK1;
STICKLINE(CROSS(股价,底线),20,25,2,0),COLORLIRED,LINETHICK1;
DRAWTEXT(CROSS(股价,底线),30,' 买'),COLORFFFFCC;
卖:STICKLINE(CROSS(股价,顶线),70,90,2,0),COLORGREEN,LINETHICK1;
STICKLINE(CROSS(股价,顶线),90,99,2,0),COLORFF9900,LINETHICK1;
DRAWTEXT(CROSS(股价,顶线),70,' 卖'),COLORFFFFCC;
选股公式源码
{选股公式:买}
SHORT:=10;LONG:=50;
GUP1:=(CLOSE-MA(CLOSE,SHORT))/MA(CLOSE,SHORT)*100,COLORWHITE;
GUP2:=(CLOSE-LLV(LOW,LONG))/(HHV(HIGH,LONG)-LLV(LOW,LONG))*100,COLORWHITE;
GUP3:=SMA(GUP2,2,1),COLORWHITE;
顶线:=100+(-ABS(GUP1)),COLORGREEN,COLORWHITE;
股价:=SMA(GUP3,2,1),COLORWHITE;
底线:=ABS(GUP1),COLORRED,COLORWHITE;
牛熊线:=50,COLORFFAA00,LINETHICK3,COLORWHITE;
买:CROSS(股价,底线);
{卖出公式:卖}
SHORT:=10;LONG:=50;
GUP1:=(CLOSE-MA(CLOSE,SHORT))/MA(CLOSE,SHORT)*100;
GUP2:=(CLOSE-LLV(LOW,LONG))/(HHV(HIGH,LONG)-LLV(LOW,LONG))*100;
GUP3:=SMA(GUP2,2,1);
顶线:=100+(-ABS(GUP1)),COLORGREEN;
股价:=SMA(GUP3,2,1);
底线:=ABS(GUP1),COLORRED;
牛熊线:=50,COLORFFAA00,LINETHICK3;
卖:CROSS(股价,顶线);
|