通达信主力风向标主图指标公式源码

VAR44:=10;
VAR45:=10;
VAR46:=3;
VAR47:=10;
VAR48:=2.5;
VAR49:=MAX(MAX(HIGH-LOW,Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
VAR50:=(HIGH+LOW)/2+MA(VAR49,VAR47)*VAR48;
VAR51:=(HIGH+LOW)/2-MA(VAR49,VAR47)*VAR48;
VAR52:=REF(VAR50,BARSLAST(VAR50<=REF(VAR50,1)));
VAR53:=LLV(VAR50,VAR45*1.5);
VAR54:=IF(VAR53!=REF(VAR53,1) AND VAR52< REF(VAR52,1),VAR52,IF(VAR52=VAR53,VAR52,VAR53));
VAR55:=BARSLAST(crOSS(0.5,VAR50=VAR54))+1;
VAR56:=CROSS(COUNT(CROSS(CLOSE,VAR54) OR CROSS(CLOSE,REF(VAR54,2)) AND VAR50>VAR54,VAR55),0.5);
VAR57:=BARSLAST(VAR56);
VAR58:=BARSLAST(CROSS(HHV(VAR51,VAR57+1),CLOSE));
VAR59:=CROSS(VAR58,VAR57);
VAR60:=CROSS(VAR57,VAR58);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
AA:IF(VAR58>VAR57,HHV(VAR51,BARSLAST(VAR59)+1),LLV(VAR50,BARSLAST(VAR60)+1)),COLORGREEN,LINETHICK6;
庄家成本线:IF(VAR58>VAR57,AA,DRAWNULL),COLOR0000C8,LINETHICK6;
DRAWICON(CROSS(VAR58,VAR57),AA,42);
DRAWICON(CROSS(VAR57,VAR58),AA*1.015,43);
买进:CROSS(VAR58,VAR57)*100,NODRAW,COLORRED;
卖出:CROSS(VAR57,VAR58)*100,NODRAW;



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

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

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

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