支撑压力指标公式源码_支撑压力位指标源码

hacker|
106

文章目录:

求博易大师支撑压力公式源码

由于原码是加密的,将原码全部公开出来,可能会对那牛有一定的影响,所以只能个别交流

通达信自动画支撑压力线指标怎么设置

通达信自动画支撑压力线指标设置

首先要对公式了解和认识,会编写公式的前提下,才可以对公式进行修改。

对于设置,要看使用公式者的习惯,计算的周期不同,计算的结果也会不一样。

如果需要帮助,首先把公式源码发出来,然后给出你的要求,才好帮你修改。

毕竟支撑压力线指标有很多种类。

入门股指期货,有没有大师给我一个通达信的黄金分割指标,带压力支撑位的公式?

新建一个公式,输入以下源码即可

{主图公式:支撑压力射线加黄金分割}

N:=75;P:=5;P1:=10;{N为多少天内的高低值参数,我以自已的初始K线根数定义。P1、P2为短、长支撑压力取点参数}

A1:=REF(H,P)=HHV(H,2*P+1);

B1:=FILTER(A1,P);

C1:=BACKSET(B1,P+1);

D1:=FILTER(C1,P);

E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);

F1:=E1REF(E1,1);

短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN;

A2:=REF(L,P)=LLV(L,2*P+1);

B2:=FILTER(A2,P);

C2:=BACKSET(B2,P+1);

D2:=FILTER(C2,P);

E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);

F2:=E2REF(E2,1);

短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;

AA1:=REF(H,P1)=HHV(H,2*P1+1);

BB1:=FILTER(AA1,P1);

CC1:=BACKSET(BB1,P1+1);

DD1:=FILTER(CC1,P1);

EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);

FF1:=EE1REF(EE1,1);

长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;

AA2:=REF(L,P1)=LLV(L,2*P1+1);

BB2:=FILTER(AA2,P1);

CC2:=BACKSET(BB2,P1+1);

DD2:=FILTER(CC2,P1);

EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);

FF2:=EE2REF(EE2,1);

长支:DRAWLINE(DD2,L,FF2,L,1),COLORRED;

STICKLINE(C=O,C,O,3,0),COLOR000045;

STICKLINE(C=O,C,O,2.5,0),COLOR000065;

STICKLINE(C=O,C,O,2,0),COLOR000085;

STICKLINE(C=O,C,O,1.5,0),COLOR0000A5;

STICKLINE(C=O,C,O,1,0),COLOR0000C5;

STICKLINE(C=O,C,O,0.5,0),COLOR0000E5;

STICKLINE(C=O,H,L,0,0),COLOR0000F5;

STICKLINE(CO,C,O,3,0),COLOR353500;

STICKLINE(CO,C,O,2.5,0),COLOR454500;

STICKLINE(CO,C,O,2,0),COLOR555500;

STICKLINE(CO,C,O,1.5,0),COLOR656500;

STICKLINE(CO,C,O,1,0),COLOR757500;

STICKLINE(CO,C,O,0.5,0),COLOR858500;

STICKLINE(CO,H,L,0,0),COLOR959500;

高:=REFDATE(HHV(H,N),DATE);

低:=REFDATE(LLV(L,N),DATE);

H1:=高-(高-低)*0.191;

H2:=高-(高-低)*0.382;

H3:=高-(高-低)*0.5;

H4:=高-(高-低)*0.618;

H5:=高-(高-低)*0.809;

DRAWTEXT(CURRBARSCOUNT=1,高,'高'),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=1,H1,'809'),COLORCYAN;

DRAWTEXT(CURRBARSCOUNT=1,H2,'618'),COLORGRAY;

DRAWTEXT(CURRBARSCOUNT=1,H3,'中'),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=1,H4,'382'),COLORLIRED;

DRAWTEXT(CURRBARSCOUNT=1,H5,'191'),COLORMAGENTA;

DRAWTEXT(CURRBARSCOUNT=1,低,'低'),COLORRED;

STICKLINE(CURRBARSCOUNT=13,高,高,100,-1),COLORGREEN;

STICKLINE(CURRBARSCOUNT=13,H1,H1,100,-1),COLORCYAN;

STICKLINE(CURRBARSCOUNT=13,H2,H2,100,-1),COLORGRAY;

STICKLINE(CURRBARSCOUNT=13,H3,H3,100,-1),COLORYELLOW;

STICKLINE(CURRBARSCOUNT=13,H4,H4,100,-1),COLORLIRED;

