Logo



通达信超强主图b指标源码(通达信多空指标 主副图源码)

知道通达信指标源码,怎样编出这个的选股公式?如能把主图公式指标也给改一下让它显示的更直观更好。

选股公式:

JJ1:=MA(C,30);

JJ2:=MA(C,60);

入1:=IF(JJ1REF(JJ1,1),JJ1,DRAWNULL),COLORRED,LINETHICK2;

入2:=IF(JJ1REF(JJ1,1),JJ1,DRAWNULL),COLOR00FF00,LINETHICK2;

JJ:=(HIGH+LOW+CLOSE)/3;

QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));

DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;

V2:=SMA(IF(C=REF(C,1),DDX,-DDX/100),2,1);

V5:=SMA(V2*120/FROMOPEN*5,2,1);

V10:=SMA(V5,5,1);

V20:=SMA(V10,5,1);

DY:=CURRBARSCOUNT=1 AND CREF(C,1);

DY2:=REF(V2,1)-DY;

TT:=(V2*1.01-REF(V2,1));

TT2:=(REF(V2*1.01,1)-REF(V2,2));

YY:=TT3*ABS(TT2);

TT1:=EMA(V2,15);

A:TT0 AND CROSS(TT,TT1) AND YY;

主图公式修改如下:

DRAWKLINE(H,O,L,C);

JJ:=(HIGH+LOW+CLOSE)/3;

QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));

DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;

V2:=SMA(IF(C=REF(C,1),DDX,-DDX/100),2,1);

V5:=SMA(V2*120/FROMOPEN*5,2,1);

V10:=SMA(V5,5,1);

V20:=SMA(V10,5,1);

DY:=CURRBARSCOUNT=1 AND CREF(C,1);

DY2:=REF(V2,1)-DY;

TT:=(V2*1.01-REF(V2,1));

TT2:=(REF(V2*1.01,1)-REF(V2,2));

YY:=TT3*ABS(TT2);

TT1:=EMA(V2,15);

DRAWTEXT(TT0 AND CROSS(TT,TT1) AND YY,LOW,'━买入'),COLORYELLOW;

A111:=COST(85);

A222:=COST(15);

A333:=A111-A222;

A444:=(A111+A222)/2;

单峰密集:=A333/A444*10030,LINETHICK0;

BU1:=HHV(HIGH,250);

BU2:=LLV(LOW,250);

BU3:=BU1-BU2;

BU4:=(A444-BU2);

低位:=A444(BU3*04+BU2),LINETHICK0;

低位单峰密集:=单峰密集 AND 低位;

BU5:=C/REF(C,1)1.04; {AND V/REF(V,1)2;{ AND H=C;}

主力持仓%:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);

主力持仓:=主力持仓%=75 {AND 主力持仓%=91} AND C0 AND CLOSEOPEN;

强突:=主力持仓 AND 低位单峰密集 AND BU4 AND WINNER(C)=0.90 AND BU5;

集买:=低位单峰密集 AND TT0 AND CROSS(TT,TT1) AND YY AND WINNER(C)=0.90;

DRAWICON(集买,HIGH,6);

这是通达信主图指标,请高手帮忙改成“B”点出现选股公式

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);

BU:CROSS(买线,卖线);

怎样加入通达信超赢指标源码

这比较简单

1点击 上方窗口中的《工具》

2在在工具栏上打钩

3在右边出现一个工具栏。点击第10项 公式管理器

4屏幕中间出现个方框,

5点击方框内 《新建》

6把楼上的那个家伙的源码复制过来,那家伙分为两段,你先复制第一段主图源码。

7.在你复制之后,回到通达信中,在你这个公式编辑页面,先输入个公式名称,举例:AAAA

8.在这个编辑公式的方框的右上角把 划线方法设置为:主图叠加。

9.把你复制的主图源码,粘贴在方框的 正中间最大的方框内

10点击这公式的右上角,的确定。

这个就OK了 ,,

这个时候你用鼠标点击 K线图中的主图位置,输入AAAA 回车

主图就看到了

附图指标添加也简单

就是把上面第8项去掉,那个地方设置为,附图,就OK了

纯手写,强烈要求采纳 群132762325

通达信超赞的主图指标公式是怎样的

Z1:=STRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK);

Z3:=STRCAT(Z2,' ');

DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORLIRED;

