通达信清晰明了短线止盈止损参考超强指标——支撑阻力主图源码

 

{=============分形=============N=2穷尽罗列法}
A:=H;A1:=REF(H,1);A2:=REF(H,2);A3:=REF(H,3);A4:=REF(H,4);A5:=REF(H,5);A6:=REF(H,6);A7:=REF(H,7);A8:=REF(H,8);
 B:=L;B1:=REF(L,1);B2:=REF(L,2);B3:=REF(L,3);B4:=REF(L,4);B5:=REF(L,5);B6:=REF(L,6);B7:=REF(L,7);B8:=REF(L,8);
 HF1:=A2>A1 AND A2>A AND A2>A3 AND A2>A4;{=========================================5根K线}
HF2:=A3=A2 AND A2>A1 AND A2>A AND A2>A4 AND A2>A5;{===============================2个等高A2=A3,6根K线34}
 HF3:=A2=A4 AND A2>A1 AND A2>A AND A2>A3 AND A2>A5 AND A2>A6;{=====================2个等高A2=A4,7根K线35}
 HF4:=A4=A3 AND A3=A2 AND A2>A1 AND A2>A AND A2>A5 AND A2>A6;{=====================3个等高A4=A3 AND A3=A2,7根K线345}
 HF5:=A2=A4 AND A2=A6 AND A2>A1 AND A2>A AND A2>A3 AND A2>A5 AND A2>A7 AND A2>A8;{3个等高A2=A4 AND A2=A6,9根K线357}
 HF6:=A2=A3 AND A2=A5 AND A2>A1 AND A2>A AND A2>A4 AND A2>A6 AND A2>A7;{==========3个等高A2=A3 AND A2=A5,8根K线346}
 HF7:=A2=A4 AND A2=A5 AND A2>A1 AND A2>A AND A2>A3 AND A2>A6 AND A2>A7;{===========3个等高A2=A4 AND A2=A5,8根K线356}
 LF1:=B2<B1 AND B2<B AND B2<B3 AND B2<B4;{=========================================5根K线}
LF2:=B3=B2 AND B2<B1 AND B2<B AND B2<B4 AND B2<B5;{===============================2个等低B2=B3,6根K线34}
 LF3:=B2=B4 AND B2<B1 AND B2<B AND B2<B3 AND B2<B5 AND B2<B6;{=====================2个等低B2=B4,7根K线35}
 LF4:=B2=B3 AND B2=B4 AND B2<B1 AND B2<B AND B2<B5 AND B2<B6;{=====================3个等低B2=B3 AND B2=B4,7根K线345}
 LF5:=B2=B4 AND B2=B6 AND B2<B1 AND B2<B AND B2<B3 AND B2<B5 AND B2<B7 AND B2<B8;{3个等低B2=B4 AND B2=B6,9根K线357}
 LF6:=B2=B3 AND B2=B5 AND B2<B1 AND B2<B AND B2<B4 AND B2<B6 AND B2<B7;{==========3个等低B2=B3 AND B2=B5,8根K线346}
 LF7:=B2=B4 AND B2=B5 AND B2<B1 AND B2<B AND B2<B3 AND B2<B6 AND B2<B7;{===========3个等低B2=B4 AND B2=B5,8根K线356}
 HD:=HF1 OR HF2 OR HF3 OR HF4 OR HF5 OR HF6 OR HF7;
 LD:=LF1 OR LF2 OR LF3 OR LF4 OR LF5 OR LF6 OR LF7;
 HD1:=BACKSET(HD,3);
 HD2:=FILTER(HD1,2);
 LD1:=BACKSET(LD,3);
 LD2:=FILTER(LD1,2);
 {REF(H,BARSLAST(HD2)),POINTDOT;}
 {REF(L,BARSLAST(LD2)),POINTDOT;}

