通达信MA主图指标源码大全_通达信ma指标公式源码

hacker|
129

文章目录:

求通达信主图指标公式

X0:=BACKSET(REF(C,3)MA(C,3) AND REF(V,3)MA(V,3) AND REF(C/REF(C,1)1.03 AND CO,3),4);

X1:=X0 AND REF(X0,1)=0;

STICKLINE(X1,H,C,0,0),COLORFF0080;

STICKLINE(X1,O,C,3,0),COLORFF0080;

STICKLINE(X1,L,O,0,0),COLORFF0080;

X3:=BACKSET(LLV(L,3)REF(C,3) AND REF(X1,3),4);

STICKLINE(X3,REF(C,BARSLAST(X1)),REF(C,BARSLAST(X1)),5,0),COLORFF0080;

X5:=BACKSET(LLV(L,3)REF(O,3) AND REF(X1,3),4);

STICKLINE(X5,REF(L,BARSLAST(X1)),REF(L,BARSLAST(X1)),5,0),COLORFF0080;

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

(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));

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

选股公式:

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);

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

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;

这段引入了另外公式X09A.T1和 X09A.T ,你必须新建另外这两个公式才可以,否则,无法正常显示。

5条大神的评论

  • avatar
    访客 2022-09-24 下午 10:12:33

    BACKSET(REF(C,3)MA(C,3) AND REF(V,3)MA(V,3) AND REF(C/REF(C,1)1.03 AND CO,3),4);X1:=X0 AND REF(X0,1)=0;STICKLINE(X1,H,C,0,0),COLORFF0080;STI

  • avatar
    访客 2022-09-24 下午 06:32:52

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

  • avatar
    访客 2022-09-24 下午 12:38:09

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

  • avatar
    访客 2022-09-24 下午 02:16:23

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

  • avatar
    访客 2022-09-24 下午 10:17:11

    C)=0.90;DRAWICON(集买,HIGH,6);请大神把下面的源码改成通达信主图指标,跪谢!MA7:MA(CLOSE,7),COLORFFFFFF,LINETHICK1;MA15:EMA(C,15),LINETHICK

发表评论