• 18976542384

    工作时间

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

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

  • 手机版二维码

    手机快速找资源

  • 扫描二维码

    加入官方qq群

[源码] 通达信【九转趋势线】主图指标公式源码

1
回复
192
查看
[复制链接]

188

主题

38

回帖

1114

积分

金牌会员

Rank: 6Rank: 6

积分
1114
发表于 2023-11-7 08:25:00 | 显示全部楼层 |阅读模式

彩虹桥-投资充电站

九转趋势线指标公式:

AD1:=C>REF(C,4);


NT:=BARSLASTCOUNT(AD1);


TJ11:=NT=9;


TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);


AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;


DRAWTEXT(AY>0,H*1.02,VAR2STR(AY,0)),COLORFF00FF;


DRAWTEXT(NT=9,H*1.02,'9'),COLORGREEN;


B1:=C


NT0:=BARSLASTCOUNT(B1);


TJ21:=NT0=9 ;


TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);


AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;


DRAWTEXT(AY1>0,L*0.98,VAR2STR(AY1,0)),COLORFF00FF;


DRAWTEXT(NT0=9,L*0.98,'9'),COLORGREEN;


TJ:= C/REF(C,1)<0.95;


DRAWLINE(TJ,(O+C)/2,REF(TJ,1),REF((O+C)/2,1),1),COLORFF0000;


生命线:EMA(EMA(C,10),10),COLORRED,LINETHICK3;


B:=生命线>REF(生命线,1);


IF(B-1,生命线,DRAWNULL)COLORBLUE,LINETHICK3;


DRAWICON(CROSS(L,生命线),L*0.99,7);


DRAWICON(CROSS(生命线,L),H*1.01,8);


AB:=EMA(C,5) > EMA(C,20);


BB:=EMA(C,5) < EMA(C,20);


CA:= EMA(C,5) > EMA(C,10);


CA1:=EMA(C,5) < EMA(C,10);


DD:=CLOSE


STICKLINE(AB,H,L,0.1,0),COLORRED;


STICKLINE(AB,O,C,3,1),COLORRED;


STICKLINE(AB AND DD,O,C,3,0),COLORRED;


STICKLINE(BB,H,L,0.1,0),COLORGREEN;


STICKLINE(BB,O,C,3,1),COLORGREEN;


STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;


STICKLINE(BB AND CA,H,L,0.1,1),COLORWHITE;


STICKLINE(BB AND CA,O,C,3,0.1),COLORWHITE;


STICKLINE(BB AND CA AND DD,O,C,3,0),COLORWHITE;


STICKLINE(AB AND CA1,H,L,0.1,0),COLORWHITE;


STICKLINE(AB AND CA1,O,C,3,1),COLORWHITE;


STICKLINE(AB AND CA1 AND DD,O,C,3,0),COLORWHITE;


HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;

AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);


QY:=BACKSET(AA,HIGHN+1);


CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);


DRAWICON(CC,H*1.02,2);


DDD:=BARSLAST(CC);


GDTS:=IF(CC,CURRBARSCOUNT,0);


DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}


DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);


DINGBU1:=REF(DINGBU,DDD+1);


GDCS1:=CONST(DINGBUTS);


DINGBUTS1:=REF(DINGBUTS,DDD+1);


GDCS2:=CONST(DINGBUTS1);


DINGBU2:=REF(DINGBU1,DDD+1);


MM:=IF(CURRBARSCOUNT>GDCS2,0,1);


高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK;


DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLORGREEN,DOTLINE;


DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORFF0000,DOTLINE;


AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);


QY1:=BACKSET(AA1,LOWN+1);


CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);


DRAWICON(CC1,L*0.98,1);


DD1:=BARSLAST(CC1);


DDTS:=IF(CC1,CURRBARSCOUNT,0);


YDB:=IF(DD1,REF(L,DD1),L);


DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);


DDCS1:=CONST(DDTS1);


ZDB:=REF(YDB,DD1+1);


DDTS2:=REF(DDTS1,DD1+1);


DDCS2:=CONST(DDTS2);


低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORFF00FF,LINETHICK;


ZGSTAR:=(高点压力+低点支撑)/2;


ZGEND:=CONST((高点压力+低点支撑)/2);


STARDAY:=IF(DDCS2


中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFFFFFF,LINETHICK;


DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLOR0000FF,DOTLINE;


DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORFF00FF,DOTLINE;


涨停开板:=H>REF(C,1)*1.090 AND C


DRAWTEXT(涨停开板,HIGH*1.02,'炸板'),COLORGREEN;


D2:=REF(C,1);


跌停:=IF((D2-C)*100/D2>=(10-0.01*100/D2),1,0);


STICKLINE(跌停,OPEN,CLOSE,2,0),COLORBLUE;


STICKLINE(跌停,H,L,0,1),COLORBLUE;


DRAWTEXT_FIX(1,0.01,0,0,'行业:'),COLOR0000FF;


DRAWTEXT_FIX(1,0.04,0,0,HYBLOCK),COLORYELLOW;


DRAWTEXT_FIX(1,0.01,0.06,0,'概念:'),COLOR0000FF;


DRAWTEXT_FIX(1,0.04,0.06,0,GNBLOCK),COLORYELLOW;


DRAWTEXT_FIX(1,0.01,0.12,0,'地区:'),COLOR0000FF;


DRAWTEXT_FIX(1,0.04,0.12,0,DYBLOCK),COLORYELLOW;


DRAWTEXT_FIX(1,0.01,0.18,0,'风格:'),COLOR0000FF;


DRAWTEXT_FIX(1,0.04,0.18,0,FGBLOCK),COLORYELLOW;

DRAWTEXT_FIX(1,0.01,0.24,0,'指数:'),COLOR0000FF;


DRAWTEXT_FIX(1,0.04,0.24,0,ZSBLOCK),COLORYELLOW;


平均成本:=STRCAT(' 平均成本:',CON2STR(COST(50),2));


主力成本:=STRCAT(' 主力成本:',CON2STR(COST(4),2));


重心:=STRCAT(' 重心:',CON2STR((H+L+C)/3,2));


套牢盘%:=STRCAT(' 【套牢概率】:',CON2STR((1-WINNER(C))*100,2));


获利盘%:=STRCAT(' 【获利概率】:',CON2STR(100*WINNER(C),2));


筹码分析:=STRCAT('【筹码分析】',STRCAT(STRCAT(STRCAT(STRCAT(平均成本,主力成本),重心),套牢盘%),获利盘%));


DRAWTEXT_FIX(ISLASTBAR,0,1,0,筹码分析),COLOR0000FF;


MA5:MA(C,5);

彩虹桥-投资充电站

风险提示:本文所提到的观点仅代表个人的意见,所涉及标的不作推荐,据此买卖,风险自负。

回复

使用道具 举报

0

主题

9

回帖

31

积分

新手上路

Rank: 1

积分
31
发表于 2024-1-13 08:14:43 | 显示全部楼层
找了很久了,多谢!
回复

使用道具 举报

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

本版积分规则

全国统一客服电话
18976542384

24x7小时免费咨询

  • 官方在线客服

    QQ客服:股海浪子

    点击交谈

    QQ客服:beyond

    点击交谈

    QQ客服:明月

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

  • 添加客服微信

    可领取网站任一指标一个

  • 加入指标qq分享群

    免费领取资源

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