最强选股战法推荐:
{共振指标}
月K:="KDJ.K"(89,3,3),COLOR00FF00;
月D:="KDJ.D"(89,3,3),COLOR00FF00,LINETHICK2;
周K:="KDJ.K"(27,3,3),COLORWHITE;
周D:="KDJ.D"(27,3,3),COLORWHITE,LINETHICK2;
日K:="KD.K"(5,3,3),COLORRED;
日D:="KD.D"(5,3,3),COLORRED,LINETHICK2;
日金叉:IF(crOSS(日K,日D),50,0),COLORFFFFFF;
DRAWTEXT(日金叉,50,'日叉'),COLORFFFFFF;
周金叉:IF(CROSS(周K,周D),30,0),COLORWHITE;
DRAWTEXT(周金叉,30,'周叉'),COLORWHITE;
月金叉:IF(CROSS(月K,月D),20,0),COLOR0080FF;
DRAWTEXT(月金叉,20,'月叉'),COLORBLUE;
{KD在30以下多次金叉}
JM:=CROSS("KDJ.K"(5,3,3),"KDJ.D"(5,3,3));
JMCOUNT:=COUNT(JM,BArslAST("KDJ.D"(5,3,3)>=30));
JMTJ:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=1,21)=1);
DRAWTEXT (JMTJ,70,'①'),COLORRED;
JMTJ2:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=2,21)=1);
DRAWTEXT (JMTJ2,70,'②'),COLORBLUE;
JMTJ3:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=3,21)=1);
DRAWTEXT (JMTJ3,70,'③'),COLORBLUE;
JMTJ4:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=4,21)=1);
DRAWTEXT (JMTJ4,70,'④'),COLORBLUE;
JMTJ5:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=5,21)=1);
DRAWTEXT (JMTJ5,70,'⑤'),COLORBLUE;
0,COLORBLUE;
difF:=Ema(CLOSE,12)-ema(CLOSE,26);
DEA:=EMA(DIFF,9);
MacD:=2*(DIFF-DEA);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
macd底背离:=STICKLINE(FILTER(B1>0,5),0,0.75,3,0),COLORCYAN;
DRAWTEXT(FILTER(B1>0,5),0.57,'MACD底背离'),COLORCYAN;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);
KDJ底背离:=STICKLINE(FILTER(B2>0,5),0,1,3,0),COLORBLUE;
DRAWTEXT(FILTER(B2>0,5),0.89,'KDJ底背离'),COLORBLUE;
LC :=REF(CLOSE,1);
rsi1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
RSI底背离:STICKLINE(FILTER(B3>0,5),0,0.5,3,0),COLORRED;
DRAWTEXT(FILTER(B3>0,5),0.25,'RSI底背离'),COLORRED;
2,COLORWHITE;
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
MACD顶背离:STICKLINE(FILTER(D1>0,5),2,1.25,3,0),COLOR0066FF;
DRAWTEXT(FILTER(D1>0,5),1.47,'MACD顶背离'),COLOR0066FF;
C2:=BARSLAST(REF(CROSS(D,K),1));D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);
KDJ顶背离:STICKLINE(FILTER(D2>0,5),2,1,3,0),COLORWHITE;
DRAWTEXT(FILTER(D2>0,5),1.2,'KDJ顶背离'),COLORWHITE;
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
RSI顶背离:STICKLINE(FILTER(D3>0,5),2,1.5,3,0),COLORFF00FF;
DRAWTEXT(FILTER(D3>0,5),1.75,'RSI顶背离'),COLORFF00FF;
0,COLORFFA2AF;
20,COLORFFA2AF,POINTDOT;
未来函数检测公式代码域:
{共振指标}月K:="KDJ.K"(89,3,3),COLOR00FF00;月D:="KDJ.D"(89,3,3),COLOR00FF00,LINETHICK2;周K:="KDJ.K"(27,3,3),COLORWHITE;周D:="KDJ.D"(27,3,3),COLORWHITE,LINETHICK2;日K:="KD.K"(5,3,3),COLORRED;日D:="KD.D"(5,3,3),COLORRED,LINETHICK2;日金叉:IF(crOSS(日K,日D),50,0),COLORFFFFFF;DRAWTEXT(日金叉,50,'日叉'),COLORFFFFFF;周金叉:IF(CROSS(周K,周D),30,0),COLORWHITE;DRAWTEXT(周金叉,30,'周叉'),COLORWHITE;月金叉:IF(CROSS(月K,月D),20,0),COLOR0080FF;DRAWTEXT(月金叉,20,'月叉'),COLORBLUE;{KD在30以下多次金叉}JM:=CROSS("KDJ.K"(5,3,3),"KDJ.D"(5,3,3));JMCOUNT:=COUNT(JM,BArslAST("KDJ.D"(5,3,3)>=30));JMTJ:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=1,21)=1);DRAWTEXT (JMTJ,70,'①'),COLORRED;JMTJ2:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=2,21)=1);DRAWTEXT (JMTJ2,70,'②'),COLORBLUE;JMTJ3:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=3,21)=1);DRAWTEXT (JMTJ3,70,'③'),COLORBLUE;JMTJ4:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=4,21)=1);DRAWTEXT (JMTJ4,70,'④'),COLORBLUE;JMTJ5:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=5,21)=1);DRAWTEXT (JMTJ5,70,'⑤'),COLORBLUE;0,COLORBLUE;difF:=Ema(CLOSE,12)-ema(CLOSE,26);DEA:=EMA(DIFF,9);MacD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);macd底背离:=STICKLINE(FILTER(B1>0,5),0,0.75,3,0),COLORCYAN;DRAWTEXT(FILTER(B1>0,5),0.57,'MACD底背离'),COLORCYAN;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1));B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);KDJ底背离:=STICKLINE(FILTER(B2>0,5),0,1,3,0),COLORBLUE;DRAWTEXT(FILTER(B2>0,5),0.89,'KDJ底背离'),COLORBLUE;LC :=REF(CLOSE,1);rsi1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);RSI底背离:STICKLINE(FILTER(B3>0,5),0,0.5,3,0),COLORRED;DRAWTEXT(FILTER(B3>0,5),0.25,'RSI底背离'),COLORRED;2,COLORWHITE;C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);MACD顶背离:STICKLINE(FILTER(D1>0,5),2,1.25,3,0),COLOR0066FF;DRAWTEXT(FILTER(D1>0,5),1.47,'MACD顶背离'),COLOR0066FF;C2:=BARSLAST(REF(CROSS(D,K),1));D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);KDJ顶背离:STICKLINE(FILTER(D2>0,5),2,1,3,0),COLORWHITE;DRAWTEXT(FILTER(D2>0,5),1.2,'KDJ顶背离'),COLORWHITE;C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);RSI顶背离:STICKLINE(FILTER(D3>0,5),2,1.5,3,0),COLORFF00FF;DRAWTEXT(FILTER(D3>0,5),1.75,'RSI顶背离'),COLORFF00FF;0,COLORFFA2AF;20,COLORFFA2AF,POINTDOT;
未发现:CAPITAL...
未发现:COST...
未发现:DYNAINFO...
未发现:FINANCE...
未发现:LWINNER...
未发现:WINNER...
未发现:BACKSET...
未发现:BARSNEXT...
未发现:CURRBARSCOUNT...
未发现:DVOL...
未发现:DOPEN...
未发现:DCLOSE...
未发现:DHIGH...
未发现:DLOW...
未发现:DRAWLINE...
未发现:REFX...
未发现:FLATZIG...
未发现:FLATZIGA...
未发现:FFT...
未发现:FILTERX...
未发现:PEAK...
未发现:PEAKA...
未发现:PEAKBARS...
未发现:PEAKBARSA...
未发现:PLOYLINE...
未发现:REFDATE...
未发现:TROUGH...
未发现:TROUGHA...
未发现:TROUGHBARS...
未发现:XMA...
未发现:ZIG...
未发现:ZIGA...
未发现:ZXNH...
未发现:#YEAR...
未发现:#MONTH...
未发现:#WEEK...
未发现:$ZIG...
未发现:$PEAK...
未发现:$PEAKBARS...
未发现:$TROUGH...
未发现:$TROUGHBARS...
未发现:$FLATZIG...
未发现:$FLATZIGA...
未发现:$PEAKA...
未发现:$PEAKBARSA...
未发现:$TROUGHA...
未发现:$ZIGA...
未发现:$FFT...
未发现:$BACKSET...
未发现:$WINNER...
未发现:$LWINNER...
未发现:$COST...
未发现:$DYNAINFO...
未发现:$FINANCE...
未发现:$DRAWLINE...
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号