大智慧铁锅主图指标公式,大智慧区间成本主图指标公式
admin888
|大智慧铁锅主图指标公式,大智慧区间成本主图指标公式
大智慧铁锅主图指标公式
N:=10;
MA13:MA(CLOSE,13),LINETHICK3;
MA77:MA(CLOSE,77),LINETHICK5,coloryellow;
MA99:MA(CLOSE,99),linethick5,colorred;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
RC:=DYNAINFO(3);
STICKLINE(MACD<0,RC,RC+MACD,3,0),COLOR0000FF;
STICKLINE(MACD>0,RC,RC+MACD,3,0),COLOR00FF00;
三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);
三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))
三日价涨A:=C>=REF(C,1);
三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);
缩倍柱:=(VOL*1.95<=REF(VOL,1));
百日低量:=(VOL=LLV(VOL,100));
倍量柱:=C>REF(C,1)*1.04AND(VOL>=1.9*REF(VOL,1));
四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4));
四日前高量柱:=(REF(VOL,3)>=REF(VOL,4)ANDREF(VOL,3)<1.9*REF(VOL,4)AND三日量缩);
前三引用不成立:=COUNT(REF(四日前倍量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0ANDCOUNT(REF(四日前高量柱,1)AND(REF(三日不破,1)ORREF(三日价涨C,1)),3)=0;
倍量黄金柱:=四日前倍量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立;
高量黄金柱:=四日前高量柱AND三日量缩AND三日不破AND三日价涨AAND前三引用不成立;
黄金柱:=倍量黄金柱OR高量黄金柱;
次倍量黄金柱:=NOT(黄金柱)AND四日前倍量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立;
次高量黄金柱:=NOT(黄金柱)AND四日前高量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立;
次黄金柱:=次倍量黄金柱OR次高量黄金柱;
准倍量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前倍量柱AND((三日量缩AND三日价涨C)OR(COUNT(倍量柱,3)>=1AND三日不破))AND前三引用不成立;
准高量黄金柱:=NOT(黄金柱OR次黄金柱)AND四日前高量柱AND(三日量缩AND三日价涨C)AND前三引用不成立;
准黄金柱:=准倍量黄金柱OR准高量黄金柱;
倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前倍量柱AND三日不破AND三日价涨AAND前三引用不成立;
高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前高量柱AND三日不破AND三日价涨AAND前三引用不成立;
将军柱:=倍量将军柱OR高量将军柱;
次倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四日前倍量柱AND三日不破AND三日价涨BAND前三引用不成立;
次高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四日前高量柱AND三日不破AND三日价涨BAND前三引用不成立;
次将军柱:=次倍量将军柱OR次高量将军柱;
准倍量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四日前倍量柱AND三日价涨CAND前三引用不成立;
准高量将军柱:=NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四日前高量柱AND三日价涨CAND前三引用不成立;
准将军柱:=准倍量将军柱OR准高量将军柱;
BACKSET100:=BACKSET(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱OR准将军柱,4);
FILTER100:=FILTER(BACKSET100,3);
BACKSET101:=BACKSET(黄金柱,4);
FILTER101:=FILTER(BACKSET101,3);
BACKSET102:=BACKSET(次黄金柱,4);
FILTER102:=FILTER(BACKSET102,3);
BACKSET103:=BACKSET(准黄金柱,4);
FILTER103:=FILTER(BACKSET103,3);
BACKSET104:=BACKSET(将军柱,4);
FILTER104:=FILTER(BACKSET104,3);
BACKSET105:=BACKSET(次将军柱,4);
FILTER105:=FILTER(BACKSET105,3);
BACKSET106:=BACKSET(准将军柱,4);
FILTER106:=FILTER(BACKSET106,3);
DRAWTEXT(FILTER101,LOW*0.986,'?黄金柱'),COLOR0099FF;
STICKLINE(FILTER101,OPEN,CLOSE,6,0),COLOR0099FF;
DRAWTEXT(FILTER102,LOW*0.986,'?次黄'),COLOR00EEFF;
STICKLINE(FILTER102,OPEN,CLOSE,6,0),COLOR00EEFF;
DRAWTEXT(FILTER103,LOW*0.986,'?准黄'),COLOR00EE99;
STICKLINE(FILTER103,OPEN,CLOSE,6,0),COLOR00EE99;
DRAWTEXT(FILTER104,LOW*0.986,'?将军柱'),COLORRED;
STICKLINE(FILTER104,OPEN,CLOSE,6,0),COLORRED;
DRAWTEXT(FILTER105,LOW*0.986,'?次将'),COLOR8822FF;
STICKLINE(FILTER105,OPEN,CLOSE,6,0),COLOR8822FF;
DRAWTEXT(FILTER106,LOW*0.986,'?准将'),COLORDD22DD;
STICKLINE(FILTER106,OPEN,CLOSE,6,0),COLORDD22DD;
K1:=SUMBARS(FILTER104,1);
STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),20,0),COLOR8822FF;
STICKLINE(K1,REF(L,K1-1),REF(L,K1-1),3,0),COLORGREEN;
K2:=SUMBARS(FILTER101,1);
STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),20,0),COLOR0099FF;
立桩量:=VOL=HHV(VOL,40)ANDVOL>1.9*REF(VOL,1);
立桩量三日突破:=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE>REF(HIGH,3),1,0)));
立桩量三日不破:=BARSLAST(立桩量)=3ANDREF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));
BACKSET300:=BACKSET(立桩量三日不破,4);
BACKSET301:=BACKSET(立桩量三日突破,4);
立桩量成立:=FILTER(BACKSET300,3)ANDBACKSET301AND立桩量;
DRAWTEXT(立桩量成立,HIGH*1.03,'←立柱'),COLORGREEN;
m1:wma(c,5),colorred,linethick2;
m2:=wma(m1,5);
m3:if(m1>m2,m2,m1),color00ff00,linethick2;
m2,color000000,linethick2;
X:=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),68);
Y:=EMA(CLOSE,10);
LL:=REF(CLOSE,2);
MM:=((SMA(MAX((CLOSE-LL),0),6,1)/SMA(ABS((CLOSE-LL)),6,1))*100);
DB:=IF(((MM79)),MM,0);
DRAWTEXT(CROSS(Y,X),(LOW*0.985),'进▲锅'),LINETHICK2,colorFF0000;
DRAWTEXT(CROSS(X,Y),(HIGH*1.015),'◆'),LINETHICK2,colorFF6699;
DRAWTEXT(DB,(HIGH*1.015),'出○锅'),LINETHICK2,colorFFCC99;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5);
AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13);
DD:=EMA(((0.667*REF(AK1,1))+(0.333*AK1)),2);
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((((CLOSE-VAR3)/(VAR4-VAR3))*100),3);
VAR6:=((AK+VAR5)/2);
VAR7:=EMA(((0.667*REF(VAR5,1))+(0.333*AK1)),2);
VAR8:=EMA(VAR6,5);
BB:=EMA(((0.667*REF(VAR8,1))+(0.333*VAR8)),2);
AB:=CROSS(AK1,AK);
BB1:=(CROSS(AK1,BB)AND(BB<30));
CD:=(BB1*0.6);
DRAWTEXT((CD=0.6),(LOW*0.99),'□'),LINETHICK2,colorFFFFFF;
DRAWTEXT((AB=1),(LOW*0.99),'锅■底'),LINETHICK2,color33CC99;
买卖差:=MA13-MA77;
STICKLINE(买卖差>=0,(MA13-买卖差*0.05),(MA13-买卖差*0.15),0.15,0),COLOR00FFFF;
STICKLINE(买卖差>=0,(MA13-买卖差*0.2),(MA13-买卖差*0.35),0.15,0),COLOR00CCFF;
STICKLINE(买卖差>=0,(MA13-买卖差*0.4),(MA13-买卖差*0.55),0.15,0),COLOR0099FF;
STICKLINE(买卖差>=0,(MA13-买卖差*0.6),(MA13-买卖差*0.75),0.15,0),COLOR0066FF;
STICKLINE(买卖差>=0,(MA13-买卖差*0.8),(MA13-买卖差*0.95),0.15,0),COLOR0000CC;
STICKLINE(买卖差<0,(MA77+买卖差*0.05),(MA77+买卖差*0.15),0.15,0),COLOR006600;
STICKLINE(买卖差<0,(MA77+买卖差*0.2),(MA77+买卖差*0.35),0.15,0),COLOR009900;
STICKLINE(买卖差<0,(MA77+买卖差*0.4),(MA77+买卖差*0.55),0.15,0),COLOR00CC00;
STICKLINE(买卖差<0,(MA77+买卖差*0.6),(MA77+买卖差*0.75),0.15,0),COLOR00FF00;
STICKLINE(买卖差<0,(MA77+买卖差*0.8),(MA77+买卖差*0.95),0.15,0),COLOR66FF00;
大智慧区间成本主图指标公式
input:y(2010,1991,2099),m(7,1,12),d(1,1,31),y1(2011,1992,2099),m1(7,1,12),d1(31,1,31);
mm:=(y-1900)*10000+m*100+d;
{最早日期}mn:=(y1-1900)*10000+m1*100+d1;
{最晚日期}zz:=LAST(DATE>mm)+1;
zc:=LAST(DATE>mn)+1;
VERTLINE(zz=2,1),coloryellow;
VERTLINE(zc=2,2),coloryellow;
DRAWTEXT(zz=2,(LLVALL(HIGH)+HHVALL(HIGH))/2,'起点'),LINETHICK3,ALIGN1,COLORgreen;
DRAWTEXT(zc=2,(LLVALL(HIGH)+HHVALL(HIGH))/2,'终点'),LINETHICK3,ALIGN1,COLORred;
个股:=ref(sum(AMOUNT,zz-zc)/sum(VOL*100,zz-zc),zc);
指数:=ref(ma(c,zz-zc),zc);
区间换手:ref(SUM(VOL,zz-zc)/CAPITAL*100,zc),linethick0;
ifzc>1thenbegin区间成本:if(CATEGORY=1,个股,指数),COLORFFFFFF,LAYER2;
end;
N1:=IF(DATATYPE=10,1.05,IF(DATATYPE=9,1.02,1.01));
N2:=IF(DATATYPE=10,0.95,IF(DATATYPE=9,0.98,0.99));
FILLRGN(区间成本*N1,区间成本*N2,zc>1,rgb(128,128,128)),LAYER3;
区间计算周期:zz-zc,PRECIS0,linethick0;
DRAWTEXTABS(588,20,'区间成本='+NUMTOSTRN(区间成本,2)+'元'),LAYER0,ColorFFC000,linethick3;
{以下设置五彩立体K线}STICKLINE(CLOSE>OPENorCLOSE=OPENandCLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),LAYER1,colorred;
STICKLINE(CLOSE>OPENorCLOSE=OPENandCLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),LAYER1,colorred;
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0,0),LAYER1,COLOR00FF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8,0),LAYER1,COLOR008800;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),LAYER1,COLOR009900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),LAYER1,COLOR00AA00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),LAYER1,COLOR00BB00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),LAYER1,COLOR00CC00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),LAYER1,COLOR00DD00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),LAYER1,COLOR00EE00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),LAYER1,COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0),LAYER1,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),LAYER1,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0),LAYER1,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),LAYER1,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),LAYER1,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),LAYER1,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),LAYER1,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),LAYER1,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),LAYER1,COLORFFBBFF;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。