修改的期货专用分时指标《资金攻击》

[复制链接]
查看865 | 回复0 | 2022-7-11 12:23:29 | 显示全部楼层 |阅读模式
向你学习3'等同学向我索要期货用分时指标《资金攻击》,这几天闲暇,略作修改,在此新春佳节之时,送给专做期货的朋友。
说明:期货与股票不同,股票有成交量和换手率,而期货只有持仓量,股票有股本限制,而期货没有。期货分时《资金攻击》也略有不同。
由于上述原因,修改后的期货分时《资金攻击》的攻击量柱与资金净流入线值差别较大。两者在一起显示有时只见其一。所以发三个文本:
1:攻击量柱与资金净流入同时显示.
2: 只显示攻击量柱。
3: 只显示资金净流入。


期货专用《资金攻击》1.TXT
{中轴设置}
昨收:=DYNAINFO(3);
HH:=DYNAINFO(5);
LL:=DYNAINFO(6);
FK:=MAX(HH-昨收,昨收-LL)*0.1;
ZS:=昨收-FK*3.2;
Q1:=昨收-FK*3.22;
Q2:=昨收-1*FK*3.22;
Q3:=昨收-5*FK*3.2;
TJ:=FILTER(C,239)>0,NODRAW;
TJJ:=SUM(TJ,0),NODRAW;
TJA:=CONST(TJJ),NODRAW; 流通盘:CAPITAL*100/100000000,NODRAW;
资金流入:=SUM(IF(C>REF(C,1),CCL,0),FROMOPEN),STICK,COLORRED;
资金流出:=-SUM(IF(C<REF(C,1),CCL,0),FROMOPEN),STICK,COLOR00FF00;
资金流量:资金流入+资金流出,NODRAW;
资金比:资金流量/SUM(CCL,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2)); 攻击量:=((CCL*0.50+REF(CCL,1)*0.33)+(REF(CCL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
攻击量A:=SUM(IF(C>REF(C,1),攻击量*CCL,0),FROMOPEN),COLOR0000FF,LINETHICK0;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*CCL,0),FROMOPEN),COLOR00FF00,LINETHICK0;
攻击流量:=攻击量A+攻击量B,COLORSTICK;
攻击比:攻击流量/SUM(攻击量*CCL,FROMOPEN)*100,COLORRED,LINETHICK1;
资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50))); 开始攻击:=CROSS(攻击流量,0) AND C>REF(C,2);
开始攻击量:=CROSS(攻击流量,0) AND C>REF(C,2) AND V>LLV(V,3)*3; Q:=250;
高点:=HHV(资金流量,Q);
低点:=LLV(资金流量,Q);
最高:=CONST(高点),NODRAW;
最低:=CONST(低点),NODRAW;
轴差:=最高-最低;
HL1:=(最高+最低)/2;
HL2:=最高-最低;
HL3:=(100-0)/2*1.3;
HL4:=(100-0)/1*1.3;
中间价轴:=(50-HL3)*HL2/HL4+HL1; {量价涨跌比}
涨量:=IF(C>REF(C,1),VOL,0),LINETHICK0;
涨量比:=SUM(涨量,0)/SUM(V,0)*100,COLOR0000FF,LINETHICK1;
跌量:=IF(C<REF(C,1),VOL,0),LINETHICK0;
跌量比:=SUM(跌量,0)/SUM(V,0)*100,COLOR00FF00,LINETHICK1;
平量:=IF(C=REF(C,1),VOL,0),LINETHICK0;
平量比:=SUM(平量,0)/SUM(V,0)*100,COLORFFFFFF,LINETHICK1;
量价涨跌比:=(涨量比-跌量比)/((涨量比+跌量比+平量比)/3),NODRAW;
涨跌比设置:=量价涨跌比*(最高-中间价轴)+中间价轴;
涨跌比限制:=IF(涨跌比设置>最高,最高,IF(涨跌比设置<最低,最低,涨跌比设置));
{DRAWBAND(涨跌比限制,RGB(250,0,0),中间价轴,RGB(0,200,20));} {三福资金流}
AA1:=(VOL/C)/2,NODRAW;
AA2:=SUM(IF(AA1>100 AND CLOSE>REF(CLOSE,1),AA1,0),0);
AA3:=SUM(IF(AA1>100 AND CLOSE<REF(CLOSE,1),AA1,0),0);
AA4:=SUM(IF(AA1<100 AND CLOSE>REF(CLOSE,1),AA1,0),0);
AA5:=SUM(IF(AA1<100 AND CLOSE<REF(CLOSE,1),AA1,0),0);
AA6:=AA2+AA3+AA4+AA5;
机买:=(AA2/AA6),LINETHICK3,COLOR00FFFF;
机卖:=(AA3/AA6),LINETHICK3,COLORFF0000;
散买:=(AA4/AA6),LINETHICK2,COLOR00FFFF;
散卖:=(AA5/AA6),LINETHICK2,COLORFF0000;
主力差:=机买-机卖,COLORFFFFFF,LINETHICK2;
散户差:=散买-散卖,COLORFFFFFF,LINETHICK2;
流入量差:=主力差+散户差,COLORFFFFFF,NODRAW,LINETHICK2;
{DRAWBAND(散户差*(最高-中间价轴)+中间价轴,RGB(200,150,0),中间价轴,RGB(0,150,200));
DRAWBAND(主力差*(最高-中间价轴)+中间价轴,RGB(200,25,0),中间价轴,RGB(0,200,25));}
流入量差设置:=流入量差*(最高-中间价轴)+中间价轴;
流入量差设置2:=REVERSE(流入量差)*(最高-中间价轴)+中间价轴;
流入量差限制:=IF(流入量差设置>最高,最高,IF(流入量差设置<最低,最低,流入量差设置));
流入量差限制2:=IF(流入量差设置2>最高,最高,IF(流入量差设置2<最低,最低,流入量差设置2));
{DRAWBAND(流入量差限制,RGB(250,100,250),中间价轴,RGB(0,0,200));}
DRAWBAND(资金流量,RGB(150,0,150),0,RGB(0,100,150));
NOTEXT流量线:=资金流量,COLORFFFFFF,LINETHICK0;
攻击流量柱:攻击流量/SUM(攻击量,FROMOPEN)*100,COLORSTICK,LINETHICK1;
NOTEXT攻击线:=攻击流量,COLORYELLOW,LINETHICK1;
DRAWRECTREL(110,10,400,90,RGB(0,75,200));
DRAWRECTREL(110,10,250,90,RGB(0,250,50));
DRAWRECTREL(110,10,100+CONST(资金流量比*300/100),90,RGB(100,0,10));
DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORGREEN; DRAWRECTREL(610,10,900,90,RGB(0,75,200));
DRAWRECTREL(610,10,750,90,RGB(0,250,50));
DRAWRECTREL(610,10,600+CONST(资金攻击度*300/100),90,RGB(100,10,0));
DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORGREEN; 量:=VOL,VOLSTICK;
五日量:=MA(量,5),COLORWHITE;
TT:=BARSCOUNT(C);{取得有效收盘价}
均价黄:=SUM(C*V,TT)/SUM(V,TT);{分时均线的取值}
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;
{计算收益、已爆分钟}
VV:=BARSSINCE(每日一点)+1;
首次起爆价:=REF(C,VV-1),NODRAW;
起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;
{画出底线和红球}
首次起爆量:=REF(VOL,VV-1);
{DRAWICON(已爆分钟>=2,最低,13);}{出现红球,至少已经确认2分钟了}; MMA30:=EMA(CLOSE,30);
强弱界定:=IF(PERIOD=0 ,EMA(CLOSE,900),DRAWNULL);
分时均价线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2; {五福金龙舞}
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
牵引线:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(牵引线+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=EVERY(牵引线>REF(牵引线,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
金龙线:=EMA(牵引线,60);
{DRAWBAND(牵引线,RGB(200,50,50),金龙线,RGB(0,50,0));}
牵引:=牵引线,COLORYELLOW;
趋势关注:=IF(CROSS(牵引线,金龙线) AND VAR6,1,0),NODRAW,COLORRED;
量价关注:=IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
冲击量:=IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
{STICKLINE(QZS>牵引线,QZS,牵引线,1,0),COLOR000099;
STICKLINE(冲击量=1,QZS,牵引线,1,0),COLORYELLOW;} {六福趋势图}
BGTYU:=IF(DATE<=1150530,1,0);
GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU))))); 起动线:=EXPMA((CLOSE/VBNH),20)*1.5-0.5,COLORYELLOW,POINTDOT;
主力线:=EXPMA((CLOSE/VBNH),60)*1.5-0.5,COLORMAGENTA,LINETHICK2;
散户线:=EXPMA((CLOSE/VBNH),120)*1.5-0.5,COLORGREEN,LINETHICK2;
限制起动线:=起动线*中间价轴;
限制主力线:=主力线*中间价轴;
限制散户线:=散户线*中间价轴;
主散MIN:=MIN(限制主力线,限制散户线);
分时转强:=主散MIN>金龙线 AND ((LONGCROSS(限制主力线,金龙线,2) OR CROSS(限制主力线,限制散户线)) OR (限制主力线>限制散户线 AND LONGCROSS(牵引线,金龙线,2)));
{DRAWBAND(限制主力线,RGB(250,150,0),限制散户线,RGB(0,100,250));
STICKLINE(起动线<主力线,限制起动线,限制主力线,1.0,0),COLOR00FF00;
STICKLINE(起动线>主力线,限制起动线,限制主力线,1.0,0),COLORFFFFFF;
STICKLINE(VOL>EMA(VOL,60) AND 起动线>主力线,限制起动线,限制主力线,1,0),COLORFF00FF;
主力:主力线*中间价轴,COLORFFFFFF,LINETHICK1;}
STICKLINE(FILTER(分时转强,10),最低,最低+轴差*0.53,1,0),COLOR0000FF;
DRAWICON(FILTER(分时转强,10),最低+轴差*0.53,9);
DRAWTEXT(FILTER(分时转强,10),最低+轴差*0.53,'转强'),COLOR0000FF;
{STICKLINE(主散MIN>金龙线 AND 限制主力线>限制散户线 AND LONGCROSS(牵引线,金龙线,2),最低,最高*0.993,1,0),COLOR0000FF; }; FAA:=BARSLAST(TIME=100000);
FCC:=REF(HHV(C,0),FAA+1);
FVV:=REF(HHV(V,0),FAA+1);
ZF:=FCC/DYNAINFO(3)<1.05;
XG1:=CROSS(C,FCC) AND V>FVV AND ZF,COLORWHITE; FAA1:=BARSLAST(TIME=110000);
FCC1:=REF(HHV(C,0),FAA1+1);
FVV1:=REF(HHV(V,0),FAA1+1);
ZF1:=FCC1/DYNAINFO(3)<1.05;
XG2:=CROSS(C,FCC1) AND V>FVV1 AND ZF1,COLORYELLOW;
突破:=XG1 OR XG2,COLORRED;
VT:=BARSSINCE(突破)+1;
首次突破价:=REF(C,VT-1),NODRAW;
突破收益:(DYNAINFO(7)-首次突破价)/首次突破价*100,NODRAW; 拉升量:=IF(C>REF(C,1),VOL,0);
昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;
今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORYELLOW,NODRAW;
攻击力度:=今拉升最高值/昨拉升最高值,NODRAW;
STICKLINE(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,最低,1,0),COLORCYAN;
STICKLINE(FILTER(每日一点,10),最低+轴差*0.65,最低,1,0),COLORGREEN;
STICKLINE(突破,最低+轴差*0.50,最低,1,0),COLORWHITE;
STICKLINE(CROSS(EXPMA((CLOSE/VBNH),60),EXPMA((CLOSE/VBNH),120)),最低+轴差*0.15,最低,1,0),COLORYELLOW;
{STICKLINE(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低,最低+轴差*0.2,1,0),COLORGREEN;}
STICKLINE(FILTER(开始攻击量=1,15),最低+轴差*0.30,最低,1,0),COLORCYAN;
STICKLINE(FILTER(开始攻击=1,30),最低+轴差*0.1,最低,1,0),COLORYELLOW;
DRAWICON(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,1);
DRAWICON(FILTER(每日一点,10),最低+轴差*0.65,1);
DRAWICON(突破,最低+轴差*0.50,17);
{DRAWICON(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,9);}
DRAWICON(FILTER(开始攻击量=1,15),最低+轴差*0.3,24);
DRAWICON(FILTER(开始攻击,30),最低+轴差*0.10,23); DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,'☆量突破'),COLORCYAN;
DRAWTEXT(FILTER(每日一点,10),最低+轴差*0.65,'∠起爆'),COLORGREEN;
DRAWNUMBER(FILTER(每日一点,10),最低+轴差*0.55,首次起爆价),COLORGREEN;
{DRAWTEXT(CURRBARSCOUNT=160,HHV(V,60)*0.9,'20线上行+日价K线突破+日K线量起爆更好+估换手小于10%时更稳定'),COLORGREEN;};
DRAWTEXT(突破,最低+轴差*0.50,'分时突破'),COLORWHITE;
DRAWNUMBER(突破,最低+轴差*0.40,首次突破价),COLORWHITE; DRAWTEXT(FILTER(开始攻击量=1,15),最低+轴差*0.3,'量攻击'),COLORCYAN;
DRAWTEXT(FILTER(开始攻击,30),最低+轴差*0.05,'开始攻击'),COLORYELLOW;
DRAWTEXT(CROSS(EXPMA((CLOSE/VBNH),60),EXPMA((CLOSE/VBNH),120)),最低+轴差*0.15,'★迹'),COLORYELLOW;
{DRAWICON(CROSS(EXPMA((CLOSE/VBNH),20),1.01),MAX(资金流量,攻击流量),18);
DRAWTEXT(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,'关注'),COLORRED;};





