支撑压力一目了然的主图公式

合集下载

【通达信指标】重心、压力、支撑主图指标公式

【通达信指标】重心、压力、支撑主图指标公式

【通达信指标】重⼼、压⼒、⽀撑主图指标公式PT := REF(HIGH,1)-REF(LOW,1);重⼼:(HIGH + LOW + CLOSE)/3,NODRAW;压⼒Ⅰ: 2*重⼼-LOW,NODRAW;压⼒Ⅱ:重⼼ + PT,NODRAW;⽀撑Ⅰ:2*重⼼-HIGH,NODRAW;⽀撑Ⅱ: 重⼼ - PT,NODRAW;MA5:MA(C,5),COLOR888899;MA20:MA(C,20),COLOR0099FF;MA30:MA(C,30),COLORYELLOW;MA60:MA(C,60),COLOR00FF00;MA250:MA(C,250),COLOR0099FF;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'B'),COLORBDB76B;X1:=(C+L+H)/3;DD:=TOTALCAPITAL;SS:=FINANCE(7);GG:=FINANCE(33);TH:=DYNAINFO(39);A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1); LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'S'),COLORGREEN;双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,COLOR0000FF;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'⼤笔出货'),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;⽼⿏仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;DRAWTEXT(⽼⿏仓,(LOW* 0.99),'⽼⿏仓'),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10)))+ IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0)); T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0)); T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0)); T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0)); T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0)); T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0)); T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0)); T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0)); T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量能理想,明显⾛强,中线参与,仓位在2/3左右'),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'⾛势趋强,还显不⾜,短线进场,仓位在1/2左右'),COLORFF00FF ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量价良好,没有明显⾛强,短线进场,仓位1/2左右'),COLORFF00FF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态尚可,量能不⾜,未完全⾛强,短线参与,仓位1/3左右'),COLORFF00FF ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态变坏,重仓者减持⼤半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=60,AAA*0.98,'随⼤盘⼀起下跌,明显缩量⾛势,考虑到风险,减持或清仓'),COLORFF00FF ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股放量下跌,⾛势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股缩量下跌,⾛势偏弱,离场观望。

支撑压力画线指标公式

支撑压力画线指标公式

支撑压力画线指标公式哎呀,您说这“支撑压力画线指标公式”,对于很多投资者来说,那可真是又神秘又重要。

咱先来说说啥是支撑压力。

简单讲,支撑就是价格跌到某个位置,好像有股神秘力量不让它再跌下去了;压力呢,就是价格涨到某个点,就像有一堵墙似的,怎么也冲不过去。

那这支撑压力画线指标公式到底是咋来的呢?其实它就是通过对大量的价格数据进行分析和计算得出来的。

比如说,我们可以看看一段时间内价格的最低点,把这些点连起来,可能就形成了支撑线。

我记得有一次,我跟着一位老股民朋友一起研究股票。

他拿着一支笔,对着电脑屏幕上的K线图,认真地画着线。

我在旁边看着,心里充满了好奇。

他一边画,一边跟我解释:“你看啊,这几个点差不多在一条线上,这很可能就是支撑线。

”我凑过去仔细瞧,还真是有点神奇。

这指标公式可不是随便画的,得有一定的规则和技巧。

比如说,选择的时间段不能太短,太短了可能不准确;也不能太长,太长了又可能反应太慢。

而且,不同的股票、不同的市场,这支撑压力线的表现也不太一样。

再说说这公式在实际操作中的用处。

当价格接近支撑线的时候,很多人就会觉得这是个买入的好机会,因为觉得价格可能不会再跌了,要反弹啦。

反过来,价格接近压力线的时候,有些人就会考虑卖出,怕价格涨不上去反而跌下来。

但是啊,您可别把这指标公式当成万能的。

市场那可是变化多端,有时候这支撑线和压力线也不是那么绝对。

就像有一次,我自己按照画的线操作,结果价格居然突破了压力线,一路上涨,把我给弄懵了。

总之,这支撑压力画线指标公式是个有用的工具,但也不能完全依赖它。

还得结合其他的分析方法,多方面考虑,才能在投资的道路上走得更稳当。

希望您在使用这个公式的时候,能多观察、多思考,赚得盆满钵满!。

通达信支撑与压力的神级主图指标公式

通达信支撑与压力的神级主图指标公式