DRAWTEXT_FIX(ISLASTBAR,0,0.03,0,EXTERNSTR(0,3)),COLORWHITE;

DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,EXTERNSTR(0,6)),COLORLIBLUE;

DRAWTEXT_FIX(ISLASTBAR,0,0.09,0,EXTERNSTR(0,12)),COLORLIGREEN;{老王}

DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,FGBLOCK),COLORLIMAGENTA;

DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,EXTERNSTR(0,1)),COLORYELLOW;{融胜}

主力成本线:EMA(COST(9),250),COLORBROWN,DOTLINE;

{牛马线买点公式升级版}

MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;

牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;

马线:MA(牛线,8),COLORWHITE;

DRAWICON( FILTER(CROSS(牛线,马线),20),马线-0.002 ,1);

DRAWTEXT(CROSS(牛线,马线),LOW*0.984,'买'),COLORRED,LINETHICK2;

止损价:H*0.95,LINETHICK0.5,COLORRED;

庄家:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+

16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+

13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+

10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+

7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+

4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;

IF(庄家=REF(庄家,1),庄家,DRAWNULL),COLORRED,LINETHICK4;

IF(庄家=REF(庄家,1),庄家,DRAWNULL),COLORGREEN,LINETHICK2;

DRAWBAND(牛线,RGB(255,87,22),马线,RGB(0,30,255));

MA60:MA(CLOSE,60),COLORGRAY;

N1:=10;

TK:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;

量能平台:IF(CURRBARSCOUNT=N1+3,CONST(IF(TK=0,C,REF(C,TK))),DRAWNULL),COLORGRAY,LINETHICK1;

NOTEXT_新量能点:IF(CURRBARSCOUNT=TK+1,量能平台,DRAWNULL),CIRCLEDOT,COLORFFFFFF,LINETHICK9;

DRAWTEXT(ISLASTBAR,量能平台,'量能平台'),COLORGRAY;

{稳涨}

红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;

轨道:MA(MA(CLOSE,3),3),COLOR32CD32,LINETHICK2;

NOTEXT_升:IF(红轨道=轨道,轨道,DRAWNULL),COLORMAGENTA,LINETHICK2;

机构:(L2_VOL(0,0) - L2_VOL(0,1))*10000/FINANCE(7),NODRAW,COLORRED;

大户:(L2_VOL(1,0) - L2_VOL(1,1))*10000/FINANCE(7),NODRAW,COLORMAGENTA;

主力:机构+大户,NODRAW,COLORYELLOW;

STICKLINE(主力0,O,C,1.5,1),COLORRED;

STICKLINE(主力0,O,C,1.5,1),COLORCYAN;

STICKLINE(大户0,O,C,1,0),COLORMAGENTA;

STICKLINE(大户0,O,C,1,0),COLORGREEN;

STICKLINE(机构0 AND 大户0,O,(O+C)/2,1,0),COLORRED;

STICKLINE(机构0 AND 大户0,C,(O+C)/2,1,0),COLORCYAN;

STICKLINE(机构0 AND 大户0,O,(O+C)/2,1,0)COLORMAGENTA;

STICKLINE(机构0 AND 大户0,C,O,1,0)COLORLICYAN;

累计:=SUM(主力,30),COLORMAGENTA;

均值:=EMA(累计,MIN(10,30)),COLORWHITE;

{红}

STICKLINE(CROSS(累计,均值),H,L,0,0),COLORRED,LINETHICK1;

STICKLINE(CROSS(累计,均值),CLOSE,OPEN,1.4,0),COLOR000088;

STICKLINE(CROSS(累计,均值),CLOSE,OPEN,1,0),COLOR0000BB;

STICKLINE(CROSS(累计,均值),CLOSE,OPEN,0.6,0),COLOR0000DD;

STICKLINE(CROSS(累计,均值),CLOSE,OPEN,0,0),COLOR0000FF;

{蓝}

STICKLINE(CROSS(均值,累计),H,L,0,0),COLORFF8800,LINETHICK1;

STICKLINE(CROSS(均值,累计),CLOSE,OPEN,1.4,0),COLORBB4400;

STICKLINE(CROSS(均值,累计),CLOSE,OPEN,1,0),COLORCC5500;

STICKLINE(CROSS(均值,累计),CLOSE,OPEN,0.6,0),COLORDD6600;

STICKLINE(CROSS(均值,累计),CLOSE,OPEN,0,0),COLOREE7700;

{高低点定位}

