• 18976542384

    工作时间

    周一至周五:9:00-21:00

    周末及节日:9:00-18:00

  • 手机版二维码

    手机快速找资源

  • 扫描二维码

    加入官方qq群

[源码] 通达信指标公式源码日线压力止损止盈支撑位主图指标

0
回复
104
查看
[复制链接]

22

主题

2

回帖

123

积分

注册会员

Rank: 2

积分
123
发表于 2023-9-7 10:25:02 | 显示全部楼层 |阅读模式

通达信指标公式源码日线压力止损止盈支撑位主图指标

彩虹桥-投资充电站


CC:=IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL);

止赢:=1.05*CC,COLOR8000FF;

止损:=0.97*CC,COLORLIBLUE;

V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

V2:=(1-7/100)*(DMA(CLOSE,V1));

V3:=(1+7/100)*(DMA(CLOSE,V1));

V5:=MA((LOW+HIGH+CLOSE)/3,5);

支撑:=REFDATE(V2,DATE),DOTLINE,LINETHICK1,COLORLIRED;

阻力:=REFDATE(V3,DATE),DOTLINE,LINETHICK1,COLORGREEN;

DRAWTEXT(ISLASTBAR,阻力,'阻力'),COLORGREEN;

DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLORLIRED;

AAA:=CONST(HHV(H*0.5,90));

AA:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.86,0.01,1,'今日保护价'),LINETHICK2,COLOR00FFFF;

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.90,0.01,1,AA);

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.92,0.01,1,'元');

PT:=REF(H,1)-REF(L,1);

CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;

AH:=CDP+PT;

AL:=CDP-PT;

NH:=CDP*2-REF(L,1);

NL:=CDP*2-REF(H,1);

强:=IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH);

阻:=IF(NH>强,(强-CDP)*0.618+CDP,NH);

M:=IF(AL

撑:=IF(NL

底:=IF(AL

今日保护价:=(REF(C,2)+REF(C,1)+O)/3 ;

顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORYELLOW,DOTLINE;

低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLINE;

DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,低点,'底点'),COLORMAGENTA;

BS:=1;

MA7:=MA(CLOSE,BS);

转强:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+2+1);

转弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2+1);

BB2:=IF(C>REF(转强,1),1,IF(C

DD2:=BARSLAST(NOT(BB2=0));

B:=IF(BB2=0,REF(BB2,DD2),BB2);

中短:=IF(B=-2,MA(HIGH,6),MA(LOW,6));

STICKLINE(MA7<中短,LOW,HIGH,0,1),COLORCYAN;

STICKLINE(MA7>中短,LOW,HIGH,0,1),COLORRED;

STICKLINE(((OPEN>CLOSE)AND(MA7<中短)),(CLOSE-0.003),OPEN,3.1,0),COLORCYAN;

STICKLINE(((OPEN

STICKLINE(((OPEN>CLOSE)AND(MA7>中短)),OPEN,(CLOSE-0.003),3.1,0),COLORRED;

STICKLINE(((OPEN中短)),OPEN,CLOSE,3.1,1),COLORRED;

B点:=CROSS(MA7,中短);

持股:=MA7>中短;

DRAWICON(CROSS(MA7,中短),L*0.98,7);

DRAWICON(CROSS(中短,MA7),H*1.02,8);

{地区板块行业}

Z1:=STRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK);

Z3:=STRCAT(Z2,' ');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;

本人独创的技术和指标,不会使用或者有需要指标(全套源码)的朋友可以私信找我免费领取!

回复

使用道具 举报

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

本版积分规则

全国统一客服电话
18976542384

24x7小时免费咨询

  • 官方在线客服

    QQ客服:股海浪子

    点击交谈

    QQ客服:beyond

    点击交谈

    QQ客服:明月

    点击交谈
  • 广东省深圳市福田区深南大道2012号

  • 添加客服微信

    可领取网站任一指标一个

  • 加入指标qq分享群

    免费领取资源

Powered by Discuz!X3.4 ©2001-2013 Comsenz Inc.彩虹桥投资充电站( 粤ICP备19084539号 )|网站地图