通达信支撑与压力的神级主图指标公式局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);XA:=DRAWLINE(极点保留=-1,L,REF(极点保留,1)=-1,REF(L,1),1);XB:=DRAWLINE(极点保留=1,H,REF(极点保留,1)=1,REF(H,1),1);XAS:=DRAWLINE(极点保留=-1,XB,REF(极点保留,1)=-1,REF(XB,1),1);XBS:=DRAWLINE(极点保留=1,XA,REF(极点保留,1)=1,REF(XA,1),1);XA45:=(XA+XAS)/2; XB45:=(XB+XBS)/2;XA63:=(XAS-XA)*3/4+XA; XB63:=XB-(XB-XBS)*3/4;DRAWBAND(XA45,RGB(0,150,100),XA63,RGB(0,150,100));DRAWBAND(XB45,RGB(185,96,9),XB63,RGB(185,96,9));局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORYELLOW,LINETHICK5;压1:IF(BETWEEN(XA45,XB45,XB63),XA45,DRAWNULL),COLOR0088 00;压2:IF(BETWEEN(XA63,XB45,XB63),XA63,DRAWNULL),COLOR0088 00;过压底:REF(C,1)<XA45 AND C>XA45 AND C<35 AND CAPITAL<6000000,COLORYELLOW,NODRAW;过压顶:REF(C,1)<XA63 AND C>XA63 AND C<35 AND CAPITAL<6000000,NODRAW;支撑底:REF(C,1)<XB63 AND C>XB63 AND C<35 AND CAPITAL<6000000,NODRAW;支撑顶:REF(C,1)<XB45 AND C>XB45 AND C<35 AND CAPITAL<6000000,NODRAW;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);量5:=EMA(EMA(VOL,5),5);量35:=EMA(EMA(VOL,35),35);VAR11:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交:=VOL;主买:=IF(CLOSE>OPEN,VAR11*(HIGH-LOW),IF(CLOSE<OPEN,VAR11*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLOR00E521;主卖:=IF(CLOSE>OPEN,VAR11*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR11*(HIGH-LOW),VOL/2));主买力度:=VOL/(主买-主卖);买卖比:=主买/主卖;昨日比:=买卖比/REF(买卖比,1);净买: (主买-主卖)/100,NODRAW;抢筹:=买卖比>4,NODRAW;BB:=净买<0;净买天数:BARSLAST(BB),COLORMAGENTA,NODRAW;STICKLINE(净买>0,C,O,3,0),COLORRED;STICKLINE(净买<0,C,O,1.8,0),COLORGREEN;STICKLINE(抢筹,C,O,2,0),COLORYELLOW;STICKLINE(主买力度>9,H,O,3,0),COLORWHITE;。

通达信压力支撑主图公式源码

通达信压力支撑主图公式源码

通达信压力支撑主图公式源码通达信压力支撑主图公式源码A1:=EMA((EMA(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOS E,5))/3,3);A2:=EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+E MA( CLOSE,7))/3,3);A3:=EMA((EMA(CLOSE,5)+EMA(CL OSE,7)+EMA( CLOSE,9))/3,3);A4:=EMA((EMA(CLOSE,7)+EMA(CLOSE,9)+EMA( CLOS E,11))/3,3);A5:=EMA((EMA(CLOSE,9)+EMA(CLOSE,11)+ EMA( CLOSE,13))/3,3);A6:=EMA((EMA(CLOSE,11)+EMA (CLOSE,13)+EMA( CLOSE,15))/3,3);A7:=EMA((EMA(CL OSE,13)+EMA(CLOSE,15)+EMA( CLOSE,17))/3,3);A8:=E MA((EMA(CLOSE,15)+EMA(CLOSE,17)+EMA( CLOSE,1 9))/3,3);A9:=EMA((EMA(CLOSE,17)+EMA(CLOSE,19)+E MA( CLOSE,21))/3,3);A10:=EMA((EMA(CLOSE,19)+EMA (CLOSE,21)+EMA( CLOSE,23))/3,3);A11:=EMA((EMA(CL OSE,21)+EMA(CLOSE,23)+EMA( CLOSE,25))/3,3);A:=E MA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33 ))/3,3),LINETHICK0;A15:=A-(A1-A*0.997),COLORFF1010 ;A16:=A-(A2-A),COLORFF2010;A17:=A-(A3-A),COLORFF 3010;A18:=A-(A4-A),COLORFF4010;A19:=A-(A5-A),COL ORFF5010;A20:=A-(A6-A),COLORFF6010;A21:=A-(A7-A),COLORFF7010;A22:=A-(A8-A),COLORFF8010;A23:=A-( A9-A),COLORFF9010;A24:=A-(A10-A),COLORFFC010;A 25:=A-(A11-A*0.997),COLORFFE010;PLOYLINE(1,A15), COLORFF1010;PLOYLINE(1,A16),COLORFF2010;PLOY LINE(1,A17),COLORFF3010;PLOYLINE(1,A18),COLORF F4010;PLOYLINE(1,A19),COLORFF5010;PLOYLINE(1,A 20),COLORFF6010;PLOYLINE(1,A21),COLORFF7010;PL OYLINE(1,A22),COLORFF8010;PLOYLINE(1,A23),COLO RFF9010;PLOYLINE(1,A24),COLORFFC010;PLOYLINE( 1,A25),COLORFFE010;PLOYLINE(1,A1),COLOR1010FF; PLOYLINE(1,A2),COLOR1020FF;PLOYLINE(1,A3),COLO R1030FF;PLOYLINE(1,A4),COLOR1040FF;PLOYLINE(1, A5),COLOR1050FF;PLOYLINE(1,A6),COLOR1060FF;PL OYLINE(1,A7),COLOR1070FF;PLOYLINE(1,A8),COLOR1 080FF;PLOYLINE(1,A9),COLOR1090FF;PLOYLINE(1,A1 0),COLOR10C0FF;PLOYLINE(1,A11),COLOR10E0FF;A0: =(3*CLOSE+LOW+OPEN+HIGH)/6;中轴:MA(CLOSE,21),COLORFFCC33,;压力:中轴+2*STD(CLOSE,21),COLORRED,LINETHICK2;支撑: 中轴-2*STD(CLOSE,21),COLORRED,LINETHICK2;DRAWTEX T(C>=MA(C,20) ,MA(C,20) ,'●' ) ,COLOR0000FF;DRAWTEXT(CFD:=(HIGH-LOW)/3;OPEN1:=OPEN>FD*2+LOW;O PEN3:=OPENOPEN2:=NOT(OPEN1 OROPEN3);CLOSE1:=CLOSE>FD*2+LOW;CLOSE3:=CLOS ECLOSE2:=NOT(CLOSE1 OR CLOSE3);DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);WQS1:=OPEN2 AND CLOSE2;KFZD:=NOT(DFZD ORWQS1);ZD:=(HIGH+LOW)/2;QSXS:=ZD>REF(HIGH,1);Q SXX:=ZDWQS2:=NOT(QSXS ORQSXX);ZTDL:=VOL>REF(VOL,1)*1.1 ORAMOUNT>REF(AMOUNT,1)*1.5;FTDL:=VOLZTDL2:=ZT DL AND FTDLFTDL2:=FTDL ANDZTDLMFI1:=(HIGH-LOW)/(VOL/10000);MFI2:=(HIGH-LO W)/(AMOUNT/1000000);ZMFI1:=MFI1>REF(MFI1,1);ZMF I2:=MFI2>REF(MFI2,1);ZMFI:=ZMFI1 ORZMFI2;FMFI:=NOT(ZMFI);LD:=ZTDL2 ANDZMFI;ST:=FTDL2 AND FMFI;WZ:=FTDL2 ANDZMFI;QF:=ZTDL2 ANDFMFI;A31:=REF(HIGH,2);A32:=FILTER(HHV(HIGH,5)=A3 1,2);A33:=BACKSET(A32,3);A34:=IF(FILTER(A33,2),HIG H,0);A35:=SUM(A34,3);C1:=REF(LOW,2);C2:=FILTER(LL V(LOW,5)=C1,2);C3:=BACKSET(C2,3);C4:=IF(FILTER(C 3,2),LOW,0);C5:=SUM(C4,3);XHWZ1:=HIGH*1.003;XHWZ2:=LOW*0.998;XHWZ3:=IF(QSXX,XHWZ2,IF(QSXS,XH WZ1,IF(DFZD,XHWZ1,XHWZ2)));XHWZ4:=IF(ZDS1:=DF ZD AND QSXS ;S2:=KFZD AND QSXX ;S3:=DFZD AND QSXX;S4:=KFZD AND QSXS;S5:=DFZD ANDWQS2;S6:=KFZD AND WQS2;S7:=WQS1 AND (QSXS OR QSXX ORWQS2);STICKLINE(1,LOW,HIGH,0.0,0 ),COLOR00FFFF; STICKLINE(S2 ,CLOSE ,OPEN,3,0 ),COLORFF2020;STI CKLINE(S1,CLOSE,OPEN,3 ,0 ),COLOR2020FF;STICKLI NE(S3,CLOSE,OPEN,3,0),COLORYELLOW;STICKLINE( S4,CLOSE,OPEN,3,0),COLORCYAN;STICKLINE(S5,CLO SE,OPEN,3,0),COLORMAGENTA;STICKLINE(S6,CLOSE ,OPEN,3,0),COLORGREEN;STICKLINE(S7,CLOSE,OPE N,3,0),COLORGRAY;STICKLINE(1,CLOSE,OPEN,0,0),C OLORWHITE;。

带压力和支撑位非常棒的实战精准看盘主图指标盯盘一目了然

带压力和支撑位非常棒的实战精准看盘主图指标盯盘一目了然

带压力和支撑位非常棒的实战精准看盘主图指标盯盘一目了然实战精准看盘主图:回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLO SE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线1 , HIGH*1.04,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW;VAR1:LLV(A7,21);VAR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线 AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>VAR1,LOW *0.98,'见底' ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作 ,LOW *0.98,'全仓' ),COLORYELLOW;SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) ANDREF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点} E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>VAR1 AND 上线1>一号支撑线 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线 AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线 AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE<REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,3.2,0),COLORBB00FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.7,0),COLORFF33FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) ANDJ<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;。

压力支撑线指标公式(通达信)

压力支撑线指标公式(通达信)

