通达信圆宝中线主图指标公式单实用趋势波段 源码

本人应用了几年,简单明了实用,收益稳定。当黄线呈下降趋势时的小反弹不必参与,真正的趋势起来是不会三二天结束的,所以再好的指标也是要择时运用。因趋势指标都会有未来函数不必在意,凡出现过的信号都不会飘移或消失,放心使用。
 

MA5:MA(CLOSE,M5);

DA:(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT;
X2:(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORF0F000,NODRAW;
X3:MA(X2,5),COLORYELLOW,LINETHICK2;
X1:=(C+L+H)/3;
买:=CROSS(X2,X3);
卖:=CROSS(X3,X2);

DRAWICON(CROSS(X2,X3),L*0.97,1);

DRAWICON(CROSS(X3,X2),H*1.05,2);
STICKLINE(X2>=X3,LOW,HIGH,0,1),COLORRED;
STICKLINE(X2>=X3,CLOSE,OPEN,3.2,2),COLORRED;
STICKLINE(X2<X3,LOW,HIGH,0,1),COLORLIBLUE;
STICKLINE(X2<X3,CLOSE,OPEN,3.2,2),COLORLIBLUE;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3.2,0),COLORLIBLUE;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3.2,0),COLORRED;
STICKLINE((CLOSE>OPEN) AND (X2<X3),CLOSE,OPEN,3.2,2)COLORLIBLUE;
STICKLINE((CLOSE>OPEN) AND (X2>=X3),CLOSE,OPEN,3.2,2)COLORRED;
STICKLINE((CLOSE<OPEN) AND (X2<X3),CLOSE,OPEN,3.2,0)COLORLIBLUE;
STICKLINE((CLOSE<OPEN) AND (X2>=X3),CLOSE,OPEN,3.2,0)COLORRED;
DRAWTEXT_FIX(1,0.980,0,1,'GOODGUPIAO'),COLORYELLOW;

C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(涨停,OPEN,CLOSE,2.3,1),COLORYELLOW;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,2.3,1),COLORGREEN;

Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;

DF:=(C-REF(C,1))/REF(C,1)*100<-5;
EE:=BARSLAST(DF);
突破箱体:=CROSS(C,REF(C,EE));
顶:DRAWLINE(DF,O,REF(DF,1),REF(O,1),1),COLORMAGENTA DOTLINE;
箱底:=LLV(MIN(L,REF(L,EE)),EE),COLORCYAN,LINETHICK2;
DRAWTEXT(ISLASTBAR,顶,'');

 

DD1:=1;
DRAWTEXT_FIX(DD1=1,0,0.95,0,' '),COLORYELLOW;

AA100:=AMOUNT/V;
BB100:=L<AA100*0.9;
CC100:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD100:=L<MA(C,5)*0.921;

 

UPPER:BOLL+2*STD(CLOSE,20),NODRAW;
LOWER:BOLL-2*STD(CLOSE,20),NODRAW;
轨距:=UPPER-LOWER;
牛股起动:=FILTER(轨距>REF(轨距,1) AND (轨距-REF(轨距,1))/REF(轨距,1)>=0.18 AND BOLL>REF(BOLL,1),11),COLOR0000FF;
DRAWTEXT(FILTER(牛股起动=1,11),BOLL, '←起爆'),COLORYELLOW;




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

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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