通达信分时图主图公式源码(通达信时空图指标源码)
本文目录一览:
- 1、求高手写个通达信当天开盘价在分时图上自动画线的分时主图指标?谢谢!
- 2、通达信公式源码如何装载到分时图中
- 3、求专业老师把这个大智慧分时主图公式修改成通达信可以通过的分时主图公式,下面是公式源码和大效果图
- 4、通达信分时主图K线定位公式
- 5、通达信分时图中 分时均价线黄线的源码怎么写
求高手写个通达信当天开盘价在分时图上自动画线的分时主图指标?谢谢!
用这个代码通达信分时图主图公式源码:
DYNAINFO(4)通达信分时图主图公式源码,COLORFF00AA;
很好用通达信分时图主图公式源码的分时主图指标公式:
M1:=36;
N1:=13;
N:=100;
Q:=5;
SHORT:=21;
LONG:=44;
MID:=11;
P2:=11;
DRAWGBK(C0通达信分时图主图公式源码,RGB(50,60,250),RGB(17,21,89),0,'11',0);
H1:=maX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORGREEN;
支撑:L1+P1*0.5/8,COLORRED;
中:(支撑+阻力)/2,COLORWHITE,POINTDOT;
现价:CLOSE,COLORWHITE,LINETHICK2;
顶卖:stICKLINE(C阻力,阻力,C,5,0),COLORGREEN;
底买:STICKLINE(CMR:=CDRAWTEXT(CROSS(现价,支撑),中,'★买'),COLORRED;
STICKLINE(CROSS(现价,支撑),C,中,2,0),COLORRED;
STICKLINE(MR=1,支撑,中,2,0),COLORRED;
DRAWICON(MR=1ORCROSS(现价,支撑),中,1);
STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORYELLOW;
DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,'★底'),COLORYELLOW;
MC:=C阻力ANDCROSS(REF(C,2),C);
DRAWTEXT(CROSS(阻力,现价),中,'★卖'),COLORGREEN;
STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORGREEN;
STICKLINE(MC=1,阻力,中,2,0),COLORGREEN;
DRAWICON(MC=1ORCROSS(阻力,现价),中,2);
STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORMAGENTA;
DRAWTEXT(CROSS(现价,阻力),阻力-(支撑-中)/5,'★顶'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,阻力,'顶'),COLORGREEN;
DRAWTEXT(ISLASTBAR,支撑,'底'),COLORRED;
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'中'),COLORWHITE;
每股净资产:=STRCAT(STRCAT('每股净资产:',CON2STR(FINANCE(34),2)),'元');
DRAWTEXT_FIX(1,0.22,0.92,0,每股净资产),COLORWHITE;
主营同比增长:=STRCAT(STRCAT('主营同比增长:',CON2STR(FINANCE(44),2)),'%');
DRAWTEXT_FIX(1,0.33,0.99,0,主营同比增长),COLORCYAN;
净利润同比增长:=STRCAT(STRCAT('净利润同比增长:',CON2STR(FINANCE(43),2)),'%');
DRAWTEXT_FIX(1,0.33,0.92,0,净利润同比增长),COLORYELLOW;
{销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR(FINANCE(21)/FINANCE(20)*100,2)),'%');}
销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%');
DRAWTEXT_FIX(1,0.22,0.99,0,销售毛利率),COLORCYAN;
DRAWTEXT_FIX(1,0.11,0.99,0,'每股收益:')COLORYELLOW;
DRAWTEXT_FIX(1,0.16,0.99,0,STRCAT(CON2STR(FINANCE(30)/FINANCE(1),2),'元'))COLORYELLOW;
DRAWTEXT_FIX(1,0.11,0.92,0,'每股市盈率:')COLORYELLOW;
DRAWTEXT_FIX(1,0.17,0.92,0,STRCAT(CON2STR(C/FINANCE(33),2),'倍'))COLORYELLOW;
DRAWTEXT_FIX(1,0.01,0.99,0,'流通A股:')COLORCYAN;
DRAWTEXT_FIX(1,0.06,0.99,0,STRCAT(CON2STR(CAPITAL/1000000,2),'亿股'))COLORCYAN;
DRAWTEXT_FIX(1,0.11,0.87,0,'每股未分配:元')COLORYELLOW;
DRAWTEXT_FIX(1,0.17,0.87,0,CON2STR(FINANCE(32),2))COLORYELLOW;
DRAWTEXT_FIX(1,0.01,0.92,0,'经营现金流:元')COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.92,0,CON2STR(FINANCE(25)/FINANCE(1),2))COLORYELLOW;
DRAWTEXT_FIX(1,0.50,0.99,0,'☆[热点概念]:')COLORYELLOW;
DRAWTEXT_FIX(1,0.57,0.99,0,EXTERNSTR(0,1))COLORYELLOW;
DRAWTEXT_FIX(1,0.50,0.92,0,'☆[主营行业]:')COLORCYAN;
DRAWTEXT_FIX(1,0.57,0.92,0,EXTERNSTR(0,2))COLORCYAN;
{DRAWTEXT_FIX(1,0.00,0.63,0,'[高送转信号]:')COLORCYAN;
DRAWTEXT_FIX(1,0.05,0.63,0,EXTERNSTR(0,3))COLORCYAN;};
所属板块:=STRCAT('☆【所属板块】',STRCAT(STRCAT(STRCAT('[行业]—',HYBLOCK),STRCAT('[地域]—',DYBLOCK)),STRCAT('[概念]—',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.50,0.87,0,所属板块),COLORYELLOW;
今日人气:=DYNAINFO(60)/DYNAINFO(61);
DRAWTEXT_FIX(1,0,0.87,0,'◆大盘人气:'),COLORYELLOW,LINETHICK4;
DRAWNUMBER_FIX(1,0.07,0.87,0,CONST(今日人气)),COLORYELLOW;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME虚拟量:=IF(CURRBARSCOUNT=1,vol*TOTAL/CTIME,DRAWNULL);
虚拟量比:=虚拟量/REF(VOL,1),COLORWHITE,LINETHICK0;
虚量值:=(虚拟量-VOL)/VOL,COLORWHITE,LINETHICK0;
DRAWTEXT_FIX(1,0.33,0.87,0,'▲量比:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.37,0.87,0,CONST(虚拟量比)),COLORYELLOW;
量价:=(VOL/CLOSE)/3;
统计主动买量:=SUM((IF(((量价0.20)AND(CLOSE(REF(CLOSE,1)))),量价,0)),0);
统计主动卖量:=SUM((IF(((量价0.20)AND(CLOSE涨停能量:=((统计主动买量)/统计主动卖量)*10,COLOR4080FF;
DRAWTEXT_FIX(1,0.22,0.87,0,'★涨停能量:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.28,0.87,0,CONST(涨停能量)),COLORYELLOW;
通达信公式源码如何装载到分时图中
shifu2211 说得对,通达信只能修改、新建分时附图,无法修改主图。分时图中只能显示系统中的叠加大盘分时线(看起来好别扭),还可以设置显示上穿下破价位(各是一条直线)。
大智慧就可以在分时图中叠加自己做的公式了,要想在实时图中看分时指标,建议用大智慧。
求专业老师把这个大智慧分时主图公式修改成通达信可以通过的分时主图公式,下面是公式源码和大效果图
KJ2:ref(D,barslast(20130125date+19000000)),COLORf00ff0,LINETHICK1,CIRCLEDOT; {日线级别强势线,潜力股,站在此线上,为建仓信号}
KJ4:ref(Z,barslast(20130125date+19000000)),COLORGREEN,LINETHICK1,CIRCLEDOT; {日线级别强弱分界线,在此线之上,可以一直持仓}
KJ5:ref(Y,barslast(20130125date+19000000)),COLORYELLOW,LINETHICK1,CIRCLEDOT;{日线级别强压力线,注意风险和趋势的强弱}
KJ6:ref(K,barslast(20130125date+19000000)),COLORWHITE,LINETHICK1,CIRCLEDOT; {日线级别空头线,破此线,坚决清仓}
DRAWTEXT(DISPSTATUS=2,KJ2,'强势线'+NUMTOSTRN(KJ2,2)+'元'),colorwhite,LINETHICK2;
DRAWTEXT(DISPSTATUS=2,KJ4,'强弱分界线'+NUMTOSTRN(KJ4,2)+'元'),colorwhite,LINETHICK2;
DRAWTEXT(DISPSTATUS=2,KJ5,'突破线'+NUMTOSTRN(KJ5,2)+'元'),colorwhite,LINETHICK2;
DRAWTEXT(DISPSTATUS=2,KJ6,'破位线'+NUMTOSTRN(KJ6,2)+'元'),colorwhite,LINETHICK2;
DRAWTEXTABS(0,10,'板块:'+BKNAME ),linethick5;
DRAWTEXTABS(0,50,'流通盘:'+NUMTOSTRN( CAPITAL/1000000,2 )+'亿股' ),linethick5,COLORF000F0;
DRAWTEXTABS(250,50,'流通市值:'+NUMTOSTRN( CAPITAL/1000000*close,2 )+'亿元' ),linethick5,COLORF000F0;
DRAWTEXTABS(550,50,'市盈率:'+NUMTOSTRN( DYNAINFO(39),0)+'倍' ),linethick5,COLORF000F0;
通达信分时主图K线定位公式
定位公式,QW1:=(HIGH+LOW+CLOSE*2)/4;QW3:=EMA(QW1,10);QW4:=STD(QW1,10);QW5:=(QW1-QW3)*100/QW4;QW6:=EMA(QW5,5);RK7:=EMA(QW6,10);__:EMA(QW6,10)+100/2-5,LINETHICK1,COLORRED;__:EMA(__,4),LINETHICK1,COLORFFFF34;_à__:IF(CROSS(__,__) AND __ REF(__,1),__,EMA(__,3),2,0) ,COLOR0088FF;DRAWICON(_à__,30,1);DRAWICON(CROSS(__,80),70,2);DRAWTEXT(CROSS(__,__) AND __-10,40,_ò__),COLORCCFF99;DRAWTEXT(_à__0,-20,____),COLOR0000FF;VAR811:=SUMBARS(VOL,FINANCE(7)*100);VAR822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);VAR883:=(CLOSE-VAR822)/VAR822*100;VAR884:=HHV(VAR883,VAR811);VAR885:=LLV(VAR883,VAR811);VAR886:=(VAR883-VAR885)/(VAR884-VAR885)*100;K:=SMA(VAR886,3,1);D:=SMA(K,3,1);J:=3*K-2*D;MA1:=MA(J,3);STICKLINE(FILTER(JMA1 AND JMA1 AND J(VAR3)*13*10,COLORBLUE,LINETHICK2;VAR18:=HHV(HIGH,30);VAR19:=LLV(LOW,30);NL:=EMA((CLOSE-VAR19)/(VAR18-VAR19)*100,5)/8*10;VAR3B:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR3C:=SMA(VAR3B,3,1);VAR3D:=SMA(VAR3C,3,1);VAR3E:=SMA(VAR3D,3,1);VAR3F:=CROSS(VAR3D,VAR3E) AND VAR3D80;VAR41:=5;DRAWTEXT(CROSS(VAR41,NL),30,__×__×),COLORWHITE;
通达信分时图中 分时均价线黄线的源码怎么写
DYNAINFO(10)/DYNAINFO(8)/100;
这是当日随着时间的推移显示的即时均价,画出来的是一条直线,所以只能用不能看。