副图公式源码支持 手机/电脑
GUPA:=EMA(CLOSE,9);
GUPB:=((GUPA-EMA(CLOSE,5))<0);
GUPC:=((GUPA-EMA(CLOSE,5))>0);
GUPD:=BARSLAST(GUPB);
GUPE:=BARSLAST(GUPC);
GUPF:=IF((GUPE>0),(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,0);
GUP0:=SUM(GUPF,0);
GUP1:=IF((GUPD>0),(0- 2),0);
GUP2:=IF((GUPE>0),SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)* 100,GUPE),0);
GUP3:=GUP2/GUPE;
GUP5:=EMA(EMA(EMA(CLOSE,3),3),3);
多头(GUP5-REF(GUP5,1))+GUP5),COLOR0000FF,LINETHICK2;
空头:MA(多头,15),COLORFF49FF;
IF(多头>REF(多头,1),多头,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT;
IF(空头>REF(空头,1),空头,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT;
STICKLINE((多头>空头),空头,多头,0,0),COLOR00FFFF;
STICKLINE((空头>多头),多头,空头,0,0),COLORFF0000;
DRAWTEXT(CROSS(空头,多头),多头*1.01,'↓卖'),COLOR00FF00;
DRAWTEXT(CROSS(多头,空头),空头*0.99,'↑买'),COLOR0000FF;
DRAWICON(((REF(GUP1,1)=(0- 2)) AND (GUP1=0)),LOW,1);
DRAWICON(((REF(GUPE,1)>0) AND (GUPE=0)),HIGH,2);
选股公式源码
{选股公式一:买}
GUPA:=EMA(CLOSE,9);
GUPB:=((GUPA-EMA(CLOSE,5))<0);
GUPC:=((GUPA-EMA(CLOSE,5))>0);
GUPD:=BARSLAST(GUPB);
GUPE:=BARSLAST(GUPC);
GUPF:=IF((GUPE>0),(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,0);
GUP0:=SUM(GUPF,0);
GUP1:=IF((GUPD>0),(0- 2),0);
GUP2:=IF((GUPE>0),SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)* 100,GUPE),0);
GUP3:=GUP2/GUPE;
GUP5:=EMA(EMA(EMA(CLOSE,3),3),3);
多头:=((GUP5-REF(GUP5,1))+GUP5),COLOR0000FF,LINETHICK2;
空头:=MA(多头,15),COLORFF49FF;
买:CROSS(多头,空头);
{选股公式二:红箭头图标}
GUPA:=EMA(CLOSE,9);
GUPB:=((GUPA-EMA(CLOSE,5))<0);
GUPC:=((GUPA-EMA(CLOSE,5))>0);
GUPD:=BARSLAST(GUPB);
GUPE:=BARSLAST(GUPC);
GUPF:=IF((GUPE>0),(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,0);
GUP0:=SUM(GUPF,0);
GUP1:=IF((GUPD>0),(0- 2),0);
红箭头图标(REF(GUP1,1)=(0- 2)) AND (GUP1=0));
|