低进高出指标主图源码_短进高出主图源码

hacker|
110

文章目录:

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

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

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

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

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

选股公式:

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

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

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

求股票好用的有买卖提示的技术指标源码

{这是我用的同花顺‘粉进黄出’主图指标,不知是不是楼主想要的?}

日均线5: MA(CLOSE,5),COLOR00FFFF;

日均线10: MA(CLOSE,10),COLORFF00FF;

BOLL中线: MA(CLOSE,20),COLORFF0000;

BOLL顶线: BOLL中线+2*STD(CLOSE,26),COLORFFFF10;

BOLL底线: BOLL中线-2*STD(CLOSE,26),COLORFFCC66;

MA6:= MA(CLOSE,6);

MA18:= MA(CLOSE,18);

MA30:= MA(CLOSE,30);

MA60:= MA(CLOSE,60);

AAF:= LLV(LOW,34);

BBF:= MA(AAF,4);

LC:= REF(CLOSE,1);

RSI:= SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;

DRAWICON(CROSS(84,RSI),HIGH*1.03,5),COLOR0000FF;

DRAWICON(CROSS(RSI,11),LOW*0.99,4),COLOR008000;

VAR27:= REF(CLOSE,1);

VAR28:= SMA(MAX(CLOSE-VAR27,0),5.5,1)/SMA(ABS(CLOSE-VAR27),6,1)*100;

DRAWICON(IF(CROSS(76,VAR28),1,0),HIGH*1.03,5),COLORFF0000;

DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)0 AND EMA(CLOSE,12)/LOW1.15,5),LOW,'☆'),COLORFF00FF;

VARA:= AMOUNT/VOL/100;

VARB:= (3*HIGH+LOW+OPEN+2*CLOSE)/7;

VARC:= SUM(AMOUNT,7)/VARA/100;

VARD:= DMA(VARB,VOL/VARC);

VARE:= (CLOSE-VARD)/VARD*100;

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

VARJ:= MA(VARE,20)+STD(VARE,20);

BIAS18:= (CLOSE-MA(CLOSE,18))/MA(CLOSE,18)*100;

AA:= SMA(VARF,3,1);

SS:= REF(BIAS18,1)=5 AND CROSS(VARJ,VARE) AND AA79;

DRAWTEXT(REF(BIAS18,1)=5 AND CROSS(VARJ,VARE) AND AASS,HIGH*1.02,'☆'),COLOR008000;

VAR1:= ZIG(3,10)REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)REF(ZIG(3,10),2);

VAR2:= ZIG(3,10)REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)REF(ZIG(3,10),2);

STICKLINE(VAR1,CLOSE,OPEN,8,0),COLOR00FFFF;

STICKLINE(VAR1,CLOSE,OPEN,3,0),COLOR00FFFF;

STICKLINE(VAR1,HIGH,LOW,1,0),COLOR00FFFF;

STICKLINE(VAR2,CLOSE,OPEN,8,0),COLORFF00FF;

STICKLINE(VAR2,CLOSE,OPEN,3,0),COLORFF00FF;

STICKLINE(VAR2,HIGH,LOW,1,0),COLORFF00FF;

VAR2,LINETHICK0,COLOR0000FF;

引用的,其实我也在用同花顺,不过技术没你这么高了。还要用到指标源码了,是工具里面的?

请老师帮忙编写下图主图指标公式,用在通达信版

通达信专用机构通道主图指标公式

M1:=EMA(C,5);M2:=EMA(C,13);M3:=EMA(C,34);

MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);

判势线:=NEWSAR(1,100),COLORYELLOW,LINETHICK2;

牛熊线:IF(MC1MAX(MC2,MA4),MC1,IF(MC1MIN(MC2,MA4),MC2,MA4)),COLORFF00CC,LINETHICK2;

AA:=1;

中轨:EMA(CLOSE,17)*AA,LINETHICK1,COLORFFFFFF;

卖出线:中轨+2*STD(CLOSE,17),LINETHICK1,COLOR0000FF;

买入线:中轨-2*STD(CLOSE,17),LINETHICK1,COLOR00CC00;

清仓线:中轨+3*STD(CLOSE,17),LINETHICK1,COLORFF00FF;

