大智慧月价季托量托带背离顶底提示主图指标公式

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);

月价托:m5>m16 and m5>m8 and cross(m8,m16),coloryellow,linethick0;

季价托:m16>m55 and m16>m32 and cross(m32,m55),colorf00ff0,linethick0;

短、长价托:m5>m55 and m5>m8 and cross(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>=vol3 and cross(vol2,vol3) and ref(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)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);

DRAWTEXT(FILTER(B1>0,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)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

DRAWTEXT(FILTER(B2>0,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)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));

DRAWTEXT(FILTER(B3>0,5),L*0.95,'R底'),COLORFFFF00;{RSI底背离}

C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));

D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);

DRAWTEXT(FILTER(D1>0,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)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));

DRAWTEXT(FILTER(D2>0,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)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));

DRAWTEXT(FILTER(D3>0,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 主力<0 and 散户<0,low,'见底'),colorred;

drawtext(cross(散户,主力) and 主力<0 and 散户<0,high*1.02,'清仓'),colorgreen;

var120:='■坐底飙升提示今日上穿';

if CROSS(c,ma(c,5)) AND BARSTATUS=2 THEN var120:=var120+'【5】均线'+NUMTOSTRN(ma(c,5),2)+'元';

if CROSS(c,ma(c,10)) AND BARSTATUS=2 THEN var120:=var120+'【10】均线'+NUMTOSTRN(ma(c,10),2)+'元';

if CROSS(c,ma(c,20)) AND BARSTATUS=2 THEN var120:=var120+'【20】均线'+NUMTOSTRN(ma(c,20),2)+'元';

if CROSS(c,ma(c,30)) AND BARSTATUS=2 THEN var120:=var120+'【30】均线'+NUMTOSTRN(ma(c,30),2)+'元';

if CROSS(c,ma(c,40)) AND BARSTATUS=2 THEN var120:=var120+'【40】均线'+NUMTOSTRN(ma(c,40),2)+'元';

{指标网-股票公式网站 www.zhibiaow.com}

if CROSS(c,ma(c,50)) AND BARSTATUS=2 THEN var120:=var120+'【50】均线'+NUMTOSTRN(ma(c,50),2)+'元';

if CROSS(c,ma(c,60)) AND BARSTATUS=2 THEN var120:=var120+'【60】均线'+NUMTOSTRN(ma(c,60),2)+'元';

if CROSS(c,ma(c,120)) AND BARSTATUS=2 THEN var120:=var120+'【120】均线';

if (c>=ma(c,10)) AND BARSTATUS=2 THEN var120:=var120+'■在10均线上方■'+NUMTOSTRN(ma(c,10),2)+'元';

DRAWTEXTREL(600,900,var120),Color8000FF;