G0:=(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))+XMA(XMA(H,30),30);

D0:=XMA(XMA(L,30),30)-(XMA(XMA(H,30),30)-XMA(XMA(L,30),30));

G01:=(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))*0.5+XMA(XMA(H,30),30);

D01:=XMA(XMA(L,30),30)-(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))*0.5;

GO0:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3+XMA(XMA(H,60),60);

DO0:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3;

STICKLINE(CURRBARSCOUNT=1,G0,G0,100,5),COLORGREEN;

STICKLINE(CURRBARSCOUNT=1,D0,D0,100,5),COLORMAGENTA;

STICKLINE(CURRBARSCOUNT=1,GO0,GO0,100,5),COLORLIBLUE;

STICKLINE(CURRBARSCOUNT=1,DO0,DO0,100,5),COLORRED;

DRAWTEXT(ISLASTBAR,G0,'卖'),COLORGREEN;

DRAWTEXT(ISLASTBAR,D0,'买'),COLORMAGENTA;

DRAWTEXT(ISLASTBAR,GO0,'顶'),COLORLIBLUE;

DRAWTEXT(ISLASTBAR,DO0,'底'),COLORRED;

由于公式字符过多,这里限制数量无法发出,

通达信软件的主图和两个副图的指标源码改为条件选股公式

把原码拷贝过来就行了,把在条件选股公式里的指标的原码全部拷贝到技术指标公式--其他公式。再命名,可以同名的

请大神把下面的源码改成通达信主图指标,跪谢!

MA7:MA(CLOSE,7),COLORFFFFFF,LINETHICK1;

MA15:EMA(C,15),LINETHICK1,COLORYELLOW;

MA18:=EMA(CLOSE,18),COLORGREEN;

买线:=ZIG(3,10);

卖线:=MA(买线,3);

BU:=CROSS(买线,卖线);

SEL:=CROSS(卖线,买线);

DRAWTEXT(BU,L*0.99,'买'),LINETHICK1,COLOR00AAFF;

DRAWTEXT(SEL,H*1.01,'卖'),LINETHICK1,COLOR00FF00;

DRAWTEXT('X09A.T'0,L*0.99,'B'),LINETHICK1,COLORFFFFFF;

DRAWTEXT('X09A.T1'0,L*0.99,'B'),LINETHICK1,COLOR0000FF;

STICKLINE(买线=卖线,LOW,HIGH,0.1,0),COLOR0000CC;

STICKLINE(买线=卖线,CLOSE,OPEN,7,0),COLOR0000CC;

STICKLINE(买线卖线,CLOSE,OPEN,7,0),COLORCCCC00;

STICKLINE(买线卖线,LOW,HIGH,0.1,0),COLORCCCC00;

STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),COLOR00AAFF;

STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),COLOR00DD00;

由于

DRAWTEXT('X09A.T'0,L*0.99,'B'),LINETHICK1,COLORFFFFFF;

DRAWTEXT('X09A.T1'0,L*0.99,'B'),LINETHICK1,COLOR0000FF;

这段引入通达信超强主图b指标源码了另外公式X09A.T1和 X09A.T 通达信超强主图b指标源码通达信超强主图b指标源码你必须新建另外这两个公式才可以,否则,无法正常显示。

通达信或者大智慧怎么将源码添加到主图指标里,

通达信:功能---专家系统---公式管理器---用户(选取一个节点如:其他类型)---新建:给公式起名称,粘贴公式至编辑栏中,选取“画线方法/主图叠加”,测试通过后,点击确认即可。

注意:不是所有的公式都可以作为主图叠加的。

大智慧的方法与通达信类同,你自己琢磨一下。

通达信主图指标源码,求老师看有没有未来,并帮改成选股和预警公式,谢谢

(1)无未来函数

(2)选股公式如下(买入):

VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));

VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));

VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));

DIR1:=ABS(CLOSE-REF(CLOSE,5));

VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);

ER1:=DIR1/VIR1;

CS1:=ER1*(0.8-2/8)+2/8;

CQ1:=CS1*CS1;

DIR2:=ABS(CLOSE-REF(CLOSE,10));

VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);

ER2:=DIR2/VIR2;

CS2:=ER2*(0.8-2/24)+2/24;

CQ2:=CS2*CS2;

CROSS(VAR2,MA(VAR3,6));

  通达信超强主图b指标源码 


评论


最新评论