满仓线:中轨-3*STD(CLOSE,17),LINETHICK1,COLOR00AA00;

LOCK:=IF(TIME1160101,1,0);

VARA:=MA(CLOSE,20);

趋势线:IF(VARAREF(VARA,2),VARA,IF(VARAREF(VARA,2),VARA,VARA)),COLOR00FF00;

IF(VARAREF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLORFF00FF;

IF(VARA=REF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLORFF0000;

IF(VARAREF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLOR00FF00;

买入:IF(VARAREF(VARA,2) AND REF(VARA=REF(VARA,2),1),1,0),NODRAW,COLORAAAAAA;

DRAWICON(CROSS(LOW,满仓线),满仓线*0.96,11);

DRAWICON(CROSS(HIGH,清仓线),HIGH,12);

TY:=CLOSE;

A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);

A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);

A:=REF(CLOSE,BARSLAST(HD)); B:=REF(CLOSE,BARSLAST(LD));

T1:=BARSLAST(HD)BARSLAST(LD) AND NOT(HD) ;

T2:=BARSLAST(HD)BARSLAST(LD) AND NOT(LD);

波峰:IF(T1,A,A),COLORFF00FF,POINTDOT;

STICKLINE(T1,A,A,1.5,0),COLORFF00FF;

波谷:IF(T2,B,B),COLOR80FF00,POINTDOT;

STICKLINE(T2,B,B,1.5,0),COLOR80FF00;

MA1:=MA(C,3);

XG1:=MA1REF(MA1,1) AND REF(MA1,1)REF(MA1,2) AND CMA(C,7);

DRAWTEXT(FILTER(XG1,9),LOW*0.97,'B'),COLORRED,LINETHICK2;

DRAWICON(FILTER(XG1,9),LOW*0.98,1);

VAR2:=SUM(IF(CLOSEOPEN,VOL,0),30)/SUM(VOL,30)*100;

VAR3:=100-SUM(IF(CLOSEOPEN,VOL,0),30)/SUM(VOL,30)*100;

多头力量:= VAR2;

空头力量:= VAR3;

RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

XG2:=多头力量 空头力量 AND 多头力量 - 空头力量30 AND CROSS(D,K) OR

MA1REF(MA1,1) AND REF(MA1,1)REF(MA1,2) AND REF(MA1,2)REF(MA1,3) AND K50;

DRAWTEXT(FILTER(XG2,9),H*1.06,'S'),COLORGREEN,LINETHICK2;

DRAWICON(FILTER(XG2,9),H*1.02,2);

{跳空缺口}

LL1:=REF(L,1);

HH1:=REF(H,1);

SQK:=LHH1;

XQK:=HLL1;

上跳:IF(SQK=1,L-HH1,DRAWNULL),COLORFF00FF,CROSSDOT,LINETHICK3,NODRAW;

下跳:IF(XQK=1,H-LL1,DRAWNULL),COLORGREEN,CROSSDOT,LINETHICK3,NODRAW;

STICKLINE(SQK,L,HH1,4*1,1),COLORYELLOW;{上跳}

STICKLINE(XQK,H,LL1,4*1,2),COLOR00FF00;{下跳}

DRAWTEXT(SQK,H,'上跳'),COLORYELLOW;

DRAWTEXT(XQK,L,'下跳'),COLOR00FF00;

{补缺口}

K1:=BARSLAST(LREF(H,1));

K2:=LREF(H,K1+1) AND COUNT(LREF(H,K1+1),K1)=1;

STICKLINE(K2,L,O,1,0),COLORFF00FF;{缺口回补};

DRAWTEXT(K2=1,L,'回补'),COLORFF00FF;

2条大神的评论

  • avatar
    访客 2022-07-16 上午 12:22:26

    式指标也给改一下让它显示的更直观更好。选股公式:JJ1:=MA(C,30);JJ2:=MA(C,60);入1:=IF(JJ1REF(JJ1,1),JJ1,DRAWNULL

  • avatar
    访客 2022-07-16 上午 02:28:55

    =CURRBARSCOUNT=1 AND CREF(C,1);DY2:=REF(V2,1)-DY;TT:=(V2*1.01-REF(V2,1));TT2:=(REF(V2*1.0

发表评论