压力支撑线指标公式(通达信)展开全文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:=E1>REF(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:=E2>REF(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:=EE1>REF(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:=EE2>REF(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(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500;STICKLINE(C<O,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'),COLORMAGENT A;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;大牛有形主图指标通达信的大牛有形主图指标FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORWHITE;FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORWHITE;BB:IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17)),COLORWHITE;NX:=EMA(C,250);A:=BB-(EMA(C,3)-BB),COLORWHITE;DIFF:EMA((NX-(EMA(C,3)-NX)),5),LINETHICK2;IF(BB=FS,BB,BB), COLORWHITE,LINETHICK2;止损线: EMA(COST(81),10), COLORRED,LINETHICK2;牛熊线: EMA(COST(27),120), CIRCLEDOT;N:=150;判断高低:=3;高:=REF(HHV(H,N),判断高低);近期顶:REFDATE(高,DATE),COLORGREEN,LINETHICK3;最顶:=REFDATE(近期顶,DATE),NODRAW;出:=最顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;STICKLINE(出,C,O,3,0),COLORGREEN;STICKLINE(出,C,O,2,0),COLORGREEN;低:=REF(LLV(L,N),判断高低);近期底:REFDATE(低,DATE),COLORRED,LINETHICK3;最底:=REFDATE(近期底,DATE),NODRAW;进:=最底=L AND ((C+L)<(O+C) OR (O+L)<(C+O)),NODRAW;STICKLINE(进,C,O,3,0),COLORRED;STICKLINE(进,C,O,2,0),COLORRED;通达信金字塔指标公式VAR1:=(HIGH+LOW)/2;AO:MA(VAR1,5)-MA(VAR1,34),LINETHICK0;STICKLINE(AO>=REF(AO,1),0,AO,0.1,1),COLORYELLOW;STICKLINE(AO<REF(AO,1),0,AO,0.1,1),COLORBLUE;{ 股旁网_最新股票指标公式}STICKLINE(AO>=REF(AO,1),(AO-AO*0.05),(AO-AO*0.15),5,-1) COLOR0000CC;STICKLINE(AO>=REF(AO,1),(AO-AO*0.2),(AO-AO*0.35),5,-1) COLOR0066FF;STICKLINE(AO>=REF(AO,1),(AO-AO*0.4),(AO-AO*0.55),5,-1) COLOR0099FF;STICKLINE(AO>=REF(AO,1),(AO-AO*0.6),(AO-AO*0.75),5,-1) COLOR00CCFF;STICKLINE(AO>=REF(AO,1),(AO-AO*0.8),(AO-AO*0.95),5,-1)COLOR00FFFF;STICKLINE(AO<REF(AO,1),(AO-AO*0.05),(AO-AO*0.15),5,-1) COLORFF3300;STICKLINE(AO<REF(AO,1),(AO-AO*0.2),(AO-AO*0.35),5,-1) COLORFF6600;STICKLINE(AO<REF(AO,1),(AO-AO*0.4),(AO-AO*0.55),5,-1) COLORFF9900;STICKLINE(AO<REF(AO,1),(AO-AO*0.6),(AO-AO*0.75),5,-1) COLORFFCC00;STICKLINE(AO<REF(AO,1),(AO-AO*0.8),(AO-AO*0.95),5,-1)COLORFFBB00;股。

压力支撑线指标公式(通达信)

压力支撑线指标公式(通达信)

压力支撑线指标公式(通达信)压力支撑线指标(Pressure Support Line)是一种技术分析工具,用于帮助投资者识别股票价格在上升或下跌时的可能的压力和支撑水平。

其主要思想是通过一系列数学公式来计算出当前价格的压力和支撑水平,从而为投资者提供买入或卖出的参考。

通达信是一个提供股票技术分析工具的软件,其中包括了压力支撑线指标的计算公式。

下面将详细介绍通达信中压力支撑线指标的计算公式和使用方法。

压力线=当日最高价+ATR*参数支撑线=当日最低价-ATR*参数其中,ATR(Average True Range)是一个波动性指标,用于测量市场的波动性。

它的计算公式如下:TR=MAX(H-L,H-Cp,Cp-L)ATR=SMA(TR,N)其中,H是当日最高价,L是当日最低价,Cp是前一日的收盘价,MAX是选择最大值的函数,SMA是简单移动平均线,N是计算的周期。

1.在通达信软件中,选择一个股票并打开K线图。

2.在菜单中选择“技术分析”-“波动率指标”,然后选择“压力支撑线”。

3.设置压力支撑线指标的参数,点击确定。

4.在K线图上,会显示出压力线和支撑线的曲线,与股票价格进行比较。

5.如果股票价格上涨并且接近压力线时,投资者可以考虑卖出。

6.如果股票价格下跌并且接近支撑线时,投资者可以考虑买入。

需要注意的是,压力支撑线指标只是一种参考工具,不能单独作为买卖的依据。

投资者还需要结合其他技术分析工具和市场的实际情况来做出决策。

总结起来,压力支撑线指标是一种通过计算股票价格的压力和支撑水平的技术分析工具,可以帮助投资者做出买卖决策。

通达信是一个提供该指标计算和使用的股票技术分析软件,并提供了相关的计算公式和使用方法。

投资者可以根据自己的需求来设定参数,并结合其他技术分析工具和市场情况来使用该指标。

压力支撑线指标公式

压力支撑线指标公式

压力支撑线指标公式
压力支撑线指标是一种股市技术分析指标,其公式为:
压力线 = (最高价×2+最低价+收盘价)/4
支撑线 = (最低价×2+最高价+收盘价)/4
其中,最高价为周期内的最高股价,最低价为周期内的最低股价,收盘价为周期内的最后一个交易日的收盘价。

周期的长度可以根据需要选择,常用的是30日、60日、90日等周期。

该指标可以帮助分析师找到可能的买入和卖出点位。

当股价上涨到压力线附近时,意味着股市有可能出现回调或调整,此时可以考虑卖出;反之,当股价下跌到支撑线附近时,有可能会出现反弹,此时可以考虑买入。

但是需要注意的是,技术分析并不完全准确,投资需谨慎。

通达信指标公式源码压力支撑主图

通达信指标公式源码压力支撑主图

{通达信干净清爽153压力支撑主图指标公式}N:=8;P:=1;ZGD:=HHV(H,60);ZGD2:=CONST(ZGD);ZDD:=LLV(L,60);ZDD2:=CONST(ZDD);GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);KOH:=L>REF(H,1);KOL:=H<REF(L,1);HIF:=L>REF(H,BARSLAST(KOH)+1);NHIF:=L<=REF(H,BARSLAST(KOH)+1);LIF:=H<REF(L,BARSLAST(KOL)+1);NLIF:=H>=REF(L,BARSLAST(KOL)+1);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORF FFFFF;底部:=LLV(HIGH,30),COLOR00FF00;AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L,N)=LLV(L,2*N+1);QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1);CC:=FILTER(QY,N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1);GDTS:=IF(CC,CURRBARSCOUNT,0); DDTS:=IF(CC1,CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=CONST(DINGBUTS); DDCS1:=CONST(DDTS1);GDCS13:=CONST(REF(HIGH,GDCS1-1)); DDCS13:=CONST(REF(L,DDCS1-1)); DINGBUTS1:=REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1);GDCS2:=CONST(DINGBUTS1); DDCS2:=CONST(DDTS2);GDCS23:=CONST(REF(HIGH,DINGBUTS1-1)); DDCS23:=CONST(REF(L,DDTS2-1));XG1:=BACKSET(ISLASTBAR,GDCS1); XD1:=BACKSET(ISLASTBAR,DDCS1);XG2:=BACKSET(ISLASTBAR,DINGBUTS1); XD2:=BACKSET(ISLASTBAR,DDTS2); XDD:=IF(DDCS13<=DDCS23,XD1,XD2);BCG:=SUM(XG1,0); BCD:=SUM(XDD,0);今日阻力:REF(明日阻力, 1),NODRAW;今日支撑:REF(明日支撑, 1),NODRAW;压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORGRE EN,LINETHICK2;低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORBLUE, LINETHICK2;高:=CONST(MAX(MAX(MAX(ZGD2,高点压力),GDCS13),GDCS23));低:=CONST(MIN(MIN(MIN(ZDD2,DDCS23),DDCS13),低点支撑));ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLOR55555 5,LINETHICK2;M:=INTPART(3*N/5);AAA:=REF(H,M)=HHV(H,2*M+1);QYY:=BACKSET(AAA,M+1);CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);DDDD:=BARSLAST(CCC),NODRAW;GDTSS:=IF(CCC,CURRBARSCOUNT,0);DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS);GDCS11:=CONST(DINGBUTSS);DINGBUTS11:=REF(DINGBUTSS,DDDD+1);GDCS22:=CONST(DINGBUTS11);上缺口:=P=0 AND HIF AND BARSLAST(KOH)<BARSLAST(NHIF)AND BARSLAST(HIF)<BARSLAST(NHIF);HG:=IF(上缺口,REF(H,BARSLAST(KOH)+1),DRAWNULL);STICKLINE(上缺口,HG,HG*1.001,10,0),COLOR888888;下缺口:=P=0 AND LIF AND BARSLAST(KOL)<BARSLAST(NLIF) AND BARSLAST(LIF)<BARSLAST(NLIF);LG:=IF(下缺口,REF(L,BARSLAST(KOL)+1),DRAWNULL);STICKLINE(下缺口,LG,LG*0.999,10,0),COLOR888888;高点压力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORRE D,LINETHICK1;AA11:=REF(L,M)=LLV(L,2*M+1);QY11:=BACKSET(AA11,M+1);CC11:=FILTER(QY11,M) AND L=LLV(L,M+1);DD11:=BARSLAST(CC11);DDTSS:=IF(CC11,CURRBARSCOUNT,0);DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);DDCS11:=CONST(DDTS11);DDTS22:=REF(DDTS11,DD11+1);DDCS22:=CONST(DDTS22);低点支撑M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLORRED,LINETHICK1;STICKLINE(XG2,GDCS23,GDCS23,0.5,1),COLORWHITE;STICKLINE(XG1,GDCS13,GDCS13,0.5,1),COLORYELLOW;STICKLINE(XD2,DDCS23,DDCS23,0.5,1),COLORMAGENTA;STICKLINE(XD1,DDCS13,DDCS13,0.5,1),COLORCYAN;STICKLINE(ISLASTBAR AND C>=今日阻力,今日阻力,今日阻力,10,1),COLOR0000FF; STICKLINE(ISLASTBAR AND C<今日阻力,今日阻力,今日阻力,10,1),COLOR00FF00; STICKLINE(ISLASTBAR AND C>=今日支撑,今日支撑,今日支撑,10,1),COLORFF00FF; STICKLINE(ISLASTBAR AND C<今日支撑,今日支撑,今日支撑,10,1),COLORFF8800; STICKLINE(ISLASTBAR ,压力位,压力位,120,0),COLORFFFFFF;STICKLINE(ISLASTBAR ,底部位,底部位,100,0),COLOR00FF00;。

?通达信公式短线决策解盘,支撑压力阻力一目了然通达信公式

?通达信公式短线决策解盘,支撑压力阻力一目了然通达信公式

通达信公式短线决策解盘,支撑压力阻力一目了然通达信公式短线决策解盘需要L2数据支持才显示的。

支撑压力阻力一目了然不要背景颜色,就删除第三四行源码即可。

