指標(biāo)公式匯總?cè)缦拢ㄍㄟ_(dá)信版本): 一、主圖、副圖指標(biāo)公式: 1、主圖: EMA5:EMA(C,5),COLORWHITE; EMA13:EMA(C,13),COLORYELLOW; EMA34:EMA(C,34),COLORF00FF0; EMA55:EMA(C,55),COLORGREEN; AA05:=EMA5; 角度1:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416; AA051:=EMA13; 角度2:=ATAN((AA051/REF(AA051,1)-1)*100)*180/3.1416; AA052:=EMA34; 角度3:=ATAN((AA052/REF(AA052,1)-1)*100)*180/3.1416; IF(角度1>60,EMA5,DRAWNULL),COLORRED,LINETHICK1; IF(角度2>45,EMA13,DRAWNULL),COLORRED,LINETHICK1; IF(角度3>30,EMA34,DRAWNULL),COLORRED,LINETHICK1; 漲停:=IF(REF(C,1)*1.1-C<0.01 ,1,0); STICKLINE(漲停,OPEN,CLOSE,2.5,0),COLORYELLOW; S1:="DMI.PDI"; S2:=S1>EMA(EMA(EMA(S1,2),2),2); S3:= C/REF(C,1)>1.05; DRAWTEXT(BETWEEN(DMI.PDI,37,45) AND S3 AND S2,L*0.98,'↖亮劍'),COLORYELLOW; DRAWTEXT(BETWEEN(DMI.PDI,45,50)AND S3 AND S2,L*0.98,'↖小牛'),COLORYELLOW; DRAWTEXT(BETWEEN(DMI.PDI,50,53)AND S3 AND S2,L*0.98,'↖大牛'),COLORYELLOW; DRAWTEXT(DMI.PDI>53 AND S3 AND S2, L*0.98,'↖瘋牛'),COLORYELLOW; DRAWTEXT(REF(DMI.ADX,1)>50 AND CROSS(REF(DMI.ADX,1),DMI.ADX),H*1.01,'↙變盤'),COLORMAGENTA; DRAWTEXT(REF(DMI.PDI,1)>53 AND CROSS(REF(DMI.PDI,1),DMI.PDI),H*0.98,'←大頂'),COLORGREEN; DRAWTEXT(REF(DMI.PDI,1)<7 AND CROSS(DMI.PDI,REF(DMI.PDI,1)),L*1.02,'←大底'),COLORRED; {通達(dá)信文字指標(biāo)} 所屬板塊:=STRCAT('所屬板塊: ',STRCAT(STRCAT(STRCAT('[行業(yè)]-',HYBLOCK),STRCAT(' [地域]-',DYBLOCK)),STRCAT(' [概念]-',GNBLOCK))); 總股本:=STRCAT(STRCAT('總股本: ',CON2STR(TOTALCAPITAL/1000000,3)),'億股'); 流通盤:=STRCAT(STRCAT('流通盤: ',CON2STR(CAPITAL/1000000,3)),'億股'); 每股收益:=STRCAT(STRCAT('每股收益: ',CON2STR(FINANCE(29)/FINANCE(1),2)),'元'); 每股未分配:=STRCAT(STRCAT('每股未分配: ',CON2STR(FINANCE(32),2)),'元'); 每股公積金:=STRCAT(STRCAT('每股公積金: ',CON2STR(FINANCE(18),2)),'元'); 每股凈資產(chǎn):=STRCAT(STRCAT('每股凈資產(chǎn): ',CON2STR(FINANCE(34),2)),'元'); 總市值:=STRCAT(STRCAT('總市值: ',CON2STR(FINANCE(1)*C/100000000,3)),'億元'); 市值:=STRCAT(STRCAT('流通值: ',CON2STR((CAPITAL/1000000)*C,3)),'億元'); SHI:INTPA RT(DATE+19000000),NODRAW; 上市日期:=STRCAT(' 上市日:',CON2STR(SHI,0)); 收入同比增長(zhǎng):=STRCAT(STRCAT('收入同比增長(zhǎng): ',CON2STR(FINANCE(44),2)),'%'); 市盈率:=STRCAT('市盈率: ',CON2STR(DYNAINFO(39),2)); 主營(yíng)毛利潤(rùn)率:=STRCAT(STRCAT('主營(yíng)毛利潤(rùn)率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%'); 主營(yíng)凈利潤(rùn)率:=STRCAT(STRCAT('主營(yíng)凈利潤(rùn)率: ',CON2STR(FINANCE(30)/FINANCE(20)*100,2)),'%'); 主營(yíng)利潤(rùn)率:=STRCAT(' 主營(yíng)利潤(rùn)率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2)); 凈利同比增長(zhǎng):=STRCAT(STRCAT('凈利同比增長(zhǎng): ',CON2STR(FINANCE(43),2)),'%'); DRAWTEXT_FIX(ISLASTBAR,0.002,0,0,'上市日期:'),COLORMAGENTA; DRAWNUMBER_FIX(ISLASTBAR,0.037,0,0,SHI),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.002,0.05,0,所屬板塊),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.002,0.10,0,總股本),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.127,0.10,0,收入同比增長(zhǎng)),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.257,0.10,0,每股收益),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.002,0.15,0,流通盤),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.127,0.15,0,主營(yíng)毛利潤(rùn)率),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.257,0.15,0,每股凈資產(chǎn)),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.002,0.20,0,總市值),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.127,0.20,0,主營(yíng)凈利潤(rùn)率),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.257,0.20,0,每股未分配),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.002,0.25,0,市值),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.127,0.25,0,凈利同比增長(zhǎng)),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.257,0.25,0,每股公積金),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.002,0.25,0,市盈率),COLORCYAN; HSL:=100*VOL/(FINANCE(7)/100); 換手:=STRCAT(STRCAT('換手: ',CON2STR(HSL,2)),'%'); DRAWTEXT_FIX(ISLASTBAR,0.85,0.95,0,換手),COLORMAGENTA; CJ:=DYNAINFO(10)/100000000; 成交:=STRCAT(STRCAT('成交: ',CON2STR(CJ,2)),'億'); DRAWTEXT_FIX(ISLASTBAR,0.85,1,0,成交),COLORMAGENTA; 2、副圖: TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1))))); MTIME:=MOD(FROMOPEN,TOTAL); CTIME:=IF(MTIME<0.5,TOTAL,MTIME); VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW; STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK; 日收盤:=C#DAY;日最高:=H#DAY;日最低:=L#DAY; 漲停:=IF(REF(日收盤,1)*1.095-日收盤<0.01 ,1,0) AND 日收盤=日最高 ; CE3:=REF(日收盤,1); 跌停:=IF((CE3-日收盤)*100/CE3>=(10-0.01*100/CE3),1,0) AND 日收盤=日最低; STICKLINE(漲停,0,V,2.5,0),COLORYELLOW;{如果太大或太小,調(diào)整3的數(shù)值大小就可以}; AA:=VOL>REF(V,1)*2.0; STICKLINE(AA,0,V,1.25,0),COLORMAGENTA; 二、盤中常用預(yù)警公式: 每一小段是一個(gè)公式,上面是程式,下面是公式名稱。 C>=REF(C,1)*1.05; ↑漲5點(diǎn) C<=REF(C,1)*0.96; ↓跌4點(diǎn) C>REF(HHV(H,0),1); ↑歷史新高 C>=HHV(H,20); ↑20日新高 TY:=C; A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); 前期高位:=REF(C,BARSLAST(HD)); CROSS(C,前期高位); ↑前期新高 C>=REF(C,1)*1.1; ↑↑漲停 C<=REF(C,1)*0.90; ↓↓跌停 AA:=IF(PERIOD=0,C*V,AMOUNT/100); TT:=BARSCOUNT(C); CROSS(C,SUM(AA,TT)/SUM(V,TT)) ; ↗上穿 S1:="DMI.PDI"; S2:=S1>EMA(EMA(EMA(S1,2),2),2); S3:=DYNAINFO(4)>0; BETWEEN(DMI.PDI,37,45) AND S2 AND S3; ↗亮劍 S1:="DMI.PDI"; S2:=S1>EMA(EMA(EMA(S1,2),2),2); BETWEEN(DMI.PDI,45,50) AND S2; ↗小牛 S1:="DMI.PDI"; S2:=S1>EMA(EMA(EMA(S1,2),2),2); BETWEEN(DMI.PDI,50,53) AND S2; ↗大牛 S1:="DMI.PDI"; S2:=S1>EMA(EMA(EMA(S1,2),2),2); DMI.PDI>=53 AND S2; ↗瘋牛 C>=REF(C,1)*1.08; ↑準(zhǔn)備打板 REF(L,1)<=REF(O,1)*0.95 AND REF(C,1)>=REF(L,1)*1.05 AND C>=REF(H,1); $$大長(zhǎng)腿 C>=REF(C,2)*1.185; ¥打2板 C>=REF(C,3)*1.30; ¥打3板 三、復(fù)盤常用公式 與上面的預(yù)警公式是通用的,僅僅是側(cè)重點(diǎn)不同,有重復(fù)的,但還是集中貼一下。 S1:=NOT(C>=REF(C,1)*1.095 AND C=O AND H=L); S2:=DYNAINFO(4)>0; S3:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0,1); S4:=FINANCE(42)>1; H=HHV(H,0) AND S1 AND S2 AND S3 AND S4; //歷史新高 S1:=NOT(C>=REF(C,1)*1.0994 AND C=O AND H=L); A:=C/REF(C,1)>1.0994 AND S1; COUNT(A,2)=2; ++2連板(換) S2:=DYNAINFO(4)>0;{剔除停牌股} S4:=FINANCE(42)>1;{剔除首日上市新股} L=LLV(L,180) AND S2 AND S4; !新低 S1:=NOT(C>=REF(C,1)*1.095 AND C=O AND H=L);{剔除一字板} S2:=DYNAINFO(4)>0;{剔除停牌股} ZT:=(CLOSE/REF(CLOSE,1)-1)*100; A1:=ZT>9.93 AND CLOSE=HIGH; XG:REF(A1,1) AND S1 AND S2; **昨日漲停 ZTJ:=ZTPRICE(REF(CLOSE,1),0.1); CB:H=ZTJ AND C //沖板未封 S1:=NOT(C>=REF(C,1)*1.094 AND C=O AND H=L);{剔除一字板} S2:=DYNAINFO(4)>0;{剔除停牌股} S4:=FINANCE(42)>1;{剔除首日上市新股} XG:L>REF(H,1) AND C/REF(C,1)>1.03 AND C/REF(C,1)<1.0994 AND S1 AND S2 AND S4 ; 跳空缺口 (REF(H,1)-MAX(REF(C,1),REF(O,1)))/(REF(H,1)-REF(L,1))>0.7 AND (MIN(O,C)-L)/(H-L)>0.7; //揉搓線 (H-MAX(C,O))/(H-L)>0.5 AND C/REF(C,1)>1.02 AND V/REF(V,1)>1.5 AND (H-L)/REF(C,1)*100>5; //長(zhǎng)上引 (MIN(O,C)-L)/(H-L)>0.7 AND (H-L)/REF(C,1)*100>5 ; //長(zhǎng)下引 |
|