通达信三步登高主副图 跟随主升浪找到最佳介入点 用法详解 源码附图

{三步登高副源码如下}
VAR1:=HHVBARS(CLOSE,100);
VAR2:=(REF(C,VAR1)/REF(LLV(C,100),VAR1)-1)*100;
VAR3:=HHVBARS(CLOSE,200);
VAR4:=IF(VAR1=VAR3,VAR2,(REF(H,VAR3)/REF(LLV(C,200),VAR3-1))*100);
VAR5:=BARSCOUNT(CLOSE);
VAR6:=50*(MIN(CLOSE,0)-L)/REF(CLOSE,1);
VAR7:=50*ABS(CLOSE-0)/REF(CLOSE,1);
VAR8:=VAR2<100 AND IF(VAR5<250,1,VAR4<200);
VAR18:=C>O AND REF(C<O,1) AND C>REF(C,1) AND V>REF(V,1) AND VAR6<1 AND VAR7>VAR6 AND V<3*REF(V,1);
VAR16:=LLV(C,3)>REF(C,3) AND HHV(V,3)<REF(V,3) AND EVERY(C>O,3) AND UPNDAY(C,2) AND C/REF(C,3)<1.1;
XG:VAR16 AND REF(VAR18,3) AND VAR8;

{三步登高主图源码如下}
VAR1:=HHVBARS(CLOSE,100);
VAR2:=(REF(C,VAR1)/REF(LLV(C,100),VAR1)-1)*100;
VAR3:=HHVBARS(CLOSE,200);
VAR4:=IF(VAR1=VAR3,VAR2,(REF(H,VAR3)/REF(LLV(C,200),VAR3-1))*100);
VAR5:=BARSCOUNT(CLOSE);
VAR6:=50*(MIN(CLOSE,0)-L)/REF(CLOSE,1);
VAR7:=50*ABS(CLOSE-0)/REF(CLOSE,1);
VAR8:=VAR2<100 AND IF(VAR5<250,1,VAR4<200);
VAR9:=C>O AND REF(C<O,1) AND C>REF(C,1) AND V>REF(V,1) AND VAR6<1 AND VAR7>VAR6 AND V<3*REF(V,1);
VAR10:=LLV(C,3)>REF(C,3) AND HHV(V,3)<REF(V,3) AND EVERY(C>O,3) AND UPNDAY(C,2) AND C/REF(C,3)<1.1;
VAR18:=VAR8 AND VAR10 AND REF(VAR9,3);
VAR16:=BARSLAST(VAR18);
STICKLINE(REFX(VAR18,3),C,O,3,0),COLORRED;
STICKLINE(EVERY(C>REF(L,VAR16+3),VAR16),REF(L,VAR16+3),REF(L,VAR16+3),4,1);
DRAWICON(VAR18,L,9);



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

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

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