用法:
■ 大盤 跌破9日均線或14日均線要注意:
■大盤指數(shù)跌破9日均線,第二第三日5日均線回升可解除大跌信號 。
請朋友們原諒:原有參數(shù)設(shè)置搞錯,下面的源碼公式巳更正,主圖增加一個信號。副圖不是原創(chuàng).
{大盤預(yù)測} (DZHL2主圖)
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,9),LINETHICK2;
MA3:MA(CLOSE,14),LINETHICK2;
MA4:MA(CLOSE,20);
MA5:MA(CLOSE,30);
MA6:MA(CLOSE,117);
條件:=CROSS(MA2,INDEXC) AND MA3>REF(MA3,1) AND MA1<REF(MA1,1);
DRAWTEXT(條件,H*1.015,'↙大跌開始');
DRAWTEXTABS(5,10,'■ 跌破9日均線或14日均線要注意: '),Color00FFFF,LINETHICK3;
DRAWTEXTABS(5,8,' 大盤 '),Color00A9FF,LINETHICK5;
DRAWTEXTABS(5,30,'■大盤指數(shù)跌破9日均線第二第三日5日 '),ColorFFFF00,LINETHICK3;
DRAWTEXTABS(22,50,'均線回升可解除大跌信號 '),ColorFFFF00,LINETHICK3;
Var1:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,7);
休息: DRAWTEXT(CROSS(3,Var1),l,'休息了↗'),Color00FFFF,ALIGN2; {新增信號}
{專測大盤} (DZHL2副圖)
LC:=REF(CLOSE,1);
動力1:EMA(EMA((SUM(IF(INDEXC>LC,VOL,0),42)/SUM(IF(INDEXC<=LC,VOL,0),42)),5),2)*100,COLORGRAY,linethick2;
動力2:EMA(EMA((SUM(IF(INDEXC>LC,VOL,0),55)/SUM(IF(INDEXC<=LC,VOL,0),55)),5),2)*100,ColorD49D56,linethick2;
STICKLINE(CROSS(250,動力1),350,400,9,0),COLOR00ff00;
STICKLINE(CROSS(400,動力1),300,400,9,0),COLORff00ff;
關(guān)注:IF(動力1<70,70,50),LINETHICK2,COLORffcc66;
WVAD10:=MA((INDEXC-INDEXO)/(INDEXH-INDEXL)*VOL,10)/1000+50;
真金:IF(CROSS(WVAD10,50) AND 關(guān)注>50 AND 動力1<400 AND ZIG(1,19)>REF(ZIG(1,19),1),200,50),LINETHICK2,COLORBLUE;
白銀:IF(CROSS(WVAD10,50) AND 動力1<400 AND ZIG(1,19)>REF(ZIG(1,19),1),150,50),LINETHICK2,COLORYELLOW;
銅錢:IF(CROSS(WVAD10,50),100,50),LINETHICK2,COLORRED;
Var2:=(INDEXC+INDEXH+INDEXL)/3;
Var3:=EMA(Var2,10);
Var4:=REF(Var3,1);
{持股:}STICKLINE(Var3>Var4,258,288,2,0),COLOR0066FF,linethick2;
{持幣:}STICKLINE(Var3<Var4,218,248,2,0),COLORgreen,linethick2;
大盤:=COUNT(INDEXC>REF(INDEXC,1),3)=3; {連續(xù)N天上漲}
動力:=COUNT(動力1<REF(動力1,1),3)=3; {連續(xù)N日下跌}
DRAWTEXT(FILTER(大盤 AND 動力,2),動力1,'小心'),ALIGN1,ColorFFE900;
DRAWICON(FILTER(大盤 AND 動力,2),動力1+30,8),ALIGN1;
50,LINETHICK2,COLORYELLOW;
250,LINETHICK2,COLORff00ff;
stickline(c>0,400,400,5,0),LINETHICK2,COLORGREEN;
{有之字轉(zhuǎn)向ZIG未來數(shù)據(jù)是真金、白銀只是告訴你多空一個拐點 ,不影響操作, 真正信號是不會逃掉};
{大盤預(yù)測} (TDX主圖)
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,9),LINETHICK2;
MA3:MA(CLOSE,14),LINETHICK2;
MA4:MA(CLOSE,20);
MA5:MA(CLOSE,30);
MA6:MA(CLOSE,117);
條件:CROSS(MA2,INDEXC) AND MA3>REF(MA3,1) AND MA1<REF(MA1,1),NODRAW;
DRAWTEXT(條件,H*1.015,'↙大跌開始');
DRAWTEXT(5,10,'■ 跌破9日均線或14日均線要注意: '),COLOR00FFFF,LINETHICK3,NODRAW;
DRAWTEXT(5,8,' 大盤 '),COLOR00A9FF,LINETHICK5,NODRAW;
DRAWTEXT(5,30,'■大盤指數(shù)跌破9日均線第二第三日5日 '),COLORFFFF00,LINETHICK3,NODRAW;
DRAWTEXT(22,50,'均線回升可解除大跌信號 '),COLORFFFF00,LINETHICK3,NODRAW;
VAR1:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,7);
休息: DRAWTEXT(CROSS(3,VAR1),L,'休息了↗'),COLOR00FFFF;
{專測大盤} (TDX副圖)
LC:=REF(CLOSE,1);
動力1:EMA(EMA((SUM(IF(INDEXC>LC,VOL,0),42)/SUM(IF(INDEXC<=LC,VOL,0),42)),5),2)*100,COLORGRAY,LINETHICK2;
動力2:EMA(EMA((SUM(IF(INDEXC>LC,VOL,0),55)/SUM(IF(INDEXC<=LC,VOL,0),55)),5),2)*100,COLORD49D56,LINETHICK2;
STICKLINE(CROSS(250,動力1),350,400,9,0),COLOR00FF00;
STICKLINE(CROSS(400,動力1),300,400,9,0),COLORFF00FF;
關(guān)注:IF(動力1<70,70,50),LINETHICK2,COLORFFCC66;
WVAD10:=MA((INDEXC-INDEXO)/(INDEXH-INDEXL)*VOL,10)/1000+50;
真金:IF(CROSS(WVAD10,50) AND 關(guān)注>50 AND 動力1<400 AND ZIG(1,19)>REF(ZIG(1,19),1),200,50),LINETHICK2,COLORBLUE;
白銀:IF(CROSS(WVAD10,50) AND 動力1<400 AND ZIG(1,19)>REF(ZIG(1,19),1),150,50),LINETHICK2,COLORYELLOW;
銅錢:IF(CROSS(WVAD10,50),100,50),LINETHICK2,COLORRED;
VAR2:=(INDEXC+INDEXH+INDEXL)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
{持股:}STICKLINE(VAR3>VAR4,258,288,2,0),COLOR0066FF,LINETHICK2;
{持幣:}STICKLINE(VAR3<VAR4,218,248,2,0),COLORGREEN,LINETHICK2;
大盤:=COUNT(INDEXC>REF(INDEXC,1),3)=3; {連續(xù)N天上漲}
動力:=COUNT(動力1<REF(動力1,1),3)=3; {連續(xù)N日下跌}
DRAWTEXT(FILTER(大盤 AND 動力,2),動力1,'小心'),COLORFFE900;
DRAWICON(FILTER(大盤 AND 動力,2),動力1+30,8);
50,LINETHICK2,COLORYELLOW;
250,LINETHICK2,COLORFF00FF;
STICKLINE(C>0,400,400,5,0),LINETHICK2,COLORGREEN;