上向分形: REF(HIGH,BARSLAST(HD2)), POINTDOT,COLOREA91B5;
 STICKLINE(CLOSE,REF(HIGH,BARSLAST(HD2)),REF(HIGH,BARSLAST(HD2)),0.1,1),COLORMAGENTA;
向下分形: REF(LOW,BARSLAST(LD2)), POINTDOT,COLOR3791B5;
 STICKLINE(CLOSE,REF(LOW,BARSLAST(LD2)),REF(LOW,BARSLAST(LD2)),0.1,1),COLORGREEN;

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

操盘线D:REF(SMA(VAR1,3,1),3),COLORGREEN,LINETHICK1;
操盘线Z:REF(SMA(VAR1,25,1),5),COLORRED,LINETHICK1;




来函数检测结果如下
该公式包含未来函数:BACKSET

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

相关指标公式

A赋值:最高价
A1赋值:1日前的最高价
A2赋值:2日前的最高价
A3赋值:3日前的最高价
A4赋值:4日前的最高价
A5赋值:5日前的最高价
A6赋值:6日前的最高价
A7赋值:7日前的最高价
A8赋值:8日前的最高价
B赋值:最低价
B1赋值:1日前的最低价
B2赋值:2日前的最低价
B3赋值:3日前的最低价
B4赋值:4日前的最低价
B5赋值:5日前的最低价
B6赋值:6日前的最低价
B7赋值:7日前的最低价
B8赋值:8日前的最低价
HF1赋值:A2>A1 AND A2>A AND A2>A3 AND A2>A4
HF2赋值:A3=A2 AND A2>A1 AND A2>A AND A2>A4 AND A2>A5
HF3赋值:A2=A4 AND A2>A1 AND A2>A AND A2>A3 AND A2>A5 AND A2>A6
HF4赋值:A4=A3 AND A3=A2 AND A2>A1 AND A2>A AND A2>A5 AND A2>A6
HF5赋值:A2=A4 AND A2=A6 AND A2>A1 AND A2>A AND A2>A3 AND A2>A5 AND A2>A7 AND A2>A8
HF6赋值:A2=A3 AND A2=A5 AND A2>A1 AND A2>A AND A2>A4 AND A2>A6 AND A2>A7
HF7赋值:A2=A4 AND A2=A5 AND A2>A1 AND A2>A AND A2>A3 AND A2>A6 AND A2>A7
LF1赋值:B2LF2赋值:B3=B2 AND B2LF3赋值:B2=B4 AND B2LF4赋值:B2=B3 AND B2=B4 AND B2LF5赋值:B2=B4 AND B2=B6 AND B2LF6赋值:B2=B3 AND B2=B5 AND B2LF7赋值:B2=B4 AND B2=B5 AND B2HD赋值:HF1 OR HF2 OR HF3 OR HF4 OR HF5 OR HF6 OR HF7
LD赋值:LF1 OR LF2 OR LF3 OR LF4 OR LF5 OR LF6 OR LF7
HD1赋值:若HD则将最近3周期置为1
HD2赋值:HD1的2日过滤
LD1赋值:若LD则将最近3周期置为1
LD2赋值:LD1的2日过滤
输出 上向分形: 上次HD2距今天数日前的最高价, POINTDOT,COLOREA91B5
当满足条件收盘价时,在上次HD2距今天数日前的最高价和上次HD2距今天数日前的最高价位置之间画柱状线,宽度为0.1,1不为0则画空心柱.,画洋红色
输出向下分形: 上次LD2距今天数日前的最低价, POINTDOT,COLOR3791B5
当满足条件收盘价时,在上次LD2距今天数日前的最低价和上次LD2距今天数日前的最低价位置之间画柱状线,宽度为0.1,1不为0则画空心柱.,画绿色
VAR1赋值:(最高价+收盘价+收盘价+最低价)/4
输出操盘线D:3日前的VAR1的3日[1日权重]移动平均,画绿色,线宽为1
输出操盘线Z:5日前的VAR1的25日[1日权重]移动平均,画红色,线宽为1

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

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