副图公式源码支持 手机/电脑
GUP1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
GUP2:=VOL;
GUP3:=GUP1*GUP2;
阴线:ABS(SUM(IF(GUP3<0,GUP3,0),7)),DOTLINE,COLOR008000;
阳线:SUM(IF(GUP3>0,GUP3,0),7),DOTLINE,COLORRED;
空日:=BARSLAST(阳线>阴线),COLORLIBLUE;
多日:=BARSLAST(阳线<阴线),COLORLIMAGENTA;
空日*100000,COLORLIBLUE;
多日*100000,COLORLIMAGENTA;
DRAWBAND(多日*100000,RGB(200,50,200),0,RGB(50,50,200));
DRAWBAND(空日*100000,RGB(50,50,2000),0,RGB(200,50,20));
GUP15:=ABS(阴线-阳线);
GUP16:=49;
GUP17:=(阴线+阳线)/2;
GUP18:=STDP(MAX(阴线,阳线),GUP16);
GUP19:=STDP(MIN(阴线,阳线),GUP16);
GUP20:=WMA(GUP17,GUP16);
GUP21:=GUP20+1.618*GUP18;
GUP22:=GUP20-1.618*GUP19;
GUP23:=阳线>阴线 AND 阳线>=GUP20;
GUP24:=阴线>阳线 AND 阴线>=GUP20;
GUP25:=阳线>阴线 AND 阳线>GUP21;
GUP26:=阴线>阳线 AND 阴线>GUP21;
STICKLINE(GUP23,阳线,MAX(GUP20,阴线),6,0),COLORRED;
STICKLINE(GUP24,阴线,MAX(GUP20,阳线),6,0),COLORGREEN;
STICKLINE(GUP25,阳线,MAX(GUP21,阴线),6,0),COLORMAGENTA;
STICKLINE(GUP26,阴线,MAX(GUP21,阳线),6,0),COLORWHITE;
多头:IF(阳线>阴线,阳线,DRAWNULL),COLORRED,LINETHICK2;
空头:IF(阳线<阴线,阴线,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(阳线,阴线),阳线,'买'),COLORRED;
DRAWTEXT(CROSS(阴线,阳线),阳线,'卖'),COLORGREEN;
选股公式源码
{选股公式:买}
GUP1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,COLORWHITE;
GUP2:=VOL,COLORWHITE;
GUP3:=GUP1*GUP2,COLORWHITE;
阴线:=ABS(SUM(IF(GUP3<0,GUP3,0),7)),COLOR008000;
阳线:=SUM(IF(GUP3>0,GUP3,0),7),COLORRED;
GUP15:=ABS(阴线-阳线),COLORWHITE;
GUP16:=49,COLORWHITE;
GUP17:=(阴线+阳线)/2,COLORWHITE;
GUP18:=STDP(MAX(阴线,阳线),GUP16);
GUP19:=STDP(MIN(阴线,阳线),GUP16);
买:CROSS(阳线,阴线);
{卖出公式:卖}
GUP1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
GUP2:=VOL;
GUP3:=GUP1*GUP2;
阴线:=ABS(SUM(IF(GUP3<0,GUP3,0),7)),COLOR008000;
阳线:=SUM(IF(GUP3>0,GUP3,0),7),COLORRED;
GUP16:=49;
GUP17:=(阴线+阳线)/2;
GUP20:=WMA(GUP17,GUP16);
GUP23:=阳线>阴线 AND 阳线>=GUP20;
GUP24:=阴线>阳线 AND 阴线>=GUP20;
卖:CROSS(阴线,阳线); |