期货专用《资金攻击》2.TXT
{中轴设置}
昨收:=DYNAINFO(3);
HH:=DYNAINFO(5);
LL:=DYNAINFO(6);
FK:=MAX(HH-昨收,昨收-LL)*0.1;
ZS:=昨收-FK*3.2;
Q1:=昨收-FK*3.22;
Q2:=昨收-1*FK*3.22;
Q3:=昨收-5*FK*3.2;
TJ:=FILTER(C,239)>0,NODRAW;
TJJ:=SUM(TJ,0),NODRAW;
TJA:=CONST(TJJ),NODRAW; 流通盘:CAPITAL*100/100000000,NODRAW;
资金流入:=SUM(IF(C>REF(C,1),CCL,0),FROMOPEN),STICK,COLORRED;
资金流出:=-SUM(IF(C<REF(C,1),CCL,0),FROMOPEN),STICK,COLOR00FF00;
资金流量:资金流入+资金流出,NODRAW;
资金比:资金流量/SUM(CCL,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2)); 攻击量:=((CCL*0.50+REF(CCL,1)*0.33)+(REF(CCL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
攻击量A:=SUM(IF(C>REF(C,1),攻击量*CCL,0),FROMOPEN),COLOR0000FF,LINETHICK0;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*CCL,0),FROMOPEN),COLOR00FF00,LINETHICK0;
攻击流量:=攻击量A+攻击量B,COLORSTICK;
攻击比:攻击流量/SUM(攻击量*CCL,FROMOPEN)*100,COLORRED,LINETHICK1;
资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50))); 开始攻击:=CROSS(攻击流量,0) AND C>REF(C,2);
开始攻击量:=CROSS(攻击流量,0) AND C>REF(C,2) AND V>LLV(V,3)*3; Q:=250;
高点:=HHV(资金流量,Q);
低点:=LLV(资金流量,Q);
最高:=CONST(高点),NODRAW;
最低:=CONST(低点),NODRAW;
轴差:=最高-最低;
HL1:=(最高+最低)/2;
HL2:=最高-最低;
HL3:=(100-0)/2*1.3;
HL4:=(100-0)/1*1.3;
中间价轴:=(50-HL3)*HL2/HL4+HL1; {量价涨跌比}
涨量:=IF(C>REF(C,1),VOL,0),LINETHICK0;
涨量比:=SUM(涨量,0)/SUM(V,0)*100,COLOR0000FF,LINETHICK1;
跌量:=IF(C<REF(C,1),VOL,0),LINETHICK0;
跌量比:=SUM(跌量,0)/SUM(V,0)*100,COLOR00FF00,LINETHICK1;
平量:=IF(C=REF(C,1),VOL,0),LINETHICK0;
平量比:=SUM(平量,0)/SUM(V,0)*100,COLORFFFFFF,LINETHICK1;
量价涨跌比:=(涨量比-跌量比)/((涨量比+跌量比+平量比)/3),NODRAW;
涨跌比设置:=量价涨跌比*(最高-中间价轴)+中间价轴;
涨跌比限制:=IF(涨跌比设置>最高,最高,IF(涨跌比设置<最低,最低,涨跌比设置));
{DRAWBAND(涨跌比限制,RGB(250,0,0),中间价轴,RGB(0,200,20));} {三福资金流}
AA1:=(VOL/C)/2,NODRAW;
AA2:=SUM(IF(AA1>100 AND CLOSE>REF(CLOSE,1),AA1,0),0);
AA3:=SUM(IF(AA1>100 AND CLOSE<REF(CLOSE,1),AA1,0),0);
AA4:=SUM(IF(AA1<100 AND CLOSE>REF(CLOSE,1),AA1,0),0);
AA5:=SUM(IF(AA1<100 AND CLOSE<REF(CLOSE,1),AA1,0),0);
AA6:=AA2+AA3+AA4+AA5;
机买:=(AA2/AA6),LINETHICK3,COLOR00FFFF;
机卖:=(AA3/AA6),LINETHICK3,COLORFF0000;
散买:=(AA4/AA6),LINETHICK2,COLOR00FFFF;
散卖:=(AA5/AA6),LINETHICK2,COLORFF0000;
主力差:=机买-机卖,COLORFFFFFF,LINETHICK2;
散户差:=散买-散卖,COLORFFFFFF,LINETHICK2;
流入量差:=主力差+散户差,COLORFFFFFF,NODRAW,LINETHICK2;
{DRAWBAND(散户差*(最高-中间价轴)+中间价轴,RGB(200,150,0),中间价轴,RGB(0,150,200));
DRAWBAND(主力差*(最高-中间价轴)+中间价轴,RGB(200,25,0),中间价轴,RGB(0,200,25));}
流入量差设置:=流入量差*(最高-中间价轴)+中间价轴;
流入量差设置2:=REVERSE(流入量差)*(最高-中间价轴)+中间价轴;
流入量差限制:=IF(流入量差设置>最高,最高,IF(流入量差设置<最低,最低,流入量差设置));
流入量差限制2:=IF(流入量差设置2>最高,最高,IF(流入量差设置2<最低,最低,流入量差设置2));
{DRAWBAND(流入量差限制,RGB(250,100,250),中间价轴,RGB(0,0,200));
DRAWBAND(资金流量,RGB(150,0,150),0,RGB(0,100,150));}
NOTEXT流量线:=资金流量,COLORFFFFFF,LINETHICK0;
攻击流量柱:攻击流量/SUM(攻击量,FROMOPEN)*100,COLORSTICK,LINETHICK1;
NOTEXT攻击线:=攻击流量,COLORYELLOW,LINETHICK1;
DRAWRECTREL(110,10,400,90,RGB(0,75,200));
DRAWRECTREL(110,10,250,90,RGB(0,250,50));
DRAWRECTREL(110,10,100+CONST(资金流量比*300/100),90,RGB(100,0,10));
DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORGREEN; DRAWRECTREL(610,10,900,90,RGB(0,75,200));
DRAWRECTREL(610,10,750,90,RGB(0,250,50));
DRAWRECTREL(610,10,600+CONST(资金攻击度*300/100),90,RGB(100,10,0));
DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORGREEN; 量:=VOL,VOLSTICK;
五日量:=MA(量,5),COLORWHITE;
TT:=BARSCOUNT(C);{取得有效收盘价}
均价黄:=SUM(C*V,TT)/SUM(V,TT);{分时均线的取值}
量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄 AND V>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅;
{计算收益、已爆分钟}
VV:=BARSSINCE(每日一点)+1;
首次起爆价:=REF(C,VV-1),NODRAW;
起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;
{画出底线和红球}
首次起爆量:=REF(VOL,VV-1);
{DRAWICON(已爆分钟>=2,最低,13);}{出现红球,至少已经确认2分钟了}; MMA30:=EMA(CLOSE,30);
强弱界定:=IF(PERIOD=0 ,EMA(CLOSE,900),DRAWNULL);
分时均价线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2; {五福金龙舞}
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
牵引线:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(牵引线+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=EVERY(牵引线>REF(牵引线,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
金龙线:=EMA(牵引线,60);
{DRAWBAND(牵引线,RGB(200,50,50),金龙线,RGB(0,50,0));}
牵引:=牵引线,COLORYELLOW;
趋势关注:=IF(CROSS(牵引线,金龙线) AND VAR6,1,0),NODRAW,COLORRED;
量价关注:=IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
冲击量:=IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
{STICKLINE(QZS>牵引线,QZS,牵引线,1,0),COLOR000099;
STICKLINE(冲击量=1,QZS,牵引线,1,0),COLORYELLOW;} {六福趋势图}
BGTYU:=IF(DATE<=1150530,1,0);
GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU))))); 起动线:=EXPMA((CLOSE/VBNH),20)*1.5-0.5,COLORYELLOW,POINTDOT;
主力线:=EXPMA((CLOSE/VBNH),60)*1.5-0.5,COLORMAGENTA,LINETHICK2;
散户线:=EXPMA((CLOSE/VBNH),120)*1.5-0.5,COLORGREEN,LINETHICK2;
限制起动线:=起动线*中间价轴;
限制主力线:=主力线*中间价轴;
限制散户线:=散户线*中间价轴;
主散MIN:=MIN(限制主力线,限制散户线);
分时转强:=主散MIN>金龙线 AND ((LONGCROSS(限制主力线,金龙线,2) OR CROSS(限制主力线,限制散户线)) OR (限制主力线>限制散户线 AND LONGCROSS(牵引线,金龙线,2)));
{DRAWBAND(限制主力线,RGB(250,150,0),限制散户线,RGB(0,100,250));
STICKLINE(起动线<主力线,限制起动线,限制主力线,1.0,0),COLOR00FF00;
STICKLINE(起动线>主力线,限制起动线,限制主力线,1.0,0),COLORFFFFFF;
STICKLINE(VOL>EMA(VOL,60) AND 起动线>主力线,限制起动线,限制主力线,1,0),COLORFF00FF;
主力:主力线*中间价轴,COLORFFFFFF,LINETHICK1;}
STICKLINE(FILTER(分时转强,10),最低,最低+轴差*0.53,1,0),COLOR0000FF;
DRAWICON(FILTER(分时转强,10),最低+轴差*0.53,9);
DRAWTEXT(FILTER(分时转强,10),最低+轴差*0.53,'转强'),COLOR0000FF;
{STICKLINE(主散MIN>金龙线 AND 限制主力线>限制散户线 AND LONGCROSS(牵引线,金龙线,2),最低,最高*0.993,1,0),COLOR0000FF; }; FAA:=BARSLAST(TIME=100000);
FCC:=REF(HHV(C,0),FAA+1);
FVV:=REF(HHV(V,0),FAA+1);
ZF:=FCC/DYNAINFO(3)<1.05;
XG1:=CROSS(C,FCC) AND V>FVV AND ZF,COLORWHITE; FAA1:=BARSLAST(TIME=110000);
FCC1:=REF(HHV(C,0),FAA1+1);
FVV1:=REF(HHV(V,0),FAA1+1);
ZF1:=FCC1/DYNAINFO(3)<1.05;
XG2:=CROSS(C,FCC1) AND V>FVV1 AND ZF1,COLORYELLOW;
突破:=XG1 OR XG2,COLORRED;
VT:=BARSSINCE(突破)+1;
首次突破价:=REF(C,VT-1),NODRAW;
突破收益:(DYNAINFO(7)-首次突破价)/首次突破价*100,NODRAW; 拉升量:=IF(C>REF(C,1),VOL,0);
昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;
今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORYELLOW,NODRAW;
攻击力度:=今拉升最高值/昨拉升最高值,NODRAW;
STICKLINE(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,最低,1,0),COLORCYAN;
STICKLINE(FILTER(每日一点,10),最低+轴差*0.65,最低,1,0),COLORGREEN;
STICKLINE(突破,最低+轴差*0.50,最低,1,0),COLORWHITE;
STICKLINE(CROSS(EXPMA((CLOSE/VBNH),60),EXPMA((CLOSE/VBNH),120)),最低+轴差*0.15,最低,1,0),COLORYELLOW;
{STICKLINE(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低,最低+轴差*0.2,1,0),COLORGREEN;}
STICKLINE(FILTER(开始攻击量=1,15),最低+轴差*0.30,最低,1,0),COLORCYAN;
STICKLINE(FILTER(开始攻击=1,30),最低+轴差*0.1,最低,1,0),COLORYELLOW;
DRAWICON(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,1);
DRAWICON(FILTER(每日一点,10),最低+轴差*0.65,1);
DRAWICON(突破,最低+轴差*0.50,17);
{DRAWICON(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,9);}
DRAWICON(FILTER(开始攻击量=1,15),最低+轴差*0.3,24);
DRAWICON(FILTER(开始攻击,30),最低+轴差*0.10,23); DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,'☆量突破'),COLORCYAN;
DRAWTEXT(FILTER(每日一点,10),最低+轴差*0.65,'∠起爆'),COLORGREEN;
DRAWNUMBER(FILTER(每日一点,10),最低+轴差*0.55,首次起爆价),COLORGREEN;
{DRAWTEXT(CURRBARSCOUNT=160,HHV(V,60)*0.9,'20线上行+日价K线突破+日K线量起爆更好+估换手小于10%时更稳定'),COLORGREEN;};
DRAWTEXT(突破,最低+轴差*0.50,'分时突破'),COLORWHITE;
DRAWNUMBER(突破,最低+轴差*0.40,首次突破价),COLORWHITE; DRAWTEXT(FILTER(开始攻击量=1,15),最低+轴差*0.3,'量攻击'),COLORCYAN;
DRAWTEXT(FILTER(开始攻击,30),最低+轴差*0.05,'开始攻击'),COLORYELLOW;
DRAWTEXT(CROSS(EXPMA((CLOSE/VBNH),60),EXPMA((CLOSE/VBNH),120)),最低+轴差*0.15,'★迹'),COLORYELLOW;
{DRAWICON(CROSS(EXPMA((CLOSE/VBNH),20),1.01),MAX(资金流量,攻击流量),18);
DRAWTEXT(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,'关注'),COLORRED;};

201321510134559157.jpg

201321510134559157.jpg

201321510145160937.rar

37.97 KB, 下载次数: 1

售价: 1 金钱  [记录]

201321510145160937.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则