现发一组组合指标源码与同学们共享。当三指标发生共振时,颇具实站价值(通达信能通过
1.苦笑脸(修改优化版主图)
MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
G1:=IF(-MMS>95,0,20);
UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);
KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);
AA:=-100*(趋势线-CLOSE)/趋势线;
AC:=(EMA(AA,5) );
SSL:=EMA(CLOSE,3);
MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
MM:=MA(MMV,1);
STICKLINE(((SSL>MM)),SSL,MM,0,0),COLORCDCDCD;
SA:=(MM*0.985);
SS:=(MA(CLOSE,5));
DD:=(MA(CLOSE,13));
GG:=(MA(CLOSE,21));
捞钱手:IF(((SSL>MM)),MM,SA),COLOR0000FF,LINETHICK1;
{IF(SSL<MM,捞钱手,DRAWNULL),COLORFFFFFF,LINETHICK2;}
能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));
上开:=O;
上收:=C;
上高:=H;
上低:=L;
JJ:=(上开+上高+上低)/3;
A:=EMA(JJ,4);
智能黄金线:A,COLORYELLOW,LINETHICK1;
B:=REF(A,1);
STICKLINE(((SSL<MM)),捞钱手,智能黄金线,0,0),COLORBLUE;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,5) ,LINETHICK1,COLORRED;
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,4);
DRAWICON(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.97,5),COLOR00FF00;
选手A:=MA(上收,3);
箱顶A:=MA(REF(HHV(上收,6),1),3);
箱底A:=MA(REF(LLV(上收,3),1),3);
T1:=MA(上收,20)>=REF(MA(上收,20),1);
T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;
T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;
选手:=MA(上收,2);
箱顶:MA(REF(HHV(上收,30),1),2),COLORCDCDCD,LINETHICK1;
箱底:MA(REF(LLV(上收,30),1),2),COLORBLUE,LINETHICK1;
T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;
T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;
VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
{DRAWTEXT(VAR3 >=VAR4 ,箱顶,'--中期好'),COLOR00FFFF;
DRAWTEXT(VAR3<VAR4 ,箱顶,'--中期坏'),COLORF0F000;
DRAWTEXT(A>B ,箱底,'--短期好'),COLOR00FFFF;
DRAWTEXT(A<B ,箱底,'--短期坏'),COLORF0F000;}
DRAWICON(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,LOW*0.96,5),COLORF00FF0;
STICKLINE(C=O,C,O,2,1),COLORRED;
STICKLINE(C=O,H,L,0,1),COLORRED;
STICKLINE(C<=O,C,O,2,0),COLORDDFF4F;
STICKLINE(C<=O,H,L,0,0),COLORDDFF4F;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;
---------------------------------------------------------------------------------------------------------
2.海洋寻底副图
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=(SSRCJE / SSRCJL)/100;
SSRGL:=((CLOSE - SSRCBJX)/SSRCBJX) * 100;
绝对底:IF(SSRGL<-18,20,0),COLORRED;
大底:IF(SSRGL<-14,15,0),COLORBLUE;
中底:IF(SSRGL<-10,10,0);
短底:(SSRGL<-6)*5;
STICKLINE((SSRGL < - 18),60,80,3,0),COLORRED;
STICKLINE((SSRGL < - 14),40,60,3,0),COLORBLUE;
STICKLINE((SSRGL < - 10),20,40,3,0),COLORYELLOW;
STICKLINE((SSRGL < - 6),0,20,3,0),COLORWHITE;
高卖:80, POINTDOT,COLORRED;
低吸:20, POINTDOT,COLORGREEN;
VAR1:=LLV(LOW,5);
VAR2:=HHV(HIGH,5);
牛线: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,4),COLORRED,LINETHICK2;
熊线: EMA(0.667*REF(牛线,1)+0.333*牛线,2),COLORGREEN,LINETHICK2;
-----------------------------------------------------------------------------------------------------------
3.超级波段
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100 ;
VAR7:=VAR5*100 ;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
B:ZIG(3,10)*100,COLORFF00FF;
G:MA(B,2),COLORFFFF00;
D:CROSS(B,G)*1000,COLORRED;
W:CROSS(G,B)*1000,COLORGREEN;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20; |