买线:=EMA(C,1);多空线:EMA(SLOPE(C,10)*10+C,20),COLORYELLOW;STICKLINE(买线>=多空线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR 220080;{多,深红色柱}STICKLINE(买线<多空线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR 408048;{空,深绿色柱}{DRAWKLINE(H,O,L,C);波段淡红青K线STICKLINE(买线>=卖线,C,O,3,0),COLOR000045;STICKLINE(买线>=卖线,C,O,2,0),COLOR000085;STICKLINE(买线>=卖线,C,O,1,0),COLOR0000C5;STICKLINE(买线>=卖线,C,O,0.3,0),COLOR0000E5;STICKLINE(买线>=卖线,L,H,0,0),COLOR0000FF;立体红颜色;STICKLINE(CLOSE<OPEN,L,H,0,0),COLOR00FF00;}{STICKLINE(买线<卖线,L,H,0,0 ),COLORFFFF00;STICKLINE(买线<卖线,C,O,3.1,0 ),COLOR000000;STICKLINE(买线<卖线,C,O,2.1,0 ),COLOR6A6A00;{以下为资金情况,替换上面原K线,LCY}DRAWKLINE(H,O,L,C);{画K线}换手率:VOL/CAPITAL*100,COLORRED,NODRAW;预换手:IF(CURRBARSCOUNT=1 AND PERIOD=5,换手率*240/FROMOPEN,DRAWNULL),COLORWHITE,NODRAW;量比:V/REF(MA(V,5),1),NODRAW,COLORWHITE;{预量比:DYNAINFO(17),NODRAW,COLORWHITE;}机构:(L2_VOL(0,0) - L2_VOL(0,1))*10000/FINANCE(7),NODRAW,COLORYELLOW;大户:(L2_VOL(1,0) - L2_VOL(1,1))*10000/FINANCE(7),NODRAW,COLORRED;中户:(L2_VOL(2,0) - L2_VOL(2,1))*10000/FINANCE(7),NODRAW,COLORMAGENTA;散户:(L2_VOL(3,0) - L2_VOL(3,1))*10000/FINANCE(7),NODRAW,COLORGREEN;主力:机构+大户,NODRAW,COLORYELLOW;主力占比:主力/换手率*100,NODRAW,COLORMAGENTA;三日主力:SUM(主力,3),COLORYELLOW,NODRAW;五日主力:SUM(主力,5),COLORRED,NODRAW;十日主力:SUM(主力,10),COLORMAGENTA,NODRAW;廿日主力:SUM(主力,20),COLORWHITE,NODRAW;STICKLINE(主力>0,O,C,2,1),COLORYELLOW;STICKLINE(主力<0,O,C,2,1),COLORLIBLUE;STICKLINE(机构>0,O,C,1,0),COLORYELLOW;STICKLINE(机构<0,O,C,1,0),COLORBLUE;STICKLINE(大户>0,O,(O+C)/2,1,0),COLORRED;STICKLINE(大户<0,O,(O+C)/2,1,0),COLORGREEN;ME2:=EMA(CLOSE,6);五天:=EXPMA(CLOSE,5),COLORRED;超短线:=EMA(ME2,11),COLORGREEN; LJL07:=(3*C+L+O+H)/6;牛线:=(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07, 3)+16*REF(LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(L JL07,7)+12*REF(LJL07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJL07,1 4)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJ L07,18)+REF(LJL07,20))/210,COLORRED;熊线:=MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;持股:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24 ))/4,COLORWHITE;{趋势}赚了:=IF(EMA(CLOSE,3)>超短线,超短线,DRAWNULL),COLORRED;持股角度:=ATAN((持股/REF(持股,1)-1)*100)*180/3.1416,COLORRED,NODRAW;月线:=EMA(持股,30),COLORYELLOW,DOTLINE;双月线:=EMA(持股,60),COLORCYAN,DOTLINE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('DMI.PDI'>'DMI.MDI') AND UPNDAY('DMI.ADXR',1) AND ('DMI.ADX'>'DMI.ADXR'),0.460,0.26,0,'DMI 火箭升空'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('DMI.PDI'<'DMI.MDI') AND UPNDAY('DMI.ADXR',1) AND ('DMI.ADX'>'DMI.ADXR'),0.460,0.26,0,'DMI 空中炸弹'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('DMI.PDI'>'DMI.MDI'),0.460,0.21,0,'DMI 多头趋势'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('DMI.PDI'<'DMI.MDI'),0.460,0.21,0,'DMI 空头趋势'),COLORGREEN;{以下5行LCY增加}DRAWTEXT_FIX(CURRBARSCOUNT=1 AND('RSI.RSI1'>'RSI.RSI2') {AND ('RSI.RSI2')>'RSI.RSI3')} AND ('RSI.RSI1'>REF('RSI.RSI1',1)),0.460,0.61,0,'RSI 多头趋势'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('RSI.RSI1'>'RSI.RSI2') {AND ('RSI.RSI2')>'RSI.RSI3'} AND ('RSI.RSI1'=REF('RSI.RSI1',1)),0.460,0.61,0,'RSI 多头平'),COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('RSI.RSI1'>'RSI.RSI2'){AND ('RSI.RSI2')>'RSI.RSI3'} AND ('RSI.RSI1'<REF('RSI.RSI1',1)),0.460,0.61,0,'RSI 多头向下'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('RSI.RSI1'<'RSI.RSI2') {AND ('RSI.RSI2')<'RSI.RSI3'} AND ('RSI.RSI1'<REF('RSI.RSI1',1)),0.460,0.61,0,'RSI 空头趋势'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('RSI.RSI1'<'RSI.RSI2') {AND ('RSI.RSI2')<'RSI.RSI3'} AND ('RSI.RSI1'>REF('RSI.RSI1',1)),0.460,0.61,0,'RSI 空头向上'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS('KDJ.J','KDJ.K'),0.460,0.31,0,'K D J 金叉'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS('KDJ.K','KDJ.J'),0.460,0.31,0,'K D J 死叉'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('KDJ.J'>'KDJ.K'),0.460,0.36,0,'K D J 多头趋势'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('KDJ.J'<'KDJ.K'),0.460,0.36,0,'K D J 空头趋势'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('MACD.DIF'>'MACD.DEA') AND 'MACD.MACD'>0,0.460,0.41,0,'MACD 中线看多'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('MACD.DIF'<'MACD.DEA') AND 'MACD.MACD'<0,0.460,0.41,0,'MACD 中线看空'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('MACD.DIF'>'MACD.DEA'),0.460,0.46,0,'MACD 多头趋势'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('MACD.DIF'<'MACD.DEA'),0.460,0.46,0,'MACD 空头趋势'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS('MACD.DIF','MACD.DEA'),0.460,0.51,0,'MACD 金叉'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS('MACD.DEA','MACD.DIF'),0.460,0.51,0,'MACD 死叉'),COLORGREEN;{以下4行LCY增加}DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 'MACD.DIF'<=0 AND 'MACD.DIF'<REF('MACD.DIF',2) AND 'MACD.DIF'>REF('MACD.DIF',1),0.460,0.56,0,'MACD 建仓'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND REF('MACD.DIF',1)>REF('MACD.DIF',2) AND 'MACD.DIF'<REF('MACD.DIF',1),0.460,0.56,0,'MACD 减仓1'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 'MACD.DIF'<=0 AND CROSS('MACD.DIF','MACD.DEA') AND 'MACD.MACD'>REF('MACD.MACD',1),0.460,0.56,0,'MACD 加仓'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 'MACD.MACD'>0 ANDREF('MACD.MACD',1)>REF('MACD.MACD',2) AND 'MACD.MACD'<REF('MACD.MACD',1),0.460,0.56,0,'MACD 减仓2'),COLORGREEN;上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 上涨,0.460,0.15,0,'上涨趋势'),COLORFF00FF;短线上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线上涨0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线上涨1:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线上涨OR 短线上涨0 OR 短线上涨1),0.460,0.15,0,'短线上涨'),COLOR8080FF;短线回调:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);短线回调0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线回调OR 短线回调0),0.460,0.15,0,'短线回调'),COLORYELLOW;短线看空:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);短线看空0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1)DOWNNDAY(持股,1);短线空仓:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);短线空仓0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线空仓OR 短线空仓0 OR 短线看空OR 短线看空0),0.460,0.15,0,'短线空仓'),COLORYELLOW;短线震荡:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);短线震荡0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线震荡1:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);注意该股:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线震荡OR 短线震荡0 OR 短线震荡1 OR 注意该股),0.460,0.15,0,'短线震荡'),COLORYELLOW;短线反弹:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);短线反弹0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月UPNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线反弹OR 短线反弹0),0.460,0.15,0,'短线反弹'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ,0.360,0.09,0,'◆今日操作提示◆')COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('MACD.MACD'>0) AND (CROSS('MACD.DIF','MACD.DEA') OR CROSS(持股,超短线)) AND UPNDAY(超短线,1),0.55,0.09,0,' 决策:中线全仓买入◆'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ('MACD.MACD'<0) AND (CROSS('MACD.DEA','MACD.DIF') OR CROSS(超短线,持股)) AND DOWNNDAY(超短线,1),0.55,0.09,0,' 决策:中线空仓◆'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1),0.55,0.14,0,' 决策:短线空( 减 ) 仓◆'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1),0.55,0.09,0,' 决策:短线买入30 % ◆'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND UPNDAY(超短线,1) AND UPNDAY(持股,1),0.55,0.14,0,' 决策:短线买入60 % ◆'),COLORFFFFFF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1),0.55,0.14,0,' 决策:短线震荡看看再说◆'),COLORFFFFFF;EMA5:EXPMA(C,5),COLORYELLOW,LINETHICK2;KK1:=EMA5<=REF(EMA5,1);蓝降:IF(KK1,EMA5,DRAWNULL),COLORLIBLUE,LINETHICK2;EMA10:EMA(CLOSE,10),COLORLIRED;EMA20日:EMA(C,20),LINETHICK3,COLORRED;{红升:IF(EMA20日>REF(EMA20日,1),EMA20日,DRAWNULL),COLORRED,LINETHICK3;}绿降:IF(EMA20日<=REF(EMA20日,1),EMA20日,DRAWNULL),COLOR00FF00,LINETHICK3;EMA5乖离率:(C-EMA5)/EMA5*100,NODRAW;{CYC∞}JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO( 8),DYNAINFO(3));DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));CYC∞:IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE( 7)),EMA((HIGH+LOW+CLOSE)/3,120)),COLORYELLOW,CIRCLEDO T;{DD1:=EMA5>REF(EMA5,1);IF(DD1,EMA5,DRAWNULL),COLORYELLOW,LINETHICK2 ;}均价:=(3*C+H+L+O)/6;VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+ 4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND CLOSE>VAR2 AND CLOSE<VAR1;SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1)AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1)AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1)AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);XD2:=VAR1=VAR2 AND CLOSE>VAR1;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和度:=IF(SAT>1,1,SAT)*100;DRAWTEXT_FIX(BARSTATUS=2 AND SZ1,0.8,0.05,0,'调整结束短线介入'),COLOR00FFFF;DRAWTEXT_FIX(BARSTATUS=2 AND SZ2,0.8,0.05,0,'上升通道走势良好'),COLOR00FFFF;DRAWTEXT_FIX(BARSTATUS=2 AND SZ3,0.8,0.05,0,'股价偏离注意调整'),COLOR00FFFF;DRAWTEXT_FIX(BARSTATUS=2 AND SZ4,0.8,0.05,0,'上升通道调整洗盘'),COLOR00FFFF;DRAWTEXT_FIX(BARSTATUS=2 AND SZ5,0.8,0.05,0,'转向特征注意离场'),COLORFFFF00;DRAWTEXT_FIX(BARSTATUS=2 AND SZ6,0.8,0.10,0,'通道改变坚决离场'),COLORFFFF00;DRAWTEXT_FIX(BARSTATUS=2 AND XD1,0.8,0.05,0,'下跌通道只宜观望'),COLORFFFF00;DRAWTEXT_FIX(BARSTATUS=2 AND XD2,0.8,0.05,0,'短期底部准备进入'),COLORYELLOW;S:=C-REF(C,1);DX:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;YC:=REF(CLOSE,1);止损价位:=(YC*1.0035*97+0.2)/99.65;DRAWTEXT_FIX(C!=0,0.02,0.05,0,STRCAT('止损价位 ',STRCAT(CON2STR(止损价位,2),' 元'))),COLOR00FFFF;{DRAWTEXT_FIX(C!=0,0.05,0.25,0,'线上工作. 线下休息'),COLOR00FFFF;}DRAWTEXT_FIX(C!=0,0.02,0.10,0,'☆ ============= ☆'),COLORYELLOW;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日阻力:=2*E-LOW;明日支撑:=2*E-HIGH;明日突破:=E+(HIGH-LOW);明日反转:=E-(HIGH-LOW);今日阻力:=REF(明日阻力 , 1);今日支撑:=REF(明日支撑 , 1);DRAWTEXT_FIX(C!=0,0.02,0.20,0,STRCAT('今日阻力:',STRCAT(CON2STR(今日阻力,2),' 元'))),COLORFFFF00;DRAWTEXT_FIX(C!=0,0.02,0.25,0,STRCAT('今日支撑:',STRCAT(CON2STR(今日支撑,2),' 元'))),COLOR8E8EFF;DRAWTEXT_FIX(C!=0,0.02,0.30,0,STRCAT('明日突破:',STRCAT(CON2STR(明日突破,2),' 元'))),COLORFFFFFF;DRAWTEXT_FIX(C!=0,0.02,0.35,0,STRCAT('明日阻力:',STRCAT(CON2STR(明日阻力,2),' 元'))),COLORFFFF00;DRAWTEXT_FIX(C!=0,0.02,0.40,0,STRCAT('明日支撑:',STRCAT(CON2STR(明日支撑,2),' 元'))),COLOR8E8EFF;DRAWTEXT_FIX(C!=0,0.02,0.45,0,STRCAT('明日反转:',STRCAT(CON2STR(明日反转,2),' 元'))),COLORYELLOW;DRAWTEXT_FIX(C!=0,0.02,0.50,0,'☆ ============= ☆'),COLORYELLOW;A:=HHV(H,13)=H AND H>REF(H,1);A1:=FILTER(A,12);B:=LLV(L,13)=L AND L<REF(L,1);B1:=FILTER(B,12);TS1:=BARSLAST(A1);压力:REF(HIGH,TS1),COLORWHITE,NODRAW;STICKLINE(1,压力,压力,1.5,0),COLORAEAE00;TS2:=BARSLAST(B1);支撑:REF(LOW,TS2),COLORYELLOW,NODRAW;STICKLINE(1,支撑,支撑,1.5,0),COLOR006DDB;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=3*K24-2*D24;压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),DOTLINE,C OLORLIBLUE;支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),DOTLINE,COLORYELLOW;HH:=CONST(HHV(C,0));LL:=CONST(LLV(C,0));HL:=HH-LL;顶:HH,NODRAW;DRAWICON(C=HH,HH*1.005,45);{绿底压字}DRAWICON(C=LL,LL*0.995,44);{红底托字}空间:=100*(压力-支撑)/支撑;卖空:=REF(压力,1)&&O<=压力&&C>压力;DRAWICON(CROSS(买线,多空线),L*0.97,42);{多}DRAWICON(CROSS(多空线,买线),H*1.03,43);{空}LC:=REF(CLOSE,1);{以下是LCY移植部分}RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);{FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);}DRAWTEXT({CROSS(FF,MA15)}CROSS(RSI,15),(LOW * 0.98),'↖RSI 底'),COLOR00FFFF;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'↓←RSI 顶'),COLORCYAN;DRAWNUMBER(ISLASTBAR ,C,C),COLOR00FFFF;{行业板块排名}TAX:=HORCALC(HYBLOCK,105,1,DRAWNULL);TAA:=STRCAT(HYBLOCK,' 排名:');DRAWTEXT_FIX(ISLASTBAR,0.00,0.00,0,STRCAT(TAA,CON2ST R(TAX,0))),COLORYELLOW;。

