期货有效买卖点,准确率90以上,方向线分强势区,弱势区,平衡区,与macd指标的DIFF在0线上下方互相配合。 弱势区:35,colorgreen;
强势区:65,colorred;
qcz:=ABS(MA(CLOSE,10)-MA(CLOSE,N4))+ABS(MA(CLOSE,15)-MA(CLOSE,N4))+ABS(MA(CLOSE,20)-MA(CLOSE,N4));
趋势值:=qcz/CLOSE*100+15,colorwhite,LINETHICK1;
DIFF: =EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD: =(DIFF-DEA)*2;
VAR1:=((CLOSE - LLV(LOW,N1))/(HHV(HIGH,N1) - LLV(LOW,N1)))*(100);
VAR2:=((CLOSE - LLV(LOW,N2))/(HHV(HIGH,N2) - LLV(LOW,N2)))*(100);
VAR3:=SMA(VAR1,5,1);
VAR4:=SMA(VAR2,5,1);
K:=SMA(VAR3,3,1);
K60:=SMA(VAR4,3,1);
D:=SMA(K,3,1);
MB1:=K-D;
MB2:=D-K;
D60:=SMA(K60,3,1);
MB1:K-D;
MB2:D-K;
AA20:=MA(CLOSE,20);
/* 方向日线交叉,买卖方向线65以上强势,35以下弱势,35和65之间为平衡市*/
ABVar4:=EMA((CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100,5)*0.998;
ABVar10:=EMA(0.667*REF(ABVar4,1)+0.333*ABVar4,1),LINETHICK1;
买卖方向线:=SMA(ABVar10,5,1);//www.fxjgsw.com
PARTLINE(买卖方向线,买卖方向线>65,colorred,买卖方向线<35,colorgreen,买卖方向线<65 AND 买卖方向线>35,coloryellow),LINETHICK2;
方向线:EMA((CLOSE-LLV(LOW,12))/(HHV(HIGH,26)-LLV(LOW,12))*100,4),colorgray;
STICKLINE((K >= D),K,D,8,0),Color0000A8;
STICKLINE((K >= D),K,D,6,0),Color0000C0;
STICKLINE((K >= D),K,D,4,0),Color0000E0;
STICKLINE((K >= D),K,D,3,0),Color0000F0;
STICKLINE((K >= D),K,D,2,0),Color0000D0;
STICKLINE((K >= D),K,D,1,0),Color8080FF;
STICKLINE((K <= D),K,D,8,0),Color008800;
STICKLINE((K <= D),K,D,6,0),Color009900;
STICKLINE((K <= D),K,D,4,0),Color00AA00;
STICKLINE((K <= D),K,D,3,0),Color00BB00;
STICKLINE((K <= D),K,D,2,0),Color00CC00;
STICKLINE((K <= D),K,D,1,0),Color00DD00;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
A3:=BARSLAST(REF(CROSS(K,D),1));
A4:=BARSLAST(REF(CROSS(D,K),1));
底背离:=IF(REF(LOW,A1+1)>LOW AND DIFF>REF(DIFF,A1+1),1,0);
顶背离:=IF(REF(HIGH,A2+1)<HIGH AND REF(DIFF,A2+1)>DIFF,1,0);
底背离1:=IF(REF(LOW,A3+1)>LOW AND K>REF(K,A3+1),1,0);
顶背离1:=IF(REF(HIGH,A4+1)<HIGH AND REF(D,A4+1),1,0);
CCH1:=0;//www.fxjgsw.com
CCH1:=IF((顶背离=0 OR 顶背离1=0) AND 买卖方向线>REF(买卖方向线,1) AND OPEN<C AND REF(K-D,4)<0 AND C>AA20 AND 买卖方向线>25 AND MB1>1 AND 趋势值>15.30,1,0);
DRAWTEXT(CROSS(DIFF,DEA) AND CCH1=1,K-12,'买'),colorred;
DRAWICON(CROSS(DIFF,DEA) AND CCH1=1,K-12,1);
CCH2:=0;
CCH2:=IF((底背离=0 OR 底背离1=0) AND 买卖方向线<REF(买卖方向线,1) AND OPEN>C AND REF(D-K,4)<0 AND C<AA20 AND 买卖方向线<75 AND MB2>1 AND 趋势值>15.30,1,0);
DRAWTEXT(CROSS(DEA,DIFF) AND CCH2=1,D+12,'卖'),colorwhite;
DRAWICON(CROSS(DEA,DIFF) AND CCH2=1,D+12,2);
CCH3:=0;
CCH3:=IF((买卖方向线>50 AND DIFF>0 AND 买卖方向线>REF(买卖方向线,1) AND OPEN<C AND C>AA20 AND 趋势值>15.15 AND 方向线<85 AND MB1>0.21),1,0);
DRAWTEXT(CROSS(K,D) AND CCH3=1,K-6,'强买'),colorred;
DRAWICON(CROSS(K,D) AND CCH3=1,K-6,1);
CCH4:=0;
CCH4:=IF(( 买卖方向线<50 AND DIFF<0 AND 买卖方向线<REF(买卖方向线,1) AND OPEN>C AND C<AA20 AND 趋势值>15.15 AND 方向线>15 AND MB2>0.21),1,0);
DRAWTEXT(CROSS(D,K) AND CCH4=1,D+6,'弱卖'),colorwhite;
DRAWICON(CROSS(D,K) AND CCH4=1,D+6,2);
CCH5:=0;
CCH5:=IF((CROSS(K,D) AND 买卖方向线>REF(买卖方向线,1) AND (底背离=1 OR 底背离1=1) AND OPEN<C AND C>AA20 AND 买卖方向线>25 AND 趋势值>15.30 ),1,0);
DRAWTEXT(CROSS(DIFF,DEA) AND CCH5=1 ,K,'少买'),colorred;
DRAWICON(CROSS(DIFF,DEA) AND CCH5=1 ,K,1);
CCH6:=0;
CCH6:=IF((CROSS(D,K) AND 买卖方向线<REF(买卖方向线,1) AND (顶背离=1 OR 顶背离1=1) AND OPEN>C AND C<AA20 AND 买卖方向线<75 AND 趋势值>15.30 ),1,0);
DRAWTEXT(CROSS(DEA,DIFF) AND CCH6=1,D,'少卖'),colorwhite;
DRAWICON(CROSS(DEA,DIFF) AND CCH6=1 ,D,2),colorwhite;
CCH7:=0;
CCH7:=IF(( 买卖方向线>66 AND 买卖方向线<80 AND 买卖方向线>REF(买卖方向线,1) AND 趋势值>15.15 AND AA20>REF(AA20,1) AND K>D),1,0);
DRAWTEXT(REF(K-D,6)<0 AND CROSS(K60,D60) AND CCH7=1,D,'短买') ,colorred;
DRAWICON(REF(K-D,6)<0 AND CROSS(K60,D60) AND CCH7=1,D,1);
CCH8:=0;//www.fxjgsw.com
CCH8:=IF(( 买卖方向线<34 AND 买卖方向线>15 AND 买卖方向线<REF(买卖方向线,1) AND 趋势值>15.15 AND AA20<REF(AA20,1) AND D>K),1,0);
DRAWTEXT(REF(K-D,6)>0 AND CROSS(D60,K60) AND CCH8=1,D+3,'短卖') ,colorwhite;
DRAWICON(REF(K-D,6)>0 AND CROSS(D60,K60) AND CCH8=1,D+3,2);
CCH9:=0;
CCH9:=IF((顶背离=0 OR 顶背离1=0) AND 买卖方向线>REF(买卖方向线,1) AND OPEN<C AND C>=MA(C,30) AND MB1>1 AND DIFF>DEA AND 趋势值>15.25,1,0);
DRAWTEXT(CROSS(K,D) AND CCH9=1,K-12,'少买'),colorred;
DRAWICON(CROSS(K,D) AND CCH9=1,K-12,1);
CCH10:=0;
CCH10:=IF((底背离=0 OR 底背离1=0) AND 买卖方向线<REF(买卖方向线,1) AND OPEN>C AND C<=MA(C,30) AND MB2>1 AND DIFF<DEA AND 趋势值>15.25,1,0);
DRAWTEXT(CROSS(D,K) AND CCH10=1,D+12,'少卖'),colorwhite;
DRAWICON(CROSS(D,K) AND CCH10=1,D+12,2);
CCH11:=0;
CCH11:=IF( 买卖方向线>REF(买卖方向线,1) AND 买卖方向线>35 AND C>AA20,1,0);
DRAWTEXT(CROSS(K60,买卖方向线) AND CCH11=1,K-12,'转买'),colorred;
DRAWICON(CROSS(K60,买卖方向线) AND CCH11=1,K-12,1);
CCH12:=0;
CCH12:=IF( 买卖方向线<REF(买卖方向线,1) AND 买卖方向线<65 AND C<AA20,1,0);
DRAWTEXT(CROSS(买卖方向线,K60) AND CCH12=1,D+12,'转卖'),colorwhite;
DRAWICON(CROSS(买卖方向线,K60) AND CCH12=1,D+12,2);
CCH13:=0;
CCH13:=IF((买卖方向线>65 AND 买卖方向线>REF(买卖方向线,1) AND MB1>0.6 AND 趋势值>15.15 AND OPEN<C AND 方向线<85 AND K60>REF(K60,1)),1,0);
DRAWTEXT(CROSS(K,D) AND 方向线<80 AND REF(K-D,6)<0 AND CCH13=1,K-6,'强买'),colorred;
DRAWICON(CROSS(K,D) AND 方向线<80 AND REF(K-D,6)<0 AND CCH13=1,K-6,1);
CCH14:=0;
CCH14:=IF(( 买卖方向线<35 AND 买卖方向线<REF(买卖方向线,1) AND MB2>0.6 AND 趋势值>15.15 AND OPEN>C AND 方向线>15 AND K60<REF(K60,1)),1,0);
DRAWTEXT(CROSS(D,K) AND REF(K-D,6)>0 AND CCH14=1,D+6,'弱卖'),colorwhite;
DRAWICON(CROSS(D,K) AND REF(K-D,6)>0 AND CCH14=1,D+6,2);
DRAWTEXT(CROSS(方向线,40) AND DIFF>0 AND MB2>0.6 AND 趋势值>15.15 AND K-D>0,D,'加仓') ,colorred;
DRAWTEXT(CROSS(60,方向线) AND DIFF<0 AND MB2>0.6 AND 趋势值>15.15 AND K-D<0,D,'加仓') ,colorwhite;
VAR17:=ZIG(3,36)>REF(ZIG(3,36),1) AND REF(ZIG(3,36),1)<=REF(ZIG(3,36),2) AND REF(ZIG(3,36),2)<=REF(ZIG(3,36),3);
VAR18:=ZIG(3,36)<REF(ZIG(3,36),1) AND REF(ZIG(3,36),1)>=REF(ZIG(3,36),2) AND REF(ZIG(3,36),2)>=REF(ZIG(3,36),3);
DRAWTEXT(VAR17,10,'发现黑马'), COLORFF6600;
DRAWTEXT(VAR18,100,'发现铁顶'), COLORFF6600;
〖说明〗:STRLEFT('注意极端行情及背离指标,相反方向小心,参考日线交叉' |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!