副图公式源码支持 手机/电脑
GUA1:=5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLORYELLOW;
GUA2:=EMA(MA(GUA1,5),3),LINETHICK0,COLORBLUE;
STICKLINE(GUA1>=GUA2,GUA1,GUA2,5,0),COLORRED;
STICKLINE(GUA1<GUA2,GUA1,GUA2,5,0),COLORGREEN;
STICKLINE(GUA1>108 AND GUA1>=GUA2,GUA1,108,6,0),COLORFF0000;
STICKLINE(GUA2>108 AND GUA1<GUA2,GUA2,108,6,0),COLORWHITE;
STICKLINE(GUA1<0 AND GUA1<GUA2,GUA1,0,6,0),COLORF0F000;
STICKLINE(GUA2<0 AND GUA1>GUA2,GUA2,0,6,0),COLORYELLOW;
底线:5,LINETHICK2,COLOR00FFFF;
抄底:IF(CROSS(GUA1,底线),60,0),LINETHICK2,STICK,COLORRED;
DRAWTEXT(抄底,50,'抄底'),COLORRED;
顶线:108,LINETHICK2,COLORFF9D00;
逃顶:IF(CROSS(顶线,GUA1),1,0),LINETHICK0,STICK,COLORFF9D00;
STICKLINE(CROSS(顶线,GUA1),90,108,3,0),COLORFF9D00;
DRAWTEXT(CROSS(顶线,GUA1),85,'逃顶'),COLORFF9D00;
选股公式源码
{选股公式:抄底}
GUA1:=5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLORYELLOW;
GUA2:=EMA(MA(GUA1,5),3),LINETHICK0,COLORBLUE;
底线:=5,LINETHICK2,COLOR00FFFF;
抄底:CROSS(GUA1,底线),COLORRED;
{卖出公式:逃顶}
GUA1:=5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLORYELLOW;
GUA2:=EMA(MA(GUA1,5),3),LINETHICK0,COLORBLUE;
顶线:=108,LINETHICK2,COLORFF9D00;
逃顶:CROSS(顶线,GUA1),COLORFF9D00; |