您好,欢迎访问三七文档
当前位置:首页 > 金融/证券 > 股票报告 > 【股票指标公式下载】-【大智慧】综合组图(月价、季托、量托、背离
【大智慧】综合组图(月价、季托、量托、背离、顶底提示)-指标公式源码M3:MA(C,3);M5:=MA(C,5);M8:=MA(C,8);M11:MA(C,11);M16:=MA(C,16);M32:=MA(C,32);M55:MA(C,55);M89:MA(C,89);M144:MA(C,144);M233:MA(C,233);M512:MA(C,512);M1024:=MA(C,1024);月价托:m5m16andm5m8andcross(m8,m16),coloryellow,linethick0;季价托:m16m55andm16m32andcross(m32,m55),colorf00ff0,linethick0;短、长价托:m5m55andm5m8andcross(m8,m55),colorred,linethick0;drawtext(月价托,l,'月价托'),coloryellow;stickline(月价托,l,h,0.5,1),coloryellow;stickline(月价托,o,c,5,1),linethick3,coloryellow;drawtext(季价托,l,'季价托'),colorf00ff0;stickline(季价托,l,h,0.5,1),colorf00ff0;stickline(季价托,o,c,5,1),linethick3,colorf00ff0;drawtext(短、长价托,l,'短、长价托'),color36c0c1;stickline(短、长价托,l,h,0.5,1),color36c0c1;stickline(短、长价托,o,c,5,0),linethick3,color36c0c1;vol1:=MA(VOL,5);vol2:=MA(VOL,10);vol3:=MA(VOL,20);量托:vol1=vol3andcross(vol2,vol3)andref(vol2,1)ref(vol3,1),linethick0;drawtext(量托,l,'▲'),colorwhite;drawtext(量托,l*0.97,'量托'),colorwhite;stickline(量托,l,h,0.5,1),colorwhite;stickline(量托,o,c,5,1),linethick3,colorwhite;DRAWTEXTREL(4,20,'板块:'+BKNAME),LINETHICK1,COLORFFFFFF;DRAWTEXTABS(4,20,'流通盘:'+capital/1000000+'亿(小盘股5个亿中盘股10亿大盘股)'),COLOR00FF00,linethick1;BDGD:=C=HHV(C,13);GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;高点:REF(C,GDSJ),COLORFF00FF,POINTDOT,LAYER0;突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,LINETHICK0;STICKLINE(GDSJ=6,高点,高点,8,0),COLORFF00FF,LAYER0;DRAWTEXT(突破,LOW,'↑'),COLOR00FFFF,ALIGN1;BDDD:=C=LLV(C,13);DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;低点:REF(C,DDSJ),COLOR00FF00,POINTDOT,LAYER0;STICKLINE(DDSJ=6,低点,低点,8,0),COLOR00FF00,LAYER0;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)CANDREF(DIFF,A1+1)DIFFANDCROSS(DIFF,DEA);DRAWTEXT(FILTER(B10,5),L*0.91,'M底'),COLORGREEN;{MACD底背离}A2:=BARSLAST(REF(CROSS(KDJ.K(9,3,3),KDJ.D(9,3,3)),1));B2:=REF(C,A2+1)CANDREF(KDJ.K(9,3,3),A2+1)KDJ.K(9,3,3)ANDCROSS(KDJ.K(9,3,3),KDJ.D(9,3,3));DRAWTEXT(FILTER(B20,3),L*0.93,'K底'),COLORYELLOW;{KDJ底背离}A3:=BARSLAST(REF(CROSS(RSI.RSI1(6,12,24),RSI.RSI2(6,12,24)),1));B3:=REF(C,A3+1)CANDREF(RSI.RSI1(6,12,24),A3+1)RSI.RSI1(6,12,24)ANDCROSS(RSI.RSI1(6,12,24),RSI.RSI2(6,12,24));DRAWTEXT(FILTER(B30,5),L*0.95,'R底'),COLORFFFF00;{RSI底背离}C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)CANDREF(DIFF,C1+1)DIFFANDCROSS(DEA,DIFF);DRAWTEXT(FILTER(D10,5),H*1.06,'M顶'),COLOR0066FF;{MACD顶背离}C2:=BARSLAST(REF(CROSS(KDJ.D(9,3,3),KDJ.K(9,3,3)),1));D2:=REF(C,C2+1)CANDREF(KDJ.K(9,3,3),C2+1)KDJ.K(9,3,3)ANDCROSS(KDJ.D(9,3,3),KDJ.K(9,3,3));DRAWTEXT(FILTER(D20,3),H*1.06,'K顶'),COLORRED;{KDJ顶背离}C3:=BARSLAST(REF(CROSS(RSI.RSI2(6,12,24),RSI.RSI1(6,12,24)),1));D3:=REF(C,C3+1)CANDREF(RSI.RSI1(6,12,24),C3+1)RSI.RSI1(6,12,24)ANDCROSS(RSI.RSI2(6,12,24),RSI.RSI1(6,12,24));DRAWTEXT(FILTER(D30,5),H*1.06,'R顶'),COLORFF00FF;{RSI顶背离};LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),(LOW*0.99),'底背'),Color0000FF;DRAWTEXT(CROSS(88,RSI),(HIGH*1.02),'顶背'),Color00FFFF;vll:=cross(ma(c,10),ma(c,21));DRAWTEXT(vll,m8,''),colorwhite;DRAWTEXT(vll,m8-0.09,'圆弧底'),colorwhite;DRAWTEXT(CROSS(80,RSI),high*1.02,'见顶'),coloryellow;Varb:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;Varc:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;Vard:=BARSCOUNT(CLOSE);Var1:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100-60;Var2:=SMA(Var1,3,1)+100;Var3:=(CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3))*1000;Var4:=SMA(Var3,3,1);Var5:=SMA(Var4,3,1)+100;Var6:=Var5-Var2;主力:=EMA((CLOSE-MA(CLOSE,3))/MA(CLOSE,3)*4800,2);散户:=EMA((CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*4800,7);drawtext(cross(主力,散户)and主力0and散户0,low,'见底'),colorred;drawtext(cross(散户,主力)and主力0and散户0,high*1.02,'清仓'),colorgreen;var120:='■坐底飙升提示今日上穿';ifCROSS(c,ma(c,5))ANDBARSTATUS=2THENvar120:=var120+'【5】均线'+NUMTOSTRN(ma(c,5),2)+'元';ifCROSS(c,ma(c,10))ANDBARSTATUS=2THENvar120:=var120+'【10】均线'+NUMTOSTRN(ma(c,10),2)+'元';ifCROSS(c,ma(c,20))ANDBARSTATUS=2THENvar120:=var120+'【20】均线'+NUMTOSTRN(ma(c,20),2)+'元';ifCROSS(c,ma(c,30))ANDBARSTATUS=2THENvar120:=var120+'【30】均线'+NUMTOSTRN(ma(c,30),2)+'元';ifCROSS(c,ma(c,40))ANDBARSTATUS=2THENvar120:=var120+'【40】均线'+NUMTOSTRN(ma(c,40),2)+'元';ifCROSS(c,ma(c,50))ANDBARSTATUS=2THENvar120:=var120+'【50】均线'+NUMTOSTRN(ma(c,50),2)+'元';ifCROSS(c,ma(c,60))ANDBARSTATUS=2THENvar120:=var120+'【60】均线'+NUMTOSTRN(ma(c,60),2)+'元';ifCROSS(c,ma(c,120))ANDBARSTATUS=2THENvar120:=var120+'【120】均线';if(c=ma(c,10))ANDBARSTATUS=2THENvar120:=var120+'■在10均线上方■'+NUMTOSTRN(ma(c,10),2)+'元';DRAWTEXTREL(600,900,var120),Color8000FF;var121:='■坐底飙升提示今日下破';ifCROSS(ma(c,5),c)ANDBARSTATUS=2THENvar121:=var121+'【5】均线'+NUMTOSTRN(ma(c,5),2)+'元';ifCROSS(ma(c,10),c)ANDBARSTATUS=2THENvar121:=var121+'【10】均线'+NUMTOSTRN(ma(c,10),2)+'元';ifCROSS(ma(c,20),c)ANDBARSTATUS=2THENvar121:=var121+'【20】均线'+NUMTOSTRN(ma(c,20),2)+'元';ifCROSS(ma(c,30),c)ANDBARSTATUS=2THENvar121:=var121+'【30】均线'+NUMTOSTRN(ma(c,30),2)+'元';ifCROSS(ma(c,40),c)ANDBARSTATUS=2THENvar121:=var121+'【40】均线'+NUMTOSTRN(ma(c,40),2)+'元';ifCROSS(ma(c,50
本文标题:【股票指标公式下载】-【大智慧】综合组图(月价、季托、量托、背离
链接地址:https://www.777doc.com/doc-1130721 .html