横扫强势主图A 冲破天 加选股指标

[复制链接]
查看39 | 回复0 | 2022-7-24 06:41:02 | 显示全部楼层 |阅读模式

横扫强势主图A 冲破天

主图源码:
DRAWTEXT_FIX(ISLASTBAR,0.1058,0,1,DYBLOCK),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.1258,0,0,HYBLOCK),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.1858,0,0,GNBLOCK),COLORYELLOW;
市值:(CAPITAL/100*C)/10000,NODRAW,COLORYELLOW;
 MA5:MA(C,5);
 MA10:MA(C,10);
 MA20:MA(C,20);
 MA30:MA(C,30);
枪神跑道:HHV(MA((HIGH),6),10),LINETHICK2,COLORGREEN;
 DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,10))),(MA(CLOSE,5)),'★');
 DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,13))),(MA(CLOSE,5)),'★');
 DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,18))),(MA(CLOSE,5)),'★');
 DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,20))),(MA(CLOSE,5)),'★');
 DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,25))),(MA(CLOSE,5)),'★');
 DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,30))),(MA(CLOSE,5)),'★');
 DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,13))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
 DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,18))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
 DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,20))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
 DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,25))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
 DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,30))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
 DRAWTEXT(CROSS((MA(CLOSE,20)),(MA(C,25))),(MA(CLOSE,20)),'★'),COLORGREEN,LINETHICK1;
 DRAWTEXT(CROSS((MA(CLOSE,20)),(MA(C,30))),(MA(CLOSE,20)),'★'),COLORGREEN,LINETHICK1;
 RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
 KK1:=REF(RSV,1);KK2:=REF(RSV,2);KA:=RSV;KK3:=REF(RSV,3);KK4:=REF(RSV,4);KK5:=REF(RSV,5);
 KK80:=3*80-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)*KK3+POW(2/3,4)*KK4+3*POW(2/3,5)*KK5);
 KKK80:=SMA((KK80*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
交叉:=3*SMA(SMA(KA,3,1),3,1)-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)*KK3+POW(2/3,4)*KK4+3*POW(2/3,5)*KK5);
 K转折:=3*SMA(KA,3,1)-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)*KK3+POW(2/3,4)*KK4+3*POW(2/3,5)*KK5);
 K转折价0:=SMA((K转折*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
日交叉0:=SMA((交叉*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
 S:DRAWTEXT(K转折价0>=KKK80 AND K转折价0>=日交叉0,日交叉0,'◆'),COLORWHITE;
下面是副图指标:
冲破天:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:=EMA(DIFF,9);
 MACD:=2000* (2*(DIFF-DEA))/EMA(C,30),LINETHICK0;
 A:STICKLINE(MACD>=0 AND MACD>REF(MACD,1),0,MACD,3,0),COLORRED;
 B:=EMA(REF(CLOSE,1),4);
红色启动:=(SMA(MAX(CLOSE-B,0),6,1)/SMA(ABS(CLOSE-B),6,1)*100);
天线:50,COLORGREEN,LINETHICK2;
 

 

 

加选股指标

 

RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
 KK1:=REF(RSV,1);KK2:=REF(RSV,2);KA:=RSV;KK3:=REF(RSV,3);KK4:=REF(RSV,4);KK5:=REF(RSV,5);
 KK80:=3*80-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)*KK3+POW(2/3,4)*KK4+3*POW(2/3,5)*KK5);
 KKK80:=SMA((KK80*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
交叉:=3*SMA(SMA(KA,3,1),3,1)-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)*KK3+POW(2/3,4)*KK4+3*POW(2/3,5)*KK5);
 K转折:=3*SMA(KA,3,1)-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)*KK3+POW(2/3,4)*KK4+3*POW(2/3,5)*KK5);
 K转折价0:=SMA((K转折*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
日交叉0:=SMA((交叉*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
 S:=K转折价0>=KKK80 AND K转折价0>=日交叉0;
 A:=CROSS((MA(CLOSE,10)),(MA(C,13)));
 XG:A AND S;

 

650177985.jpg

650177985.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则