STICKLINE(CURRBARSCOUNT=13,H5,H5,100,-1),COLORMAGENTA;

STICKLINE(CURRBARSCOUNT=13,低,低,100,-1),COLORRED;

跪求通达信分时压力,支撑,主图公式!

突破:=REF(EMA(C,14),1);

A1X:=(EMA(C,10)-突破)/突破*100;

多方:=IF(A1X=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);

空方:=IF(A1X0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);

STICKLINE(A1X=0,多方,突破,10,0),COLOR000099;

STICKLINE(A1X0,空方,突破,10,0),COLOR00CC66;

EE:=(H+L+O+2*C)/5;

CRTP:=EE+(H-L);

CRZL:=2*EE-L;

CRZC:=2*EE-H;

CRFZ:=EE-(H-L);

顶:CONST(CRTP),COLORRED;

压:CONST(CRZL),COLORC7C9FF;

撑:CONST(CRZC),COLOR7C9CFF;

跳:CONST(CRFZ),COLORDD00DD;

弹:MA(CLOSE,3);

支撑:EXPMA(CLOSE,40);

起涨:MA(C,13),COLOR00FFFF,LINETHICK2;

涨:IF(MA(CLOSE,13)REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COLORRED,LINETHICK2;

平:IF(MA(CLOSE,13)=REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COLOR00FFFF,LINETHICK3;

跌:IF(MA(CLOSE,13)REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COLORGREEN,LINETHICK2;

均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;

DRAWTEXT(ISLASTBAR,跳 , '跳起'),LINETHICK1,COLORDD00DD;

DRAWTEXT(ISLASTBAR,撑 , '撑力'),LINETHICK1,COLOR7C9CFF;

DRAWTEXT(ISLASTBAR,压 , '压力'),LINETHICK1,COLORC7C9FF;

DRAWTEXT(ISLASTBAR,顶 , '顶破'),LINETHICK1,COLOR0000FF;

A:MA(C,10)MA(C,24) AND COUNT(CROSS(MA(C,5),MA(C,10)),10) AND REF(L,1)REF(MA(C,10),1) AND REF(C,1)REF(MA(C,5),1) AND CREF(H,1) AND REF(C,1)REF(H,2) AND COUNT(MA(C,10)REF(MA(C,10),1),5)1,NODRAW;

B:MA(C,10)MA(C,24) AND REF(L,1)REF(MA(C,24),1)*1.01 AND CREF(H,1) AND REF(C,1)REF(H,2) AND REF(C,1)REF(H,2),NODRAW;

DRAWICON(A,L-0.10,16);

DRAWICON(B,L-0.10,17);

HH:=LLV(L,7)*1.13-0.03;

STICKLINE(H=HH,H,H*1.005,1,0),COLOR00FFFF;

TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);

TT1:=REF(EMA(TT2,3),1);

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

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

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

J:=3*K-2*D;

LC:=REF(CLOSE,1);

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

FF:=EMA(CLOSE,3);

AA1:=AMOUNT/VOL;

BB1:=LAA1*0.9;

CC1:=(C-REF(C,1))/REF(C,1)*1001.2;

DD1:=LMA(C,5)*0.921;

EE1:=VOLMA(V,5)*1.5;

FF1:=BB1 AND CC1 AND DD1 AND EE1;

F:=100*(C-REF(C,1))/REF(C,1);

P1:=IF(CREF(O,1) AND F0,1,0);

P2:=IF(CREF(O,2) AND F0,1,0);

TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;

TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;

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

日跌:L*0.989,NODRAW,COLORFF00FF;

今小昨:=IF(CREF(O,1) AND F0,1,0);

P11:=今小昨;

今小前:=IF(CREF(O,2) AND F0,1,0);

P22:=今小前;

DL:=P11=1 AND REF(P11,1)=0 AND P22=1 AND REF(P22,1)=0;

STICKLINE(DL,O,C,0.1,0),COLORAAAAAA;

BB :=MAX(C,O)-(REF(MAX(C,O),2)-MAX(C,O))/2;

买点:=(H-(REF(H,2)-H)/2);

AA:MAX(BB,买点),NODRAW,COLORFF00FF;

STICKLINE(CO AND F-3 AND F-5,C+(O-C)/3,C+(O-C)/3,2.5,0),COLORRED;

STICKLINE(CO AND F-3 AND F-5,C+2*(O-C)/3,C+2*(O-C)/3,2.5,0),COLORRED;

STICKLINE(CO AND F=-5 AND F-7,C+(O-C)/2,C+(O-C)/2,2.5,0),COLORYELLOW;

STICKLINE(CO AND F=-7 AND F-10,C+2*(O-C)/3,C+(O-C)/3,2.5,1),COLORYELLOW;

STICKLINE(CO AND F=-9.9,O,C,2.5,0),COLOR00FF00;

STICKLINE(CO AND F2.9 AND F5,O+(C-O)/3,O+(C-O)/3,2.5,0),COLORYELLOW;

STICKLINE(CO AND F2.9 AND F5,O+2*(C-O)/3,O+2*(C-O)/3,2.5,0),COLORYELLOW;

STICKLINE(CO AND F=5 AND F7,O+(C-O)/2,O+(C-O)/2,2.5,0),COLORYELLOW;

STICKLINE(CO AND F=7 ,O+2*(C-O)/3,O+(C-O)/3,2.5,1),COLORYELLOW;

A1:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));

