通達(dá)信【神龍妖龍起漲】主圖指標(biāo),好股吧CJM99兄弟原創(chuàng)作品,源碼! VAR1:=BARSLAST(Abs(REF(C,1)*1.1-C)<=0.01); VAR2:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0); VAR3:=C>MA(C,5) AND O<MA(C,5); VAR4:=C>MA(C,10) AND O<MA(C,10); VAR5:=C>MA(C,30) AND O<MA(C,30); VAR6:=(3*C+L+O+H)/6; VAR7:=20*VAR6+19*REF(VAR6,1)+18*REF(VAR6,2)+17*REF(VAR6,3); VAR8:=16*REF(VAR6,4)+15*REF(VAR6,5)+14*REF(VAR6,6)+13*REF(VAR6,7); VAR9:=12*REF(VAR6,8)+11*REF(VAR6,9)+10*REF(VAR6,10); VAR10:=9*REF(VAR6,11)+8*REF(VAR6,12)+7*REF(VAR6,13)+6*REF(VAR6,14); VAR11:=5*REF(VAR6,15)+4*REF(VAR6,16)+3*REF(VAR6,17)+2*REF(VAR6,18); VAR20:=(VAR7+VAR8+VAR9+VAR10+VAR11+REF(VAR6,20))/210; VAR21:=(crOSS(C,(1+11/100)*MA(C,5)) AND H=C); IF(VAR1<=10,REF((H+L)/2,VAR1),DRAWNULL),LINETHICK2,NODRAW; STICKLINE(VAR2,O,C,3,1),COLORYELLOW; STICKLINE(VAR2,H,C,0,0),COLORYELLOW; STICKLINE(VAR2,O,L,0,0),COLORYELLOW; STICKLINE(VAR2,O,C,1,0),COLORYELLOW; STICKLINE(VAR2,H,C,0,0),COLORYELLOW; STICKLINE(VAR2,O,L,0,0),COLORYELLOW; STICKLINE(C/REF(C,1)<=0.95,O,C,3,0),COLORGREEN; STICKLINE(C/REF(C,1)<=0.95,O,L,0,0),COLORGREEN; STICKLINE(C/REF(C,1)<=0.95,H,C,0,0),COLORGREEN; 獲利%:WINNER(C)*100,NODRAW,COLORWHITE; DRAWTEXT(VAR3 AND VAR5 AND VAR4,L*0.992,'←神龍'),COLORYELLOW; 主力成本:EMA(VAR20,13),COLORFF00FF,NODRAW; MA13:EMA(C,13),LINETHICK2,COLORRED; 空:IF(C<MA13,MA13,DRAWNULL),COLORGREEN,LINETHICK2; DRAWTEXT(VAR21,L*0.992,'←起漲'),COLORYELLOW; Z1:=STRCAT(HYBLOCK,' '); Z2:=STRCAT(Z1,DYBLOCK); Z3:=STRCAT(Z2,' '); DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORGRAY; DRAWTEXT_FIX(1,0,0.05,0,'流通市值Y:'),COLORLIRED; DRAWNUMBER_FIX(1,0.065,0.05,0,CONST(FINANCE(40)/100000000)),COLORLIRED; K:=EMA(C,2); K1:=EMA(K,2); K2:=EMA(K1,2); K3:=EMA(K2,2); 快:=EMA(K1,3),COLORRED,LINETHICK1; 中:=EMA(K2,5),COLORYELLOW,LINETHICK1; 慢:=EMA(K3,7),COLORBLUE,LINETHICK1; DRAWBAND(快,RGB(50,50,125),慢,RGB(0,105,0)); k線:DRAWKLINE(H,O,L,C); 重心:=(2*C+H+L)/4,COLOR00FFFF,LINETHICK0; SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2); ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2); DRAWTEXT(crOSS(ZJ,SJ) AND SJ>70 AND 快>慢 AND ((H-O)< (O-C) AND C< O) AND REF(C,1)< REF(C,2)*1.095,H+0.07,'←洗盤(pán)'),COLORGREEN; A1:=EMA(C,14),COLORWHITE,LINETHICK1; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; 突破:=REF(EMA(C,14),1),NODRAW; 距離:=(C-突破)/突破*100,NODRAW; 入場(chǎng):=IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1; 出逃:=IF(A1X< 0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1; 錢(qián)袋子:=DRAWICON(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097,L,9); 起爆點(diǎn):=DRAWTEXT(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 ,L-0.18,'←起爆')COLORBLUE; DRAWTEXT(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H,L-0.18,'好股吧WWW.CJM99.COM打首板')COLORBLUE; DRAWTEXT(CROSS(快,慢) AND C>=快 AND C>O AND C< REF(C,1)*1.095 ,O,'←買入')COLORRED; DRAWICON(REF(C,1)>REF(快,1) AND REF(C,2)>REF(快,2) AND REF(C,3)>REF(快,3) AND C< 快 AND REF(快,1)>REF(慢,1) AND REF(L,1)< REF(快,1) AND O>C,H+0.1,15); STICKLINE(CROSS(A1X,0),(C+O)/2,O,1,0),COLORRED; STICKLINE(CROSS(0,A1X),(C+O)/2,O,1,0),COLORYELLOW; MA5:=MA(CLOSE,5); MA10:=MA(CLOSE,10); 生命線:=MA(CLOSE,60),COLORRED,LINETHICK1; 上軌:=boll+2*STD(CLOSE,60); 下軌:=BOLL-2*STD(CLOSE,60); DRAWSL(快=慢,REF(H,1),0,3,0),LINETHICK2; ZTTJ:=(CLOSE>=ZTPRICE(REF(CLOSE,1),IF(FINANCE(3)=4,0.2,0.1))); 一板1:=ZTTJ AND NOT(REF(ZTTJ,1)) AND H=C AND FINANCE(42)>20; 一板:=C>REF(C,1)*1.095 AND C< REF(C,1)*1.118 AND C=H AND REF(C,1)< REF(C,2)*1.095; M1:=一板 AND V< REF(V,1); 二連板1:=((C>=ZTPRICE(REF(C,1),0.1) AND FINANCE(42)>30 AND REF(C,1)=ZTPRICE(REF(C,2),0.1)) OR (C>=ZTPRICE(REF(C,1),0.2) AND FINANCE(42)>30 AND REF(C,1)=ZTPRICE(REF(C,2),0.2)) AND NOT(REF(ZTTJ,2))); 二連板:=C>REF(C,1)*1.095 AND C< REF(C,1)*1.118 AND C=H AND REF(C,1)>REF(C,2)*1.095 AND REF(C,1)< REF(C,2)*1.118 AND REF(C,1)=REF(H,1) AND REF(C,2)< REF(C,3)*1.095; M2:=STICKLINE(二連板 AND V< REF(V,1),(O+C)/2,C,1,0),COLORRED; 三連板1:=(C>=ZTPRICE(REF(C,1),0.1) AND FINANCE(42)>20 AND REF(C,1)=ZTPRICE(REF(C,2),0.1) AND REF(C,2)=ZTPRICE(REF(C,3),0.1)) OR (C>=ZTPRICE(REF(C,1),0.2) AND FINANCE(42)>20 AND REF(C,1)=ZTPRICE(REF(C,2),0.2) AND REF(C,2)=ZTPRICE(REF(C,3),0.2)); 三連板:=C>REF(C,1)*1.095 AND C< REF(C,1)*1.118 AND C=H AND REF(C,1)>REF(C,2)*1.095 AND REF(C,1)< REF(C,2)*1.118 AND REF(C,1)=REF(H,1) AND REF(C,2)>REF(C,3)*1.095 AND REF(C,2)< REF(C,3)*1.118 AND REF(C,2)=REF(H,2); M3:=三連板 AND V< REF(V,1); MAvol1:=MA(V,5); DRAWTEXT(M3 ,H*1.2,'龍妖'),COLORRED; 夾1:=C>REF(C,1)*1.095 AND REF(C,1)< REF(C,2)*1.095 AND REF(C,2)>REF(C,3)*1.095 AND REF(C,3)< REF(C,4)*1.095; 夾2:=C>REF(C,1)*1.095 AND REF(C,1)< REF(C,2)*1.095 AND REF(C,2)< REF(C,3)*1.095 AND REF(C,3)>REF(C,4)*1.095 AND REF(C,4)< REF(C,5)*1.095; DRAWTEXT(夾2 ,L-0.09,'一進(jìn)二'),COLORYELLOW; |
|
來(lái)自: 辣辣辣豆腐干 > 《指標(biāo)公式》