通达信【满仓买入】超短打板分时主图指标




A1:=(DVOL/C)/2,NODRAW;

A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);

A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);

A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);

A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);

A6:=A2+A3+A4+A5;

A7:=IF((BARSTATUS=2),((100*A2)/A6),0);

A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));

A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));

A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));

机构买盘:=(A2),LINETHICK2;

机构卖盘:=(A3),LINETHICK2;

散户买盘:=(A4);

散户卖盘:=(A5);

机构买:=(A2),LINETHICK6,COLORRED;

机构卖:=(A3),LINETHICK6,COLORGREEN;

DD1:=1;

AAA1:=STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%');

AAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%');

AAA3:=STRCAT(STRCAT('净买入',CON2STR((100*(A2-A3))/A6,0)),'%');

DRAWTEXT_FIX(DD1=1,0,0.04,0,AAA1),COLORRED;

DRAWTEXT_FIX(DD1=1,0,0.12,0,AAA2),COLORGREEN;

DRAWTEXT_FIX(DD1=1,0,0.20,0,AAA3),COLOR00FFFF;

{以上是机构买卖数据,净买入考虑做多,净卖出逢高卖出}

{分时超短打板主图指标公式}

CTA0:HHV(H,480),DOTLINE,COLORCYAN;

CTA1:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;

CTA2:=BARSLAST((CTA1-REF(CTA1,1))!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1;

CTA3:=REF(C,CTA2);

CTA4:=REF(CTA3,CTA2);

CTA5:=REF(CTA4,CTA2);

CTA6:=REF(CTA5,CTA2);

CTA7:=REF(CTA6,CTA2);

CTA8:=REF(CTA7,CTA2);

CTA9:=REF(CTA8,CTA2);

CTA10:=REF(CTA9,CTA2);

CTA11:=REF(CTA10,CTA2);

CTA12:=MAX(DYNAINFO(3),DYNAINFO(5));

CTA13:=MIN(DYNAINFO(3),DYNAINFO(6));

CTA14:=CTA12-CTA13;

CTA15:CTA13+CTA14*8/9,COLORLIRED,DOTLINE;

CTA16:CTA13+CTA14*0.5/9,COLORGREEN,DOTLINE;

CTA17:IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW,DOTLINE;

CTA18:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);

CTA19:=EMA(CTA18,9);

CTA20:=10*(CTA18-CTA19);

CTA21:=EMA(CTA20,2);

STICKLINE(CTA20>=CTA21 AND CTA20>=0,DYNAINFO(3),CTA20+DYNAINFO(3),0,-1),COLORLIGRAY;

STICKLINE(CTA20<CTA21 AND CTA20>0,DYNAINFO(3),CTA20+DYNAINFO(3),0,-1),COLORLICYAN;

STICKLINE(CTA20>=CTA21 AND CTA20<0,DYNAINFO(3),CTA20+DYNAINFO(3),0,-1),COLORLIGRAY;

STICKLINE(CTA20<CTA21 AND CTA20<0,DYNAINFO(3),CTA20+DYNAINFO(3),0,-1),COLORLIGREEN;

CTA22:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));

CTA23:=EXPMA(CLOSE/CTA22,20);CTA24:=EXPMA(CLOSE/CTA22,60);CTA25:=EXPMA(CLOSE/CTA22,120);

CTA26:=1;1.022,NODRAW;CTA27:=1.033;

DRAWTEXT(CROSS(CTA23,1.02),C*0.999,' 拉'),COLORMAGENTA,LINETHICK9;

DRAWICON(CROSS(CTA23,1.04),C,45);

DRAWTEXT(CROSS(CTA23,1.04),C*0.999,' 冲'),COLORRED,LINETHICK9;

CTA28:=(VOL/CLOSE)/3;

CTA29:=SUM((IF(((CTA28>40) AND (CLOSE>(REF(CLOSE,1)))),CTA28,0)),0);

CTA30:=SUM((IF(((CTA28>40) AND (CLOSE<(REF(CLOSE,1)))),CTA28,0)),0);

CTA31:=SUM((IF(((CTA28<40) AND (CLOSE>(REF(CLOSE,1)))),CTA28,0)),0);

CTA32:=SUM((IF(((CTA28<40) AND (CLOSE<(REF(CLOSE,1)))),CTA28,0)),0);

CTA33:=((CTA29+CTA30)+CTA31)+CTA32;

CTA34:=IF((BARSTATUS=2),((100*CTA29)/CTA33),0);

CTA35:=((IF((BARSTATUS=2),((100*CTA30)/CTA33),0)));

CTA36:=((IF((BARSTATUS=2),((100*CTA31)/CTA33),0)));

CTA37:=((IF((BARSTATUS=2),((100*CTA32)/CTA33),0)));

DRAWTEXT(LONGCROSS(CTA16,C,2),C-0.01,'满仓买入'),COLORRED,LINETHICK9;

DRAWICON(LONGCROSS(CTA16,C,2),C-0.01,1);

STICKLINE(LONGCROSS(CTA16,C,2),C,CTA15,0,-1),COLORCYAN;

DRAWTEXT(LONGCROSS(C,CTA15,2),C+0.01,'卖出'),COLORGREEN,LINETHICK9;

DRAWICON(LONGCROSS(C,CTA15,2),C+0.01,45);




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

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

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