同花顺通道均线公式

源码

N:=20;M:=32;P1:=80;P2:=100;

VAR1:=(C+H+O+L)/4;

顶:XMA(VAR1,N)*(1+P1/1000),colorgreen,LINETHICK1;

底:XMA(VAR1,M)*(1-P2/1000),colorgreen,LINETHICK1;

顶2:XMA(VAR1,N)*(1+P1/500),colorcyan,LINETHICK1;

底2:XMA(VAR1,M)*(1-P2/600),colorcyan,LINETHICK1;

幅度:=100*(顶-底)/底,NODRAW;

L卖:L/顶-1,NODRAW;

O卖:O/顶-1,NODRAW;

H卖:H/顶-1,NODRAW;

L买:L/底-1,coloryellow,NODRAW;

O买:O/底-1,NODRAW;

中:(底+顶)/2,colorwhite;

MA1:=MA(VAR1,3);

DRAWTEXT(CROSS(C,底) OR (L<底),LOW*0.95,''),colorred,LINETHICK2;

DRAWTEXT(CROSS(C,顶) OR (H>顶),HIGH*1.02,''),colorgreen;

A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

A4:=SMA(A3,3,1);

A5:=SMA(A4,3,1);

A6:=3*A4-2*A5;

A7:=C-REF(C,1);

A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);

买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));

DRAWTEXT(FILTER(买=1,5),LOW-0.05,''),coloryellow;

STICKLINE(买,OPEN,CLOSE,2,0),coloryellow;

BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,,POINTDOT,linethick2,coloryellow;
 

 




未来函数检测结果如下:
该公式包含未来函数:XMA
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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