当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:SWKD(同花顺指标 副图 源码 测试图)
软件名称:[B]SWKD(同花顺指标 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2023-04-07 00:01:20
软件简介:
SWKD
KD 上升20,KD下降80,超卖超卖,KD50为上升,kd50以下为下跌
N:=21;P:=3;Q:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,P,1);
D:SMA(K,Q,1);
DIFF=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA=EMA(DIFF,9);
MACD=2*(DIFF-DEA);
STICKLINE( MACD>0 AND k>d AND d>20 AND CLOSE>MA(CLOSE,5),20,21,10),colorred;
STICKLINE( d>80 ,18,19,10),colorred;
STICKLINE(MACD<0 AND k<d AND d<80 AND CLOSE<MA(CLOSE,5),20,21,10),colorgreen;
STICKLINE(d<20 ,18,19,10),colorgreen;
JCCOUNT=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
A1=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
特别提示=10;
DRAWTEXT(底背离 AND 二次金叉,特别提示,'二金'),colorred;
DRAWTEXT(NOT(二次金叉) AND 底背离,特别提示,'底背'),colorred;
DRAWTEXT(NOT(底背离) AND 二次金叉,特别提示,'二次'),colorred;
A2=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(顶背离,特别提示,'顶背'),colorgreen;
MA5:=MA(CLOSE,5);
MA8:=MA(CLOSE,8);
MA13:=MA(CLOSE,13);
MA55:=MA(CLOSE,55);
MA50:=MA(CLOSE,50);
MA60:=MA(CLOSE,60);
ma5多判断=IF((Ma5>ma50 AND ma5>ma55 AND ma5>ma60),1,0);
ma8多判断=IF((Ma8>ma50 AND ma8>ma55 AND ma8>ma60),1,0);
ma13多判断=IF((Ma13>ma50 AND ma13>ma55 AND ma13>ma60),1,0);
ma5空判断=IF(Ma5<ma50 AND ma5<ma55 AND ma5<ma60,1,0);
ma8空判断=IF(Ma8<ma50 AND ma8<ma55 AND ma8<ma60,1,0);
ma13空判断=IF(Ma13<ma50 AND ma13<ma55 AND ma13<ma60,1,0);
ma多判断=IF((MA5多判断 AND MA8多判断 AND MA13多判断),1,0);
ma空判断=IF((MA5空判断 AND MA8空判断 AND MA13空判断),1,0);
STICKLINE(ma多判断=1,79,81,10,0),colorred;
STICKLINE(ma空判断=1,79,81,10,0),colorgreen;
OBV=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/10000,colormagenta,LINETHICK1; ;
MAOBVSHORT=MA(OBV,5),colorwhite,LINETHICK2;
MAOBVMID=MA(OBV,21),coloryellow,LINETHICK1;
MAOBVLONG=MA(OBV,30),colorgreen,LINETHICK2;
STICKLINE(MAOBVSHORT>MAOBVLONG,49,51,10,0),colorred;
STICKLINE(MAOBVSHORT<MAOBVLONG,49,51,10,0),colorgreen;
STICKLINE(OPEN<CLOSE AND VOL>MA(VOL,5) AND VOL>REF(VOL,1),52,54,10,0),colorred;
STICKLINE(OPEN>CLOSE AND VOL>MA(VOL,5) AND VOL>REF(VOL,1),52,54,10,0),colorgreen;
早星a1:=ABS(CLOSE-OPEN)/OPEN<0.005 AND (HIGH-LOW)/ABS(CLOSE-OPEN)>2;
早星a2:=COUNT(早星a1,2)=1 AND COUNT(早星a1,1)=0;
早星a3:=REF(LOW,1)=LLV(LOW,13) AND REF(CLOSE,1)=LLV(CLOSE,13);
早星:=早星a2*早星a3;
DRAWTEXT(早星=1,特别提示,'早星'),colorred;
黄星a1:=ABS(CLOSE-OPEN)/OPEN<0.01 AND (HIGH-LOW)/ABS(CLOSE-OPEN)>2;
黄星a2:=COUNT(黄星a1,2)=1 AND COUNT(黄星a1,1)=0;
黄星a3:=REF(HIGH,1)=HHV(HIGH,13) AND REF(CLOSE,1)=HHV(CLOSE,13);
黄星:=黄星a2*黄星a3;
DRAWTEXT(黄星=1,特别提示,'黄星'),colorgreen;
射击:=MIN(OPEN,CLOSE)=LOW AND (HIGH-LOW)> 3*(MAX(OPEN,CLOSE)-LOW)
AND CLOSE > MA(CLOSE,5);
DRAWTEXT(射击=1,特别提示,'射击'),colorgreen;
螺旋DOWN:=OPEN>CLOSE;
螺旋x1:=COUNT(螺旋DOWN,5)=4;
螺旋X2:=(HHV(C,20)-LLV(C,1))/ LLV(C,1)/50*100;
螺旋x3:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667 AND (HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)<0.333 AND (C-O)<0.1;
螺旋x4:=V<MA(V,135);
螺旋:=螺旋X1 AND 螺旋x2 AND 螺旋x3 AND 螺旋x4;
DRAWTEXT(螺旋=1 AND HIGH>REF(HIGH,1),特别提示,'螺旋'),colorred;
DRAWTEXT(螺旋=1 AND HIGH<REF(HIGH,1),特别提示,'螺旋'),colorgreen;
三兵:=(REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND
REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1));
三鸦:=(REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND
REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1));
[url=http://www.70822.com/soft/sort013/sort036/down-167053.html]SWKD(同花顺指标 副图 源码 测试图)[/url]