股票压力位和支撑位计算公式

股票压力位和支撑位计算公式

股票压力位和支撑位计算公式
x
股票压力位和支撑位计算公式
一、股票压力位计算公式
1.压力位计算公式
(1)通用式:
压力位=N日最高价-X×(N日最高价-N日最低价)
其中,N代表期间天数,X代表压力位百分比。

(2)常用表示式:
10日压力位=10日最高价-20%(10日最高价-10日最低价) 20日压力位=20日最高价-30%(20日最高价-20日最低价) 30日压力位=30日最高价-35%(30日最高价-30日最低价) 2.股票压力位的作用
压力位可以及时反映市场的变化,帮助投资者更好地判断市场走势,进行相关交易。

当股价接近压力位,市场可能出现抛售压力;而当股价低于压力位,市场可能出现资金抄底的机会。

密切关注股票压力位可以帮助投资者更好地把握市场走势,做出有利的投资决策。

二、股票支撑位计算公式
1.支撑位计算公式
(1)通用式:
支撑位=N日最低价+X×(N日最高价-N日最低价)
其中,N代表期间天数,X代表支撑位百分比。

(2)常用表示式:
10日支撑位=10日最低价+20%(10日最高价-10日最低价) 20日支撑位=20日最低价+30%(20日最高价-20日最低价) 30日支撑位=30日最低价+35%(30日最高价-30日最低价) 2.股票支撑位的作用
支撑位把握住的市场心理及时反映市场变化,可以帮助投资者更好地把握市场走势,并做出有利的投资决策。