B1:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);

分水岭:IF(MA(CLOSE,17)B1,B1,MA(CLOSE,17)),COLORFF00FF,LINETHICK2;

操作线:分水岭-(EMA(C,3)-分水岭),COLOR00FFFF,LINETHICK2;

PM:MA(C,5),COLORWHITE,LINETHICK2;

IF(PMREF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;

IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;

IF(PMREF(PM,1),PM,DRAWNULL),COLORFF9900,LINETHICK2;

S:=(PM操作线);

DD:=分水岭REF(分水岭,1);

IF(DD,分水岭,DRAWNULL),COLOR00FF00,LINETHICK2;

IF(S,分水岭,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK4;

DRAWICON(CROSS(分水岭,操作线),分水岭-0.1,1);{买入红箭头};

请大师给个通达信支撑位和压力位公式指标

支撑位是取得最近八天汇价的最高位和最低位,计算出差数即可。

压力位计算公式:

1、初始价(TYP)=(当日最高价+当日最低价+当日收盘价)/3

2、HV=N日内最高价的最高值的3日指数移动平均

LV=N日内最低价的最低值的3日指数移动平均

3、初级压力线(WEKR)=TYP*2-LV的3日指数移动平均

中级压力线(MIDR)=TYP+HV-LV的3日指数移动平均

强力压力线(STOR)=2*HV-LV的3日指数移动平均

4、初级支撑线(WEKS)=TYP*2-HV的3日指数移动平均

中级支撑线(MIDS)=TYP-HV+LV的3日指数移动平均

强力支撑线(STOS)=2*LV-HV的3日指数移动平均

扩展资料:

在股价运行时,阻力与支撑是可以互换的。具体地说,如果重大的阻力位被有效突破,那么该阻力位则反过来变成未来重要的支撑位;反之,如果重要的支撑位被有效击穿,则该价位反而变成今后股价上涨的阻力位了。

对某只个股而言,如果股价轻松越过了前期密集成交区,则往往是庄家控盘程度较高的标志。同时由于股价在突破阻力位后,上方已无套牢盘,上升空间被打开,这种股票是短线介入的极好品种。

股票跌破密集成交区后,密集成交区就产生大量套牢盘,股价一旦止跌回升,这些投资者就会产生解套卖出的意愿,大量的卖出会对股价上升形成一定的阻力。

参考资料来源:百度百科-支撑位

参考资料来源:百度百科-压力支撑指标

5条大神的评论

  • avatar
    访客 2022-07-15 上午 02:41:18

    岭),COLOR00FFFF,LINETHICK2;PM:MA(C,5),COLORWHITE,LINETHICK2;IF(PMREF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;IF(PM=REF(PM,1),PM,DR

  • avatar
    访客 2022-07-15 上午 05:16:39

    :MA(C,10)MA(C,24) AND REF(L,1)REF(MA(C,24),1)*1.01 AND CREF(H,1) AND REF(C,1)REF(H,2) AND RE

  • avatar
    访客 2022-07-15 上午 05:45:40

    CKLINE(CO,C,O,1.5,0),COLOR656500;STICKLINE(CO,C,O,1,0),COLOR757500;STICKLINE(CO,C,O,0

  • avatar
    访客 2022-07-15 上午 08:04:50

    ER(CC2,P1);EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);FF2:=EE2REF(EE2,1);长支:DRAWLINE(

  • avatar
    访客 2022-07-15 上午 02:20:06

    )=0 AND P2=1 AND REF(P2,1)=0 ;STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;日跌:L*0.989,NODRAW,COLORFF00FF; 今小昨:=IF(CREF(O,1) AND F0,1,0);P11:=今小

发表评论