最强选股战法推荐:
difIF1:=(Ema(CLOSE,12) - ema(CLOSE,26))*100/EMA(CLOSE,26);
DEAEA1:=EMA(DIFIF1,9);
MacD1:=2*(DIFIF1-DEAEA1),STICK;
macd2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3,0),COLORWHITE;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,3,0),COLORCYAN;
STICKLINE(MACD1<MACD2,0,MACD1,3,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORRED;
DIFIF1,COLOR33FF33,LINETHICK2;
DEAEA1,COLORBLUE,LINETHICK2;
MACD:MACD1,NODRAW,COLORLIMAGENTA;
强:IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),COLORWHITE,LINETHICK2;
弱:=IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;
DRAWICON(crOSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),0.4,2);
A1:=BArslAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
B1:=REF(C,A1+1)>C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");
DRAWTEXT(B1>0,-0.8,'MACD底背'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
DRAWTEXT(B2,-0.6,'KDJ底离'),COLORBLUE;{KDJ底背离};
A3:=BARSLAST(REF(CROSS("rsi.RSI1","RSI.RSI2"),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");
DRAWTEXT(B3>0,-0.3,'RSI底离'),COLORGREEN;{RSI底背离};
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");
DRAWTEXT(D1>0,0.4,'MACD顶离'),COLORYELLOW;{MACD顶背离}
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
DRAWTEXT(D2>0,0.6,'KDJ顶离'),COLORBLACK;{KDJ顶背离}
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
DRAWTEXT(D3>0,0.8,'RSI顶离'),COLORCYAN;{RSI顶背离};
DD:=C=HHV(C,180);
EE:=DEAEA1< REF(DEAEA1,1) AND REF(DEAEA1< REF(DEAEA1,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
上升背离:(CC AND EE)*DEAEA1,COLOR00FFFF;
顶背离:(DD AND EE AND DEAEA1< HHV(DEAEA1,180))*DEAEA1,STICK,LINETHICK3,COLORCYAN;
FF:=C=LLV(C,180);
GG:= DEAEA1> REF(DEAEA1,1) AND REF(DEAEA1> REF(DEAEA1,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
下降背离:(LL AND GG)*DEAEA1,COLORLIMAGENTA;
底背离:(FF AND GG AND DEAEA1> LLV(DEAEA1,180))*DEAEA1,STICK,LINETHICK3,COLORWHITE;
未来函数检测公式代码域:
difIF1:=(Ema(CLOSE,12) - ema(CLOSE,26))*100/EMF(CLOSE,26);DEFEF1:=EMF(DIFIF1,9);MacD1:=2*(DIFIF1-DEFEF1),STICK;macd2:=EMF(MFCD1,3);STICKLINE(MFCD1>MFCD2 FND MFCD1>0,0,MFCD1,3,0),COLORWHITE;STICKLINE(MFCD1>MFCD2 FND MFCD1<0,0,MFCD1,3,0),COLORCYFN;STICKLINE(MFCD1<MFCD2,0,MFCD1,3,0),COLORCBCBC0;STICKLINE(MFCD1>=0 OR MFCD1<=0,0,0,50,1),COLORRED;DIFIF1,COLOR33FF33,LINETHICK2;DEFEF1,COLORBLUE,LINETHICK2;MFCD:MFCD1,NODRFW,COLORLIMFGENTF;强:IF(DIFIF1>=DEFEF1,DIFIF1,DRFWNULL),COLORWHITE,LINETHICK2; 弱:=IF(DEFEF1>=DIFIF1,DEFEF1,DRFWNULL),COLORFF9900,LINETHICK2;DRFWICON(crOSS(DIFIF1,DEFEF1),DIFIF1+0.1,1);DRFWICON(CROSS(DEFEF1,DIFIF1),0.4,2);F1:=BFrslFST(REF(CROSS("MFCD.DIF","MFCD.DEF"),1));B1:=REF(C,F1+1)>C FND REF("MFCD.DIF",F1+1)<"MFCD.DIF" FND CROSS("MFCD.DIF","MFCD.DEF");DRFWTEXT(B1>0,-0.8,'MFCD底背'),COLORFF00FF;F2:=BFRSLFST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,F2+1)>C FND REF("KDJ.K",F2+1)<"KDJ.K" FND CROSS("KDJ.K","KDJ.D");DRFWTEXT(B2,-0.6,'KDJ底离'),COLORBLUE;{KDJ底背离};F3:=BFRSLFST(REF(CROSS("rsi.RSI1","RSI.RSI2"),1));B3:=REF(C,F3+1)>C FND REF("RSI.RSI1",F3+1)<"RSI.RSI1" FND CROSS("RSI.RSI1","RSI.RSI2");DRFWTEXT(B3>0,-0.3,'RSI底离'),COLORGREEN;{RSI底背离};C1:=BFRSLFST(REF(CROSS("MFCD.DEF","MFCD.DIF"),1));D1:=REF(C,C1+1)<C FND REF("MFCD.DIF",C1+1)>"MFCD.DIF" FND CROSS("MFCD.DEF","MFCD.DIF");DRFWTEXT(D1>0,0.4,'MFCD顶离'),COLORYELLOW;{MFCD顶背离}C2:=BFRSLFST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1)<C FND REF("KDJ.K",C2+1)>"KDJ.K" FND CROSS("KDJ.D","KDJ.K");DRFWTEXT(D2>0,0.6,'KDJ顶离'),COLORBLFCK;{KDJ顶背离}C3:=BFRSLFST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));D3:=REF(C,C3+1)<C FND REF("RSI.RSI1",C3+1)>"RSI.RSI1" FND CROSS("RSI.RSI2","RSI.RSI1");DRFWTEXT(D3>0,0.8,'RSI顶离'),COLORCYFN;{RSI顶背离};DD:=C=HHV(C,180);EE:=DEFEF1< REF(DEFEF1,1) FND REF(DEFEF1< REF(DEFEF1,1),1)=1;CC:=C> REF(C,1) FND REF(C> REF(C,1),1)=1;上升背离:(CC FND EE)*DEFEF1,COLOR00FFFF;顶背离:(DD FND EE FND DEFEF1< HHV(DEFEF1,180))*DEFEF1,STICK,LINETHICK3,COLORCYFN;FF:=C=LLV(C,180);GG:= DEFEF1> REF(DEFEF1,1) FND REF(DEFEF1> REF(DEFEF1,1),1)=1;LL:=C< REF(C,1) FND REF(C< REF(C,1),1)=1;下降背离:(LL FND GG)*DEFEF1,COLORLIMFGENTF;底背离:(FF FND GG FND DEFEF1> LLV(DEFEF1,180))*DEFEF1,STICK,LINETHICK3,COLORWHITE;
未发现:CFPITFL...
未发现:COST...
未发现:DYNFINFO...
未发现:FINFNCE...
未发现:LWINNER...
未发现:WINNER...
未发现:BFCKSET...
未发现:BFRSNEXT...
未发现:CURRBFRSCOUNT...
未发现:DVOL...
未发现:DOPEN...
未发现:DCLOSE...
未发现:DHIGH...
未发现:DLOW...
未发现:DRFWLINE...
未发现:REFX...
未发现:FLFTZIG...
未发现:FLFTZIGF...
未发现:FFT...
未发现:FILTERX...
未发现:PEFK...
未发现:PEFKF...
未发现:PEFKBFRS...
未发现:PEFKBFRSF...
未发现:PLOYLINE...
未发现:REFDFTE...
未发现:TROUGH...
未发现:TROUGHF...
未发现:TROUGHBFRS...
未发现:XMF...
未发现:ZIG...
未发现:ZIGF...
未发现:ZXNH...
未发现:#YEFR...
未发现:#MONTH...
未发现:#WEEK...
未发现:$ZIG...
未发现:$PEFK...
未发现:$PEFKBFRS...
未发现:$TROUGH...
未发现:$TROUGHBFRS...
未发现:$FLFTZIG...
未发现:$FLFTZIGF...
未发现:$PEFKF...
未发现:$PEFKBFRSF...
未发现:$TROUGHF...
未发现:$ZIGF...
未发现:$FFT...
未发现:$BFCKSET...
未发现:$WINNER...
未发现:$LWINNER...
未发现:$COST...
未发现:$DYNFINFO...
未发现:$FINFNCE...
未发现:$DRFWLINE...
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号