当股价接近支撑位,市场可能出现资金抄底的机会;而当股价超过支撑位,市场可能出现抛售压力。

因此,支撑位对投资者判断股票走势很有帮助。

通达信TD结构压力与支撑线主图指标公式

通达信TD结构压力与支撑线主图指标公式

通达信TD结构压力与支撑线主图指标公式通达信TD结构压力与支撑线主图指标公式TJ:=H<REF(H,4) AND REF(H,1)<REF(H,4) AND REF(H,2)<REF(H,4) AND REF(H,3)<REF(H,4) AND REF(H,4)>REF(H,5) AND REF(H,4)>REF(H,6) AND REF(H,4)>REF(H,7) AND REF(H,4)>REF(H,8) AND REF(H,4)>REF(H,9);TJ1:=L>REF(L,4) AND REF(L,1)>REF(L,4) AND REF(L,2)>REF(L,4) AND REF(L,3)>REF(L,4) AND REF(L,4)<REF(L,5) AND REF(L,4)<REF(L,6) AND REF(L,4)<REF(L,7) AND REF(L,4)<REF(L,8) AND REF(L,4)<REF(L,9);T:=BARSLAST(TJ);LT:=BARSLAST(TJ1);CF1:=BACKSET(T=0,5);HT:=BARSLAST(CROSS(CF1=1,0.5));CF2:=BACKSET(LT=0,5);TT1:=BARSLAST(CROSS(CF2=1,0.5));TT:=BARSLAST(CURRBARSCOUNT=CONST(SUMBARS(TT1= 0,1)));TTH:=BARSLAST(CURRBARSCOUNT=CONST(SUMBARS(HT =0,1)));TTH2:=BARSLAST(CURRBARSCOUNT=CONST(SUMBARS(HT =0,2)));CL:=CONST(REF(L,TT));CH:=CONST(REF(H,TTH));CH2:CONST(REF(H,TTH2))NODRAW;CHT:=BARSLAST(CROSS(REF(H,HT)>CH,0.5));CHT2:=BARSLAST(CROSS(REF(H,HT)>CH2,0.5));AA2:=FINDHIGHBARS(REF(H,HT),TTH2+1,REF(CHT2,TTH2)+ 1,1);CLT:=BARSLAST(CROSS(REF(L,TT1)<CL,0.5));DRAWLINE(CURRBARSCOUNT=CONST(CHT)+1,H,CURRBAR SCOUNT=CONST(SUMBARS(HT=0,1)),H,1),COLORYELLOW,LINET HICK2;DRAWLINE(CURRBARSCOUNT=CONST(AA2)+1,H,CURRBAR SCOUNT=CONST(SUMBARS(HT=0,2)),H,1),COLORLIMAGENTA,LI NETHICK2;DRAWLINE(CURRBARSCOUNT=CONST(CLT)+1,L,CURRBARS COUNT=CONST(SUMBARS(TT1=0,1)),L,1),COLORGREEN,LINETH ICK2;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(HT=0,2)), H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,1)),H,1),COLORYE LLOW;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(HT=0,3)), H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,2)),H,1),COLORYE LLOW;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(HT=0,4)), H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,3)),H,1),COLORYE LLOW;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(HT=0,5)), H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,4)),H,1),COLORYE LLOW;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,2) ),L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,1)),L,1),COLOR GREEN;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,3) ),L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,2)),L,1),COLOR GREEN;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,4) ),L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,3)),L,1),COLOR GREEN;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,5) ),L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,4)),L,1),COLOR GREEN;STICKLINE(HT=0 ,C,O,2,0),COLORYELLOW;STICKLINE(TT1=0 ,C,O,2,0),COLORGREEN;。

通达信指标公式源码 迎春图 压力和支撑一目了然

通达信指标公式源码 迎春图 压力和支撑一目了然

