画龙点睛,用于叠加到你的任意主图

{中轴设置}
昨收x:=DYNAINFO(3);
HHx:=DYNAINFO(5);
LLx:=DYNAINFO(6);
FKx:=MAX(HHx-昨收x,昨收x-LLx)*0.1;
ZSx:=昨收x-FKx*3.2;
Q1x:=昨收x-FKx*3.22;
Q2x:=昨收x-1*FKx*3.22;
Q3x:=昨收x-5*FKx*3.2;
TJx:=FILTER(C,239)>0,NODRAW;
TJJx:=SUM(TJx,0),NODRAW;
TJAx:=CONST(TJJx),NODRAW;


流通盘:=CAPITAL*100/100000000,NODRAW;
资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;
资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;
资金出入:=资金流入+资金流出,COLORSTICK;
NNx:=2400;
HDx:=HHV(资金出入,NNx);
LDx:=LLV(资金出入,NNx);
最高:=CONST(HDx),NODRAW;
最低:=CONST(LDx),NODRAW;
HLMAX:=最高;
HLMIN:=最低;
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=HLMAX-HLMIN;
HLMN3:=(100-0)/2*1.3;
HLMN4:=(100-0)/1*1.3;
中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1;
轴差:=最高-最低;

DRAWBAND(资金出入,RGB(150,0,150),0,RGB(0,100,0));
资金流量:=资金出入,COLORFFFFFF,LINETHICK1;
资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));

攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;
攻击流量:=攻击量A+攻击量B,COLORSTICK;
NOTEXT攻击线:=攻击流量,COLORYELLOW,LINETHICK1;
攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;
资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));

{STICKLINE(资金流量A>0,资金流量A,0,1,0),COLOR0000FF;
STICKLINE(资金流量B<0,资金流量B,0,1,0),COLORFF0000;}
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(200,50,0));
DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW;

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(175,50,0));
DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW;

量x:=VOL,VOLSTICK;
五日量x:=MA(量x,5),COLORWHITE;
TTx:=BARSCOUNT(C);{取得有效收盘价}
均价黄x:=SUM(C*V,TTx)/SUM(V,TTx);{分时均线的取值}
量两步x:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
价两步x:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄x AND V>MA(V,5);
量起爆x:=V>=REF(V,1)*1;
价创新高x:=C>=HHV(C,0);
量创新高x:=V>=HHV(V,0);
对昨日涨幅x:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点x:=量两步x AND 价两步x AND 价上岗量破5 AND 量起爆x AND 价创新高x AND 量创新高x AND 对昨日涨幅x;
{计算收益、已爆分钟}
VVx:=BARSSINCE(每日一点x)+1;
首次起爆价x:=REF(C,VVx-1),NODRAW;
起爆收益x:=(DYNAINFO(7)-首次起爆价x)/首次起爆价x*100,NODRAW;
起爆时间:=REF(TIME/10000,VVx),NODRAW;
已爆分钟:=VVx-1,NODRAW;
{画出底线和红球}
首次起爆量:=REF(VOL,VVx-1);
DRAWICON(已爆分钟>=2,最低,13);{出现红球,至少已经确认2分钟了};

MMA30:=EMA(CLOSE,30);
强弱界定:=IF(PERIOD=0 ,EMA(CLOSE,900),DRAWNULL);
分时均价线x:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;

BGTYU:=1;
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)))));
二十☆:=EXPMA((DCLOSE/VBNH),20),COLORRED,LINETHICK1;
六十★:=EXPMA((DCLOSE/VBNH),60),COLORLIGREEN,LINETHICK1;

FAAx:=BARSLAST(TIME=100000);
FCCx:=REF(HHV(C,0),FAAx+1);
FVVx:=REF(HHV(V,0),FAAx+1);
ZFx:=FCCx/DYNAINFO(3)<1.05;
XGx1:=CROSS(C,FCCx) AND V>FVVx AND ZFx,COLORWHITE;

FAA1:=BARSLAST(TIME=110000);
FCC1:=REF(HHV(C,0),FAA1+1);
FVV1:=REF(HHV(V,0),FAA1+1);
ZF1x:=FCC1/DYNAINFO(3)<1.05;
XGx2:=CROSS(C,FCC1) AND V>FVV1 AND ZF1x,COLORYELLOW;
突破x:=XGx1 OR XGx2,COLORRED;
VTx:=BARSSINCE(突破x)+1;
首次突破价:=REF(C,VTx-1),NODRAW;
突破收益:=(DYNAINFO(7)-首次突破价)/首次突破价*100,NODRAW;

拉升量x:=IF(C>REF(C,1),VOL,0);
昨拉升最高值:=CONST(FINDHIGH(拉升量x,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;
今拉升最高值:=CONST(REF(HHV(拉升量x,FROMOPEN),0)),COLORYELLOW,NODRAW;
攻击力度:=今拉升最高值/昨拉升最高值,NODRAW;
STICKLINE(FILTER(CROSS(拉升量x,昨拉升最高值),30),最低+轴差*0.80,最低,1,0),COLORCYAN;
STICKLINE(每日一点x,最低+轴差*0.65,最低,1,0),COLORMAGENTA;
STICKLINE(突破x,最低+轴差*0.50,最低,1,0),COLORWHITE;
STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),最低+轴差*0.35,最低,1,0),COLORYELLOW;
STICKLINE(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低,最低+轴差*0.2,1,0),COLORGREEN;

DRAWICON(FILTER(CROSS(拉升量x,昨拉升最高值),30),最低+轴差*0.80,1);
DRAWICON(每日一点x,最低+轴差*0.65,1);
DRAWICON(突破x,最低+轴差*0.50,17);
DRAWICON(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,9);

DRAWTEXT(FILTER(CROSS(拉升量x,昨拉升最高值),30),最低+轴差*0.80,'☆攻击'),COLORCYAN;
DRAWTEXT(每日一点x,最低+轴差*0.65,'∠起爆'),COLORGREEN;
DRAWNUMBER(每日一点x,最低+轴差*0.55,首次起爆价),COLORGREEN;
{DRAWTEXT(CURRBARSCOUNT=160,HHV(V,60)*0.9,'20线上行+日价K线突破+日K线量起爆更好+估换手小于10%时更稳定'),COLORGREEN;};
DRAWTEXT(突破x,最低+轴差*0.50,'分时突破'),COLORWHITE;
DRAWNUMBER(突破x,最低+轴差*0.40,首次突破价),COLORWHITE;
DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),最低+轴差*0.35,'★迹'),COLORYELLOW;
DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.01),MAX(资金流量,攻击流量),18);
DRAWTEXT(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,'关注'),COLORRED;
 




未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:DHIGH
该公式包含未来函数:DCLOSE
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图