通達信財神到買入紅K線持股指標(biāo)公式
- 指標(biāo)類別: 通達信指標(biāo)公式
- 授權(quán)方式: 免費版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 趨勢
- 畫線方法: 主圖
- 日期:2020-12-12 來源:互聯(lián)網(wǎng)
通達信財神到買入紅K線持股指標(biāo)公式:
強勢線:MA(CLOSE,6)COLORRED,LINETHICK2;
EMA13:EMA(C,13),COLORWHITE,LINETHICK2;
EMA34:EMA(C,34),COLORYELLOW;
EMA55:EMA(C,55),COLORFF00FF;
波谷:IF(BARSLAST(FILTER((FILTER(REF(C,10)=HHV(C,2*10+1),10),10+1),20))>BARSLAST(FILTER((FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10)) AND NOT(FILTER((FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10))>=1,REF(C,BARSLAST(FILTER((FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10))),DRAWNULL),COLOR00FFFF;
AR1:=EMA55>EMA34 AND EMA34>EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
AR6:=AR5 AND FILTER(AR5,10);
DRAWTEXT(AR6,L-0.09,'紅杏出墻'),COLORYELLOW;
{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;}
{STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF
(C,5)<REF(EMA55,5));
BR4:=BR1 AND BR2 AND BR3;
DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'螞蟻上樹'),COLOR00C5FF;
STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;
{STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;}
CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;
CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
CR5:=EMA55<=EMA55 AND EMA55>=REF(EMA55,1);
CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);
{STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;}
{STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}
DRAWTEXT(CR6,L-0.09,'紅衣俠女'),COLORF00FF0;
DR1:=EMA13>EMA34 AND EMA34<EMA55;
DR2:=BARSLAST(CROSS(C,EMA55) );
DR3:=H=HHV(H,DR2);
DR4:=BARSLAST(DR3);
DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;
DR6:=C>REF(C,1) ;
DR7:= DR1 AND DR5 AND DR6 ;
DR8:=DR7 AND FILTER(DR7 ,10);
DRAWTEXT(DR8,L-0.09,'黑客點擊'),COLORD6BA63;
{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;}
STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;
ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);
DRAWTEXT(ER,L-0.09,'均線互換'),COLOR0099FF;
{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;}
{STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);
DRAWTEXT(FR,L-0.09,'梅開二度'),COLORWHITE;
STICKLINE(FR,H,L,0.5,1),COLORWHITE;
{STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );
GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
DRAWTEXT(GR6 AND GR7,H+0.13,'見好就收!'),COLOR00FF00;
STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;
HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS
(C,EMA55){ AND CROSS(C,EMA120)};
DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三線推進'),COLORFFC8FF;
{STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF;
STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF;};
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
MA3:=EMA(CLOSE,3);
MA21:=EMA(CLOSE,21);
STICKLINE(CROSS(85,RSI) AND RSI<30,O,C,4,0),COLORYELLOW;
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(買線,賣線);
SEL:=CROSS(賣線,買線);
DRAWTEXT(SEL,HIGH*1.028,'跳崖'),COLORFF00FF,LINETHICK3;
STICKLINE(買線>=賣線,LOW,HIGH,1,0),COLORRED;
STICKLINE(買線>=賣線,CLOSE,OPEN,4.5,0),COLOR0000AA;
STICKLINE(買線>=賣線,CLOSE,OPEN,4,0),COLOR0000CC;
STICKLINE(買線>=賣線,CLOSE,OPEN,3,0),COLOR0000CC;
STICKLINE(買線>=賣線,CLOSE,OPEN,2,0),COLOR0000EE;
STICKLINE(買線<賣線,CLOSE,OPEN,4.5,0),COLORAAAA00;
STICKLINE(買線<賣線,CLOSE,OPEN,4,0),COLORBBBB00;
STICKLINE(買線<賣線,CLOSE,OPEN,3,0),COLORCCCC00;
STICKLINE(買線<賣線,CLOSE,OPEN,2,0),COLOREEEE00;
STICKLINE(買線<賣線,LOW,HIGH,1,0),COLORFFFF00;
STICKLINE( SEL,OPEN,CLOSE,5,0),COLORFF00FF;
STICKLINE( SEL,H,L,0,0),COLORFF00FF;
VAR52:=(2*CLOSE+HIGH+LOW)/4;
VAR54:=LLV(LOW,5);
VAR55:=HHV(HIGH,4);
SS:=EMA((VAR52-VAR54)/(VAR55-VAR54)*100,4);
ZZ:=EMA(0.667*REF(SS,1)+0.333*SS,2);
DRAWTEXT(CROSS(SS,ZZ) AND SS<30,LOW*0.98,'財神'),COLORYELLOW;
DRAWTEXT(CROSS(ZZ,SS) AND SS>70,HIGH*1.03,'財神走'),COLOR00FF00;
DRAWICON(CROSS(SS,ZZ) AND SS<30,LOW*0.98,4);
DRAWICON(CROSS(ZZ,SS) AND SS>70,HIGH*1.02,5);
STICKLINE(CROSS(ZZ,SS) AND SS>70,O,C,4,0),COLOR00FF00;
STICKLINE(CROSS(ZZ,SS) AND SS>70,H,L,0,0),COLOR00FF00;
STICKLINE(CROSS(SS,ZZ) AND SS<30,O,C,4,0),COLORYELLOW;
STICKLINE(CROSS(SS,ZZ) AND SS<30,H,L,0,0),COLORYELLOW;
VAR03:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR03)/VAR03;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR110:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR111:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR112:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR113:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR114:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR115:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR116:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR117:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR118:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR119:=EMA(CLOSE,2)-EMA(CLOSE,150);
買1:=VAR110;
買2:=(VAR111+VAR113+VAR115+VAR117);
賣1:=(VAR112+VAR114+VAR116+VAR118);
B:=IF(買1>0 OR 買2>0,LOW*0.99,1),CROSSDOT,LINETHICK3,COLORYELLOW;
S:=IF(賣1>0,HIGH*1.01,1),CROSSDOT,LINETHICK3,COLOR00FF00;
DRAWTEXT(買1>0 OR 買2>0,LOW*0.99,'財神到'),COLOR00FFFF;
DRAWTEXT(賣1>0,HIGH*1.01,'財神跑'),COLOR00FF00;
STICKLINE(買1>0 OR 買2>0,O,C,4,0),COLOR00FFFF;
STICKLINE(買1>0 OR 買2>0,H,L,0,0),COLOR00FFFF;
STICKLINE(賣1>0,O,C,4,0),COLOR00FF00;
STICKLINE(賣1>0,H,L,0,0),COLOR00FF00;
通達信財神到買入紅K線持股指標(biāo)公式實例圖解:
通達信財神到買入紅K線持股指標(biāo)公式