副图公式源码支持: 手机/电脑
N1:=50;N:=8;
80,COLORGREEN;
20,COLORRED;
LC:=REF(CLOSE,1);
GUP:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100,COLORYELLOW;
GUP1:IF(GUP<20,40,20),COLORRED;
GUP2:IF(GUP>80,60,80),COLORGREEN;
GUP3:STICKLINE(FILTER(REF(GUP,1)<20 AND GUP>REF(GUP,1),5),20,40,8,0),COLORRED;
GUP4:STICKLINE(FILTER(REF(GUP,1)>80 AND GUP<REF(GUP,1),5),60,80,8,0),COLORGREEN;
DRAWTEXT(FILTER(REF(GUP,1)<20 AND GUP>REF(GUP,1),5),40,'买进'),COLORRED;
DRAWTEXT(FILTER(REF(GUP,1)>80 AND GUP<REF(GUP,1),5),60,'卖出'),COLORGREEN;
GUP5:REF(CLOSE,1);
GUP6:SMA(MAX(CLOSE-GUP5,0),8,1)/SMA(ABS(CLOSE-GUP5),8,1)*100,COLORYELLOW;
GUP7:IF(CROSS(GUP6,15),20,0),STICK,LINETHICK1;
DRAWICON(GUP7>0,20,1);
DRAWTEXT(CROSS(GUP7,11),LOW,'→抄底'),COLOR00B7B4;
选股公式源码
{选股公式一:抄底}
GUP5:=REF(CLOSE,1);
GUP6:=SMA(MAX(CLOSE-GUP5,0),8,1)/SMA(ABS(CLOSE-GUP5),8,1)*100,COLORYELLOW;
GUP7:=IF(CROSS(GUP6,15),20,0),LINETHICK1;
抄底:CROSS(GUP7,11);
{选股公式二:买进}
N1:=50;N:=8;
LC:=REF(CLOSE,1);
GUP:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100,COLORYELLOW;
买进:FILTER(REF(GUP,1)<20 AND GUP>REF(GUP,1),5); |