1、两色主图 让买卖变得简单化!!!通达信主图指标,源码分享。不多介绍,一看就懂! N:=12; M:=26; DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M); DEA:=EMA(DIFF,9); MA(C,8),COLORWHITE; MA(C,21),COLORYELLOW; 多头:STICKLINE(DIFF>DEA,C,O,3,-1),COLORRED; STICKLINE(DIFF>DEA,H,L,0,0),COLORWHITE; 空头:STICKLINE(DIFF<=DEA,C,O,3,0),COLORWHITE; STICKLINE(DIFF<=DEA,H,L,0,0),COLORWHITE; DRAWTEXT(CROSS(DIFF,DEA),L*0.98,'买'),COLORYELLOW; DRAWTEXT(CROSS(DEA,DIFF),H*1.02,'卖'),COLORGREEN; DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA1:=EMA(DIFF1,9); MA(C,8),COLORWHITE; MA(C,21),COLORYELLOW; 多头1:STICKLINE(DIFF1>DEA1,C,O,3,0),COLORRED; STICKLINE(DIFF>DEA1,H,L,0,0),COLORRED; 空头1:STICKLINE(DIFF1<=DEA1,C,O,3,0),COLORYELLOW; STICKLINE(DIFF1<=DEA1,H,L,0,0),COLORYELLOW; DRAWTEXT(CROSS(DIFF1,DEA1),L*0.98,'买'),COLORWHITE; DRAWTEXT(CROSS(DEA1,DIFF1),H*1.02,'卖'),COLORGREEN; AA1:=AMOUNT/V; BB1:=L<AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L<MA(C,5)*0.921; EE1:=V<MA(V,5)*1.5; 介入:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(介入,L*0.99,'介入'),COLORMAGENTA; VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0); VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0); DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.98),'买'),COLORMAGENTA; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'加'),COLORMAGENTA; {逃顶} VAR33:=(CLOSE*2.5/100+CLOSE);阻力价:=HHV(HIGH,19),COLORBLUE, LINETHICK3; DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR33)AND C<O AND H>BBI,H*1.02,6); LCC:=REF(CLOSE,1); RSIC:=SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100; DRAWTEXT(CROSS(84,RSIC) , HIGH*1.03,'逃'),COLORYELLOW; {极品多空} VAR1D:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2DD:=REF(VAR1D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3D:=REF(VAR2DD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4D:=REF(VAR3D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5D:=REF(VAR4D,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6D:=REF(VAR5D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7D:=REF(VAR6D,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8D:=REF(VAR7D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9D:=REF(VAR8D,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARAD:=REF(VAR9D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARBD:=REF(VARAD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARCD:=REF(VARBD,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARDD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARED:=REF(VARDD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARFD:=REF(VARED,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10D:=REF(VARFD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11D:=REF(VAR10D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12D:=REF(VAR11D,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13D:=REF(VAR12D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14D:=REF(VAR13D,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15D:=REF(VAR14D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16D:=REF(VAR15D,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17D:=REF(VAR16D,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18D:=REF(VAR17D,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR19D:=REF(VARDD OR VARED OR VARFD OR VAR10D OR VAR11D OR VAR12D OR VAR13D OR VAR14D OR VAR15D OR VAR16D OR VAR17D OR VAR18D,1) AND VAR1D; STICKLINE(VAR19D,REF(CLOSE,1),REF(CLOSE,2),3.0,0),COLOR0088FF; STICKLINE(VAR19D,REF(CLOSE,1),REF(CLOSE,2),2.0,0),COLOR33AAFF; STICKLINE(VAR19D,REF(CLOSE,1),REF(CLOSE,2),0.5,0),COLOR66CCFF; VAR1AD:=REF(VAR1D OR VAR2DD OR VAR3D OR VAR4D OR VAR5D OR VAR6D OR VAR7D OR VAR8D OR VAR9D OR VARAD OR VARBD OR VARCD,1) AND VARDD; STICKLINE(VAR1AD,REF(CLOSE,1),REF(CLOSE,2),3.0,0),COLOR008800; STICKLINE(VAR1AD,REF(CLOSE,1),REF(CLOSE,2),2.0,0),COLOR00BB00; STICKLINE(VAR1AD,REF(CLOSE,1),REF(CLOSE,2),0.5,0),COLOR00EE00; 2、分时乾坤线仿制 本公式是仿制药组装,非原创 本指标纯属娱乐工具,仅适合小白折腾,高手拐弯直走,请不要用于其他商业用途。 萝卜青菜各有所爱,不保证你满意,最好是自己动手!( 顶尖财经 股票学院: http://www.58188.com ) 这个指标貌似在帖里出现过,曾经有人号称10分钟搞定过,他们都认为此指标能赚大钱,不能分享!唉,有手艺的人就是容易藏着掖着,俺们小白老汉只能推车,真是一筹莫展了呢! 他有个好指标,你与他要他不给,你知道此时的滋味,现在你有了你也不给,我们的滋味跟你是一样一样的!希望你能发扬光大并弘扬论坛精神! 最新:C,COLORFFFF00,LINETHICK5; IF(C>=REF(C,1),C,DRAWNULL),COLOR0000FF,LINETHICK5; AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C)); BB:=BETWEEN(C/AA,C+H,C-H); DRAWICON(ISLASTBAR AND C>REF(C,1),C,1); DRAWICON(ISLASTBAR AND C<REF(C,1),C,2); MD:=EMA(C,0)-EMA(C,5); 所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT('[行业]-',HYBLOCK),STRCAT(' [地域]-', DYBLOCK)),STRCAT(' [概念]-',GNBLOCK))); 总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿'); 流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿'); 全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2)); 市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿'); 股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值)); {业绩} 净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(29)/FINANCE(19)*100,2)); 毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)); 主营利润率:=STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2)); 当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(净资收益率,毛利率),主营利润率)); {主图显示} DRAWTEXT_FIX(ISLASTBAR,0.020,0.700,0,所属板块),COLORRED; DRAWTEXT_FIX(ISLASTBAR,0.020,0.800,0,股本市值),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.020,0.900,0,当前业绩),COLORGREEN; 绝密线:EXPMA(C,17),COLORRED,LINETHICK1; 乾坤线:EXPMA(EXPMA(CLOSE,50),1),LINETHICK1,COLORBLUE; IF(乾坤线>=REF(乾坤线,1),乾坤线,DRAWNULL),COLORYELLOW,LINETHICK1; 买入:DRAWICON(CROSS(绝密线,乾坤线),乾坤线,34); 卖出:DRAWICON(CROSS(乾坤线,绝密线),乾坤线,35); DRAWTEXT_FIX(1,0.70,0.55,0,STRCAT('净流入(万元):= ',CON2STR(ZJBY.净流入#DAY,2))),COLORWHITE; DRAWTEXT_FIX(1,0.70,0.62,0,STRCAT('超大单(万元):= ',CON2STR(ZJBY.超大单#DAY,2))),COLORRED; DRAWTEXT_FIX(1,0.70,0.69,0,STRCAT('大单(万元):= ',CON2STR(ZJBY.大单#DAY,2))),COLORGREEN; DRAWTEXT_FIX(1,0.70,0.76,0,STRCAT('中单(万元):= ',CON2STR(ZJBY.中单#DAY,2))),COLORMAGENTA; DRAWTEXT_FIX(1,0.70,0.83,0,STRCAT('小单(万元):= ',CON2STR(ZJBY.小单#DAY,2))),COLORCYAN; {开盘后30分钟最高最低价} NN:=BARSLAST(TIME2=100000); ZSC:=BARSCOUNT(C); GJ:=IF(ZSC=30,HHV(HIGH,30),0); DJ:=IF(ZSC=30,LLV(LOW,30),0); {最高价1:=DRAWLINE(GJ,GJ,REF(GJ,1),REF(GJ,1),1),COLORMAGENTA,DOTLINE;} {最低价1:=DRAWLINE(DJ,DJ,REF(DJ,1),REF(DJ,1),1),COLORGREEN,DOTLINE;} 最高价30:IF(TIME2<=100000,HHV(H,FROMOPEN),REF(GJ,NN)),COLORMAGENTA,DOTLINE; 最低价30:IF(TIME2<=100000,LLV(LOW,FROMOPEN),REF(DJ,NN)),COLORCYAN,DOTLINE; DRAWTEXT(ISLASTBAR,最高价30,CON2STR(最高价30,2)),COLORMAGENTA; DRAWTEXT(ISLASTBAR,最低价30,CON2STR(最低价30,2)),COLORCYAN; 开盘:DYNAINFO(4),COLORLICYAN,LINETHICK2; RQ:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1; JY:=BARSLAST((RQ-REF(RQ,1))!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1; MA1:=REF(C,JY); MA2:=REF(MA1,JY); MA3:=REF(MA2,JY); MA4:=REF(MA3,JY); MA5:=REF(MA4,JY); MA6:=REF(MA5,JY); MA7:=REF(MA6,JY); MA8:=REF(MA7,JY); MA9:=REF(MA8,JY); CK:REFDATE((C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10,DATE),COLORMAGENTA,LINETHICK2; DRAWTEXT(ISLASTBAR,CK,'--- --- --- --- 参考线'),COLORAC59FF; 超大单:="ZJBY.超大单#DAY"; 大单:="ZJBY.大单#DAY"; 中单:="ZJBY.中单#DAY"; 小单:="ZJBY.小单#DAY"; ZDZ:=MAX(MAX(ABS(超大单),ABS(大单)),MAX(ABS(中单),ABS(小单))); M1:=超大单/ZDZ*300; M2:=大单/ZDZ*300; M3:=中单/ZDZ*300; M4:=小单/ZDZ*300; DRAWRECTREL(850,500-M1,870,500,RGB(255,0,0)); DRAWRECTREL(875,500-M2,895,500,RGB(0,255,0)); DRAWRECTREL(900,500-M3,920,500,RGB(255,0,255)); DRAWRECTREL(925,500-M4,945,500,RGB(0,255,255)); 3、精准2.0版主图 DRAWTEXT_FIX(1,0.7,0,0,'所属板块:'),COLORFF6000; DRAWTEXT_FIX(1,0.77,0,0,HYBLOCK),COLORRED; DRAWTEXT_FIX(1,0.835,0,0,DYBLOCK),COLORYELLOW; 总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿'); 流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿'); 全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2)); 市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿'); 上市日期:=STRCAT(' 上市日期: ',CON2STR(FINANCE(42),0)); 股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期)); 市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2)); 市销率:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2)); 市净率:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2)); 净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2)); 毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)); 净利润率:=STRCAT(' 净利润率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2)); 主营利润率:=STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2)); 当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率)); X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2; X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替}; X3:=FINANCE(23)/FINANCE(10)*3.3; X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额} X5:=FINANCE(20)/FINANCE(15)*0.999; Z值:=X1+X2+X3+X4+X5; 预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警')); 财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3)))); 优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越大越好但不同行业有不同标准}; 现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准}; 财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比)); DRAWTEXT_FIX(ISLASTBAR,0.005,0.01,0,财务系数),COLOR888888; DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,当前业绩),COLOR888888; DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,股本市值),COLOR888888; DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C); MA5:MA(CLOSE,5),COLORWHITE; MA10:MA(CLOSE,10),COLORYELLOW; MA20:MA(CLOSE,24),COLORMAGENTA; MA60:MA(CLOSE,60),COLORGREEN; MA120:MA(CLOSE,120),COLORLIMAGENTA; MA240:MA(CLOSE,240),COLORBLUE; DRAWICON(CROSS(MA10,MA20),MA20,1); {10日上穿20日做记号} DRAWICON(CROSS(MA20,MA60),MA60,1); {20日上穿60日做记号} DRAWICON(CROSS(MA20,MA120),MA120,1); {20日上穿60日做记号} DRAWICON(CROSS(MA20,MA240),MA240,1);{20日上穿120日做记号} DRAWICON(CROSS(MA60,MA120),MA60,1); {60日上穿120日做记号} DRAWICON(CROSS(MA60,MA240),MA240,1); {60日上穿240日做记号} DRAWICON(CROSS(MA120,MA240),MA240,1);{120日上穿240日做记号} DRAWICON(CROSS(MA10,MA5),MA10,2); {5日下穿10日做记号} DRAWICON(CROSS(MA20,MA10),MA20,2); {10日下穿20日做记号} DRAWICON(CROSS(MA60,MA20),MA60,2); {20日下穿60日做记号} DRAWICON(CROSS(MA120,MA60),MA60,2); {60日下穿120日做记号} 背后换手:=MA5>MA20 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20); 曲棍形转步:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20); 迂回步:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60); 换位:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60); 扇形位:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120); 下腰:=MA60<MA120 AND MA60<MA120 AND CROSS(MA120,MA60); 拂步:=MA120>MA240 AND MA120>MA240 AND CROSS(MA120,MA240); 纽约步:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20); DRAWTEXT(纽约步,MA20-0.08,'纽约步'),COLORMAGENTA; DRAWTEXT(背后换手,MA20-0.08,'背后换手'),COLORMAGENTA; DRAWTEXT(曲棍形转步 ,MA20-0.2,'曲棍形转步'),COLORMAGENTA; DRAWTEXT(迂回步,MA60-0.0.08,'迂回步'),COLORMAGENTA; DRAWTEXT(换位,L+0.015,'换位'),COLOR36C0C1; DRAWTEXT(扇形位,MA120-0.08,'扇形位'),COLORRED; DRAWTEXT(下腰,MA60+0.08,'下腰'),COLORGREEN; DRAWTEXT(拂步,MA240-0.08,'拂步'),COLORRED; 双重:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10); DRAWTEXT(双重,MA20+0.012,'双重'),COLORYELLOW; VOL5:=MA(VOL,5),COLORWHITE; VOL10:=MA(VOL,10),COLORYELLOW; VOL40:=MA(VOL,40),COLORFF00FF ; 追逐步:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(追逐步,L-0.012,'追逐步'),COLORWHITE; AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10)); BB1:=REF(COUNT(C<MA60,AA1)=AA1,1); CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3; 刚劲挺拔:=BB AND CC1,COLORFF6000; DRAWTEXT(刚劲挺拔,H+0.12,'刚劲挺拔'),COLORFF6000; STICKLINE(刚劲挺拔,H,L,0.5,1),COLORFF6000; STICKLINE(刚劲挺拔,O,C,4,1),LINETHICK2,COLORFF6000; MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,30); ZJ:=AMOUNT/10000;{资金} TM:=V-MA(V,10);{量填满} 连接步:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ; DRAWTEXT(连接步,L-0.012,'连接步'),COLORFF00FF; C6:=REF(C,1); 涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA; STICKLINE(涨停,H,L,0,0),COLORLIRED; {压力一} 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)),COLOR00FF00,POINTDOT; STICKLINE(C,前期高位,前期高位,8,0),COLORYELLOW; |