通达信突破压力线买入指标公式

 

持仓:IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),
 DRAWNULL),CIRCLEDOT,COLORRED,{COLOR9955FF};
空仓:IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),
 DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00};

V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
 V2:=(1-7/100)*(DMA(CLOSE,V1));
 V3:=(1+7/100)*(DMA(CLOSE,V1));
 V5:=MA((LOW+HIGH+CLOSE)/3,5);

MA1:=MEMA(CLOSE,5);
 MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
 MA3:=IF(MA2>0,MA2,MA2);

VAR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV

(C,4) AND C>=REF(C,1) AND C>=REF(C,2);
 VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
 VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND

C<REF(C,1) AND C<REF(C,2);
 VAR4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
 VAR5:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);
 VAR6:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);
 VAR7:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;
 VAR8:=VAR7 AND COUNT(VAR6,2);
 VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
 VAR10:=EMA(MA(C,13),13);
 VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9<0,2) AND CROSS(VAR9,MA(VAR9,2)))=1,5);
 VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) AND CROSS(MA(VAR9,2),VAR9))=1,1);
 VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
 VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
 VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
 VAR16:=VAR8 AND NOT(REF(VAR8,1));
 {强攻:IF(MA3>REF(MA3,1) AND MA3>=0,MA10,DRAWNULL),COLORYELLOW,LINETHICK2;
回调:IF(MA3<REF(MA3,1) AND MA3>0,MA10,DRAWNULL),COLORGREEN,LINETHICK2;}
 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;
金叉:=CROSS(J,D);
死叉:=CROSS(D,J);
买1:=(VAR14 OR VAR15) AND VAR11;
买2:=(VAR14 OR VAR15) AND VAR4;
买3:=(VAR14 OR VAR15) AND VAR2;
买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);
买5:=(金叉 AND VAR4) OR (金叉 AND VAR2) OR (金叉 AND VAR11);
 {涨停}
STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;
 {跌停}
STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;
 {蓝}
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
 STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
 STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
 STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;
 {红}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
 STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
 {绿}
STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900;
 STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;
 STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;
 STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;
 {灰}
STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
 STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
 STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
 STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;
 STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW;
 STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000099;
 DRAWICON(VAR16,LOW-0.02,7);
 DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5,LOW-0.01,1);
 DRAWICON(死叉 OR VAR12 OR CROSS(40,VAR9),HIGH+0.01,2);

下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),LINETHICK2;

TYP:=(HIGH+LOW+CLOSE)/3;
 NCC1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
 NC1:=SMA(NCC1,3,1);
 NC2:=SMA(NC1,3,1);
 NC3:=3*NC1-2*NC2;
 CB1:=EMA(NC3,5);
 CB2:=REF(CB1,1);
 LC := REF(CLOSE,1);
 RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
 RSI:=(RSI1-50)*5,LINETHICK2,COLORYELLOW;
 NR1:=SMA(RSI,3,1);
 ND1:=SMA(NR1,3,1);
 NJ1:=3*NR1-2*ND1;
 RR1:=EMA(NJ1,5);
 RR2:=REF(RR1,1);
 RR:=RR1>RR2;
 RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 NK:=SMA(RSVQ,3,1);
 NK1:=(NK-50)*5,COLORRED;
 NK2:=SMA(NK1,3,1);
 ND2:=SMA(NK2,3,1);
 NJ2:=3*NK2-2*ND2;
 NBB1:=EMA(NJ2,5);
 NBB2:=REF(NBB1,1);
买N入:=RR AND NOT(REF(RR,1)) AND (NBB1<-100 AND NBB1<-100) AND CB1<-100;
 DRAWICON(买N入,L-0.010,5);
卖N出:=REF(RR,1)=1 AND NOT(RR) AND CB1>100,LINETHICK0;
 DRAWICON(卖N出,H+0.01,6);

RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
 K11:=SMA(RSV1,5,1);
 D11:=SMA(K11,5,1);
 J11:=3*K11-2*D11;
 AA11:=EMA(J11,5);
 AA22:=REF(AA11,1);
 RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K22:=SMA(RSV2,3,1);
 D22:=SMA(K22,3,1);
 J22:=3*K22-2*D22;
 BB11:=EMA(J22,5);
 BB22:=REF(BB11,1);
 DD:=AA11>AA22 AND BB11>BB22;
注意买入:=DD AND NOT(REF(DD,1)) AND (AA11<50 OR BB11<50);
注意卖出:=REF(DD,1)=1 AND NOT(DD);
 DRAWICON(注意买入,L-0.010,9);
 DRAWICON(注意卖出,H+0.010,10);
 STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN,;
 DRAWNUMBER(ISLASTBAR,REF(L,1),REF(L,1));




来函数检测结果如下
该公式没有未来函数


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

所属板块赋值:字符串相加
风格板块赋值:字符串相加
总股本赋值:字符串相加
流通盘赋值:字符串相加
全流通赋值:字符串相加
市值赋值:字符串相加
股本市值赋值:字符串相加
市盈率赋值:字符串相加
净资收益率赋值:字符串相加
主营利润率赋值:字符串相加
当前业绩赋值:字符串相加
当满足条件是否最后一个周期时,在横轴0.005纵轴0.02位置书写文字,画黄色
当满足条件是否最后一个周期时,在横轴0.005纵轴0.07位置书写文字,画黄色
当满足条件是否最后一个周期时,在横轴0.005纵轴0.12位置书写文字,画洋红色
当满足条件是否最后一个周期时,在横轴0.005纵轴0.17位置书写文字,画洋红色
JJ赋值:(收盘价+最高价+最低价)/3
A赋值:JJ的13日指数移动平均
B赋值:1日前的A
GSPT1赋值:收盘价的3日指数移动平均
GSPT2赋值:收盘价的8日指数移动平均
GSPT3赋值:GSPT2的13日指数移动平均
GSPT4赋值:GSPT2的55日指数移动平均
M2赋值:收盘价的8日指数移动平均
生命价线赋值:M2的13日指数移动平均,画绿色,线宽为4
MA5赋值:收盘价的5日简单移动平均,画白色,线宽为1
MA10赋值:收盘价的10日简单移动平均,画蓝色,线宽为3
MA20赋值:收盘价的20日指数移动平均
MA99赋值:收盘价的99日简单移动平均
MA120赋值:收盘价的120日简单移动平均
MA250赋值:收盘价的250日指数移动平均,画蓝色,线宽为3
GSPT11AQ赋值:(收盘价+最高价+最低价)/3
GSPT12AQ赋值:GSPT11AQ的14日指数移动平均
GSPT13AQ赋值:1日前的GSPT12AQ
GSPT14AQ赋值:GSPT11AQ的5日指数移动平均,画洋红色,线宽为4
输出
多空趋势彩带2:画带状线
输出
多空趋势彩带3:画带状线
输出
持股区域:当满足条件A>B时,在A和B位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色
输出
持币区域:当满足条件A量价抄底赋值:收盘价的2日指数移动平均的2日指数移动平均的2日指数移动平均的2日指数移动平均,线宽为4,COLOR0000FF
价量抄底赋值:1日前的量价抄底的2日指数移动平均,线宽为2,COLOR00FFFF
价格反转赋值:GSPT14AQ上穿生命价线 AND 量价抄底>价量抄底 AND 收盘价>量价抄底
当满足条件价格反转时,在最低价*0.96位置书写文字,画黄色
当满足条件价格反转时,在开盘价和收盘价位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,画黄色
当满足条件价格反转时,在最低价位置画9号图标

指标安装下载帮助  |   联系我们  |  股朋指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股朋指标网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:股朋指标网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图