副图公式源码支持 手机/电脑
N:=3;
GUP0:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
GUP1:=MA(GUP0,3),COLORMAGENTA,LINETHICK1;
GUP2:=REF(LOW,5)<REF(GUP1,5) OR REF(LOW,4)<REF(GUP1,4) OR REF(LOW,3)<REF(GUP1,3) OR REF(LOW,2)<REF(GUP1,2) OR REF(LOW,1)<REF(GUP1,1);
GUP3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
GUP4:=GUP3>9.85 AND NOT(CLOSE=OPEN);
GUP5:=SUM(GUP4,N)<2 AND GUP4 AND CLOSE>GUP1 AND GUP2;
GUP6:=REF(CLOSE,BARSLAST(GUP5));
STICKLINE(CLOSE,GUP6,GUP6,4,0),COLORYELLOW;
GUP7:=GUP4 AND LOW<GUP1*1.05;
DRAWICON(GUP5 AND GUP7,LOW*0.98,1);
GUP8:=LOW>LLV(LOW,10) AND GUP4 AND HIGH<GUP1;
DRAWICON(GUP8 AND GUP7,LOW*0.9,38);
STICKLINE(GUP3>9.85,OPEN,CLOSE,3.2,0),COLORRED;
STICKLINE(GUP7,OPEN,CLOSE,1,0),COLORYELLOW;
选股公式源码
{选股公式一:红箭头图标}
N:=3;
GUP0:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
GUP1:=MA(GUP0,3),COLORMAGENTA,LINETHICK1;
GUP2:=REF(LOW,5)<REF(GUP1,5) OR REF(LOW,4)<REF(GUP1,4) OR REF(LOW,3)<REF(GUP1,3) OR REF(LOW,2)<REF(GUP1,2) OR REF(LOW,1)<REF(GUP1,1);
GUP3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
GUP4:=GUP3>9.85 AND NOT(CLOSE=OPEN);
GUP5:=SUM(GUP4,N)<2 AND GUP4 AND CLOSE>GUP1 AND GUP2;
GUP6:=REF(CLOSE,BARSLAST(GUP5));
GUP7:=GUP4 AND LOW<GUP1*1.05;
红箭头图标:GUP5 AND GUP7;
{选股公式二:红三角图标}
N:=3;
GUP0:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
GUP1:=MA(GUP0,3),COLORMAGENTA,LINETHICK1;
GUP2:=REF(LOW,5)<REF(GUP1,5) OR REF(LOW,4)<REF(GUP1,4) OR REF(LOW,3)<REF(GUP1,3) OR REF(LOW,2)<REF(GUP1,2) OR REF(LOW,1)<REF(GUP1,1);
GUP3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
GUP4:=GUP3>9.85 AND NOT(CLOSE=OPEN);
GUP5:=SUM(GUP4,N)<2 AND GUP4 AND CLOSE>GUP1 AND GUP2;
GUP6:=REF(CLOSE,BARSLAST(GUP5));
GUP7:=GUP4 AND LOW<GUP1*1.05;
GUP8:=LOW>LLV(LOW,10) AND GUP4 AND HIGH<GUP1;
红三角图标:GUP8 AND GUP7; |