文华财经WH6 WH7可直接使用的135战法公式
文华财经WH6WH7软件可直接使用的缠论公式
文华财经WH6WH7软件可直接使用的缠论公式CURRBARSCOUNT=REFX1(BARPOS,9999)-BARPOS+1;{箱体}TC1S=IF(H=HHV(H,48),H,NULL);TC2S=REFX1(BARSLAST(TC1S=H),9999)+1;UPPERS=REFX1(IF(TC2S=1,H,REF(H,TC2S-1)),9999);BC1S=IF(L=LLV(L,48),L,NULL);BC2S=REFX1(BARSLAST(BC1S=L),9999)+1;LOWERS=REFX1(IF(BC2S=1,L,REF(L,BC2S-1)),9999);LPS=CURRBARSCOUNT=BC2S AND L=LOWERS;HPS=CURRBARSCOUNT=TC2S AND H=UPPERS;AB1S=EMA(((2C+H+L)4-LLV(LOW,30))(HHV(HIGH,30)-LLV(LOW,30))100,8);BA1S=EMA(AB1S,5);上轨=REFX1(REF(HHV(MAX(C,O),96),5),9999);下轨=REFX1(REF(LLV(MIN(C,O),96),5),9999);中轨=((上轨)+(下轨))2;YXHX=DATE=REF(DATE,BARSLAST(IF(BC2STC2S,LPS,HPS)));上沿IF(AB1S0 AND AB1S-BA1S=0 AND YXHX,上轨,上轨),COLOR555555,LINETHICK2;中枢IF(AB1S0 AND AB1S-BA1S=0 AND YXHX,中轨,中轨),COLOR555555,LINETHICK2;下沿IF(AB1S0 AND AB1S-BA1S=0 AND YXHX,下轨,下轨),COLOR555555,LINETHICK2;三K线=1;DG=MAX(MAX(REFX(L,1),REFX(L,2)),REFX(L,3));GD=MIN(MIN(REFX(H,1),REFX(H,2)),REFX(H,3));AA11=(DG+GD)2;A11=AA11REFX(L,3) AND REFX(L,2) AA11 AND REFX(L,1) AA11 ;A21=FILTER(A11,10);A41=A11 AND A21;A51=IF(REF(A41,1),H,0),NODRAW;STICKLINE(三K线=1 && REF(A41,2),REF(GD,2),REF(DG,2),13,-1),COLORMAGENTA; DRAWKLINE1(H,O,L,C);峰谷=1;PA=10;PB=REF(HIGH,PA)=HHV(HIGH,2PA+1);PC=FILTER(PB,PA);PD=BACKSET(PC,PA+1);PE=FILTER(PD,PA);{高点}峰线(REF(HIGH,BARSLAST(PE)))峰谷,COLORRED,POINTDOT,LINETHICK2;AA21=REF(LOW,PA)=LLV(LOW,2PA+1);BB21=FILTER(AA21,PA);CC21=BACKSET(BB21,PA+1);DD21=FILTER(CC21,PA);{低点}谷线(REF(LOW,BARSLAST(DD21)))峰谷,COLORGREEN,POINTDOT,LINETHICK2;局部低点预选A=BACKSET(LLV(L,10)REF(LLV(L,9),1),9);局部低点预选B=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A=BACKSET(HHV(H,10)REF(HHV(H,9),1),9);局部高点预选B=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断=IF(LREF(H,1),1,IF(HREF(L,1),-1,0));距前高天=BARSLAST(局部高点预选C=1);距前低天=BARSLAST(局部低点预选C=-1);小值周期=20;大值周期=20;低保留AA=IF(局部低点预选C=-1 AND REF(距前高天,1)REF(距前低天,1) AND LLV(L,距前高天+1)REF(LLV(L,距前高天+1),1),-1,0);低保留AB=IF(局部低点预选C=-1 AND REF(距前高天,1)=REF(距前低天,1) AND (距前高天=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)REF(LLV(L,距前低天+1),1)),-1,0);低保留S=IF((低保留AA=-1 OR 低保留AB=-1) AND LREF(H,距前高天+1),-1,0);预判=IF((距前低天4 AND HHV(缺口判断,距前低天)1) OR REF(低保留S,距前低天)=0,1,0);判断=IF(局部高点预选C=1 AND REF(距前低天,1)=REF(距前高天,1) AND 预判=1 AND 大值周期REF(小值周期,距前低天+1) AND 大值周期REF(小值周期,距前低天) AND 大值周期REF(大值周期,距前高天),1,0);高保留A=IF(局部高点预选C=1 AND REF(距前低天,1)REF(距前高天,1) AND HHV(H,距前低天+1)REF(HHV(H,距前低天+1),1),1,0);高保留B=IF(局部高点预选C=1 AND REF(距前低天,1)=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND HREF(L,距前低天+1),1,0);预判A=IF((距前高天4 AND HHV(缺口判断,距前高天)1) OR REF(高保留,距前高天)=0,1,0);判断A=IF(局部低点预选C=-1 AND REF(距前高天,1)=REF(距前AND 小值周期REF(大值周期,距前高天) AND 小值周期REF(小值周期,距前低天),-1,0);低保留A=IF(局部低点预选C=-1 AND REF(距前高天,1)REF(距前低天,1) AND LLV(L,距前高天+1)REF(LLV(L,距前高天+1),1),-1,0);低保留B=IF(局部低点预选C=-1 AND REF(距前高天,1)=REF(距前低天,1) AND (距前高天=4OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留=IF((低保留A=-1 OR 低保留B=-1) AND LREF(H,距前高天+1),-1,0);距前高天A=BARSLAST(高保留=1);距前低天A=BARSLAST(低保留=-1);预判X=IF((距前低天A4 AND HHV(缺口判断,距前低天A)1) OR REF(低保留,距前低天A)=0,1,0);判断X=IF(局部高点预选C=1 AND REF(距前低天A,1)=REF(距前高天A,1) AND 预判X=1 AND 大值周期REF(小值周期,距前低天A+1) AND 大值周期REF(小值周期,距前低天A) AND 大值周期REF(大值周期,距前高天A),1,0);高保留XA=IF(局部高点预选C=1 AND REF(距前低天A,1)REF(距前高天A,1) AND HHV(H,距前低天A+1)REF(HHV(H,距前低天A+1),1),1,0);高保留XB=IF(局部高点预选C=1 AND REF(距前低天A,1)=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND HREF(L,距前低天A+1),1,0);预判XA=IF((距前高天A4 AND HHV(缺口判断,距前高天A)1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA=IF(局部低点预选C=-1 AND REF(距前高天A,1)=REF(距A+1) AND 小值周期REF(大值周期,距前高天A) AND 小值周期REF(小值周期,距前低天A),-1,0);低保留XA=IF(局部低点预选C=-1 AND REF(距前高天A,1)REF(距前低天A,1) AND LLV(L,距前高天A+1)REF(LLV(L,距前高天A+1),1),-1,0);低保留XB=IF(局部低点预选C=-1 AND REF(距前高天A,1)=REF(距前低天A,1) AND (距前高天A=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X=IF((低保留XA=-1 OR 低保留XB=-1) AND LREF(H,距前高天A+1),-1,0);距前高天YA=BARSLAST(高保留X=1);距前低天YA=BARSLAST(低保留X=-1);预判YX=IF((距前低天YA4 AND HHV(缺口判断,距前低天YA)1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX=IF(局部高点预选C=1 AND REF(距前低天YA,1)=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期REF(小值周期,距前低天YA+1) AND 大值周期REF(小值周期,距前低天YA) AND 大值周期REF(大值周期,距前高天YA),1,0);高保留YXA=IF(局部高点预选C=1 AND REF(距前低天YA,1)REF(距前高天YA,1) AND HHV(H,距前低天YA+1)REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB=IF(局部高点预选C=1 AND REF(距前低天YA,1)=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND HREF(L,距前低天YA+1),1,0);预判YXA=IF((距前高天YA4 AND HHV(缺口判断,距前高天YA)1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA=IF(局部低点预选C=-1 AND REF(距前高天YA,1)=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期REF(大值周期,距前高天YA+1) AND 小值周期REF(大值周期,距前高天YA) AND 小值周期REF(小值周期,距前低天YA),-1,0);低保留YXA=IF(局部低点预选C=-1 AND REF(距前高天YA,1)REF(距前低天YA,1) AND LLV(L,距前高天YA+1)REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB=IF(局部低点预选C=-1 AND REF(距前高天YA,1)=REF(距前低天YA,1) AND (距前高天YA=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX=IF((低保留YXA=-1 OR 低保留YXB=-1) AND LREF(H,距前高天YA+1),-1,0);AAAD=IF(高保留YX=1 AND 低保留YX=-1 AND HREF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND LREF(L,REF(距前低天YA,1)+2),-1,0));极点保留=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点IF(极点保留=-1,L,IF(极点保留=1,H,NULL)) ,CIRCLEDOT,COLORBLUE;DRAWLINE1(CROSS(BACKSET(极点保留=1,BARSLAST(极点保留=-1)+1),0.5),局部极点,CROSS(BACKSET(极点保留=-1,BARSLAST(极点保留=1)+1),0.5),局部极点,0),COLORMAGENTA; DRAWLINE1(CROSS(BACKSET(极点保留=-1,BARSLAST(极点保留=1)+1),0.5),局部极点,CROSS(BACKSET(极点保留=1,BARSLAST(极点保留=-1)+1),0.5),局部极点,0),COLORGREEN; DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'买'),LINETHICK2,COLORRED;。
135系列---战法篇
135系列---战法篇相关形态分类处于底部阶断的战法红杏出墙、蚂蚁上树、动感地带、金屋藏娇、日月合璧、破镜重圆、步步高、九九艳阳天、马失前蹄、绝处逢生、八仙过海、串阳、十全十美、四渡赤水。
处于拉升阶断的战法黑客点击、红衣女侠、海底捞月、均线互换、三线推进、梅开二度、投石问路、三军集结、一阳穿三线、揭竿而起、双蹄并进。
处于整理阶断的战法浪子回头、走四方、暗渡陈仓、一石两鸟、双飞燕、三剑客、四星望月、星星点灯、小鸟依人、立竿见影、串阴。
处于顶部阶断的战法一枝独秀、独上高楼、见好就收、分道扬镳、突出得围、明修栈道、拖泥带水、金蝉脱壳、一箭穿心、过河拆桥、狗急跳墙、一剑封喉、节外生枝、笑里藏刀、一阴破三线、落井下石、晨钟暮鼓。
“135”战法术语汇集1.【红杏出墙】●形态特征:均线系统成典型的空头排列,股价长期下跌并远离长期均线,这时13日均线由下降趋于走平,股价从下向上突破13日均线,并且在13日均线上企稳,我们把这根站在13日均线上的阳线称之为“红杏出墙”。
●形成机理:股价的连续下跌使空方能量得到了有效的释放,导致股价远离平均成本,由于股价有向平均成本靠拢的趋势,而且远离均线的幅度越大,其回归的可能性和扭转力度就越大。
13日均线有降趋平,表明股价已经从长期跌势中止跌企稳。
由于均线的助涨作用这就有可能出现扭转向上的趋势。
13日均线一旦有趋平或者向上翘起,股价自然就会沿着此趋势运行一段时间。
由跌趋平到翘起的过程中,股价重心随之上移。
但是,由于股价刚刚脱离底部区域,上升空间一般都不会太大,因此,投资者对“红杏出墙”的获利空间期望值不要太高,目标界定在10%左右,持股时间在10个交易日左右较为实际。
为安全期间,坚持“双十获利”是一个明智的选择,即持股10天,获利10%了结。
2.【蚂蚁上树】●形态特征:股价经过长期的缩量下跌以后,两条略微向右下方倾斜的主均线相距很近或基本持平。
13日均线由下跌开始走平,股价踏上13日均线后,一连续上攻的小阳线缓步攀升,把股价轻松的送上55日均线。
135战法--海底捞月、均线互换、三线推进、梅开二度
135战法--海底捞月、均线互换、三线推进、梅开二度海底捞月──抛盘穷尽的底部形态1、海底捞月的由来及形态特征海底捞月好名称,形态生动好辨认。
五五均线作为界,海面海底上下分。
五五之上称海面,五五之下海底称。
随着股价缩量落,多头排列正消融。
中长均线平移动,十三均线向下冲。
跌破中长均线后,下跌趋势不再猛。
随着成交逐放大,股价缓步来盘升。
十三重上五五日,一段短期行情生。
2、侠女黑客同揽月股价长期横盘走,调整充分均线粘。
中长均线平移动,成本平均隔不远。
十三跌穿诸主线,空头陷阱在眼前。
十三重上主线顶,买点即刻现眼前。
哪管K线阴或阳,常伴侠女黑客现。
待到侠女黑客出,海底捞月眼前现。
海底捞月形成日,抢筹夺仓象过年。
如有侠女黑客伴,重仓出击莫等闲。
若无侠女与黑客,海底捞月难兑现。
持币观望等买点,形态确立再出拳。
(调整充分均线粘:在形成"海底捞月"以前,曾经过了长期的横盘,调整比较充分,中、长期均线粘合在一起作平行移动,说明市场平均持股成本已趋于一致。
十三跌穿诸主线:虽是跌穿,但只相差几分钱。
十三重上主线顶:13日均线上穿55日均线,“黑客点击”或“红衣侠女”的出现,宣布了"海底捞月"的完成。
这是我们吸纳的良好时机。
哪管K线阴或阳:“海底捞月”出现时,一般伴都有“黑客点击”或“红衣侠女”中一、二个买点,其可靠性更高。
因此,无论K线是阴是阳都应考虑跟进。
也可以这样说,"海底捞月"形成之日,正是我们重仓出击之时。
海底捞月难兑现:如果K线形态不是"黑客点击"或"红衣侠女",这个"海底捞月"的可靠性就要大打折扣。
股价很可能在三线附近继续整理时日。
此时应持币观望,直到形态完全确立或下一个买点的出现)3、海底捞月的形成机理中长均线久平移,市场成本差不悬。
股价短期难深跌,窄幅盘整角磨圆。
十三下叉中长线,不远处作半弧圆。
文华赢顺云交易软件(wh6)指标公式――引用数据函数
文华赢顺云交易软件(wh6)指标公式――引用数据函数文华赢顺云交易软件(wh6)指标公式文华盈顺云交易软件(wh6)指数公式-参考数据函数(一)avprice:取得k线图的均价。
注:1.表示一条K线内的平均价格;2、日线周期上收盘后与settle函数一样取得当日的结算价。
例1:a:avprice;//定义变量a为均价线;例2:ma5:ma(avprice,5);//定义五个周期均价的平均值;例3:c>ma(avprice,5);//价格大于五个周期均价的平均值则返回1,否则返回0。
(二)收盘:获取K线图的收盘价。
注:1.K线未完成时,获取最新价格。
2.可以缩写为C。
例1:a:结束;//将变量a定义为收盘价(当K线未完成时,a是最新价格)。
例2:ma5:=ma(c,5);//定义收盘价的5周期均线(c为close简写)。
例3:a:=ref(c,1);//获取上一个K线的收盘价。
(三)dualvolume:多空量函数。
此功能可通过两种方式使用:1、dualvolume('m'):括号中填写m,则函数返回一定周期内的(主动买量-主动卖量)的平均数值。
2.Dualvolume('n'):如果括号中填充了n,则该函数返回K线图上的活跃购买量和活跃销售量之差。
注:1、用法1:“一定周期”由参数p的数值决定,如果不定义p,默认为5周期。
p不能直接定义,需要在参数列表中定义。
2.主动买入量与主动卖出量的比例相等,或一侧为100%,不画栏。
3、在日、周、月周期上考虑交割信息(即交割后,重新挂牌,要重新计算)。
1/7文华赢顺云交易软件(wh6)指标公式4.在日线下,以1分钟和3分钟等周期计算(即从新交易日的第一个根开始重新计算)。
5.指数没有主动买入和主动卖出的概念,因此该功能在指数合约日周期中的比例是根据指数的所有合约计算的;在指数合约日线以下的时段不支持此功能。
例1:m:=双卷('m');//5个周期的平均值(主动购买-主动出售)。
文华财经指标公式波段最准确的指标最准的实战指标准确率最高指标公式源码
/*VAR1:=(HHV(HIGH,5)-LLV(LOW,5));VAR2:=(HHV(HIGH,9)-CLOSE);VAR3:=(CLOSE-LLV(LOW,9));VAR4:=VAR2/VAR1*100-70 ;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*C+H+L)/4;VAR7:=SMA((VAR3/VAR1*100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:= IF(VAR9>100,VAR9-100,0);VARA:=HHV(HIGH,34);主力线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLO SE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW,LINETHIC K2;底线: 11, LINETHICK2,COLORGREEN ;上线:100,LINETHICK2,COLORWHITE ;准备抄底:主力线<=10;IF(主力线<=10,50,0), LINETHICK2,COLORLIBLUE;抄底: CROSS(主力线,底线), LINETHICK2,COLORFF00FF;STICKLINE(抄底=1,20,30,4,0),COLORFF00FF;DRAWTEXT(抄底=1,40,'抄'),COLORFF00FF;波:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLOR3366FF;段:EMA(波,5),COLORFF00FF;加仓:CROSS(波,段) AND 波<30;STICKLINE(加仓=1,50,60,4,0),COLORYELLOW;DRAWTEXT(加仓=1,70,'加'),COLORYELLOW;VAR1:=(HHV(HIGH,5)-LLV(LOW,5));VAR2:=(HHV(HIGH,9)-CLOSE);VAR3:=(CLOSE-LLV(LOW,9));VAR4:=VAR2/VAR1*100-70 ;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*C+H+L)/4;VAR7:=SMA((VAR3/VAR1*100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:= IF(VAR9>100,VAR9-100,0);VARA:=HHV(HIGH,34);主力线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLO SE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW,LINETHIC K2;底线: 11, LINETHICK2,COLORGREEN ;上线:100,LINETHICK2,COLORWHITE ;准备抄底:主力线<=10;IF(主力线<=10,50,0), LINETHICK2,COLORLIBLUE;抄底: CROSS(主力线,底线), LINETHICK2,COLORFF00FF;STICKLINE(抄底=1,20,30,4,0),COLORFF00FF;DRAWTEXT(抄底=1,40,'抄'),COLORFF00FF;波:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLOR3366FF;段:EMA(波,5),COLORFF00FF;加仓:CROSS(波,段) AND 波<30;STICKLINE(加仓=1,50,60,4,0),COLORYELLOW;DRAWTEXT(加仓=1,70,'加'),COLORYELLOW;VAR1:=(HHV(HIGH,5)-LLV(LOW,5));VAR2:=(HHV(HIGH,9)-CLOSE);VAR3:=(CLOSE-LLV(LOW,9));VAR4:=VAR2/VAR1*100-70 ;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VAR6:=(2*C+H+L)/4;VAR7:=SMA((VAR3/VAR1*100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:= IF(VAR9>100,VAR9-100,0);VARA:=HHV(HIGH,34);主力线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLO SE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW,LINETHIC K2;底线: 11, LINETHICK2,COLORGREEN ;上线:100,LINETHICK2,COLORWHITE ;准备抄底:主力线<=10;IF(主力线<=10,50,0), LINETHICK2,COLORLIBLUE;抄底: CROSS(主力线,底线), LINETHICK2,COLORFF00FF; STICKLINE(抄底=1,20,30,4,0),COLORFF00FF; DRAWTEXT(抄底=1,40,'抄'),COLORFF00FF;波:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLOR3366FF; 段:EMA(波,5),COLORFF00FF;加仓:CROSS(波,段) AND 波<30;STICKLINE(加仓=1,50,60,4,0),COLORYELLOW; DRAWTEXT(加仓=1,70,'加'),COLORYELLOW;*/VAR1:=HHV(HIGH,13)-LLV(LOW,13);VAR2:=HHV(HIGH,13)-CLOSE;VAR3:=CLOSE-LLV(LOW,13);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF(VAR9>100,VAR9-100,0);VAR11:=HHV(HIGH,34);VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2); DRAWCOLORKLINE(VAR12-VAR13>0,COLORRED,0); DRAWCOLORKLINE(VAR12-VAR13<0,COLORGREEN,0);。
文华赢顺云交易软件(wh6)指标公式——数理统计函数
文华赢顺云交易软件(wh6)指标公式——数理统计函数(一)ADMA(X,N,P,Q):考夫曼均值。
用法:ADMA(X,N,P,Q);求X在N个周期中的,快线频率参数为P,慢线频率参数为Q的考夫曼自适应均值。
注:1、X为调用的k线数据(例如高、开、低,收);N为调用的间隔时间;P为快线频率参数;Q为慢线频率参数。
2、当前的K线数不足N根时,函数返回空值。
3、N为0或空值的情况下,函数返回空值。
算法:ADMA(X,N,P,Q)=REF(EMA(X,N),1)+CONSTANT*(X- REF(EMA(X,N),1));CONSTANT是平滑系数,用麦语言函数可以表示为:CONSTANT:=SQUARE((ABS((CLOSE-REF(CLOSE,N))/(SUM(ABS((CLOSE-REF(CLOSE,1))),N))))*(2/(P+ 1)-2/(Q+1))+2/(Q+1));算法举例:计算C在9周期的,快线频率参数为2,慢线频率参数为30的考夫曼均值。
1、确定价格方向:价格方向表示整个时间段中的净价格变化。
比如,使用N天的间隔(或N小时),这里N为9;2、计算方向移动:DIRECTION:=ABS(CLOSE-REF(CLOSE,9));3、计算波动性:波动性是市场噪音的总数量,计算了时间段内价格变化的总和。
VOLATILITY:=SUM(ABS((CLOSE-REF(CLOSE,1))),9);4、确定效率系数:ER:=DIRECTION/VOLATILITY;5、计算平滑系数:FASTSC:=2/(2+1);SLOWSC:=2/(30+1);SMOOTH:=ER*(FASTSC-SLOWSC)+SLOWSC;CONSTANT:=SQUARE(SMOOTH);6、计算平滑系数为CONSTANT的自适应均线:AMACLOSE:REF(EMA(C,9),1)+CONSTANT*(C-REF(EMA(C,9),1));(二)AVEDEV(X,N):返回X在N周期内的平均绝对偏差。
文华赢顺云交易软件(wh6)指标公式——金融统计函数
根据公式SAR1(n)=SAR1(n-1)+AF*(EP(n-1)-SAR1(n-1))计算。
其中:
SAR1(n-1):上根K线SAR1的绝对值。
AF:加速因子,当AF小于MAX时,
上涨行情,H>HV(H,N) AF = AF+STEP; H<=HV(H,N) AF = AF;
AF:加速因子,当AF小于MAX时,逐根的通过AF+STEP累加,涨跌发生转换时,AF重新计算。
EP:一个涨跌内的极值,在上涨行情中为上根K线的最高价;下跌行情中为上根K线的最低价。
注:
1、参数N,Step,Max均不支持变量。
例1:
SAR(17,0.03,0.3);//表示计算17个周期抛物转向,步长为3%,极限值为30%。
MA5:=MA(C,5);//定义5周期均线。
MA10:=MA(C,10);//定义10周期均线。
M:COUNT(CROSSUP(MA5,MA10),0);//统计从申请到的行情数据以来到当前这段时间内,5周期均线上穿10周期均线的次数。
(八)DAYBARPOS:返回当根k线是当天的第几根k线
注:
该函数返回当根k线是当天的第几根k线,日以上周期返回空值。
4、N可以是变量。
例1:
LL:LV(L,10);//求前面10根k线的最低点。(不包含当前k线)。
例2:
N:=BARSLAST(DATE<>REF(DATE,1))+1;//分钟周期,日内k线根数。
ZL:VALUEWHEN(DATE<>REF(DATE,1),LV(L,N));//在分钟周期上,求昨天最低价。
文华赢顺云交易软件(wh6)指标公式——标注函数
文华赢顺云交易软件(wh6)指标公式——标注函数文华赢顺云交易软件(wh6)指标公式——标注函数(一)DRAWICON:绘制小图标。
用法:DRAWICON(COND,PRICE,ICON);当COND条件满足时,在PRICE位置画图标ICON。
注:1、该函数可以指定位置PRICE标注图标ICON2、ICON位置可以写成'ICON'的形式,也可以写为数字的形式,即DRAWICON(COND,PRICE,'ICON1');等价于DRAWICON(COND,PRICE,1);3、不支持将该函数定义为变量,即不支持下面的写法:A:DRAWICON(COND,PRICE,ICON);例1:DRAWICON(CLOSE<="">写完“DRAWICON(CLOSE<open,low,”以后,点击插入图标按钮,再单击选中的图标插入到函数中,图标用'ico1'~'ico105'(或1~105)表示。
< p="">例2:MA5:=MA(C,5);DRAWICON(C>MA5,MA5,2);//表示在收盘价大于5周期均线的k线对应的MA5数值位置上画出图标ICON2。
写完“DRAWICON(C>MA5,MA5,”以后,点击插入图标按钮,再单击选中的图标插入到函数中,图标用ICO1~ICO105(或1~105)表示。
(二)DRAWNUMBER:输出数值。
用法:DRAWNUMBER(COND,DATA,NUMBER,PRECISION,COLOR);当条件满足时在DATA位置写数字NUMBER。
PRECISION为精度(小数点后有几位数字)。
COLOR 为颜色。
注:该函数支持在函数后设置文字的大小和文字对齐方式。
即支持下面的写法:DRAWNUMBER(COND,DATA,NUMBER,PRECISION,COLOR),ALIG N,VALIGN;例1:DRAWNUMBER(CLOSE/OPEN>1.08,HIGH,(CLOSE-OPEN)/OPEN*100,2,COLORRED);//表示当日涨幅大于8%时在最高价位置红色显示涨幅数值(相对开盘价的百分比,精确2位小数)。
文华赢顺云交易软件(wh6)指标公式——画线函数
文华赢顺云交易软件(wh6)指标公式——画线函数(一)ANGLELINE 角度线返回值。
用法:ANGLELINE(COND1,DATA1,COND2,DATA2,RATIO);从本地起始K线开始计算,以相距最近两根分别满足条件COND1的DATA1值和COND2的DATA2值构成起止点,在角度线段高度比例为RATIO处形成角度线,该函数返回K线对应的角度值。
注:1、角度值并非角度,而是角度线上当前k线对应的价格。
2、角度线段是指2个点的纵坐标价格差值3、角度线是以DATA1和角度线段高度比例为RATIO处的2个点连线而成。
4、以当前k线向前先找满足COND1的k线DATA1值,再找满足COND2的k线DATA2值。
例1:ANGLELINE(C>O,H,O>C,L,1);//相距最近的阳线最高价与阴线最低价构成起止点形成角度线,该函数返回K线对应的角度值。
例2:MA5:MA(C,5);MA10:MA(C,10);ANGLELINE(CROSS(MA5,MA10),H,CROSS(MA10,MA5),L,0.5);//相距最近的2均线金叉最高价与死叉最低价构成起止点以角度线段的1/2比例形成角度线,该函数返回K线对应的角度值。
例3:HH:HHV(H,5);LL:LLV(L,5);ANGLELINE(H=HH,H,L=LL,L,0.3);//相距最近的5周期最高价最大值与5周期最低价最小值构成起止点以角度线段的0.3比例形成角度线,该函数返回K线对应的角度值。
(二)DRAWANGLELINE 画角度线。
用法:DRAWANGLELINE(COND1,DATA1,COND2,DATA2,RATIO,COLOR);从本地起始K线开始计算,连接相距最近两根分别满足条件COND1的DATA1值和COND2的DATA2值构成起止点,在线段高度比例RATIO处画角度线,颜色为COLOR,截至下一根满足COND1条件的K线处。
文华财经期货软件指标公式源码十战八胜指标公式源码
/*价量:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLOR00CCFF,NODRAW;主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25),COLORCYAN,NODRAW;快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25),COLOR55AAFF,NODRAW;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;{变异KD风险系数}TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}{红}STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA; STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC; STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF; {粉}STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB; STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB; STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB; {黄}STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF; STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF; STICKLINE(TGLXS>0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF; {蓝}STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700; STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22; STICKLINE(TGLXS<0 AND TGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55; STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN; STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,TGLXS+100,8,0),COLORWHITE; ZLCM:=EMA(WINNER(CLOSE)*70,3);{主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{散户筹码估算} ZSHTL:=SHCM/(ZLCM+SHCM)*100;{散户套牢筹码系数}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{主力控盘筹码系数}ZSHJJ:=EMA(ZSHTL,55);{散户警戒}ZZLJJ:=EMA(ZZLKP,55);{主力警戒}散兵坑:IF(ZZLKP<=10,ZZLKP,ZZLKP),COLORMAGENTA,NODRAW;{散户套牢筹码}STICKLINE(C>0,ZSHTL,ZZLKP,2,0),COLOR808080;{散户筹码警戒}STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;{主力控盘筹码}{粉}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORAA00BB; STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORCC22BB; STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5,0 ),COLOREE44BB; {蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORFF7700; STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORFFAA22; STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5 ,0 ),COLORFFFF55;{亮红}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLOR131FFD; STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLOR5050FF; STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5,0 ),COLOR7E7EFF;{深蓝}STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLORAA0000; STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLORCC0000; STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5 ,0 ),COLORFF0000;{主力筹码警戒}{黄}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),COLOR00AAFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),COLOR00CCFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),COLOR00FFFF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,1.5,0 ),COLOR0022CC; STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,0.5 ,0 ),COLOR0055FF;{红}STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0 ),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0 ),COLOR0022CC;STICKLINE(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50AND ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,0.5 ,0 ),COLOR0055FF;{铸顶风险区}{绿}STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;{散兵坑}STICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;100,COLORGREEN;80,COLORGREEN;{0,COLORGREEN;}{主线快线}价量,COLOR0CC0FF,LINETHICK2;主线,COLOR00FFAA,LINETHICK2;快线,LINESTICK,COLORFF68DD;*/MMM:=1;CAPITAL:=GETPRICE1('流通股本');SVOL:=INTPART(SUM(V,0)/CAPITAL);TJ0:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;SF1:=BARSLAST(TJ0)+1;TJJ2:=SF1<REF(SF1,1);S2:=IF(TJJ2,REF(SF1,1)+1,SF1);S3:=SUM(TJJ2,0);DIFF:=EMA(CLOSE,5) - EMA(CLOSE,34);DEA:=EMA(DIFF,5);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。
文华财经WH6WH7软件可直接使用的缠
CURRBARSCOUNT=REFX1(BARPOS,9999)-BARPOS+1;{箱体}TC1S=IF(H=HHV(H,48),H,NULL);TC2S=REFX1(BARSLAST(TC1S=H),9999)+1;UPPERS=REFX1(IF(TC2S=1,H,REF(H,TC2S-1)),9999);BC1S=IF(L=LLV(L,48),L,NULL);BC2S=REFX1(BARSLAST(BC1S=L),9999)+1;LOWERS=REFX1(IF(BC2S=1,L,REF(L,BC2S-1)),9999);LPS=CURRBARSCOUNT=BC2S AND L=LOWERS;HPS=CURRBARSCOUNT=TC2S AND H=UPPERS;AB1S=EMA(((2C+H+L)4-LLV(LOW,30))(HHV(HIGH,30)-LLV(LOW,30))100,8);BA1S=EMA(AB1S,5);上轨=REFX1(REF(HHV(MAX(C,O),96),5),9999);下轨=REFX1(REF(LLV(MIN(C,O),96),5),9999);中轨=((上轨)+(下轨))2;YXHX=DATE=REF(DATE,BARSLAST(IF(BC2STC2S,LPS,HPS))); 上沿IF(AB1S0 AND AB1S-BA1S=0 AND YXH轨,上轨),COLOR555555,LINETHICK2;中枢IF(AB1S0 AND AB1S-BA1S=0 AND YXH轨冲轨),COLOR555555,LINETHICK2;下沿IF(AB1S0 AND AB1S-BA1S=0 AND YXH轨,下轨),COLOR555555,LINETHICK2;三K线=1;DG=MAX(MAX(REFX(L,1),REFX(L,2)),REFX(L,3));GD=MIN(MIN(REFX(H,1),REFX(H,2)),REFX(H,3));AA11=(DG+GD)2;A11=AA11REFX(L,3) AND REFX(L,2) AA11 AND REFX(L,1) AA11 ;A21=FILTER(A11,10);A41=A11 AND A21;A51=IF(REF(A41,1),H,0),NODRAW;STICKLINE三K线=1 && REF(A41,2),REF(GD,2),REF(DG,2),13,- 1),COLORMAGENTA;DRAWKLINE1(H,O,L,C);峰谷=1;PA=10;PB=REF(HIGH,PA)=HHV(HIGH,2PA+1);PC=FILTER(PB,PA);PD=BACKSET(PC,PA+1);PE=FILTER(PD,PA);{高点}峰线(REF(HIGH,BARSLAST(P峰)))谷,COLORRED,POINTDOT,LINETHICK2;AA21二REF(LOW,PA)二LLV(L0W,2PA+1);BB21=FILTER(AA21,PA);CC21=BACKSET(BB21,PA+1);DD21=FILTER(CC21,PA);{低点}谷线(REF(L0W,BARSLAST(DD2峰谷,COLORGREEN,POINTDOT丄INETHI局K2; 部低点预选A=BACKSET(LLV(L,10)REF(LLV(L,9),1),9);局部低点预选B=BACKSE局部低点预选A=0 AND REF局部低点预选A,1)=1,2);局部低点预选C=IF局部低点预选B=1 AND REF局部低点预选B,1)=0,-1,0)局部高点预选A=BACKSET(HHV(H,10)REF(HHV(H,9),1),9);局部高点预选B二BACKSE局部高点预选A=0 AND REF局部高点预选A,1)=1,2);局部高点预选C=IF局部高点预选B=1 AND REF局部高点预选B,1)=0,1,0)缺口判断=IF(LREF(H,1),1,IF(HREF(L,1),-1,0));距前高天二BARSLAS局部高点预选C=1);距前低天二BARSLAS局部低点预选C=-1);小值周期=20;大值周期=20;低保留AA=IF局部低点预选C=-1 AND RE距前高天,1)REF距前低天,1) ANDLLVQ距前高天+1)REF(LLV(距前高天+1),1),-1,0);低保留AB=IF局部低点预选C=-1 AND RE距前高天,1)=REF距前低天,1) AND(距前高天=4OR LLV缺口判断,距前高天)=-1 OR LLV(距前低天+2)REF(LLV(距低天+1),1)),-1,0)低保留S=IF(低保留AA=-1 ORf氐保留AB=-1) AND LREF(距前高天+1),-1,0);预判=IF(距前低天4 AND HHV缺口判断,距前低天)1) OR REF低保留S距前低天)=0,1,0)判断=IF局部高点预选C=1 AND RE距前低天,1)=REF距前高天,1) AND 预判=1 AND大值周期REF小值周期,距前低天+1) AND大值周期REF 小、值周期,距前低天)AND大值周期REF大值周期,距前高天),1,0);高保留A=IF局部高点预选C=1 AND RE距前低天,1)REF距前高天,1)ANDHHV(H 距前低天+1)REF(HHV(H 目前低天+1),1),1,0);高保留B=IF局部高点预选C=1 AND RE距前低天,1)=REF距前高天,1)ANDREF低保留S距前低天)=-1 AND距前低天=4 OR HHV缺口判断,距前低天)=1),1,0)高保留=IF((高保留A=1 OR高保留B=1 OR判断=1) AND HREF(距前低天+1),1,0);预判A=IF(距前高天4 AND HHV缺口判断,距前高天)1) OR REF高保留,距前高天)=0,1,0)判断A=IF局部低点预选C=-1 AND REI距前高天,1)=REF距前低天,1)AND预判A=1 AND小值周期REF大值周期,距前高天+1) AND小值周期REF大值周期,距前高天)AND小值周期REF小值周期,距前低天),-1,0);低保留A=IF局部低点预选C=-1 AND RE距前高天,1)REF距前低天,1)ANDLLV(L距前高天+1)REF(LLV(距前高天+1),1),-1,0);低保留B=IF局部低点预选C=-1 AND RE距前高天,1)=REF距前低天,1)AND(距前高天=4OR LLV缺口判断,距前高天)=-1 OR判断A=-1),-1,0);低保留=IF(低保留A=-1 OR低保留B=-1) AND LREF(距前高天+1),-1,0)距前高天A二BARSLAS高保留=1);距前低天A=BARSLAS低保留=-1);预判X=IF(距前低天A4 AND HHV缺口判断,距前低天A)1) OR REF低保留,距前低天A)=0,1,0)判断X=IF局部高点预选C=1 AND RE距前低天A,1)=REF距前高天A,1) AND预判X=1 AND大值周期REF小值周期,距前低天A+1) AND大值周期REF小值周期,距前低天A) AND大值周期REF大值周期,距前高天A),1,0)高保留XA=IF局部高点预选C=1 AND REF(前低天A,1)REF距前高天A,1)AND HHV(H距前低天A+1)REF(HHV(f距前低天A+1),1),1,0);高保留XB=IF局部高点预选C=1 AND REF(前低天A,1)=REF距前高天A,1)AND REF低保留,距前低天A)=-1 AND距前低天A=4 OR HHV缺口判断,距前低天A)=1),1,0);高保留X=IF(高保留XA=1 OR高保留XB=1 OF判断X=1) AND HREF距前低天A+1),1,0)预判XA=IF(距前高天A4ANDHHV缺口判断,距前高天A)1)ORREF高保留XA距前高天A)=0,1,0);判断XA=IF局部低点预选C=-1 AND REF(前高天A,1)=REF距前低天A,1)AND预判XA=1AND小值周期REF大值周期,距前高天A+1) AND小值周期REF大值周期,距前高天A) AND小值周期REF小值周期,距前低天A),-1,0)低保留XA=IF局部低点预选C=-1 AND REF(前高天A,1)REF距前低天A,1)AND LLV(距前高天A+1)REF(LLV(距前高天A+1),1),-1,0);低保留XB=IF局部低点预选C=-1 AND REF(前高天A,1)=REF距前低天A,1)AND 距前高天A=4 OR LLV缺口判断,距前高天A)=-1 OR判断XA=-1),-1,0)低保留X=IF(低保留XA=-1 OR氐保留XB=-1) AND LREF(距前高天A+1),-1,0)距前高天YA 二BARSLAS高保留X=1);距前低天YA二BARSLAS低保留X=-1);预判YX=IF(距前低天YA4ANDHHV缺口判断,距前低天YA)1)OR REI低保留X, 距前低天YA)=0,1,0);判断YX=IF局部高点预选C=1 AND REF(前低天YA,1)=RE距前高天YA,1)AND 预判YX=1AND大值周期REF小值周期,距前低天YA+1) AND大值周期REF小值周期,距前低天YA)AND大值周期REF大值周期,距前高天YA),1,0);高保留YXA=IF局部高点预选C=1 AND REF(前低天YA,1)REF距前高天YA,1)AND HHV(H距前低天YA+1)REF(HHV(距前低天YA+1),1),1,0);高保留YXB=IF局部高点预选C=1 AND RE距前低天YA,1)=REF距前高天YA,1) AND RE低保留X距前低天YA)=-1 AND距前低天YA=4 OR HHV缺口判断,距前低天YA)=1),1,0)高保留YX=IF(高保留YXA=1 OF高保留YXB=1 OR判断YX=1)AND HREF距前低天YA+1),1,0)预判YXA=IF距前高天YA4 AND HHV缺口判断,距前高天YA)1) OR RE高保留YXA距前高天YA)=0,1,0);判断YXA=IF局部低点预选C=-1 AND REF(前高天YA,1)=RE距前低天YA,1)AND预判YXA=1AND小值周期REF大值周期,距前高天YA+1) AND小值周期REF大值周期,距前高天YA) AND小值周期REF小值周期,距前低天YA),-1,0)低保留YXA=IF局部低点预选C=-1 AND REF(前高天YA,1)REF距前低天YA,1) AND LLV(L 距前高天YA+1)REF(LLV距前高天YA+1),1),-1,0);低保留YXB=IF局部低点预选C=-1 AND REF(前高天YA,1)=REF距前低天YA,1) AND 距前高天YA=4 OR LLV缺口判断,距前高天YA)=-1 OR判断YXA=-1),- 1,0);低保留YX=IF(低保留YXA=-1 OR氐保留YXB=-1) AND LREF(H前高天YA+1),-1,0);AAAD=IF高保留YX=1 AND氐保留YX=-1 AND HREF(H,REFl前高天YA,1)+2),1,IF高保留YX=1AND氐保留YX=-1 AND LREF(L,R距前低天YA,1)+2),- 1,0));极点保留=IF(AAAD=C高保留YX+氐保留YX,AAAD);局部极点IF极点保留=-1,L,IF极点保留= 1,H,NULL)) ,CIRCLEDOT,COLORBLUE;DRAWLINE1(CROSS(BACK保留( =1,BARSLAS极点保留=-1)+1),0.5)局部极点,CROSS(BACKSET点保留=-1,BARSLAS极点保留=1)+1),0.5)局部极点,O),COLORMAGENTA;DRAWLINE1(CROSS(BAC 极点保留=-1,BARSLAS极点保留=1)+1),0.5)局部极点,CROSS(BACKSET点保留=1,BARSLAS极点保留=-1)+1),0.5)局部极点,O),COLORGREEN;DRAWTE极点保留=1局部极点,'卖'),COLORGREEN;DRAWTEXT极点保留=-1,局部极点,'买'),LINETHICK2,COLORRED;。
同花顺股神135战法指标公式
同花顺股神135战法指标公式ma1:=MA(CLOSE,5);MA2:=MA(CLOSE,13);MA3:=MA(CLOSE,21);MA4:=MA(CLOSE,34);MA5:=MA(CLOSE,55);大盘6日:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6)*100;大盘12日:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12)*100;大盘24日:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24)*100;大盘:(大盘6日 + 大盘12日 + 大盘24日)/3,colorwhite;个股6日:=(C-MA(C,6))/MA(C,6)*100;个股12日:=(C-MA(C,12))/MA(C,12)*100;个股24日:=(C-MA(C,24))/MA(C,24)*100;个股:(个股6日 + 个股12日 + 个股24日)/3,coloryellow;强势出击:IF(大盘>REF(大盘,1) AND CROSS(个股,大盘),10,0 ),NODRAW;STICKLINE(强势出击,0.1,6,3,0),COLORF00FF0;出击:=IF(CROSS(个股,0),5,0);穿大盘:=IF(CROSS(个股,大盘),10,0);JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=QJ0*(MIN(OPEN,CLOSE)-LOW);QJ2:=QJ0*(JJ-MIN(CLOSE,OPEN));QJ3:=QJ0*(HIGH-MAX(OPEN,CLOSE));QJ4:=QJ0*(MAX(CLOSE,OPEN)-JJ);ddx:=IF(HIGH=LOW,4*QJ0,((QJ1+QJ2)-(QJ3+QJ4)))/SUM(VOL,10)*100;DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;DDZ:=((QJ1+QJ2)-(QJ3+QJ4))/((QJ1+QJ2)+(QJ3+QJ4))*100*17;强势YJ:=DDX>2 AND DDZ>100 AND DDY>3 AND VOL/CAPITAL*100>3;强势出击预警:个股24日>0 AND 出击>0 AND 穿大盘>0 AND 强势YJ>0 AND MA2>REF(MA2,1),colorred;五强:=MA1>REF(MA1,1);十三强:=MA2>REF(MA2,1);二十一强:=MA3>REF(MA3,1);三十四强:=MA4>REF(MA4,1),;五十五强:=MA5>REF(MA5,1),;小均强:=五强 AND 十三强,;均强:=十三强 AND 二十一强 AND 三十四强;大均强:=十三强 AND 二十一强 AND 三十四强 AND 五十五强;JJD:=(H+L+C)/3;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60),colorred,LINETHICK2;强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20),colorwhite,LINETHICK2;强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10),coloryellow,LINETHICK2;强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13),colorlimagenta,LINETHICK2;开始走强1:=强势线1>REF(强势线1,1);开始走强2:=强势线2>REF(强势线2,1);开始走强3:=强势线3>REF(强势线3,1);开始走强4:=强势线4>REF(强势线3,1);双强1:=开始走强1 AND 开始走强2;双强2:=开始走强2 AND 开始走强3,;双强3:=开始走强2 AND 开始走强3;双强4:=开始走强3 AND 开始走强4;三强:=开始走强1 AND 开始走强2 AND 开始走强3;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4;强势为王:双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强 OR 四强,,colorlimagenta,LINETHICK2;低位主升:=五强 AND 十三强 AND 五十五强;主升浪:=五强 AND 十三强 AND 二十一强;大主升浪:=十三强 AND 二十一强 AND 五十五强;大主升浪2:=五强 AND 十三强 AND 二十一强 AND 五十五强;总主升:=主升浪 AND 大主升浪 AND 大主升浪2;总主升浪:低位主升 OR 主升浪 OR 大主升浪 OR 大主升浪2 OR 总主升;VAR31:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:=IF(CLOSE>OPEN,VAR31*(HIGH-LOW),IF(CLOSE<OPEN,VAR31*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));大资金YJ主升浪:强势YJ>0 AND 主升浪>0 AND 主买>2700,colorgreen;STICKLINE(大资金YJ主升浪,0.3,4,2,1),colorgreen;N:=34;TYP:=(2*C+H+L)/4;HLNT:=(TYP-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;HLN:=SMA(HLNT,20,1),colorred;HLNS:=SMA(HLN,5,1),colorgreen;主升买:CROSS(HLN,HLNS) AND HLNS<85,colormagenta,NODRAW;主升阶段卖:=HLN<REF(HLN,1) AND REF(HLN,1)<REF(HLN,2) AND HLN>HLNS;主升卖:=CROSS(HLNS,HLN);卖:=IF(主升卖,20,100),colorgreen,NODRAW;DRAWICON(主升买>0,1.1,1);AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0); AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0); AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0); BB1:=0;净流入万元:=(AAA2-AAA3-0.5*AAA4);PM:=MA(净流入万元,1);PMA:=PM/REF(PM,1)>1;PMB:=REF(PMA,1)<1 AND PMA;同花顺宁俊明135战法指标公式实例图解:。
135均量战法(成交量主图,源码,贴图,选股公式)
135均量战法(成交量主图,源码,贴图,选股公式)源码:VOLUME:VOL,VOLSTICK;MA5V:MA(V,5),LINETHICK2,COLORYELLOW;MA35V:MA(V,35),LINETHICK2,COLORMAGENTA;MA135V:MA(V,135),LINETHICK2,COLORRED;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1),COLORWHITE,LINETHICK3;D:=SMA(K,3,1),COLORYELLOW,LINETHICK3;J:=3*K-2*D,COLORYELLOW,LINETHICK2;WW:=VOL/REF(VOL,1)>2;GG:=C>O;STICKLINE (WW AND GG,0,VOL,0.01225,0),COLORGREEN; QQ:=C<O;STICKLINE (WW AND QQ,0,VOL*0.95,0.16,0),COLORRED;H60C:=HHV(C,60);除权:=EXIST(C/REF(C,1)<1-0.11,20),NODRAW;HC60跌幅:(H60C-C)/H60C,NODRAW;HC7跌幅:(HHV(C,7)-C)/HHV(C,7),NODRAW;HC60天数:HHVBARS(C,60),NODRAW;A1:=C>O AND V>MA135V AND CROSS(MA5V,MA135V); A1C:COUNT(A1,10),NODRAW;介入1:HC60天数>30 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.28 AND HC7跌幅>0.065 AND A1C=1 AND V<MA5V AND V<MA35V AND J<65,NODRAW;DRAWICON(介入1,MA5V*0.9,25);介入11:HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.20 AND (HC7跌幅>0.10 OR (HC7跌幅>0.025 AND C>MA(C,20))) AND A1C=1 AND V>MA35V AND V<MA5V AND V<MA135V AND J<65,NODRAW;DRAWICON(介入11,MA5V*0.9,11);A2:=C>O AND V>MA135V AND CROSS(MA5V,MA35V) AND HC60跌幅>0.20;A2C:COUNT(A2,10),NODRAW;介入2:HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND (O+C)/2<H60C*0.80 AND HC7跌幅>0.05 AND ((C-REF(LLV(C,7),1))/REF(LLV(C,7),1)<0.01 OR C>MA(C,20)) AND A2C=1 AND V<MA5V AND V<MA35V AND V<MA135V AND J<65,NODRAW;DRAWICON(介入2,MA5V*1.1,5);介入21:HC60天数>35 AND NOT(除权) AND HC60跌幅>0.35 AND ABS(C-O)/O<0.03 AND HC7跌幅>0.03 AND ((C-REF(LLV(C,7),1))/REF(LLV(C,7),1)<0.015) AND A2C=1 AND V<MA5V AND V<MA135V AND J<65,NODRAW;DRAWICON(介入21,MA5V*1.1,1);介入3:HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.20 AND HC7跌幅>0.06 AND (A1C=1 ORA2C=1) AND V<MA5V AND MA5V<MA35V AND MA35V<MA135V AND J<65,NODRAW;DRAWICON(介入3,MA5V*1.3,7);介入4:HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND (O+C)/2<HHV(C,13)*0.85 AND HHV(C,13)<H60C*0.85 AND A1C=1 AND V<MA5V AND MA5V<MA35V AND MA5V<MA135V AND MA5V<REF(MA5V,1) AND J<65,NODRAW;DRAWICON(介入4,MA5V*1.4,9);选股公式:VOLUME:=VOL;MA5V:=MA(V,5);MA35V:=MA(V,35);MA135V:=MA(V,135);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;WW:=VOL/REF(VOL,1)>2;GG:=C>O;QQ:=C<O;H60C:=HHV(C,60);除权:=EXIST(C/REF(C,1)<1-0.11,20);HC60跌幅:=(H60C-C)/H60C;HC7跌幅:=(HHV(C,7)-C)/HHV(C,7);HC60天数:=HHVBARS(C,60);A1:=C>O AND V>MA135V AND CROSS(MA5V,MA135V);A1C:=COUNT(A1,10);介入1:=HC60天数>30 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.28 AND HC7跌幅>0.065 AND A1C=1 AND V<MA5V AND V<MA35V AND J<65;介入11:=HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.20 AND (HC7跌幅>0.10 OR (HC7跌幅>0.025 AND C>MA(C,20))) AND A1C=1 AND V>MA35V AND V<MA5V AND V<MA135V AND J<65;A2:=C>O AND V>MA135V AND CROSS(MA5V,MA35V) AND HC60跌幅>0.20;A2C:=COUNT(A2,10);介入2:=HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND (O+C)/2<H60C*0.80 AND HC7跌幅>0.05 AND ((C-REF(LLV(C,7),1))/REF(LLV(C,7),1)<0.01 OR C>MA(C,20)) AND A2C=1 AND V<MA5V AND V<MA35V AND V<MA135V AND J<65;介入21:=HC60天数>35 AND NOT(除权) AND HC60跌幅>0.35 AND ABS(C-O)/O<0.03 AND HC7跌幅>0.03 AND ((C-REF(LLV(C,7),1))/REF(LLV(C,7),1)<0.015) AND A2C=1 AND V<MA5V AND V<MA135V AND J<65;介入3:=HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND HC60跌幅>0.20 AND HC7跌幅>0.06 AND (A1C=1 OR A2C=1) AND V<MA5V AND MA5V<MA35V AND MA35V<MA135V AND J<65;介入4:=HC60天数>35 AND NOT(除权) AND ABS(C-O)/O<0.03 AND (O+C)/2<HHV(C,13)*0.85 AND HHV(C,13)<H60C*0.85 AND A1C=1 AND V<MA5V AND MA5V<MA35V AND MA5V<MA135V AND MA5V<REF(MA5V,1) AND J<65;{ 以上公式整体完毕,选股共介入1 ,介入11,介入2,介入21,介入3,介入4,几个条件一:如果你需要用一个条件选股比如介入11选股在下面直接打 '介入11;' 单引号不需要,运行就是选介入11成立的股票。
135战法公式
{135战法} (主图)N 3 10 5EMA13:EMA(C,13),COLORWHITE,LINETHICK2;EMA34:EMA(C,34),COLORYELLOW;EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;}{STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;{STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;}CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);{STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;}{STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;}STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;}{STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34); DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;STICKLINE(FR,H,L,0.5,1),COLORWHITE;{STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'见好就收!'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55){ AND CROSS(C,EMA120)};DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF;("135"均线系统的获利目标是"双十获利"原则,即持股20个交易日,获利20%)(红杏出墙是135系统的第一买点,属底部形态,红杏出墙的持股时间为10天,获利10%) 红杏出墙卖股票,操作手法有两套。
期货指标公式文华财经指标真正好用的指标波峰顶底
CURRBARSCOUNT:=BARPOS;DA1:=IF(130>BARPOS,BARPOS,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFX1(HHV(H,DA),10000);LO:=REFX1(LLV(L,DA),10000);C1001:=IF(CURRBARSCOUNT<=DA,C,NULL);GZ:=EXP(LN(HI/LO)/30);LH1:=SUM(IF(C1001>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1001>=(HI/POW(GZ,2)) AND C1001<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1001>=(HI/POW(GZ,3)) AND C1001<(HI/POW(GZ,2)),V,0),DA); LH4:=SUM(IF(C1001>=(HI/POW(GZ,4)) AND C1001<(HI/POW(GZ,3)),V,0),DA); LH5:=SUM(IF(C1001>=(HI/POW(GZ,5)) AND C1001<(HI/POW(GZ,4)),V,0),DA); LH6:=SUM(IF(C1001>=(HI/POW(GZ,6)) AND C1001<(HI/POW(GZ,5)),V,0),DA); LH7:=SUM(IF(C1001>=(HI/POW(GZ,7)) AND C1001<(HI/POW(GZ,6)),V,0),DA); LH8:=SUM(IF(C1001>=(HI/POW(GZ,8)) AND C1001<(HI/POW(GZ,7)),V,0),DA); LH9:=SUM(IF(C1001>=(LO*GZ) AND C1001<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1001>=LO AND C1001<LO*GZ,V,0),DA);L1001:=REFX1(HHV(LH1,DA),10000),NODRAW;L2001:=REFX1(HHV(LH2,DA),10000),NODRAW;L3001:=REFX1(HHV(LH3,DA),10000),NODRAW;L4001:=REFX1(HHV(LH4,DA),10000);L5001:=REFX1(HHV(LH5,DA),10000);L6001:=REFX1(HHV(LH6,DA),10000);L7:=REFX1(HHV(LH7,DA),10000);L8:=REFX1(HHV(LH8,DA),10000);L9:=REFX1(HHV(LH9,DA),10000);L10:=REFX1(HHV(LH10,DA),10000);SSS:=(L1001+L2001+L3001+L4001+L5001+L6001+L7+L8+L9+L10);V AR121:=ZIGZAG(C,6,1)<REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)>=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),C);V AR141:=ZIGZAG(C,22,1)<REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)>=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),C);V AR161:=ZIGZAG(C,51,1)<REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)>=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)>=REF(ZIGZAG(C,51,1),C);V AR181:=ZIGZAG(C,72,1)<REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)>=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)>=REF(ZIGZAG(C,72,1),C);卖:=(V AR121+VAR141+V AR161+V AR181),LINETHICK2;STICKLINE1(CEILING(DA*L2001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0),COLOR7C7C7A,LINETHI CK3;STICKLINE1(CEILING(DA*L3001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L4001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L5001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L6001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L7/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0),COLOR3C3C3A,LINETHI CK3;STICKLINE1(CEILING(DA*L8/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0),COLOR3C3C3A,LINET HICK3;STICKLINE1(CEILING(DA*L9/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0),COLOR3C3C3A,LINET HICK3;STICKLINE1(CEILING(DA*L10/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100 ,LO,LO*POW(GZ,1)*99/100,9,0),COLOR3C3C3A,LINETHICK3;STICKLINE1(CEILING(DA*L1001/SSS,1)*3>=CURRBARSCOUNT AND BARSCOUNT(C)>100,HI*99/100,HI/GZ,9,0),COLOR3C3C3A,LINETHICK3;//DRAWKLINE1(HIGH,OPEN,LOW,CLOSE);/*上榜:=SIGNALS_USER(300, 0), NODRAW;{上榜金额>1,则表示上榜了,这个是上榜总金额}净买入:=SIGNALS_USER(299, 0), NODRAW;DRAWICON(上榜>=1 AND 净买入>=0 ,L*0.995,38);DRAWICON(上榜>=1 AND 净买入<0 ,L*0.995,39);NAME_299 := '↖龙'OUTTEXT_299:=V ARCAT(V ARCAT(NAME_299, ' '), V AR2STR(净买入, 0)), NODRAW; DRAWTEXT((上榜>=1) ,-LOW*0.01+LOW,OUTTEXT_299),COLORLIRED;*/N:=8;KK:=0;TYP := (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*A VEDEV(TYP,6));CCI2:=(TYP-MA(TYP,10))/(0.015*A VEDEV(TYP,10));CCI3:=(TYP-MA(TYP,20))/(0.015*A VEDEV(TYP,20));CCI4:=(TYP-MA(TYP,30))/(0.015*A VEDEV(TYP,30));CCI5:=(TYP-MA(TYP,60))/(0.015*A VEDEV(TYP,60));CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAAB:=(3*C+H+L+O)/6;VV AR1:=(8*AAAB+7*REF(AAAB,1)+6*REF(AAAB,2)+5*REF(AAAB,3)+4*REF(AAAB,4)+ 3*REF(AAAB,5)+2*REF(AAAB,6)+REF(AAAB,8))/36;VV AR6:=(LLV(VV AR1,2)+LLV(VV AR1,4)+LLV(VV AR1,6))/3;短线:IF(KK=0, VV AR1, NULL),COLORWHITE;中线:IF(KK=0,VV AR6, NULL),COLORYELLOW;FILLRGN1(短线>中线,中线,短线),RGB(200,10,10);FILLRGN1(短线<=中线,中线,短线),RGB(200,10,10),RGB(10,200,10);下跌:IF(KK=0 AND VV AR1=VV AR6,VV AR6, NULL),COLORGREEN;中:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;上轨:IF(KK=1,中+3*STD(中,10),NULL),COLOR000088,LINETHICK1;IF(KK=1,2*MA(上轨,12)-MA(C,21),NULL),COLOR666666;N1:=10;N2:=10;DISP:=2;P1:=PEAK(1,1,1,1);P2:=PEAK(1,1,2,1);WP1:=PEAKBARS(1,1,1,1);WP2:=PEAKBARS(1,1,2,1);T1:=TROUGH(2,1,1,1);T2:=TROUGH(2,1,2,1);WT1:=TROUGHBARS(2,1,1,1);WT2:=TROUGHBARS(2,1,2,1);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1))); TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,NULL);ZSG:=IF(TJ8,ZG,NULL);ZSH:=IF(TJ8,HH,NULL);ZSL:=IF(TJ8,LL,NULL);STICKLINE1(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE1(TJ8,ZSD,ZSG,0,1),COLORMAGENTA;DRAWTEXT(DISP=2,ZSH,'中枢'),COLORRED;POL YLINE(DISP=2,REF(ZSD,BARSLAST(TJ8)),COLORRED),CROSSDOT;POL YLINE(DISP=2,REF(ZSG,BARSLAST(TJ8)),COLORGREEN),CROSSDOT;POL YLINE(DISP=2,REF(ZSH,BARSLAST(TJ8)),COLORRED),POINTDOT;POL YLINE(DISP=2,REF(ZSL,BARSLAST(TJ8)),COLORGREEN),POINTDOT;POL YLINE(DISP=3,ZIGZAG(H,1,1),COLORBLUE);POL YLINE(DISP=3,ZIGZAG(L,1,1),COLORBLUE);DRAWKLINE1(HIGH,OPEN,LOW,CLOSE);FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); //STICKLINE(V2>=1,O,C,1,0),COLORYELLOW;DRAWCOLORKLINE(C>=O&&V2>=1,COLORRED,0);DRAWCOLORKLINE(C<O&&V2>=1,COLORGREEN,0);DRAWCOLORKLINE(C=O&&V2>=1,COLORWHITE,0);TY:=C;//{收盘价}A1:=REF(TY,10)=HHV(TY,2*10+1);//{10日前收盘价等于21天内最高价}VB1:=FILTER(A1,10);//{当出现A1条件时,过滤10天后连续出现的信号}C1:=BACKSET(VB1,10+1);//{将当前位置到11天前的位置设为1}HD:=FILTER(C1,10);//{将当前位置到10天后的位置设为1}A2:=REF(TY,10)=LLV(TY,2*10+1);//{10天前的收盘价等于21天内最低价}VB2:=FILTER(A2,10);//{过滤10天内连续出现的信号}C2:=BACKSET(VB2,10+1);//{将当前位置到11天前的位置设为1}LD:=FILTER(C2,10);//{当出现C2后,10天后的数据不予记录}A:=REF(C,BARSLAST(HD));//{设值上次高点位置}B:=REF(C,BARSLAST(LD));//{设值上次低点位置}T11:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD); //{上升波段回调不创新低没新高}T21:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD); //{下降波段反弹不创新高没新低}波峰:IF(T11,A,A),COLORFF00FF,POINTDOT;//符合T1条件,高位线为紫色点状线}STICKLINE(T11,A,A,9,0),COLORFF00FF;//{高位画横线}波谷:IF(T21,B,B),COLOR80FF00,POINTDOT;//{符合T2条件,高位线为绿色点状线}STICKLINE1(T21,B,B,9,0),COLOR80FF00;。
文华财经WH6 WH7软件可直接使用的缠论公式
CURRBARSCOUNT=REFX1(BARPOS,9999)-BARPOS+1;{箱体}TC1S=IF(H=HHV(H,48),H,NULL);TC2S=REFX1(BARSLAST(TC1S=H),9999)+1;UPPERS=REFX1(IF(TC2S=1,H,REF(H,TC2S-1)),9999);BC1S=IF(L=LLV(L,48),L,NULL);BC2S=REFX1(BARSLAST(BC1S=L),9999)+1;LOWERS=REFX1(IF(BC2S=1,L,REF(L,BC2S-1)),9999);LPS=CURRBARSCOUNT=BC2S AND L=LOWERS;HPS=CURRBARSCOUNT=TC2S AND H=UPPERS;AB1S=EMA(((2C+H+L)4-LLV(LOW,30))(HHV(HIGH,30)-LLV(LOW,30))100,8);BA1S=EMA(AB1S,5);上轨=REFX1(REF(HHV(MAX(C,O),96),5),9999);下轨=REFX1(REF(LLV(MIN(C,O),96),5),9999);中轨=((上轨)+(下轨))2;YXHX=DATE=REF(DATE,BARSLAST(IF(BC2STC2S,LPS,HPS)));上沿IF(AB1S0 AND AB1S-BA1S=0 AND YXHX,上轨,上轨),COLOR555555,LINETHICK2;中枢IF(AB1S0 AND AB1S-BA1S=0 AND YXHX,中轨,中轨),COLOR555555,LINETHICK2;下沿IF(AB1S0 AND AB1S-BA1S=0 AND YXHX,下轨,下轨),COLOR555555,LINETHICK2;三K线=1;DG=MAX(MAX(REFX(L,1),REFX(L,2)),REFX(L,3));GD=MIN(MIN(REFX(H,1),REFX(H,2)),REFX(H,3));AA11=(DG+GD)2;A11=AA11REFX(L,3) AND REFX(L,2) AA11 AND REFX(L,1) AA11 ;A21=FILTER(A11,10);A41=A11 AND A21;A51=IF(REF(A41,1),H,0),NODRAW;STICKLINE(三K线=1 && REF(A41,2),REF(GD,2),REF(DG,2),13,-1),COLORMAGENTA; DRAWKLINE1(H,O,L,C);峰谷=1;PA=10;PB=REF(HIGH,PA)=HHV(HIGH,2PA+1);PC=FILTER(PB,PA);PD=BACKSET(PC,PA+1);PE=FILTER(PD,PA);{高点}峰线(REF(HIGH,BARSLAST(PE)))峰谷,COLORRED,POINTDOT,LINETHICK2;AA21=REF(LOW,PA)=LLV(LOW,2PA+1);BB21=FILTER(AA21,PA);CC21=BACKSET(BB21,PA+1);DD21=FILTER(CC21,PA);{低点}谷线(REF(LOW,BARSLAST(DD21)))峰谷,COLORGREEN,POINTDOT,LINETHICK2;局部低点预选A=BACKSET(LLV(L,10)REF(LLV(L,9),1),9);局部低点预选B=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A=BACKSET(HHV(H,10)REF(HHV(H,9),1),9);局部高点预选B=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断=IF(LREF(H,1),1,IF(HREF(L,1),-1,0));距前高天=BARSLAST(局部高点预选C=1);距前低天=BARSLAST(局部低点预选C=-1);小值周期=20;大值周期=20;低保留AA=IF(局部低点预选C=-1 AND REF(距前高天,1)REF(距前低天,1) AND LLV(L,距前高天+1)REF(LLV(L,距前高天+1),1),-1,0);低保留AB=IF(局部低点预选C=-1 AND REF(距前高天,1)=REF(距前低天,1) AND (距前高天=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)REF(LLV(L,距前低天+1),1)),-1,0);低保留S=IF((低保留AA=-1 OR 低保留AB=-1) AND LREF(H,距前高天+1),-1,0);预判=IF((距前低天4 AND HHV(缺口判断,距前低天)1) OR REF(低保留S,距前低天)=0,1,0);判断=IF(局部高点预选C=1 AND REF(距前低天,1)=REF(距前高天,1) AND 预判=1 AND 大值周期REF(小值周期,距前低天+1) AND 大值周期REF(小值周期,距前低天) AND 大值周期REF(大值周期,距前高天),1,0);高保留A=IF(局部高点预选C=1 AND REF(距前低天,1)REF(距前高天,1) AND HHV(H,距前低天+1)REF(HHV(H,距前低天+1),1),1,0);高保留B=IF(局部高点预选C=1 AND REF(距前低天,1)=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND HREF(L,距前低天+1),1,0);预判A=IF((距前高天4 AND HHV(缺口判断,距前高天)1) OR REF(高保留,距前高天)=0,1,0);判断A=IF(局部低点预选C=-1 AND REF(距前高天,1)=REF(距前低天,1) AND 预判A=1 AND 小值周期REF(大值周期,距前高天+1) AND 小值周期REF(大值周期,距前高天) AND 小值周期REF(小值周期,距前低天),-1,0);低保留A=IF(局部低点预选C=-1 AND REF(距前高天,1)REF(距前低天,1) AND LLV(L,距前高天+1)REF(LLV(L,距前高天+1),1),-1,0);低保留B=IF(局部低点预选C=-1 AND REF(距前高天,1)=REF(距前低天,1) AND (距前高天=4OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留=IF((低保留A=-1 OR 低保留B=-1) AND LREF(H,距前高天+1),-1,0);距前高天A=BARSLAST(高保留=1);距前低天A=BARSLAST(低保留=-1);预判X=IF((距前低天A4 AND HHV(缺口判断,距前低天A)1) OR REF(低保留,距前低天A)=0,1,0);判断X=IF(局部高点预选C=1 AND REF(距前低天A,1)=REF(距前高天A,1) AND 预判X=1 AND 大值周期REF(小值周期,距前低天A+1) AND 大值周期REF(小值周期,距前低天A) AND 大值周期REF(大值周期,距前高天A),1,0);高保留XA=IF(局部高点预选C=1 AND REF(距前低天A,1)REF(距前高天A,1) AND HHV(H,距前低天A+1)REF(HHV(H,距前低天A+1),1),1,0);高保留XB=IF(局部高点预选C=1 AND REF(距前低天A,1)=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND HREF(L,距前低天A+1),1,0);预判XA=IF((距前高天A4 AND HHV(缺口判断,距前高天A)1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA=IF(局部低点预选C=-1 AND REF(距前高天A,1)=REF(距前低天A,1) AND 预判XA=1 AND 小值周期REF(大值周期,距前高天A+1) AND 小值周期REF(大值周期,距前高天A) AND 小值周期REF(小值周期,距前低天A),-1,0);低保留XA=IF(局部低点预选C=-1 AND REF(距前高天A,1)REF(距前低天A,1) AND LLV(L,距前高天A+1)REF(LLV(L,距前高天A+1),1),-1,0);低保留XB=IF(局部低点预选C=-1 AND REF(距前高天A,1)=REF(距前低天A,1) AND (距前高天A=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X=IF((低保留XA=-1 OR 低保留XB=-1) AND LREF(H,距前高天A+1),-1,0);距前高天YA=BARSLAST(高保留X=1);距前低天YA=BARSLAST(低保留X=-1);预判YX=IF((距前低天YA4 AND HHV(缺口判断,距前低天YA)1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX=IF(局部高点预选C=1 AND REF(距前低天YA,1)=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期REF(小值周期,距前低天YA+1) AND 大值周期REF(小值周期,距前低天YA) AND 大值周期REF(大值周期,距前高天YA),1,0);高保留YXA=IF(局部高点预选C=1 AND REF(距前低天YA,1)REF(距前高天YA,1) AND HHV(H,距前低天YA+1)REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB=IF(局部高点预选C=1 AND REF(距前低天YA,1)=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND HREF(L,距前低天YA+1),1,0);预判YXA=IF((距前高天YA4 AND HHV(缺口判断,距前高天YA)1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA=IF(局部低点预选C=-1 AND REF(距前高天YA,1)=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期REF(大值周期,距前高天YA+1) AND 小值周期REF(大值周期,距前高天YA) AND 小值周期REF(小值周期,距前低天YA),-1,0);低保留YXA=IF(局部低点预选C=-1 AND REF(距前高天YA,1)REF(距前低天YA,1) AND LLV(L,距前高天YA+1)REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB=IF(局部低点预选C=-1 AND REF(距前高天YA,1)=REF(距前低天YA,1) AND (距前高天YA=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX=IF((低保留YXA=-1 OR 低保留YXB=-1) AND LREF(H,距前高天YA+1),-1,0);AAAD=IF(高保留YX=1 AND 低保留YX=-1 AND HREF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND LREF(L,REF(距前低天YA,1)+2),-1,0));极点保留=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点IF(极点保留=-1,L,IF(极点保留=1,H,NULL)) ,CIRCLEDOT,COLORBLUE;DRAWLINE1(CROSS(BACKSET(极点保留=1,BARSLAST(极点保留=-1)+1),0.5),局部极点,CROSS(BACKSET(极点保留=-1,BARSLAST(极点保留=1)+1),0.5),局部极点,0),COLORMAGENTA; DRAWLINE1(CROSS(BACKSET(极点保留=-1,BARSLAST(极点保留=1)+1),0.5),局部极点,CROSS(BACKSET(极点保留=1,BARSLAST(极点保留=-1)+1),0.5),局部极点,0),COLORGREEN; DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'买'),LINETHICK2,COLORRED;。
文华财经WH6WH7可直接使用的135战法公式
135战法在文华财经WH6 WH7 软件上直接使用的公式以下公式,直接复制到文华财经软件的指标编辑器,即可使用。
在主K 线图上选择叠加技术指标即可实现在K 线上直接显示中文指标。
EMA13:MA(C,13),COLORWHITE,LINETHICK2;EMA34:MA(C,34),COLORYELLOW;EMA55:MA(C,55),COLORFF00FF;HX1:=EMA13<EMA34 AND EMA34<EMA55;HX2:=BARSLAST((C-EMA13)/EMA13*100<-6);HX3:=ABS(1-EMA55/REF(C,1))>0.1;HX6:=BARSLAST(CROSS(EMA55,EMA34))>=20;HX4:=ABS(1-REF(EMA13,1)/EMA13)<0.004 AND C<EMA34; HX5:=REF(C,1)<EMA13 AND C>EMA13 AND C>O;HX7:=HX1 AND HX4 AND HX5 ;HX8:=HX7 AND FILTER(HX7,10);DRAWTEXT(HX8,L-0.4红杏出墙,' '),COLORYELLOW;BR1:=COUNT(BETWEEN(((C-O)/O)*100,0,5) ,5)=5;BR2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;BR3:=C>EMA55 AND COUNT(L<EMA55,5)>=1;MYSS:=BR1 AND BR2 AND BR3;DRAWTEXT(MYSS AND FILTER(MYSS,5), L-0蚂蚁上树.4,' '),COLORYELLOW;MSQT1:=EMA55/EMA13>1.04 AND EMA13/C>1.03;MSQT2:=O<=REF(L,1) AND REF(O,1)/REF(C,1)>1.03;MSQT:= MSQT1 AND MSQT2;DRAWTEXT(MSQT, L-0.4马失前蹄,' '),COLORYELLOW;JCFS1:=EMA55>EMA13 AND EMA13>C;JCFS2:=O<=REF(L,1) AND C/O>1.05;JCFS:= JCFS1 AND JCFS2;DRAWTEXT(JCFS, L-0.4绝处逢生,' '),COLORYELLOW;JWCJ1:=C<O AND REF(C,1)<REF(O,1);JWCJ2:=O<=REF(C,1) AND L>=REF(L,1);JWCJ3:=REF(C,1)/REF(L,1)>1.02;JWCJ4:=EMA13<EMA34 OR EMA13<EMA55;JWCJ:=JWCJ1 AND JWCJ2 AND JWCJ3 AND JWCJ4;DRAWTEXT(JWCJ, L-0.4金屋藏娇,' '),COLORYELLOW;RYHB1:=REF(O,1)<=REF(C,2) AND REF(C,1)<REF(O,1) AND ABS(1-REF(C,1)/REF(L,1))<0.02; RYHB2:=C>O AND ABS(1-C/REF(O,1))<0.025 AND ABS(1-O/REF(C,1))<0.025;RYHB3:=EMA13<REF(EMA13,1) OR ABS(1-EMA13/REF(EMA13,1))<0.01 AND (EMA13<EMA34 OR EMA13<EMA55);RYHB4:=REF(L,1)<=LLV(REF(L,1),10);RYHB:=RYHB1 AND RYHB2 AND RYHB3 AND RYHB4;DRAWTEXT(RYHB , L-0.4日月合璧,' '),COLORYELLOW;PJCY1:=REF(O,1)/REF(C,1)>1.02;PJCY2:=O<=REF(C,1) AND C>=REF(O,1);PJCY3:=(ABS(1-REF(C,1)/EMA55)<0.05 OR ABS(1-C/EMA55)<0.05 OR ABS(1-MA(C,2)/EMA55)<0.05);PJCY4:=EMA13>EMA55 OR EMA13>MA(EMA13,5);PJCY:=PJCY1 AND PJCY2 AND PJCY3 AND PJCY4;DRAWTEXT(PJC, YL-0.4,'破镜重圆'),COLORYELLOW;BBG1:=C>=REF(C,1) AND REF(C,1)>=REF(C,2);BBG2:=V>=REF(V,1) AND REF(V,1)>=REF(V,2);BBG3:=COUNT(C>=O,3)=3;BBG:=BBG1 AND BBG2 AND BBG3;DRAWTEXT(BBG AND FILTER(BBG,3), L-0步步高.4,' '),COLORYELLOW;DJ1:=EMA13>EMA34 AND EMA34<EMA55;DJ2:=O>EMA55;DJ3:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002;DJ4:=O>C AND C<REF(C,1);HKDJ:= DJ2 AND DJ3 AND DJ4;DRAWTEXT(HKDJ AND FILTER(HKDJ,10)黑客点击,L,' '),RGB(255,128,64);XN1:=ABS(1-HHV(EMA55,5)/LLV(EMA55,5))<0.02;XN2:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002;XN3:=C>O AND V>REF(V,1) AND C>EMA55;HYXN:=XN1 AND XN2 AND XN3;DRAWTEXT(HYXN AND FILTER(HYXN,5)红衣侠女,L,' '),COLORRED;LY1:=COUNT(ABS(1-EMA55/EMA34)<0.1,20)>=16;LY2:=COUNT(CROSS(EMA34,EMA13),40)>=1 AND COUNT(CROSS(EMA55,EMA13),40)>=1; LY3:=CROSS(EMA13,EMA55);HDLY:=LY1 AND LY2 AND LY3;DRAWTEXT(HDLY AND FILTER(HD,5L),YL-0.3,'海底捞月'),COLORRED;JXHH:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(JXHH,L-0.4均线互换,' '),COLORRED;MKED1:=BARSLAST(REF(CROSS(EMA34,EMA13),1));MKED2:=COUNT(H>=EMA55,MKED1)=MKED1;MKED:=MKED2 AND CROSS(EMA13,EMA34);DRAWTEXT(MKED,L-0.2梅开二度,' '),COLORRED;YY1:=C>EMA13 AND O<EMA13;YY2:=C>EMA34 AND O<EMA34;YY3:=C>EMA55 AND O<EMA55;YYSX:=YY1 AND YY2 AND YY3;DRAWTEXT(YYSX,L-0.2一阳三线,' '),COLORRED;MAX3:=MAX(MAX(EMA13,EMA34),EMA55);MIN3:=MIN(MIN(EMA13,EMA34),EMA55);JG1:=ABS(EMA13-EMA34)<C*0.05;JG2:=ABS(EMA34-EMA55)<C*0.05;JG3:=C>=O*1.03 AND C>MAX3;JG4:=O>MIN3 AND O<MAX3;JG5:=C>REF(H,5);JG6:=(C-EMA34)/EMA34<=0.15;JG7:=V>MA(V,5) AND MA(V,10);JGEQ:=JG1 AND JG2 AND JG3 AND JG4 AND JG5 AND JG6 AND JG7;DRAWTEXT(JGEQ,L-0.2揭竿而起,' '),COLORRED;MAX4:=MAX(MAX(MAX(EMA13,EMA34),EMA55),H);MIN4:=MIN(MIN(MIN(EMA13,EMA34),EMA55),L);SXTJ1:=HHV(MAX4,60);SXTJ2:=LLV(MIN4,60);SXTJ3:=EVERY(ABS(1-SXTJ1/SXTJ2)<0.3,20);SXTJ:=SXTJ3 AND (YYSX OR JGEQ);DRAWTEXT(SXTJ AND FILTER(SXTJ,10),L-三线推进0.2,' '),COLORRED;TSWL1:=CROSS(EMA13,EMA34) AND EMA13<EMA55;DRAWTEXT(TSWL1,L-0.2投石问路,' '),COLORRED;SJJJ3:=REF(EMA55,1)>REF(EMA13,1);SJJJ4:=ABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA34),EMA55)))<0.005; SJJJ:=SJJJ3 AND SJJJ4;DRAWTEXT(SJJJ AND FILTER(SJJJ,5),L三军集结-0.2,' '),COLORRED;三军集结:=SJJJ AND FILTER(SJJJ,5);XG:三军集结,NODRAW;LZ1:=REF(C,2)<REF(O,2) AND REF(C,1)<REF(O,1) AND C<O;LZ2:=C<=REF(C,1) AND REF(C,1)<=REF(C,2);LZ3:=MA(V,3)<REF(V,3);LZ4:=REF(C,3)>EMA13 AND (C>EMA55 OR ABS(1-C/EMA55)<0.01);LZHT:=LZ1 AND LZ2 AND LZ3 AND LZ4;DRAWTEXT(LZHT AND FILTER(LZHT,5), H+0浪子回头.2,' '),COLORCYAN;/防御/ZSF1:=REF(C,4)>REF(O,4) AND (REF(C,4)>EMA13 OR REF(C,4)>EMA34) AND (ABS(1- REF(EMA55,4)/EMA55)<0.01 OR MA(EMA55,4)>REF(EMA55,5));ZSF2:=COUNT(ABS((1-REF(C,1)/C)*100)<3,4)=4 AND MA(V,4)<REF(V,4)*0.8;ZSF:=ZSF1 AND ZSF2;DRAWTEXT(ZSF AND FILTER(ZSF,4), H+0走四方.2,' '),COLORCYAN;/防御/ADCC1:=O/C>1.05 AND EMA13/EMA55<1.1 AND EMA13>MA(EMA13,5);ADCC2:=O/REF(C,1)<1.03;ADCC:=ADCC1 AND ADCC2;DRAWTEXT(ADCC, H+0.2暗度陈仓,' '),COLORCYAN;/防御/YSEN1:=REF(C,2)>REF(O,2) AND REF(C,1)<REF(O,1) AND C<O;YSEN2:=REF(C,2)>EMA55 AND EMA13>EMA55 AND EMA13>=MA(EMA13,5);YSEN3:=REF(V,2)>REF(V,1) AND REF(V,2)>V;YSEN:=YSEN1 AND YSEN2 AND YSEN3;DRAWTEXT(YSEN, H+0.2一石二鸟,' '),COLORCYAN;/防御/SFY1:=EMA13>EMA34 AND EMA34>EMA55;SFY2:=REF(O,1)>=REF(C,2) AND O>=REF(C,1) AND REF(C,2)>=REF(O,2);SFY3:=COUNT(C>O AND C/O<1.02,2)=2 OR COUNT(C<O AND O/C<1.02,2)=2;SFY4:= V<REF(V,1);SFY:=SFY1 AND SFY2 AND SFY3 AND SFY4;DRAWTEXT(SFY AND FILTER(,S2F),YH+0.2,'双飞燕'),COLORCYAN;/防御/SJK1:=EMA13>EMA34 AND EMA34>EMA55;SJK2:=COUNT(C<=O AND O/C<1.03,3)=3 AND COUNT(ABS(1-REF(C,1)/C)<1.03,2)=2; SJK:=SJK1 AND SJK2;DRAWTEXT(SJK AND FILTER(SJK,3), H+0三剑客.2,' '),COLORCYAN;/防御/SXWY1:=COUNT(C>=O AND C/O<1.03,4)=4;SXWY2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;SXWY3:=EMA13<EMA55;SXWY:=SXWY1 AND SXWY2 AND SXWY3;DRAWTEXT(SXWY AND FILTER(SX,W5)Y, H+0.2,'四星望月'),COLORBLUE;XXDD1:=ABS(1-C/O)*100<=2.5 AND H/MAX(C,O)>1.03 AND REF(C,1)/REF(O,1)>1.05; XXDD2:=O>=REF(C,1) ;XXDD:=XXDD1 AND XXDD2;DRAWTEXT(XXDD,H+0.2星星点灯,' '),COLORBLUE;XNYR1:=REF(C,1)/REF(O,1)>1.05;XNYR2:=O<=REF(C,1) AND ABS(1-C/O)<0.02;XNYR3:=COUNT(JGEQ OR YYSX OR HYXN,10)>=1 AND COUNT(JGEQ OR YYSX OR HYXN,2)=0; XNYR:=XNYR1 AND XNYR2 AND XNYR3;DRAWTEXT(XNYR, H+0.2小鸟依人,' '),COLORBLUE;LGJY1:=O<=REF(C,1) AND V<REF(V,1) AND C<O;LGJY2:=COUNT(JGEQ OR YYSX OR HYXN,2)=1;LGJY:=LGJY1 AND LGJY2;DRAWTEXT(LGJ, YH+0.2,'立竿见影'),COLORCYAN;YYSX1:=C<EMA13 AND O>EMA13;YYSX2:=C<EMA34 AND O>EMA34;YYSX3:=C<EMA55 AND O>EMA55;YYYSX:=YYSX1 AND YYSX2 AND YYSX3;DRAWTEXT(YYYSX,H+0.4一阴三线,' '),COLORGREEN;LJXS1:=O<REF(L,1) AND EMA13/EMA55>1.05 AND C<O;DRAWTEXT(LJXS1,H+0.4落井下石,' '),COLORGREEN;CZMG1:=REF(C,1)/REF(O,1)>1.05 AND REF(V,1)/REF(V,2)>2;CZMG2:=C>O AND V<REF(V,1);CZMG:=CZMG1 AND CZMG2;DRAWTEXT(CZMG,H+0.4晨钟暮鼓,' '),COLORGREEN;Y:=(EMA13-EMA55)/EMA13*100;JHJX:=REF(,Y1)<=10 AND Y>10;DRAWTEXT(JHJX,H+0.4见好就收,' '),COLORGREEN;YZ1:=C/O>1.01 AND H/C>1.025 ;YZ2:=EMA13>MAX(EMA34,EMA55) AND C>1.05*EMA13 AND O>MA(C,11);YZDX:=YZ1 AND YZ2;DRAWTEXT(YZDX,H+0.4一枝独秀,' '),COLORGREEN;DSGL1:=REF(C,1)>=REF(O,1);DSGL2:=O/REF(C,1)>1.029 AND O/C>1.03 AND O/MAX(EMA13,EMA55)>1.03;DSGL:=DSGL1 AND DSGL2;DRAWTEXT(DSGL,H+0.4独上高楼,' '),COLORGREEN;FDYB:=CROSS(EMA34,EMA13) AND EMA34>EMA55;DRAWTEXT(FDYB,H+0.4分道扬镳,' '),COLORGREEN;TCCW1:=REF(EMA55,1)<REF(EMA13,1);TCCW2:=EMA13<LLV(REF(EMA13,1),5) AND ABS(1- (MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA34),EMA55)))<0.008;TCCW:=TCCW1 AND TCCW2;DRAWTEXT(TCCW AND FILTER(TCCW,5),H+0突出重围.4,' '),COLORGREEN;MXZD1:=C/O>1.07;MXZD2:=EMA13>HHV(REF(EMA13,1),5) AND V>HHV(REF(V,1),10) AND V/MA(REF(V,1),5)>2; MXZD:=MXZD1 AND MXZD2;DRAWTEXT(MXZD,H+0.4明修栈道,' '),COLORGREEN;TNDS1:=O/REF(C,1)>1.05 AND MIN(C,O)/L>1.03;TNDS2:=C/MAX(EMA13,EMA55)>1.03 AND C>REF(C,1);TNDS:=TNDS1 AND TNDS2;DRAWTEXT(TNDS,H+0.4拖泥带水,' '),COLORGREEN;JCTQ1:=C<O AND (EMA13/EMA55>1.1 OR (C/MIN(EMA13,EMA55)>1.1)) ANDEMA13>MA(EMA13,5);JCTQ2:=REF(O,1)>=REF(C,2) AND REF(C,1)>REF(O,1) AND O<=REF(C,1) AND C>REF(O,1); JCTQ:=JCTQ1 AND JCTQ2;DRAWTEXT(JCTQ,H+0.4金蝉脱壳,' '),COLORGREEN;YJCX:=CROSS(EMA55,EMA13);DRAWTEXT(YJCX,H+0.4一箭穿心,' '),COLORGREEN;GHCQ1:=C<O AND O/C>=1.04;GHCQ2:=O>EMA13 AND C<EMA13;GHCQ3:=EMA13/EMA55>1.1 AND ABS(1-EMA13/MA(EMA13,3))<0.02;GHCQ:=GHCQ1 AND GHCQ2 AND GHCQ3;DRAWTEXT(GHCQ,H+0.4过河拆桥,' '),COLORGREEN;GJTQ1:=O/REF(C,1)>1.02 AND L>REF(C,1);GJTQ2:=V>MA(V,5);GJTQ3:=EMA13/EMA55>1.1;GJTQ:=GJTQ1 AND GJTQ2 AND GJTQ3;DRAWTEXT(GJTQ,H+0.4狗急跳墙,' '),COLORGREEN;YJFH1:=REF(C,1)>=REF(O,1);YJFH2:=H/MAX(C,O)>=1.035 ;YJFH3:=V/MA(REF(V,1),11)>3 AND EMA13/EMA55>1.05;YJFH:=YJFH1 AND YJFH2 AND YJFH3;DRAWTEXT(YJFH,H+0.4一剑封喉,' '),COLORGREEN;JWSZ1:=EMA13>MAX(EMA34,EMA55) AND EMA13/EMA55>1.1 AND REF(C,1)>1.04*EMA13 ANDREF(C,1)/REF(O,1)>1.04;JWSZ2:=ABS(1-C/O)<0.015 AND ABS(1-REF(C,1)/C)<0.02;JWSZ:=JWSZ1 AND JWSZ2;DRAWTEXT(JWSZ,H+0.4节外生枝,' '),COLORGREEN; XLCD1:=REF(H,1)/MAX(REF(C,1),REF(O,1))>1.04; XLCD2:=H<REF(H,1) AND O>=REF(C,1);XLCD3:=EMA13/EMA55>1.05 AND C/EMA13>1.03; XLCD:=XLCD1 AND XLCD2 AND XLCD3;DRAWTEXT(XLCD,H+0.4笑里藏刀,' '),COLORGREEN;。
文华赢顺云交易软件(wh6)指标公式——绘图函数
文华赢顺云交易软件(wh6)指标公式——绘图函数文华赢顺云交易软件(wh6)指标公式——绘图函数(一)ALIGN0,ALIGN1,ALIGN2:设置文字水平对齐方式(左中右)。
用法:DRAWTEXT(COND,PRICE,TEXT),ALIGNX;COND条件满足时,在PRICE的位置,标注TEXT,文字按照ALIGNX写入的方式对齐。
ALIGN0,ALIGN1,ALIGN2,分别表示左对齐,居中对齐,右对齐。
注:该函数只支持和DRAWTEXT或DRAWNUMBER函数连用。
例1:DRAWTEXT(C>O,H,'涨'),ALIGN1,VALIGN1,FONTSIZE20,COLORGREEN;//在阳线的最高价标注文字“涨”,文字居中对齐,字体大小为20,颜色为绿色。
例2:DRAWNUMBER(C>O,H,H,2,COLORBLUE),ALIGN0,VALIGN0;//在阳线的最高价位置标出最高价,保留两位小数。
文字显示问蓝色,居左居上对齐。
(二)BACKGROUNDSTYLE:设置背景的样式。
用法:BACKGROUNDSTYLE(i)设置背景的样式。
i = 0 或1或2。
注:1、0 是保持本身坐标不变。
1 是将坐标固定在0到100之间。
2 是将坐标以0为中轴的坐标系。
2、参数i的选择根据想要显示的指标数据范围而定。
例1:MA5:MA(C,5);MA10:MA(C,10);BACKGROUNDSTYLE(0);例2:DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);2*(DIFF-DEA),COLORSTICK;BACKGROUNDSTYLE(2);(三)COLOR:定义颜色。
用法:COLOR000000-COLORFFFFFF 定义颜色。
注:函数后六位为十六进制数字00-FF,前两位对应RGB函数参数B (蓝色),第三位和第四位对应RGB函数参数G(绿色),第五位和第六位对应RGB函数参数R(红色)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
135战法在文华财经WH6 WH7软件上直接使用的公式以下公式,直接复制到文华财经软件的指标编辑器,即可使用。
在主K线图上选择叠加技术指标即可实现在K线上直接显示中文指标。
EMA13:MA(C,13),COLORWHITE,LINETHICK2;EMA34:MA(C,34),COLORYELLOW;EMA55:MA(C,55),COLORFF00FF;HX1:=EMA13<EMA34 AND EMA34<EMA55;HX2:=BARSLAST((C-EMA13)/EMA13*100<-6);HX3:=ABS(1-EMA55/REF(C,1))>0.1;HX6:=BARSLAST(CROSS(EMA55,EMA34))>=20;HX4:=ABS(1-REF(EMA13,1)/EMA13)<0.004 AND C<EMA34; HX5:=REF(C,1)<EMA13 AND C>EMA13 AND C>O;HX7:=HX1 AND HX4 AND HX5 ;HX8:=HX7 AND FILTER(HX7,10);DRAWTEXT(HX8,L-0.4,'红杏出墙'),COLORYELLOW;BR1:=COUNT(BETWEEN(((C-O)/O)*100,0,5) ,5)=5;BR2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;BR3:=C>EMA55 AND COUNT(L<EMA55,5)>=1;MYSS:=BR1 AND BR2 AND BR3;DRAWTEXT(MYSS AND FILTER(MYSS,5), L-0.4,'蚂蚁上树'),COLORYELLOW;MSQT1:=EMA55/EMA13>1.04 AND EMA13/C>1.03;MSQT2:=O<=REF(L,1) AND REF(O,1)/REF(C,1)>1.03;MSQT:= MSQT1 AND MSQT2;DRAWTEXT(MSQT, L-0.4,'马失前蹄'),COLORYELLOW;JCFS1:=EMA55>EMA13 AND EMA13>C;JCFS2:=O<=REF(L,1) AND C/O>1.05;JCFS:= JCFS1 AND JCFS2;DRAWTEXT(JCFS, L-0.4,'绝处逢生'),COLORYELLOW;JWCJ1:=C<O AND REF(C,1)<REF(O,1);JWCJ2:=O<=REF(C,1) AND L>=REF(L,1);JWCJ3:=REF(C,1)/REF(L,1)>1.02;JWCJ4:=EMA13<EMA34 OR EMA13<EMA55;JWCJ:=JWCJ1 AND JWCJ2 AND JWCJ3 AND JWCJ4;DRAWTEXT(JWCJ, L-0.4,'金屋藏娇'),COLORYELLOW;RYHB1:=REF(O,1)<=REF(C,2) AND REF(C,1)<REF(O,1) AND ABS(1-REF(C,1)/REF(L,1))<0.02;RYHB2:=C>O AND ABS(1-C/REF(O,1))<0.025 AND ABS(1-O/REF(C,1))<0.025;RYHB3:=EMA13<REF(EMA13,1) OR ABS(1-EMA13/REF(EMA13,1))<0.01 AND (EMA13<EMA34 OR EMA13<EMA55);RYHB4:=REF(L,1)<=LLV(REF(L,1),10);RYHB:=RYHB1 AND RYHB2 AND RYHB3 AND RYHB4;DRAWTEXT(RYHB , L-0.4,'日月合璧'),COLORYELLOW;PJCY1:=REF(O,1)/REF(C,1)>1.02;PJCY2:=O<=REF(C,1) AND C>=REF(O,1);PJCY3:=(ABS(1-REF(C,1)/EMA55)<0.05 OR ABS(1-C/EMA55)<0.05 OR ABS(1-MA(C,2)/EMA55)<0.05);PJCY4:=EMA13>EMA55 OR EMA13>MA(EMA13,5);PJCY:=PJCY1 AND PJCY2 AND PJCY3 AND PJCY4;DRAWTEXT(PJCY, L-0.4,'破镜重圆'),COLORYELLOW;BBG1:=C>=REF(C,1) AND REF(C,1)>=REF(C,2);BBG2:=V>=REF(V,1) AND REF(V,1)>=REF(V,2);BBG3:=COUNT(C>=O,3)=3;BBG:=BBG1 AND BBG2 AND BBG3;DRAWTEXT(BBG AND FILTER(BBG,3), L-0.4,'步步高'),COLORYELLOW;DJ1:=EMA13>EMA34 AND EMA34<EMA55;DJ2:=O>EMA55;DJ3:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002;DJ4:=O>C AND C<REF(C,1);HKDJ:= DJ2 AND DJ3 AND DJ4;DRAWTEXT(HKDJ AND FILTER(HKDJ,10),L,'黑客点击'),RGB(255,128,64);XN1:=ABS(1-HHV(EMA55,5)/LLV(EMA55,5))<0.02;XN2:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002;XN3:=C>O AND V>REF(V,1) AND C>EMA55;HYXN:=XN1 AND XN2 AND XN3;DRAWTEXT(HYXN AND FILTER(HYXN,5),L,'红衣侠女'),COLORRED;LY1:=COUNT(ABS(1-EMA55/EMA34)<0.1,20)>=16;LY2:=COUNT(CROSS(EMA34,EMA13),40)>=1 AND COUNT(CROSS(EMA55,EMA13),40)>=1; LY3:=CROSS(EMA13,EMA55);HDLY:=LY1 AND LY2 AND LY3;DRAWTEXT(HDLY AND FILTER(HDLY,5),L-0.3,'海底捞月'),COLORRED;JXHH:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(JXHH,L-0.4,'均线互换'),COLORRED;MKED1:=BARSLAST(REF(CROSS(EMA34,EMA13),1));MKED2:=COUNT(H>=EMA55,MKED1)=MKED1;MKED:=MKED2 AND CROSS(EMA13,EMA34);DRAWTEXT(MKED,L-0.2,'梅开二度'),COLORRED;YY1:=C>EMA13 AND O<EMA13;YY2:=C>EMA34 AND O<EMA34;YY3:=C>EMA55 AND O<EMA55;YYSX:=YY1 AND YY2 AND YY3;DRAWTEXT(YYSX,L-0.2,'一阳三线'),COLORRED;MAX3:=MAX(MAX(EMA13,EMA34),EMA55);MIN3:=MIN(MIN(EMA13,EMA34),EMA55);JG1:=ABS(EMA13-EMA34)<C*0.05;JG2:=ABS(EMA34-EMA55)<C*0.05;JG3:=C>=O*1.03 AND C>MAX3;JG4:=O>MIN3 AND O<MAX3;JG5:=C>REF(H,5);JG6:=(C-EMA34)/EMA34<=0.15;JG7:=V>MA(V,5) AND MA(V,10);JGEQ:=JG1 AND JG2 AND JG3 AND JG4 AND JG5 AND JG6 AND JG7;DRAWTEXT(JGEQ,L-0.2,'揭竿而起'),COLORRED;MAX4:=MAX(MAX(MAX(EMA13,EMA34),EMA55),H);MIN4:=MIN(MIN(MIN(EMA13,EMA34),EMA55),L);SXTJ1:=HHV(MAX4,60);SXTJ2:=LLV(MIN4,60);SXTJ3:=EVERY(ABS(1-SXTJ1/SXTJ2)<0.3,20);SXTJ:=SXTJ3 AND (YYSX OR JGEQ);DRAWTEXT(SXTJ AND FILTER(SXTJ,10),L-0.2,'三线推进'),COLORRED;TSWL1:=CROSS(EMA13,EMA34) AND EMA13<EMA55;DRAWTEXT(TSWL1,L-0.2,'投石问路'),COLORRED;SJJJ3:=REF(EMA55,1)>REF(EMA13,1);SJJJ4:=ABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA34),EMA55)))<0.005; SJJJ:=SJJJ3 AND SJJJ4;DRAWTEXT(SJJJ AND FILTER(SJJJ,5),L-0.2,'三军集结'),COLORRED;三军集结:=SJJJ AND FILTER(SJJJ,5);XG:三军集结,NODRAW;LZ1:=REF(C,2)<REF(O,2) AND REF(C,1)<REF(O,1) AND C<O;LZ2:=C<=REF(C,1) AND REF(C,1)<=REF(C,2);LZ3:=MA(V,3)<REF(V,3);LZ4:=REF(C,3)>EMA13 AND (C>EMA55 OR ABS(1-C/EMA55)<0.01);LZHT:=LZ1 AND LZ2 AND LZ3 AND LZ4;DRAWTEXT(LZHT AND FILTER(LZHT,5), H+0.2,'浪子回头'),COLORCYAN;//防御ZSF1:=REF(C,4)>REF(O,4) AND (REF(C,4)>EMA13 OR REF(C,4)>EMA34) AND (ABS(1-REF(EMA55,4)/EMA55)<0.01 OR MA(EMA55,4)>REF(EMA55,5));ZSF2:=COUNT(ABS((1-REF(C,1)/C)*100)<3,4)=4 AND MA(V,4)<REF(V,4)*0.8;ZSF:=ZSF1 AND ZSF2;DRAWTEXT(ZSF AND FILTER(ZSF,4), H+0.2,'走四方'),COLORCYAN;//防御ADCC1:=O/C>1.05 AND EMA13/EMA55<1.1 AND EMA13>MA(EMA13,5);ADCC2:=O/REF(C,1)<1.03;ADCC:=ADCC1 AND ADCC2;DRAWTEXT(ADCC, H+0.2,'暗度陈仓'),COLORCYAN;//防御YSEN1:=REF(C,2)>REF(O,2) AND REF(C,1)<REF(O,1) AND C<O;YSEN2:=REF(C,2)>EMA55 AND EMA13>EMA55 AND EMA13>=MA(EMA13,5);YSEN3:=REF(V,2)>REF(V,1) AND REF(V,2)>V;YSEN:=YSEN1 AND YSEN2 AND YSEN3;DRAWTEXT(YSEN, H+0.2,'一石二鸟'),COLORCYAN;//防御SFY1:=EMA13>EMA34 AND EMA34>EMA55;SFY2:=REF(O,1)>=REF(C,2) AND O>=REF(C,1) AND REF(C,2)>=REF(O,2);SFY3:=COUNT(C>O AND C/O<1.02,2)=2 OR COUNT(C<O AND O/C<1.02,2)=2;SFY4:= V<REF(V,1);SFY:=SFY1 AND SFY2 AND SFY3 AND SFY4;DRAWTEXT(SFY AND FILTER(SFY,2), H+0.2,'双飞燕'),COLORCYAN;//防御SJK1:=EMA13>EMA34 AND EMA34>EMA55;SJK2:=COUNT(C<=O AND O/C<1.03,3)=3 AND COUNT(ABS(1-REF(C,1)/C)<1.03,2)=2;SJK:=SJK1 AND SJK2;DRAWTEXT(SJK AND FILTER(SJK,3), H+0.2,'三剑客'),COLORCYAN;//防御SXWY1:=COUNT(C>=O AND C/O<1.03,4)=4;SXWY2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;SXWY3:=EMA13<EMA55;SXWY:=SXWY1 AND SXWY2 AND SXWY3;DRAWTEXT(SXWY AND FILTER(SXWY,5), H+0.2,'四星望月'),COLORBLUE;XXDD1:=ABS(1-C/O)*100<=2.5 AND H/MAX(C,O)>1.03 AND REF(C,1)/REF(O,1)>1.05;XXDD2:=O>=REF(C,1) ;XXDD:=XXDD1 AND XXDD2;DRAWTEXT(XXDD,H+0.2,'星星点灯'),COLORBLUE;XNYR1:=REF(C,1)/REF(O,1)>1.05;XNYR2:=O<=REF(C,1) AND ABS(1-C/O)<0.02;XNYR3:=COUNT(JGEQ OR YYSX OR HYXN,10)>=1 AND COUNT(JGEQ OR YYSX OR HYXN,2)=0; XNYR:=XNYR1 AND XNYR2 AND XNYR3;DRAWTEXT(XNYR, H+0.2,'小鸟依人'),COLORBLUE;LGJY1:=O<=REF(C,1) AND V<REF(V,1) AND C<O;LGJY2:=COUNT(JGEQ OR YYSX OR HYXN,2)=1;LGJY:=LGJY1 AND LGJY2;DRAWTEXT(LGJY, H+0.2,'立竿见影'),COLORCYAN;YYSX1:=C<EMA13 AND O>EMA13;YYSX2:=C<EMA34 AND O>EMA34;YYSX3:=C<EMA55 AND O>EMA55;YYYSX:=YYSX1 AND YYSX2 AND YYSX3;DRAWTEXT(YYYSX,H+0.4,'一阴三线'),COLORGREEN;LJXS1:=O<REF(L,1) AND EMA13/EMA55>1.05 AND C<O;DRAWTEXT(LJXS1,H+0.4,'落井下石'),COLORGREEN;CZMG1:=REF(C,1)/REF(O,1)>1.05 AND REF(V,1)/REF(V,2)>2;CZMG2:=C>O AND V<REF(V,1);CZMG:=CZMG1 AND CZMG2;DRAWTEXT(CZMG,H+0.4,'晨钟暮鼓'),COLORGREEN;Y:=(EMA13-EMA55)/EMA13*100;JHJX:=REF(Y,1)<=10 AND Y>10;DRAWTEXT(JHJX,H+0.4,'见好就收'),COLORGREEN;YZ1:=C/O>1.01 AND H/C>1.025 ;YZ2:=EMA13>MAX(EMA34,EMA55) AND C>1.05*EMA13 AND O>MA(C,11);YZDX:=YZ1 AND YZ2;DRAWTEXT(YZDX,H+0.4,'一枝独秀'),COLORGREEN;DSGL1:=REF(C,1)>=REF(O,1);DSGL2:=O/REF(C,1)>1.029 AND O/C>1.03 AND O/MAX(EMA13,EMA55)>1.03;DSGL:=DSGL1 AND DSGL2;DRAWTEXT(DSGL,H+0.4,'独上高楼'),COLORGREEN;FDYB:=CROSS(EMA34,EMA13) AND EMA34>EMA55;DRAWTEXT(FDYB,H+0.4,'分道扬镳'),COLORGREEN;TCCW1:=REF(EMA55,1)<REF(EMA13,1);TCCW2:=EMA13<LLV(REF(EMA13,1),5) AND ABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA34),EMA55)))<0.008;TCCW:=TCCW1 AND TCCW2;DRAWTEXT(TCCW AND FILTER(TCCW,5),H+0.4,'突出重围'),COLORGREEN;MXZD1:=C/O>1.07;MXZD2:=EMA13>HHV(REF(EMA13,1),5) AND V>HHV(REF(V,1),10) AND V/MA(REF(V,1),5)>2;MXZD:=MXZD1 AND MXZD2;DRAWTEXT(MXZD,H+0.4,'明修栈道'),COLORGREEN;TNDS1:=O/REF(C,1)>1.05 AND MIN(C,O)/L>1.03;TNDS2:=C/MAX(EMA13,EMA55)>1.03 AND C>REF(C,1);TNDS:=TNDS1 AND TNDS2;DRAWTEXT(TNDS,H+0.4,'拖泥带水'),COLORGREEN;JCTQ1:=C<O AND (EMA13/EMA55>1.1 OR (C/MIN(EMA13,EMA55)>1.1)) AND EMA13>MA(EMA13,5);JCTQ2:=REF(O,1)>=REF(C,2) AND REF(C,1)>REF(O,1) AND O<=REF(C,1) AND C>REF(O,1);JCTQ:=JCTQ1 AND JCTQ2;DRAWTEXT(JCTQ,H+0.4,'金蝉脱壳'),COLORGREEN;YJCX:=CROSS(EMA55,EMA13);DRAWTEXT(YJCX,H+0.4,'一箭穿心'),COLORGREEN;GHCQ1:=C<O AND O/C>=1.04;GHCQ2:=O>EMA13 AND C<EMA13;GHCQ3:=EMA13/EMA55>1.1 AND ABS(1-EMA13/MA(EMA13,3))<0.02;GHCQ:=GHCQ1 AND GHCQ2 AND GHCQ3;DRAWTEXT(GHCQ,H+0.4,'过河拆桥'),COLORGREEN;GJTQ1:=O/REF(C,1)>1.02 AND L>REF(C,1);GJTQ2:=V>MA(V,5);GJTQ3:=EMA13/EMA55>1.1;GJTQ:=GJTQ1 AND GJTQ2 AND GJTQ3;DRAWTEXT(GJTQ,H+0.4,'狗急跳墙'),COLORGREEN;YJFH1:=REF(C,1)>=REF(O,1);YJFH2:=H/MAX(C,O)>=1.035 ;YJFH3:=V/MA(REF(V,1),11)>3 AND EMA13/EMA55>1.05;YJFH:=YJFH1 AND YJFH2 AND YJFH3;DRAWTEXT(YJFH,H+0.4,'一剑封喉'),COLORGREEN;JWSZ1:=EMA13>MAX(EMA34,EMA55) AND EMA13/EMA55>1.1 AND REF(C,1)>1.04*EMA13 AND REF(C,1)/REF(O,1)>1.04;JWSZ2:=ABS(1-C/O)<0.015 AND ABS(1-REF(C,1)/C)<0.02;JWSZ:=JWSZ1 AND JWSZ2;DRAWTEXT(JWSZ,H+0.4,'节外生枝'),COLORGREEN;XLCD1:=REF(H,1)/MAX(REF(C,1),REF(O,1))>1.04;XLCD2:=H<REF(H,1) AND O>=REF(C,1);XLCD3:=EMA13/EMA55>1.05 AND C/EMA13>1.03;XLCD:=XLCD1 AND XLCD2 AND XLCD3;DRAWTEXT(XLCD,H+0.4,'笑里藏刀'),COLORGREEN;。