副图公式源码支持 手机/电脑
GUP1:3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1),3,1),COLORRED;
GUP2:3*SMA((CLOSE-LLV(LOW,125))/(HHV(HIGH,125)-LLV(LOW,125))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,125))/(HHV(HIGH,125)-LLV(LOW,125))*100,5,1),3,1),COLORLIBLUE;
GUP3:3*SMA((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100,5,1),3,1),COLORYELLOW;
GUP4:3*SMA((CLOSE-LLV(LOW,500))/(HHV(HIGH,500)-LLV(LOW,500))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,500))/(HHV(HIGH,500)-LLV(LOW,500))*100,5,1),3,1),COLORCYAN;
STICKLINE(GUP1>REF(GUP1,1) AND (C<REF(C,1) OR (C=REF(C,1) AND C<=O)),GUP1,0,5,0),COLORYELLOW;
STICKLINE(GUP1>REF(GUP1,1) AND (C>REF(C,1) OR (C=REF(C,1) AND C>=O)),GUP1,0,5,0),COLORRED;
STICKLINE(GUP1<REF(GUP1,1) AND (C>REF(C,1) OR (C=REF(C,1) AND C>=O)),GUP1,0,5,0),COLORWHITE;
STICKLINE(GUP1<REF(GUP1,1) AND (C<REF(C,1) OR (C=REF(C,1) AND C<=O)),GUP1,0,5,0),COLORGREEN;
买进区域:IF(GUP1<=10 AND GUP2<=10 AND GUP3<=10 AND GUP4<10,20,0);
买进:IF(C/REF(C,1)>=1.03 AND GUP1<=10 AND GUP2<=10 AND GUP3<=10 AND GUP4<10,50,0);
卖出区域:IF(GUP1>=90 AND GUP2>=90 AND GUP3>=90 AND GUP4>90,80,100);
选股公式源码
{选股公式一:买进}
GUP1:=3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1),3,1),COLORRED;
GUP2:=3*SMA((CLOSE-LLV(LOW,125))/(HHV(HIGH,125)-LLV(LOW,125))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,125))/(HHV(HIGH,125)-LLV(LOW,125))*100,5,1),3,1),COLORLIBLUE;
GUP3:=3*SMA((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100,5,1),3,1),COLORYELLOW;
GUP4:=3*SMA((CLOSE-LLV(LOW,500))/(HHV(HIGH,500)-LLV(LOW,500))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,500))/(HHV(HIGH,500)-LLV(LOW,500))*100,5,1),3,1),COLORCYAN;
买进:C/REF(C,1)>=1.03 AND GUP1<=10 AND GUP2<=10 AND GUP3<=10 AND GUP4<10;
{选股公式二:买进区域}
GUP1:=3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1),3,1),COLORRED;
GUP2:=3*SMA((CLOSE-LLV(LOW,125))/(HHV(HIGH,125)-LLV(LOW,125))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,125))/(HHV(HIGH,125)-LLV(LOW,125))*100,5,1),3,1),COLORLIBLUE;
GUP3:=3*SMA((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100,5,1),3,1),COLORYELLOW;
GUP4:=3*SMA((CLOSE-LLV(LOW,500))/(HHV(HIGH,500)-LLV(LOW,500))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,500))/(HHV(HIGH,500)-LLV(LOW,500))*100,5,1),3,1),COLORCYAN;
买进区域:GUP1<=10 AND GUP2<=10 AND GUP3<=10 AND GUP4<10; |