您現在的位置:程序化交易>> 股票公式>> 同花順>> 同花順公式>>正文內容

KDJ金叉自公式、源碼副圖指標公式[同花順公式]

相關標簽:

 

1、3日均線上穿5日均線金叉!
2、KDJ 日 周 月金叉起動,買入!
3、T+1操作。友情提示,要做到精確操作,指標,均線,大腦一個都不能少的運轉!
4、條件:要站上↑所以均線之上!月K:"KDJ.K"(89,3,3),COLOR00FF00;
月D:"KDJ.D"(89,3,3),coloryellow,LINETHICK2;
周K:"KDJ.K"(27,3,3),colorred;
周D:"KDJ.D"(27,3,3),colorred,LINETHICK2;
日K:"KD.K"(6,2,2),colorwhite;
日D:"KD.D"(6,2,2),colorwhite,LINETHICK2;
日金叉:IF(CROSS(日K,日D),50,0),COLORFFFFFF;
DRAWTEXT(日金叉,50,'日叉'),COLORFFFFFF;
周金叉:IF(CROSS(周K,周D),30,0),colorred;
DRAWTEXT(周金叉,30,'周叉'),colorred;
月金叉:IF(CROSS(月K,月D),20,0),coloryellow,;
DRAWTEXT(月金叉,20,'月叉'),coloryellow;
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,'①'),colorwhite;
JMTJ2:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=2,21)=1);
DRAWTEXT (JMTJ2,70,'②'),coloryellow;
JMTJ3:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=3,21)=1);
DRAWTEXT (JMTJ3,70,'③'),coloryellow;
JMTJ4:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=4,21)=1);
DRAWTEXT (JMTJ4,70,'④'),coloryellow;
JMTJ5:=28*("KDJ.D"(5,3,3)<30 AND COUNT(JMCOUNT=5,21)=1);
DRAWTEXT (JMTJ5,70,'⑤'),coloryellow;
0,coloryellow;
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),colorgreen;
DRAWTEXT(FILTER(B1>0,5),0.57,'MACD底背離'),colorgreen;
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),coloryellow;
DRAWTEXT(FILTER(B2>0,5),0.80,'KDJ底背離'),coloryellow;
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),colorwhite;
DRAWTEXT(FILTER(B3>0,5),0.25,'RSI底背離'),colorwhite;
2,colorred;
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),colorred;
DRAWTEXT(FILTER(D2>0,5),1.2,'KDJ頂背離'),colorred;
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;
50,COLORFFA2AF;
80,COLORFFA2AF,POINTDOT;
100,COLORFFA2AF;
VAR1:=MA(CLOSE,18);
VAR2:=(CLOSE-VAR1)/VAR1*100;
VAR3:=MA(VAR2,1);
黑碼王趨勢:VAR3;
VAR4:=BARSLAST(CROSS(-10,VAR3)=1);
VAR5:=BARSLAST(CROSS(VAR3,10)=1);
VAR6:=VAR3<-10 AND VAR4>=5;
VAR7:=VAR3>10 AND VAR5>=5;
C1:=IF(VAR3<-10 AND VAR4<=5,VAR3,0);
白馬王: C1, coloryellow,LINETHICK2;
C3:=IF(VAR3>10 AND VAR5<=5,VAR3,0);
黑碼王: C3,colorred,LINETHICK2;
S1:=EMA(CLOSE,3),COLOR00BB00;
S2:=EMA(CLOSE,6),COLOR00BB00;
S3:=EMA(CLOSE,9),COLOR00BB00;
S4:=EMA(CLOSE,12),COLOR00BB00;
S5:=EMA(CLOSE,15),COLOR00BB00;
S6:=EMA(CLOSE,18),COLOR00BB00;
S7:=EMA(CLOSE,21),COLOR00BB00;
S8:=EMA(CLOSE,24),COLOR00BB00;
S9:=EMA(CLOSE,27),COLOR00BB00;
S10:=EMA(CLOSE,30),COLOR00BB00;
X1:=IF(S1=REF(S1,1),0,IF(S1>REF(S1,1),1,-1));
X2:=IF(S2=REF(S2,1),0,IF(S2>REF(S2,1),1,-1));
X3:=IF(S3=REF(S3,1),0,IF(S3>REF(S3,1),1,-1));
X4:=IF(S4=REF(S4,1),0,IF(S4>REF(S4,1),1,-1));
X5:=IF(S5=REF(S5,1),0,IF(S5>REF(S5,1),1,-1));
X6:=IF(S6=REF(S6,1),0,IF(S6>REF(S6,1),1,-1));
X7:=IF(S7=REF(S7,1),0,IF(S7>REF(S7,1),1,-1));
X8:=IF(S8=REF(S8,1),0,IF(S8>REF(S8,1),1,-1));
X9:=IF(S9=REF(S9,1),0,IF(S9>REF(S9,1),1,-1));
X10:=IF(S10=REF(S10,1),0,IF(S10>REF(S10,1),1,-1));
強弱鈍化線:X1+X2+X3+X4+X5+X6+X7+X8+X9+X10,colorred;
TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' www.tumamayizhan.com '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花順程序化交易');

 

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 1145508240  點擊這里給我發消息進行 有償 編寫!不貴!點擊查看價格!

 


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
  主站蜘蛛池模板: 国产激情电影综合在线看| 日日夜夜操视频| 成人午夜免费福利视频| 亚洲欧洲精品成人久久曰影片| 色天使久久综合网天天| 国产超清在线观看| 不卡高清av手机在线观看| 最好看的2018中文字幕国语免费 | 天堂√在线官网| 久久久久成人片免费观看蜜芽| 欧美日韩亚洲一区| 免费看美女隐私直播| 骚虎影院在线观看| 性欧美69式xxxxx| 五月天国产视频| 波多野结衣456| 又大又硬又爽又深免费看| 黑人操日本美女| 国产美女在线观看| 一区二区三区视频观看| 日本免费高清一本视频| 亚洲乱妇老熟女爽到高潮的片| 用我的手指搅乱我吧第五集| 国产一区二区三区露脸| 国产女同在线观看| 影院成人区精品一区二区婷婷丽春院影视| 亚洲av无码一区二区三区观看| 波多野结衣一区二区三区高清av| 午夜福利一区二区三区在线观看| 麻豆国产精品va在线观看不卡| 强开小婷嫩苞又嫩又紧韩国视频| 久青草视频在线播放| 欧美猛男做受视频| 依依成人精品视频在线观看| 舌头伸进去里面吃小豆豆| 国产成人va亚洲电影| 三级黄色毛片视频| 在线免费观看一级毛片| 一个人看的片免费高清大全| 无码人妻丰满熟妇区bbbbxxxx| 久久这里精品国产99丫e6|