{迎春图TDX N:1,100,4 K:0,1,1 }VVAR1:=IF(K=1,(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,30)+MA(CLOSE,6 0))/4,DRAWNULL);DRAWBAND(MA(C,3),RGB(120,120,00),VVAR1,RGB(30,100,200));GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);明日阻力2:=L+2*(GJ-L)+(C-L);明日支撑2:=L+(C-GJ)-(GJ-L);今日阻力:REF(明日阻力, 1),NODRAW;今日支撑:REF(明日支撑, 1),NODRAW;今日阻力2:REF(明日阻力2 , 1),NODRAW;今日支撑2:REF(明日支撑2 , 1),NODRAW;STICKLINE(ISLASTBAR,今日阻力,今日阻力2,20,0),COLOR555555; {STICKLINE(ISLASTBAR,今日阻力2,今日阻力2,10,1),COLORAAAAAA;} DRAWTEXT(ISLASTBAR,今日阻力,' 阻'),COLOR0000FF;STICKLINE(ISLASTBAR,今日支撑,今日支撑2,20,0),COLOR555555; {STICKLINE(ISLASTBAR,今日支撑2,今日支撑2,10,1),COLORAAAAAA;} DRAWTEXT(ISLASTBAR,今日支撑,' 支'),COLOR00FF00;JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;AAAX:=(3*C+H+L+O)/6;龙:IF(K=0,(8*AAAX+7*REF(AAAX,1)+6*REF(AAAX,2)+5*REF(AAAX,3)+4*REF(AAAX,4)+3*REF(AAAX,5)+2*REF(AAAX,6)+REF(AAAX,8))/36,DRAWN ULL),COLOR00FF00;凤:=(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211; R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE=REF(CLOSE,2));R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); RD:=(CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2));R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,2)); R18:=(REF(R17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE0.1),COLORFFFFFF,NODRAW;早春:=ISLASTBAR AND (((((VAR4 无痕))OR ((VAR4 无痕))) OR ((VAR4 > 无痕)AND (VAR111 > 无痕)))),COLOR00FF00,NODRAW;初夏:=ISLASTBAR AND ((((((VAR4 > 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,1))) OR ((((VAR4 >VAR222)AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 >REF(VAR222,1))))),COLOR0000FF,NODRAW;深秋:=ISLASTBAR AND (((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪> 无痕))AND (VAR111 > REF(VAR111,1)))),COLOR00FFFF,NODRAW;SAAA:=(3*C+H+L+O)/6;SVAR1:=(8*SAAA+7*REF(SAAA,1)+6*REF(SAAA,2)+5*REF(SAAA,3)+4*REF(SAAA,4)+3*REF(SAAA,5)+2*REF(SAAA,6)+REF(SAA A,8))/36;SVAR2:=(HHV(SVAR1,5)+HHV(SVAR1,10)+HHV(SVAR1,20))/3;SVAR3:=(LLV(SVAR1,5)+LLV(SVAR1,10)+LLV(SVAR1,20))/3;SVAR4:=(HHV(SVAR2,5)+HHV(SVAR2,10)+HHV(SVAR2,20))/3;SVAR5:=(LLV(SVAR3,5)+LLV(SVAR3,10)+LLV(SVAR3,20))/3;SVAR6:=(LLV(SVAR1,2)+LLV(SVAR1,4)+LLV(SVAR1,6))/3;ZGD:=HHV(REF((C*2-REF(C,3)),3),30)*0.99,COLOR008888;ZDD:=LLV(REF((C*2-REF(C,3)),3),30)*1.05,COLOR008888;ZGD2:=IF(K=0,CONST(ZGD),DRAWNULL);ZDD2:=IF(K=0,CONST(ZDD),DRAWNULL);AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L,N)=LLV(L,2*N+1);QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1);CC:=FILTER(QY,N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) ANDL=LLV(L,N+1);DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1);GDTS:=IF(CC,CURRBARSCOUNT,0); DDTS:=IF(CC1,CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);GDCS1:=CONST(DINGBUTS); DDCS1:=CONST(DDTS1);GDCS13:=CONST(REF(HIGH,GDCS1-1)); DDCS13:=CONST(REF(L,DDCS1-1)); DINGBUTS1:=REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1); GDCS2:=CONST(DINGBUTS1); DDCS2:=CONST(DDTS2);GDCS23:=CONST(REF(HIGH,DINGBUTS1-1));DDCS23:=CONST(REF(L,DDTS2-1));XG1:=BACKSET(ISLASTBAR,GDCS1); XD1:=BACKSET(ISLASTBAR,DDCS1); XG2:=BACKSET(ISLASTBAR,DINGBUTS1);XD2:=BACKSET(ISLASTBAR,DDTS2);XDD:=IF(DDCS13ZGD2*1.02 OR(REF(H,(GDCS1-1))+DX1*GDCS1)ZGD2*1.02 OR(REF(H,(GDCS11-1))+DX2*DDCS11)ZGD2*1.02,0,1);LX2:=(REF(L,DDCS11-1)-REF(L,DDCS22-1))/(DDCS22-DDCS11);LLLX1:=IF((REF(L,(DDCS11-1))+LX2*DDCS11)ZGD2*1.02,0,1);高压力:DRAWLINE(K=0 ANDCURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,DDX1),COLORYEL LOW,LINETHICK1;低支撑:DRAWLINE(K=0 ANDCURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,LLX1),COLORYELL OW,LINETHICK1;DRAWLINE(K=0 ANDCURRBARSCOUNT=GDCS22 ,H,CURRBARSCOUNT=GDCS11,H,DDDX1),COLO RWHITE,LINETHICK1;DRAWLINE(K=0 ANDCURRBARSCOUNT=DDCS22 ,L,CURRBARSCOUNT=DDCS11,L,LLLX1),COLOR WHITE,LINETHICK1;等待:=IF(K=0 AND MA3>凤,凤,MA3);IF(K=0 AND 龙> REF(龙,1),龙,DRAWNULL),COLORMAGENTA,LINETHICK2; IF(K=0 AND 等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(K=0 AND 凤>REF(凤,1),凤,DRAWNULL),LINETHICK2,COLOR0000FF;IF(K=0 AND 凤REF(H,1);KOL:=HREF(H,BARSLAST(KOH)+1);NHIF:=L=REF(L,BARSLAST(KOL)+1);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)) )),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;压力位:=IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:=IF(ISLASTBAR,底部,DRAWNULL),NODRAW;STICKLINE(ISLASTBAR ,压力位,压力位,120,0),COLORFFFFFF;STICKLINE(ISLASTBAR ,底部位,底部位,100,0),COLOR00FF00;STICKLINE(ISLASTBAR AND (红持股OR REF(红持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (阴观望OR REF(阴观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;{卖出------------------------}VAR55:=EMA(EMA(EMA(CLOSE,8),13),62);VAR56:=((REF(HIGH,1) + REF(LOW,1)) / 2);VAR57:=(MA(CLOSE,20) + (2 * STD(CLOSE,20)));VAR58:=((SMA(MAX((CLOSE - REF(CLOSE,1)),0),7,1) / SMA(ABS((CLOSE - REF(CLOSE,1))),7,1)) * 100);卖出1:=FILTER(CROSS(79,VAR58),4);MA21:=REF(CLOSE,1);ZX:=((SMA(MAX((CLOSE - MA21),0),6,1) / SMA(ABS((CLOSE - MA21)),6,1)) * 100);卖出2:=CROSS(84,ZX),COLORFF00FF;卖出3:=CROSS(90,RSI);卖出:=卖出1 OR 卖出2 OR 卖出3;DRAWICON(卖出,(HIGH * 1.002),15);{买入------------------------}QQ2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;QQ3:=SMA(QQ2, 9, 1);QQ4:=SMA(QQ3, 3, 1);长趋势:=3*QQ3-2*QQ4,COLORWHITE,LINETHICK3;趋势线:=EMA(QQ3, 3),COLORRED,LINETHICK3;金叉:= CROSS(长趋势,趋势线);AAAA1:=AMOUNT/V;BBB1:=L1.2;DDD1:=L0,0,-20),LINETHICK2,COLORGREEN;DIFF:=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;DEA:=EMA(DIFF,9);MACD:= 2*(DIFF-DEA);抄底:=IF(快到底=2099 AND MONTH>2,0,1);AVAR4:=LLV(LOW,5);AVAR5:=HHV(HIGH,4);散户:= EMA((AVAR2-AVAR4)/(AVAR5-AVAR4)*100,4)*AVAR3;庄家:= EMA(0.667*REF(散户,1)+0.333*散户,2)*AVAR3;试买:=(((CROSS(散户,庄家) AND 散户0) OR 抄底;AA05:=MA(C,5),COLOR0099CC;五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416; AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 ANDAA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) ANDAA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MV3:=EMA(V,3);MV3角度:=ATAN((MV3/REF(MV3,1)-1)*100)*180/3.1416;MA3角度:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;MV5:=EMA(V,5);MA5:=EMA(C,5);MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416;MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;MV10:=EMA(V,10);MA10:=EMA(C,10);MV10角度:=ATAN((MV10/REF(MV10,1)-1)*100)*180/3.1416;MA10角度:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;强弱度:=(MV3角度+MA3角度+MV5角度+MA5角度+MV10角度+MA10角度)/6,COLORFFFFFF;QBD:=CROSS(强弱度,50) AND COUNT(强弱度>50,7)=K13,COLORRED;启爆福缘:=启爆点AND 福缘;HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);AK:=EMA((DMP-DMM)*1,3)*100+50,COLORFFFFFF;AD:=EMA((MA(DMP,3)-MA(DMM,3))*1,3)*100+50,COLORFFFFFF; DRAWICON(CROSS(AK,AD) AND 启爆点AND 福缘,L*0.99 ,9); DRAWICON(加仓,L*0.99,23);DRAWICON(老鼠仓OR 金叉,(LOW - (LOW * 0.01)),1);DRAWTEXT(秋离场,HHV(H,3),'→→→→'),COLORFF99FF;DRAWTEXT(短买春,LLV(L,3),'←←←←'),COLOR00FF00;{严冬:}STICKLINE((VAR4 > 0.1),HIGH,LOW,0,0),COLORFFFFFF;{早春:}STICKLINE(((((VAR4 无痕))OR ((VAR4 无痕))) OR ((VAR4 > 无痕)AND (VAR111 > 无痕))),HIGH,LOW,0,0),COLOR00FF00;{初夏:}STICKLINE((((((VAR4 > 天下有雪) AND (VAR4 > VAR111))AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,1))) OR ((((VAR4 > VAR222)AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 >REF(VAR222,1)))),HIGH,LOW,0,0),COLOR0000FF;{深秋:}STICKLINE(((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪> 无痕))AND (VAR111 > REF(VAR111,1))),HIGH,LOW,0,0),COLOR00FFFF; STICKLINE(((VAR4 > 0.1) AND (CLOSE 0.1) AND (CLOSE >= OPEN)),OPEN,CLOSE,2.8,1),COLORCCCCCC;STICKLINE(((VAR4 > 0.1) AND (CLOSE >=OPEN)),OPEN,OPEN+(CLOSE-OPEN)/3,2.8,0),COLORFFFFFF; STICKLINE((((((VAR4 无痕)) AND (CLOSE 无痕)) AND (CLOSE 无痕) AND (VAR111 > 无痕)) AND (CLOSE 无痕)) AND (CLOSE > OPEN))OR (((VAR4 无痕)) AND (CLOSE > OPEN)))OR (((VAR4 > 无痕) AND (VAR111 > 无痕)) AND (CLOSE >= OPEN))),OPEN,CLOSE,2.8,1),COLOR00FF00;STICKLINE(((((((VAR4 > 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5))AND (VAR222 > REF(VAR222,1))) AND (CLOSE VAR222)AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 >REF(VAR222,2)))AND (CLOSE 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,1))) AND (CLOSE > OPEN)) OR (((((VAR4 > VAR222)AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 >REF(VAR222,1)))AND (CLOSE >= OPEN))),OPEN,CLOSE,2.8,1),COLOR0000FF; STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪> 无痕)) AND (VAR111 > REF(VAR111,1))) AND (CLOSE VAR6) AND (VAR4 > VAR3)) AND (大雪> 无痕))AND (VAR111 > REF(VAR111,1))) AND (CLOSE >=OPEN)),OPEN,CLOSE,2.8,1),COLOR00FFFF;。

支撑压力 通达信指标公式实现源码

支撑压力 通达信指标公式实现源码

支撑压力通达信指标公式实现源码**一、背景介绍**在股票交易中,支撑压力是技术分析中重要的概念之一。

通过研究支撑压力,投资者可以更好地预测股价的上涨和下跌趋势,并作出相应的交易决策。

为了实现对支撑压力的分析,我们可以使用通达信指标公式。

**二、通达信指标公式**通达信是国内著名的股票分析软件,并提供了丰富的指标公式库。

通过使用通达信指标公式,我们可以方便地计算出支撑压力等相关指标的数值。

