如圖,在副圖上出現(xiàn)紅點(diǎn)加黃點(diǎn)預(yù)警,或者黃點(diǎn)預(yù)警,盤中預(yù)警,望大佬伸出援手 DRAWGBK(C>0, RGB(0,10,10),RGB(88,0,0),0,'11',0); NN:=2400; HD:=HHV(V,NN); LD:=LLV(V,NN); 最高:=CONST(HD),NODRAW; 最低:=CONST(LD),NODRAW; HLMAX:=最高; HLMIN:=最低; HLMN1:=(HLMAX+HLMIN)/2; HLMN2:=HLMAX-HLMIN; HLMN3:=(100-0)/2*1.3; HLMN4:=(100-0)/1*1.3; 中間價(jià)軸:=(50-HLMN3)*HLMN2/HLMN4+HLMN1; 軸差:=最高-最低; 拉升量:=IF(C>REF(C,1),VOL,0); 打壓量:=IF(C<REF(C,1),VOL,0); 昨拉升最高值:CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA; 昨打壓最高值:=CONST(FINDHIGH(打壓量,FROMOPEN,240,1)),LINETHICK1,COLORCYAN,NODRAW; 今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORRED; 今打壓最高值:CONST(REF(HHV(打壓量,FROMOPEN),0)),COLORCYAN,NODRAW; 攻擊力度:今拉升最高值/昨拉升最高值,NODRAW; 量能均線:=SUM(V,FROMOPEN)/FROMOPEN; 量:=VOL,VOLSTICK; 五日量:=MA(量,5),COLORWHITE; TT:=BARSCOUNT(C);{取得有效收盤價(jià)} 均價(jià)黃:=SUM(C*V,TT)/SUM(V,TT);{分時(shí)均線的取值} 量?jī)刹?=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2); 價(jià)兩步:= C>=REF(C,1) AND REF(C,1)>REF(C,2); 價(jià)上崗量破5:=C>均價(jià)黃 AND V>MA(V,5); 量起爆:=V>=REF(V,1)*1; 價(jià)創(chuàng)新高:=C>=HHV(C,0); 量創(chuàng)新高:=V>=HHV(V,0); 對(duì)昨日漲幅:=(C/DYNAINFO(3)-1)*100<=2.50;{漲幅控制2個(gè)點(diǎn)以內(nèi)} 每日一點(diǎn):=量?jī)刹?AND 價(jià)兩步 AND 價(jià)上崗量破5 AND 量起爆 AND 價(jià)創(chuàng)新高 AND 量創(chuàng)新高 AND 對(duì)昨日漲幅; {計(jì)算收益、已爆分鐘} VV:=BARSSINCE(每日一點(diǎn))+1; 首次起爆價(jià):=REF(C,VV-1),NODRAW; 起爆收益:(DYNAINFO(7)-首次起爆價(jià))/首次起爆價(jià)*100,NODRAW; 流通盤:=CAPITAL*100/100000000,NODRAW; 起爆時(shí)間:=REF(TIME/10000,VV),NODRAW; 已爆分鐘:=VV-1,NODRAW; STICKLINE(C>REF(C,1) AND V>=今打壓最高值,0,V,0,0),COLORRED; STICKLINE(C<REF(C,1) AND V>=今拉升最高值,0,V,0,0),COLORGREEN; DRAWICON(C<REF(C,1) AND V>=今拉升最高值,V,2); STICKLINE(C>REF(C,1) AND (V>昨拉升最高值 OR V>昨打壓最高值),0,V,0,0),COLOR0000FF; STICKLINE(C>REF(C,1) AND V>=2*昨拉升最高值 AND V<5*昨拉升最高值,昨拉升最高值,V,0,0),COLORFF00FF; STICKLINE(C>REF(C,1) AND V>=5*昨拉升最高值,0,V,0,0),COLORMAGENTA; STICKLINE(每日一點(diǎn),最低+軸差*0.8,0,1,0),COLORMAGENTA; DRAWICON(每日一點(diǎn),V,1),COLORRED; DRAWTEXT(每日一點(diǎn),最低+軸差*0.8,'∠起爆'),COLORMAGENTA; TA:=BARSLAST(TIME=100000); TC:=REF(HHV(C,0),TA+1); TV:=REF(HHV(V,0),TA+1); ZF:=TC/DYNAINFO(3)<1.05; XG1:=CROSS(C,TC) AND V>TV AND ZF,COLORWHITE; TA1:=BARSLAST(TIME=110000); CC1:=REF(HHV(C,0),TA1+1); VV1:=REF(HHV(V,0),TA1+1); ZF1:=CC1/DYNAINFO(3)<1.05; XG2:=CROSS(C,CC1) AND V>VV1 AND ZF1,COLORYELLOW; 突破:=XG1 OR XG2,COLORRED; VT:=BARSSINCE(突破)+1; 首次突破價(jià):=REF(C,VT-1),NODRAW; 突破收益:(DYNAINFO(7)-首次突破價(jià))/首次突破價(jià)*100,NODRAW; STICKLINE(突破,V,0,1,0),COLORRED; DRAWICON(突破=1,V,17); DRAWTEXT(突破=1,最低+軸差*0.65,'☆突破'),COLORRED; DRAWICON(FILTER(CROSS(拉升量,昨拉升最高值),30),V,1); DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+軸差*0.50,'★攻擊'),COLORYELLOW; DRAWICON(FILTER(CROSS(拉升量,今打壓最高值),30),V,1); DRAWTEXT(FILTER(CROSS(拉升量,今打壓最高值),30),最低+軸差*0.35,'★攻擊'),COLORMAGENTA; 大單買:SUM(IF(C>REF(C,1) AND V>4000,V/5,0),0),COLORRED,LINETHICK3; 大單賣:SUM(IF(C<REF(C,1) AND V>4000,V/5,0),0),COLORGREEN,LINETHICK3; 買單總:=SUM(IF(C>REF(C,1),V/5,0),0); 賣單總:=SUM(IF(C<REF(C,1),V/5,0),0); 小單買:買單總-大單買,COLORLIRED,DOTLINE; 小單賣:賣單總-大單賣,COLORLIBLUE,DOTLINE; 量極值:=CONST(VOL); 大單買量:=SUM(IF(C>REF(C,1) AND V>4000,V/1000,0),0),NODRAW; 大單賣量:=SUM(IF(C<REF(C,1) AND V>4000,V/1000,0),0),NODRAW; 買單總量:=SUM(IF(C>REF(C,1),V/1000,0),0),NODRAW; 賣單總量:=SUM(IF(C<REF(C,1),V/1000,0),0),NODRAW; 小單買量:=買單總量-大單買量,NODRAW; 小單賣量:=賣單總量-大單賣量,NODRAW; 大宗進(jìn):=大單買量,NODRAW; 大宗出:=大單賣量,NODRAW; 非大宗進(jìn):=小單買量,NODRAW; 非大宗出:=小單賣量,NODRAW; 主力凈流入:=大單買量-大單賣量,COLORRED,NODRAW; 散戶凈流入:=小單買量-小單賣量,COLORRED,NODRAW; 凈流入:=買單總量-賣單總量,COLORRED,NODRAW; 均價(jià):=SUM(V*C,0)/SUM(V,0),COLORYELLOW; DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('主力 ',CON2STR(主力凈流入,0)),'萬')),COLORMAGENTA; DRAWTEXT_FIX(1,0.000,0.2,0,STRCAT(STRCAT('散戶 ',CON2STR(散戶凈流入,0)),'萬')),COLORCYAN; DRAWTEXT_FIX(1,0.125,0.00,0,STRCAT(STRCAT('凈流入 ',CON2STR(凈流入,0)),'萬')),COLORYELLOW; 地:=EMA(均價(jià),50)/0.97,LINETHICK2,COLORGREEN; 買單次數(shù):=COUNT(V>4000 AND C>REF(C,1),0); 黃次數(shù):=COUNT(V>DYNAINFO(16)*10 AND C>REF(C,1),0),COLORYELLOW,NODRAW; DRAWICON(買單次數(shù)>REF(買單次數(shù),1) AND 黃次數(shù)>REF(黃次數(shù),1) AND CROSS(C,地),大單買,7); DRAWICON(小單買量>小單賣量 AND 大單買量>小單買量 AND 小單賣量>大單賣量,大單買,41); BGTYU:=IF(DATE>=1130107,1,0); GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95); VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU))))); DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),小單買,'↖可買'),COLORWHITE; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),小單買,25); DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),小單賣,'↖轉(zhuǎn)強(qiáng)'),COLORMAGENTA; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),小單賣,13); DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),小單買,1); 吃定:=(EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK; 主力:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK5,COLORMAGENTA; 散戶:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),LINETHICK5,COLORGREEN; DRAWICON(CROSS(EXPMA(吃定,120)-0.0004,EXPMA(吃定,200)),小單買,13); DRAWTEXT(CROSS(EXPMA(吃定,120)-0.0004,EXPMA(吃定,200)),小單買,'↖金叉'),COLORRED; DRAWICON(CROSS(EXPMA(吃定,120)-0.0004,EXPMA(吃定,200)),小單買,13); Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95); Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C)))); STICKLINE(CROSS((C/Q2),1.03),1.01,1.02,1.0,0), , COLORYELLOW; DRAWICON(CROSS((C/Q2),1.03),小單買,1); 大單買量:=SUM(IF(C>REF(C,1) AND V>4000,V/1000,0),0); 大單賣量:=SUM(IF(C<REF(C,1) AND V>4000,V/1000,0),0); 買單總量:=SUM(IF(C>REF(C,1),V/1000,0),0); 賣單總量:=SUM(IF(C<REF(C,1),V/1000,0),0); 小單買量:=買單總量-大單買量; 小單賣量:=賣單總量-大單賣量; 大單買:=(小單買量>小單賣量 AND 大單買量>小單買量 AND 小單賣量>大單賣量); BGTYU:=IF(DATE>=1130107,1,0); GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95); VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU))))); 小單賣:=(CROSS(EXPMA((DCLOSE/VBNH),120),1.004)); 吃定:=(EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100; 小單買:=(CROSS(EXPMA(吃定,120)-0.0004,EXPMA(吃定,200))); XG:大單買 OR 小單賣 OR 小單買; 誠意888 發(fā)表于 2022-12-29 19:39 不行啊,老大,分時(shí)的能不能搞定就是分時(shí)圖上出現(xiàn)黃跟紅就報(bào)警 |
|