副图公式源码支持 手机/电脑
生死线:MA(CLOSE,26),COLORRED,LINETHICK2;
STICKLINE(C>=生死线 AND C>=O,H,L,0,1),COLORRED;
STICKLINE(C>=生死线 AND C>=O,C,O,2.5,0),COLORRED;
多头:EMA(C,1.5),COLOR0000CC;
空头:EMA(C,5),COLORMAGENTA;
均衡:EMA(空头,5),COLORGREEN;
GUPF1:=COUNT(CROSS(多头,均衡),2)=1;
GUPF2:=COUNT(CROSS(空头,均衡),2)=1;
抄:=FILTER(GUPF1 AND GUPF2,2);
DRAWTEXT(抄,均衡*0.98,'↖抄底'),COLORYELLOW;
MTM:=CLOSE-REF(CLOSE,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
DY:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,2.5,0),COLORRED;
STICKLINE(ZDF<-9.8,O,C,2.5,0),COLORBLUE;
DRAWTEXT_FIX(1,0.00,0.08,0,'白柱买,黄柱加,蓝柱跌,绿柱顶,红柱强,红蓝调')COLORWHITE;
GUP1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
GUP2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
GUP3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(GUP2,MA(GUP3,6)),(LOW * 0.998),1);
DRAWICON(CROSS(MA(GUP3,6),GUP1),(HIGH * 1.013),9);
DRAWTEXT(CROSS(GUP2,MA(GUP3,6)),(LOW * 0.984),'↖杀入 '),COLOR4440FF;
DRAWTEXT(CROSS(MA(GUP3,6),GUP1),(HIGH * 1.05),'卖出'),COLORGREEN;
GUPE1:=EMA(C,3);
GUPE2:=EMA(C,5);
GUPE3:=EMA(C,10);
GUP4:=EMA(C,20);
GUP5:=EMA(C,30);
GUP6:=(GUP2+GUP3+GUP4+GUP5)/4;
GUP7:=(GUP6-REF(GUP6,15))/REF(GUP6,15)*100;
GUP8:=(GUP6-REF(GUP6,15))/REF(GUP6, 15)*100;
GUP9:=EMA(GUP7,8);
STICKLINE(GUP7<1*REF(GUP7,1),H,L,0,1),COLORBLUE;
STICKLINE(GUP7<1*REF(GUP7,1),O,C,2.5,1),COLORBLUE;
STICKLINE(GUP7<1*REF(GUP7,1) AND C<O,O,C,2.5,0),COLORBLACK;
STICKLINE(GUP7<1*REF(GUP7,1) AND C<O,O,C,2.3,0),COLORBLUE;
STICKLINE(GUP7>1*REF(GUP7,1),H,L,0,1),COLORRED;
STICKLINE(GUP7>1*REF(GUP7,1),O,C,2.5,1),COLORRED;
STICKLINE(GUP7>1*REF(GUP7,1) AND C<O,O,C,2.5,0),COLOR0000DD;
STICKLINE(GUP7<1*REF(GUP7,1) AND GUP9>1*REF(GUP9,1),H,L,0,1),COLORGREEN;
STICKLINE(GUP7<1*REF(GUP7,1) AND GUP9>1*REF(GUP9,1),O,C,2.5,1),COLORGREEN;
STICKLINE(GUP7<1*REF(GUP7,1) AND GUP9>1*REF(GUP9,1) AND C<O,O,C,2.5,0),COLORGREEN;
买:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买条件:=CROSS(C,买) AND 买>REF(买,1);
STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(买条件,O,C,2.5,0),COLORWHITE,LINETHICK2;
加:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加条件:=CROSS(C,加) AND 加>REF(加,1);
STICKLINE(加条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加条件,O,C,2.5,0),COLORYELLOW,LINETHICK2;
选股公式源码
{选股公式一:杀入}
GUP1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
GUP2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
GUP3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
{DRAWICON(CROSS(GUP2,MA(GUP3,6)),(LOW * 0.998),1);
DRAWTEXT(CROSS(GUP2,MA(GUP3,6)),(LOW * 0.984),'↖杀入 '),COLOR4440FF;}
杀入:CROSS(GUP2,MA(GUP3,6));
{选股公式二:抄底}
多头:=EMA(C,1.5),COLOR0000CC;
空头:=EMA(C,5),COLORMAGENTA;
均衡:=EMA(空头,5),COLORGREEN;
GUPF1:=COUNT(CROSS(多头,均衡),2)=1;
GUPF2:=COUNT(CROSS(空头,均衡),2)=1;
抄:=FILTER(GUPF1 AND GUPF2,2);
{DRAWTEXT(抄,均衡*0.98,'↖抄底'),COLORYELLOW;}
抄底:抄;
{选股公式三:白柱}
GUPE1:=EMA(C,3);GUPE2:=EMA(C,5);GUPE3:=EMA(C,10);
GUP4:=EMA(C,20);GUP5:=EMA(C,30);
买:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买条件:=CROSS(C,买) AND 买>REF(买,1);
{STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(买条件,O,C,2.5,0),COLORWHITE,LINETHICK2;}
白柱:买条件;
{选股公式四:黄柱}
MTM:=CLOSE-REF(CLOSE,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
DY:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
LC:=REF(CLOSE,1);
加:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加条件:=CROSS(C,加) AND 加>REF(加,1);
{STICKLINE(加条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加条件,O,C,2.5,0),COLORYELLOW,LINETHICK2;}
黄柱:加条件; |