{缠通套利}
{参数1: 老笔, 最小: 0, 最大: 1, 缺省: 0, 日线: 1, 周线: 1}
{缠通套利}
{参数1: 老笔, 最小: 0, 最大: 1, 缺省: 0, 日线: 1, 周线: 1}
xa_1:=ma(close,5);
xa_2:=ma(close,10);
xa_3:=ref(high,5)=hhv(high,11);
xa_4:=ref(low,5)=llv(low,11);
xa_5:=backset(xa_3,6)>backset(xa_3,5);
xa_6:=backset(xa_4,6)>backset(xa_4,5);
xa_7:=if(barslast(xa_5)=barslast(xa_6) and xa_1>xa_2,xa_5,if(barslast(xa_6)>barslast(xa_5),xa_5,0));
xa_8:=if(barslast(xa_5)=barslast(xa_6) and xa_2>xa_1,xa_6,if(barslast(xa_5)>barslast(xa_6),xa_6,0));
xa_9:=xa_7 and high=hhv(high,barslast(xa_8));
xa_10:=xa_8 and low=llv(low,barslast(xa_7));
gp:if(xa_9,high,drawnull),circledot,colorcyan;
dp:if(xa_10,low,drawnull),circledot,colorcyan;
xa_11:=low>ref(high,1) and day!=ref(day,1);
xa_12:=high<ref(low,1) and day!=ref(day,1);
xa_13:=ref(low,barslast(xa_11));
xa_14:=ref(high,barslast(xa_12));
xa_15:=ref(high,barslast(xa_9));
xa_16:=ref(low,barslast(xa_9));
xa_17:=ref(high,barslast(xa_9)+1);
xa_18:=ref(low,barslast(xa_9)+1);
xa_19:=ref(high,barslast(xa_9)+2);
xa_20:=ref(low,barslast(xa_9)+2);
xa_21:=ref(high,barslast(xa_10));
xa_22:=ref(low,barslast(xa_10));
xa_23:=ref(high,barslast(xa_10)+1);
xa_24:=ref(low,barslast(xa_10)+1);
xa_25:=ref(high,barslast(xa_10)+2);
xa_26:=ref(low,barslast(xa_10)+2);
xa_27:=if(xa_16<=xa_18,xa_19,xa_17);
xa_28:=if(xa_17<xa_16,xa_16,if(xa_16<=xa_18,xa_20,xa_18));
xa_29:=if(xa_24>xa_21,xa_21,if(xa_21>=xa_23,xa_25,xa_23));
xa_30:=if(xa_21>=xa_23,xa_26,xa_24);
xa_31:=xa_15>xa_29 and xa_9;
xa_32:=xa_22<xa_28 and xa_10;
xa_33:=xa_31 and xa_15>xa_21 and xa_16>xa_22 and xa_18>xa_22;
xa_34:=xa_32 and xa_22<xa_16 and xa_21<xa_15 and xa_23<xa_15;
xa_35:=high<=ref(high,1) and low>=ref(low,1) or (high>=ref(high,1) and low<=ref(low,1));
xa_36:=count(xa_35,barslast(xa_10));
xa_37:=count(xa_35,barslast(xa_9));
xa_38:=count(xa_11,barslast(xa_10));
xa_39:=count(xa_12,barslast(xa_9));
xa_40:=if(xa_36>0,xa_36+2+老笔,if(xa_37,xa_37+2+老笔,3));
xa_41:=if(xa_38,xa_40-xa_38,if(xa_39,xa_40-xa_39,xa_40));
xa_42:=xa_33 and barslast(xa_34)>xa_41;
xa_43:=xa_34 and barslast(xa_33)>xa_41;
xa_44:=xa_9 and ref(high,barslast(xa_9))>=ref(high,barslast(xa_42)) and barslast(xa_43)>barslast(xa_42) or (xa_31 and count(xa_11,barslast(xa_32))>0 and ref(high,barslast(xa_31))>ref(high,barslast(xa_42)));
xa_45:=xa_10 and ref(low,barslast(xa_10))<=ref(low,barslast(xa_43)) and barslast(xa_42)>barslast(xa_43) or (xa_32 and count(xa_12,barslast(xa_31))>0 and ref(low,barslast(xa_32))<ref(high,barslast(xa_43)));
xa_46:=if(barslast(xa_45)>barslast(xa_44),ref(high,barslast(xa_44)),ref(high,barslast(xa_45)));
xa_47:=if(barslast(xa_44)>barslast(xa_45),ref(low,barslast(xa_45)),ref(low,barslast(xa_44)));
xa_48:=xa_44 and high=hhv(xa_46,barslast(xa_45)+1) and high>ref(high,1) and barslast(xa_45)>barslast(xa_44);
xa_49:=xa_45 and low=llv(xa_47,barslast(xa_44)+1) and low<ref(low,1) and barslast(xa_44)>barslast(xa_45);
xa_50:=xa_48 or (xa_9 and ref(high,barslast(xa_9))>ref(high,barslast(xa_48)) and barslast(xa_49)>barslast(xa_48));
xa_51:=xa_49 or (xa_10 and ref(low,barslast(xa_10))<ref(low,barslast(xa_49)) and barslast(xa_48)>barslast(xa_49));
gpb:if(xa_42,high,drawnull),circledot,coloryellow;
dpb:if(xa_43,low,drawnull),circledot,coloryellow;
{}
xa_52:=xa_50;
xa_53:=xa_51;
l1:drawline(xa_53,low,xa_52,high,0),coloryellow;
l2:drawline(xa_52,high,xa_53,low,0),colorwhite;
xa_54:=close;{}
xa_55:=filter(backset(filter(ref(xa_54,10)=hhv(xa_54,2*10+1),10),10+1),10);
xa_56:=filter(backset(filter(ref(xa_54,10)=llv(xa_54,2*10+1),10),10+1),10);
xa_57:=ref(close,barslast(xa_55));
xa_58:=ref(close,barslast(xa_56));
xa_59:=barslast(xa_55)<barslast(xa_56) and not(xa_55);
xa_60:=barslast(xa_55)>barslast(xa_56) and not(xa_56);
波段顶:if(xa_59,xa_57,xa_57),pointdot,colorligreen,linethick4;
波段底:if(xa_60,xa_58,xa_58),pointdot,colormagenta,linethick4;
上一指标公式:筹码指标主图详解 通达信源码指标
下一指标公式:爆涨临界点指标副图/帖图详解 通达信帖图源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文缠通套利转载和谐完全加密指标详解 通达信加密指标仅供学习研究。