下面是一个示例通达信指标公式:公式1:支撑压力=前一个低点的最低价公式2:支撑位=2*支撑压力-前一个高点的最低价公式3:压力位=2*支撑压力-前一个低点的最高价**三、源码实现**为了实现通达信指标公式,我们可以使用编程语言来编写相应的源码。

下面是一个简单示例的源码实现:输入所需数据prev_lowest = 100.0 # 前一个低点的最低价prev_highest = 120.0 # 前一个低点的最高价prev_high = 150.0 # 前一个高点的最低价计算支撑压力、支撑位和压力位support_pressure = prev_lowestsupport_level = 2 * support_pressure - prev_highpressure_level = 2 * support_pressure - prev_lowest打印结果print("支撑压力:", support_pressure)print("支撑位:", support_level)print("压力位:", pressure_level)通过运行上述源码,我们可以得到支撑压力、支撑位和压力位的计算结果。

**四、总结**通过实现通达信指标公式源码,我们可以方便地计算出支撑压力等相关指标的数值。

这些指标能够帮助投资者更好地分析股价走势,从而作出更明智的交易决策。

然而,投资决策应当综合考虑多个因素,并通过实践和经验不断优化。

支撑压力线公式(主图)

支撑压力线公式(主图)

支撑压力线公式(主图)HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT= GDCS1,H,1) COLORGREEN,LINETHICK2;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H, GDCS2-1),1),COLOR0055FF;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H, GDCS1-1),1);AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT= DDCS1,L,1) COLORRED,LINETHICK2;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,D DCS1-1),1),COLORMAGENTA;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,D DCS2-1),1),COLORCYAN;红绿线一交叉就可考虑买入。

股票支撑压力自动画线公式

股票支撑压力自动画线公式

股票支撑压力自动画线公式
股票的支撑和压力线可以使用不同的技术指标和方法来绘制,以下是一些常见的公式和方法:
1. 平均线:绘制股票价格的移动平均线,如简单移动平均线(SMA)或指数移动平均线(EMA)。

支撑和压力线可根据
短期和长期均线的交叉点确定。

2. 斐波那契回调线:使用斐波那契数列绘制股票价格的支撑和压力线。

常用的斐波那契回调比率包括38.2%、50%和61.8%。

3. 价格通道:根据股票价格的波动范围绘制支撑和压力线。

常用的技术指标包括布林带、Keltner通道等。

4. 支撑和压力点:根据先前的股票价格高点和低点来确定支撑和压力线。

高点可视为压力线,低点可视为支撑线。

5. 动态支撑和压力线:根据股票价格的变化和交易量等指标来绘制动态的支撑和压力线。

常用的技术指标包括移动平均线收敛/发散指标(MACD)和相对强弱指标(RSI)等。

请注意,以上公式和方法仅供参考,实际绘制支撑和压力线需要结合具体的股票价格走势和分析工具进行综合判断。

股票市场的特点是具有不确定性和波动性,因此绘制的支撑和压力线仅供参考,不能保证股价的未来走势。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

支撑压力一目了然的主图公式说明,主图指标:支撑压力一目了然,多空走势尽收眼底。

牛市有人亏钱,熊市同样有人能赚钱,我能做的是,努力提高自己。

俗话说,跟对人受益一生,我主要是研究期货,最近研究出这套股票系统,成功率非常高,能达到90%以上。

本人对股票的机制不太感冒,只能买多,不能买空,但研究出来的东西又不想浪费了,大家可以多关注,每天我都会把选出的股票推荐给大家,希望大家多关注,大家共同学习。

推荐时间一般都是在下午14:00—14:30,为什么选择这个交易时间段,主要是防止股指恶意跳空而造成不必要的亏损,因为无论做什么事情,我都是追求完美。

给出的股票大家可以择机进场,我所给出的股票都是短线交易,一般持有2天---7天。

并不是每天都有票推荐,上次的股指恶意砸盘,整整一个星期未出一张票。

利润一般都是3%——20%,因为是短线,多余的利润,我也不会多贪说一下我自己的操作理念,对于操作股票,我都是右侧交易,都是拉伸起来的票。

这样利润来得比较快,对于左侧抄底的做法,本人不熟悉,也就不误导大家。

主图公式A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1&gt;40) AND(CLOSE&gt;(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1&gt;40) AND(CLOSE&lt;(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1&lt;40) AND(CLOSE&gt;(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1&lt;40) AND(CLOSE&lt;(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((BARSTATUS=2),((100*A2)/A6),0);A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));机构买盘:=(A2),LINETHICK2;机构卖盘:=(A3),LINETHICK2;散户买盘:=(A4);散户卖盘:=(A5);DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORRED;DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORRED;DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;突破:=REF(EMA(C,14),1);A1X:=(EMA(C,10)-突破)/突破*100;多方:=IF(A1X&gt;=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0)) +1),DRAWNULL);空方:=IF(A1X&lt;0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1 ),DRAWNULL);STICKLINE(A1X&gt;=0,多方,突破,0,0),COLORBLUE;STICKLINE(A1X&lt;0,空方,突破,0,0),COLOR00CC66; DRAWTEXT_FIX(1,0.880,1-0.97,0,DYBLOCK),COLORWHITE;DRAWTEXT_FIX(1,0.940,1-0.97,0,HYBLOCK),COLORYELLOW;均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;DXJP:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,21)-LLV(LOW,34))*100;FSZX:=(EMA(DXJP,3)-50)*2,COLORGRAY;BGTYU:=IF(DATE&lt;=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BAR SCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((D CLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((D CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG TYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))));DRAWICON(FSZX&lt;=-95,C,38);{}DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),C,'板'),COLORCYAN;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),C,'追'),COLORYELLOW;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),C,1 7);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,COLORMAGENTA;DRAWICON(LONGCROSS(支撑,C,2),C,5);DRAWICON(LONGCROSS(C,阻力,2),C,6);VARJ1:=EMA(EMA(CLOSE,13),13);控盘2:=(VARJ1-REF(VARJ1,1))/REF(VARJ1,1)*1000;STJ01:=控盘2&lt;REF(控盘2,1) AND 控盘2&gt;0.5; STJ02:=控盘2&gt;0;BTJ2:=控盘2&gt;REF(控盘2,1) AND 控盘2&lt;-0.2; BTJ22:=控盘2&gt;REF(控盘2,1) AND 控盘2&lt;0 ; JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;能量:=(EMA(CLOSE,S)-EMA(C,P))*10;空头:=EMA(能量,M1),COLOR00FF00;BTJ1:=(CLOSE-JJ)/JJ&lt;-0.005;BTJ11:=(CLOSE-JJ)/JJ&lt;-0.03;BTJ12:=COUNT(JJ&gt;=REF(JJ,1),5)&gt;=4 AND (CLOSE-JJ)/JJ&lt;0.005;STJ1:=(C-JJ)/JJ&gt;0.005;BTJ3:=CROSS(能量,空头) AND 能量&lt;-0.3;BTJ32:=CROSS(能量,空头) AND 能量&lt;-0.1;STJ31:=CROSS(空头,能量);STJ32:=CROSS(空头,能量) AND 能量&gt;1.618;A:=8;BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,A);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,A);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,A);时长:=IF(HOUR&gt;=9 AND HOUR&lt;14 ,1,0);{9点至14点}捡钱:=BTJ811 AND TIME&gt;15 AND 时长; DRAWICON(捡钱,C,27);AYGB1:=(DVOL/C)/2,NODRAW;AYGB2:=SUM(IF(AYGB1&gt;100 ANDCLOSE&gt;REF(CLOSE,1),AYGB1,0),0);AYGB3:=SUM(IF(AYGB1&gt;100 ANDCLOSE&lt;REF(CLOSE,1),AYGB1,0),0);AYGB4:=SUM(IF(AYGB1&lt;100 ANDCLOSE&gt;REF(CLOSE,1),AYGB1,0),0);AYGB5:=SUM(IF(AYGB1&lt;100 ANDCLOSE&lt;REF(CLOSE,1),AYGB1,0),0);AYGB6:=AYGB2+AYGB3+AYGB4+AYGB5;机买:=(AYGB2/AYGB6)*100-100,LINETHICK1,COLORRED;机卖:=(AYGB3/AYGB6)*100-100,LINETHICK1,COLORGREEN;主力差:=机买-机卖;LQH:=主力差&gt;0 AND REF(主力差,1)&lt;=0;DRAWICON(LQH,C,25);JJXX:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1. 05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),C OLORYELLOW;JJXXH:=(JJXX*1.007 ),COLORFF6600;FFLL:=SUM(VOL,6)&gt;REF(MA(VOL,30),1)*10;HHPP:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)&lt;1;HHZZ:=HHPP AND FFLL AND (C&gt;JJXXH);TTPP2:=FILTER(HHZZ,100);。

相关文档
最新文档