当前位置:→ 公式网 > 大智慧公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是主、副图公式 源码(无源码的请下载附件导入)

主图:
A线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFF00FF,LINETHICK2;
B线:MA(A线,5),coloryellow,LINETHICK2;
牛熊线:MA(A线,54),POINTDOT,linethick5,COLORGRAY;
DRAWTEXT(cross(A线,B线*0.99),low-0.25,'★买啊!'),COLORYELLOW;
DRAWICON(CROSS(B线,A线*0.977),H*1.02,2);
{今日支撑}
gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);
明日阻力:=l+(gj-l)+(c-l);
明日支撑:=l+(c-gj);
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);
STICKLINE(DISPSTATUS=2  and c>=今日阻力,今日阻力,今日阻力,20,0),Color0000FF;
STICKLINE(DISPSTATUS=2  and c<今日阻力,今日阻力,今日阻力,20,0),Color00FF00;
STICKLINE(DISPSTATUS=2  and c>=今日支撑,今日支撑,今日支撑,20,0),ColorFF00FF;
STICKLINE(DISPSTATUS=2  and c<今日支撑,今日支撑,今日支撑,20,0),ColorFF9900;
保护价:=(REF(C,2)+REF(C,1)+O)/3;
{抄底}
VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR22:=SMA(VAR21,3,1);
VAR23:=SMA(VAR22,3,1);
VAR24:=SMA(VAR23,3,1);
VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;
DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;
{量柱}
TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
K1:=SUMBARS(TJ,1);
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),6,0),ColorAFFF00;
VL:=REF(LOW,1);
VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
VAR14:=MA(VAR12,13);
VAR15:=LLV(LOW,34);
VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);
VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;
T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);
DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;
DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;
VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR22:=SMA(VAR21,3,1);
VAR23:=SMA(VAR22,3,1);
VAR24:=SMA(VAR23,3,1);
VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;
DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),COLORGREEN;
DRAWTEXTREL(0,20,'■所属板块:'+BKNAME),COLORGREEN;
DD:=FINANCE2(35);SS:=FINANCE2(37);
DRAWTEXTREL(0,60,'■总股本:'+NUMTOSTRN(DD,0)+'万' +'  流通A股:'+NUMTOSTRN(SS,0)+'万'),COLORRED;
DRAWTEXTREL(0,100,'■今日阻力:'+NUMTOSTRN(今日阻力 ,2 )+'  今日支撑:'+NUMTOSTRN(今日支撑 ,2 )+'  今日保护价:'+NUMTOSTRN(保护价,3)),Coloryellow;
W:=BARSLAST(DISPSTATUS=1);
P:=BACKSET(DISPSTATUS=2,W/2+1);
K:=BARSLAST(CROSS(P,0.5));
KJ:=HHVALL(HIGH)-LLVALL(LOW);
平衡:=LLVALL(LOW)+KJ/2;
压力:=IF(K>=0,HHVALL(HIGH)-KJ*0.191,平衡);
支撑:=IF(K>=0,LLVALL(LOW)+KJ*0.191,平衡);
低吸:=K>=0 and CROSS(平衡,LOW);
低涨:=(C/LLV(LOW,W)-1)*100;
天:=BARSLAST(L=LLV(LOW,W));
DRAWTEXTREL(0,150,'■低点至今上涨:'+NUMTOSTRN(低涨,2)+'%  '+NUMTOSTRN(天,0)+'天'),COLORYELLOW;
DRAWTEXTREL(0,200,'■目前可见K线:'+NUMTOSTRN(W+1,0)+'天'),COLOR00FF00;

 

副图1:

{长量柱};
Q:=1;
AAA:=((SUM(VOL,5) / 3) * Q);
量能线:=MA(AAA,3);
K5:=(VOL > (REF(HHV(VOL,10),1) * 2));
DRAWTEXT((K5 > 0),(VOL * 1.3),''),colorFF00FF;
STICKLINE((K5 > 0),0,VOL,6,0),coloryellow;
量能异动:(VOL > 量能线),colorred;
DRAWICON((VOL > 量能线),量能线,11);
DRAWICON(((CLOSE > REF(CLOSE,1)) AND (VOL > 量能线)),V*1.15,10);
{黑洞};
VOL,VOLSTICK;
MA1:=MA(V,1);
MA5:MA(VOL,5),COLORWHITE;
MA10:=MA(VOL,10);
MA60:=MA(VOL,60);
N1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
{DRAWTEXT(CROSS(MA5,MA60) AND C>=N1,MA1*1.1,'★叉!'),COLORyellow;}
黑洞:=MA1<MA5 AND MA1<MA60{ AND MA5>MA60};
风险:={MA1<MA5 AND }C<N1;
回暖:=C>N1;
FILLRGN(MA5*0.95,MA5*1.25,黑洞 ,RGB(0,255,0));{绿色}
FILLRGN(MA5,MA5*1.15,风险,RGB(255,255,0));{黄色}
FILLRGN(MA5,MA5*1.09,回暖 AND NOT(风险) AND NOT(黑洞),RGB(255,0,0));{红色};

成交量:VOL,PRECIS2,LINETHICK0;
成交额:AMOUNT/10000,PRECIS2,LINETHICK0;
DRAWFLAGTEXT(1,V,'<*t=80FF00*><*c=0000FF*><*p=95*>'+datestr(date)+'\n'+'<*t=E7FFFF*><*c=111100*><*p=95*>'+'成交量 '+成交量+'<*t=E7FFFF*><*c=0000FF*><*p=95*>'+'  成交额'+NUMTOSTRN(成交额,2)+'万元');

副图2:
A:=(2*C+H+L)/4;
A1:=(EMA(A,3)+EMA(A,6)+EMA(A,12)+EMA(A,24))/4;
B:=WINNER( C)*100;
阻力:(A1-C)/((A1+C)/2)*100,COLORGREEN,LINETHICK2;
动力:(H-A1)/((A1+H)/2)*100,COLORRED,LINETHICK2;
DRAWTEXT(CROSS(动力*1.05,阻力),动力-0.2,'赚!'),COLORYELLOW;
 

 

 



关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识