第一部分 副图公式 手机/电脑
生死线: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;
CAIHF1:=COUNT(CROSS(多头,均衡),2)=1;
CAIHF2:=COUNT(CROSS(空头,均衡),2)=1;
抄:=FILTER(CAIHF1 AND CAIHF2,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;
CAIH1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
CAIH2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
CAIH3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(CAIH2,MA(CAIH3,6)),(LOW * 0.998),1);
DRAWICON(CROSS(MA(CAIH3,6),CAIH1),(HIGH * 1.013),9);
DRAWTEXT(CROSS(CAIH2,MA(CAIH3,6)),(LOW * 0.984),'↖杀入 '),COLOR4440FF;
DRAWTEXT(CROSS(MA(CAIH3,6),CAIH1),(HIGH * 1.05),'卖出'),COLORGREEN;
CAIHE1:=EMA(C,3);
CAIHE2:=EMA(C,5);
CAIHE3:=EMA(C,10);
CAIH4:=EMA(C,20);
CAIH5:=EMA(C,30);
CAIH6:=(CAIH2+CAIH3+CAIH4+CAIH5)/4;
CAIH7:=(CAIH6-REF(CAIH6,15))/REF(CAIH6,15)*100;
CAIH8:=(CAIH6-REF(CAIH6,15))/REF(CAIH6, 15)*100;
CAIH9:=EMA(CAIH7,8);
STICKLINE(CAIH7<1*REF(CAIH7,1),H,L,0,1),COLORBLUE;
STICKLINE(CAIH7<1*REF(CAIH7,1),O,C,2.5,1),COLORBLUE;
STICKLINE(CAIH7<1*REF(CAIH7,1) AND C
STICKLINE(CAIH71*REF(CAIH7,1),H,L,0,1),COLORRED;
STICKLINE(CAIH7>1*REF(CAIH7,1),O,C,2.5,1),COLORRED;
STICKLINE(CAIH7>1*REF(CAIH7,1) AND C
STICKLINE(CAIH71*REF(CAIH9,1),H,L,0,1),COLORGREEN;
STICKLINE(CAIH71*REF(CAIH9,1),O,C,2.5,1),COLORGREEN;
STICKLINE(CAIH71*REF(CAIH9,1) AND C
买:=((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;
第二部分 选股公式 |