副图公式源码支持 手机/电脑
生死线: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;
CHPF1:=COUNT(CROSS(多头,均衡),2)=1;
CHPF2:=COUNT(CROSS(空头,均衡),2)=1;
抄:=FILTER(CHPF1 AND CHPF2,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;
CHP1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
CHP2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
CHP3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(CHP2,MA(CHP3,6)),(LOW * 0.998),1);
DRAWICON(CROSS(MA(CHP3,6),CHP1),(HIGH * 1.013),9);
DRAWTEXT(CROSS(CHP2,MA(CHP3,6)),(LOW * 0.984),'↖杀入 '),COLOR4440FF;
DRAWTEXT(CROSS(MA(CHP3,6),CHP1),(HIGH * 1.05),'卖出'),COLORGREEN;
CHPE1:=EMA(C,3);
CHPE2:=EMA(C,5);
CHPE3:=EMA(C,10);
CHP4:=EMA(C,20);
CHP5:=EMA(C,30);
CHP6:=(CHP2+CHP3+CHP4+CHP5)/4;
CHP7:=(CHP6-REF(CHP6,15))/REF(CHP6,15)*100;
CHP8:=(CHP6-REF(CHP6,15))/REF(CHP6, 15)*100;
CHP9:=EMA(CHP7,8);
STICKLINE(CHP7<1*REF(CHP7,1),H,L,0,1),COLORBLUE;
STICKLINE(CHP7<1*REF(CHP7,1),O,C,2.5,1),COLORBLUE;
STICKLINE(CHP7<1*REF(CHP7,1) AND C<O,O,C,2.5,0),COLORBLACK;
STICKLINE(CHP7<1*REF(CHP7,1) AND C<O,O,C,2.3,0),COLORBLUE;
STICKLINE(CHP7>1*REF(CHP7,1),H,L,0,1),COLORRED;
STICKLINE(CHP7>1*REF(CHP7,1),O,C,2.5,1),COLORRED;
STICKLINE(CHP7>1*REF(CHP7,1) AND C<O,O,C,2.5,0),COLOR0000DD;
STICKLINE(CHP7<1*REF(CHP7,1) AND CHP9>1*REF(CHP9,1),H,L,0,1),COLORGREEN;
STICKLINE(CHP7<1*REF(CHP7,1) AND CHP9>1*REF(CHP9,1),O,C,2.5,1),COLORGREEN;
STICKLINE(CHP7<1*REF(CHP7,1) AND CHP9>1*REF(CHP9,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;
选股公式源码
{选股公式一:杀入}
CHP1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
CHP2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
CHP3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
{DRAWICON(CROSS(CHP2,MA(CHP3,6)),(LOW * 0.998),1);
DRAWTEXT(CROSS(CHP2,MA(CHP3,6)),(LOW * 0.984),'↖杀入 '),COLOR4440FF;}
杀入:CROSS(CHP2,MA(CHP3,6));
{选股公式二:抄底}
多头:=EMA(C,1.5),COLOR0000CC;
空头:=EMA(C,5),COLORMAGENTA;
均衡:=EMA(空头,5),COLORGREEN;
CHPF1:=COUNT(CROSS(多头,均衡),2)=1;
CHPF2:=COUNT(CROSS(空头,均衡),2)=1;
抄:=FILTER(CHPF1 AND CHPF2,2);
{DRAWTEXT(抄,均衡*0.98,'↖抄底'),COLORYELLOW;}
抄底:抄;
{选股公式三:白柱}
CHPE1:=EMA(C,3);CHPE2:=EMA(C,5);CHPE3:=EMA(C,10);
CHP4:=EMA(C,20);CHP5:=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;}
黄柱:加条件; |