通達信夢的海洋主圖買賣指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 主圖
- 日期:2022-09-20 來源:互聯網
通達信夢的海洋主圖買賣指標公式:
均線1:=EMA(C,3);
均線2:=EMA(C,5);
均線3:=EMA(C,7);
均線4:=EMA(C,12);
均線5:=EMA(C,20);
均線6:EMA(C,50),COLORBLUE;
年線:=EMA(C,250);
追漲線:EMA(C,3),LINETHICK2;
大行情:(年線-(追漲線-年線)),NODRAW,LINETHICK2;
壓力線:MA(LLV(C,9)*1.1,14),COLORBROWN,LINETHICK2;
支撐線:MA(HHV(C,26)*0.9,14),LINETHICK2;
多空線:=(壓力線+支撐線)/2,LINETHICK2;
神馬線:(壓力線+支撐線)/2,COLORRED,LINETHICK2;
神牛線:MA(LLV(C,9)*1.1,14),COLOR0099FF,LINETHICK2;
VAR1:=EMA(EMA(CLOSE,13),13);
控盤:= (VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
有莊控盤:=控盤>REF(控盤,1) AND 控盤>0;
SS:=有莊控盤 AND CROSS(均線1,均線2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(均線1,均線4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(均線2,均線3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(均線1,均線3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(均線1,均線4);
DRAWICON(SS,L-0.04,26);
DRAWTEXT(CROSS(追漲線,神馬線),L*0.99,'買進'),COLORRED;
DRAWTEXT(CROSS(神牛線,大行情),L*0.98,'加倉'),COLORF00FF0;
大牛:追漲線>大行情 AND 神馬線>大行情 AND 神牛線>大行情,COLORF00FF0,NODRAW,LINETHICK2;
ZK1:="KD.K"(9,3,3);
ZD2:="KD.D"(9,3,3);
換手:=V/100,LINETHICK0;
JCD:=FILTER(CROSS(ZK1,ZD2) AND REF(ZD2,1)<30,13),NODRAW;
取點:=BARSLAST(JCD);
吸籌區:=IF(取點>0 AND 取點<61,取點,0);
ZS1:=吸籌區;
ZS2:=吸籌區+1;
ZS3:=換手/5;
ZSA:=IF(ZS1>0,SUM((ZS3),吸籌區+1),0),NODRAW;
主力籌碼%:ZSA,NODRAW;
建倉天數:ZS1,NODRAW;
DRAWICON(JCD,H*1.005,11);
TYP := (HIGH + LOW + CLOSE)/3;
CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,6));
差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;
CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;
CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;
CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;
CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;
CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
AAA:=(3*C+H+L+O)/6;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
下跌:IF(VAR1=VAR6,VAR6, DRAWNULL),COLORGREEN;
{條件1}
TJ1:= CCI1>差值4;
立樁量:=FILTER(TJ1,0);
TJ2:=IF(BARSLAST(立樁量)=1 ,1,IF(BARSLAST(立樁量)=2 ,1,
IF(BARSLAST(立樁量)=3 ,1,0)));
成立1:=TJ2;
條件成立1:=FILTER(成立1,5);
DRAWTEXT(條件成立1,H*1.005,'破紅看跌'),COLORDDDD00;
TJ11:= CCI1<-差值4 ;
立樁量2:=FILTER(TJ11,0);
TJ22:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(HIGH,1),1,
IF(BARSLAST(立樁量2)=2 AND CLOSE>REF(HIGH,2),1,
IF(BARSLAST(立樁量2)=3 AND CLOSE>REF(HIGH,3),1,0)));
成立2:=TJ22;
條件成立2:=FILTER(成立2,5);
DRAWTEXT(條件成立2,L*0.99,'破黑看漲'),COLORDD00DD;
TJ111:=(ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5));
立樁量3:=FILTER(TJ111,5);
TJ222:=IF(BARSLAST(立樁量3)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立樁量3)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立樁量3)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破3:=TJ222=1;
STICKLINE(CLOSE AND 下跌!= VAR6,REF(HIGH,BARSLAST(立樁量3)),
REF(HIGH,BARSLAST(立樁量3)),10,1),COLORCYAN;
STICKLINE(CLOSE AND 下跌!= VAR6,REF(LOW,BARSLAST(立樁量3)),
REF(LOW,BARSLAST(立樁量3)),10,1),COLORYELLOW;
TJ3:=IF(BARSLAST(立樁量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量3)=3 AND CLOSE>REF(LOW,3),1,0)));
三天法則:=TJ3=1;
成立:=三天法則 AND 突破3;
條件成立:=FILTER(成立,5);
DRAWTEXT(條件成立 AND 下跌!= VAR6,L*0.98,'☆成立');
STICKLINE(C>=O,L,H,0,0),COLORRED;
STICKLINE(C<O,L,H,0,0),COLORFFFF00;
STICKLINE(C>O,C,O,3,0),COLORRED;
STICKLINE(1,C,O,2.8,0),COLOR454500;
STICKLINE(1,C,O,2,0),COLOR555500;
STICKLINE(1,C,O,1.5,0),COLOR656500;
STICKLINE(1,C,O,1,0),COLOR757500;
STICKLINE(1,C,O,0.5,0),COLOR858500;
STICKLINE(立樁量,C,O,2.8,0),COLOR000045;
STICKLINE(立樁量,C,O,2.8,0),COLOR000065;
STICKLINE(立樁量,C,O,2,0),COLOR000085;
STICKLINE(立樁量,C,O,1.5,0),COLOR0000A5;
STICKLINE(立樁量,C,O,1,0),COLOR0000C5;
STICKLINE(立樁量,C,O,0.5,0),COLOR0000E5;
通達信夢的海洋主圖買賣指標公式實例圖解:
通達信夢的海洋主圖買賣指標公式