大智慧公式源码概况:
指标类别:大智慧公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 主图
五十集中:=(COST(75)-COST(25))/(COST(75)+COST(25))*100;
成本价1:=COST(五十成本集中),COLORGREEN;
五十成本集中1:=100-五十成本集中;
成本价2:=COST(五十成本集中1),COLORBLUE;
单峰密集价:成本价2/成本价1-1,STICK;
红:=REF(单峰密集价,1) 单峰密集价AND成本价2 REF(成本价2,1);
绿:=REF(单峰密集价,1) 单峰密集价;
:=单峰密集价 =0.25;
底部:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
底部成本价:=COST(底部),COLORYELLOW;
顶部:=100-底部;
顶部成本价:=COST(顶部),COLORGREEN;
均值:=(底部+顶部)/2;
均值成本:=COST(均值),COLORLICYAN,DOTLINE;
STICKLINE(红,单峰密集价,0,2.8,0),COLOR000055;
STICKLINE(红,单峰密集价,0,2,0),COLOR000088;
STICKLINE(红,单峰密集价,0,1.5,0),COLOR0000AA;
STICKLINE(红,单峰密集价,0,1,0),COLOR0000CC;
STICKLINE(红,单峰密集价,0,0.5,0),COLOR0000EE;
STICKLINE(红,单峰密集价,0,0,0),COLORFFFFFF;
底:=REF(单峰密集价,2) REF(单峰密集价,1)AND单峰密集价 REF(单峰密集价,1)AND均值成本 REF(均值成本,1);
STICKLINE(底,单峰密集价,0,0,0),COLORGREEN;
STICKLINE(底,单峰密集价,0,2.8,0),COLOR009900;
STICKLINE(底,单峰密集价,0,2,0),COLOR00BB00;
STICKLINE(底,单峰密集价,0,1.5,0),COLOR00DD00;
STICKLINE(底,单峰密集价,0,0.5,0),COLOR00FF00;
顶:=REF(单峰密集价,2) REF(单峰密集价,1)AND单峰密集价 REF(单峰密集价,1)AND均值成本 REF(均值成本,1);
STICKLINE(顶,单峰密集价,0,2,0),COLORYELLOW;
N:=30;
N1:=20;
V1:=REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1) =(N1/100)ANDC =REF(HHV(H,N),1)ANDBARSCOUNT(C) N;
一线天:IF(V1,1,0);
A30:=EMA(C,34) REF(EMA(C,34),1);
A50:=COST(50),COLORRED,LINETHICK2;
A70:=WINNER(C)*100 50;
A90:=CROSS(C,A50);
密集:A30ANDA50ANDA70ANDA90;
DRAWICON(突破密集,1,1);
AJB:=IF(CAPITAL 20000000,CAPITAL*33/100,IF(CAPITAL 12000000,CAPITAL*27/100,CAPITAL*22/100));
AJ1:=(COST(85)+COST(15))/2;AJ2:=(COST(75)+COST(25))/2;AJ3:=(COST(65)+COST(35))/2;AJ4:=(COST(55)+COST(45))/2;AJ5:=(COST(95)+COST(5))/2;
AJ:=(AJ1+AJ2+AJ3+AJ4+AJ5)/5;
BJ1:=(COST(90)+COST(10))/2;BJ2:=(COST(80)+COST(20))/2;BJ3:=(COST(70)+COST(30))/2;BJ4:=(COST(60)+COST(40))/2;BJ5:=(COST(50));
BJ:=(BJ1+BJ2+BJ3+BJ4+BJ5)/5;
筹码峰值:MA((AJ+BJ)/2,3),NODRAW;
筹码中枢:(COST(65)-COST(15))/(COST(25))*100,NODRAW;
日集中度:(AMOUNT/筹码峰值)/(CAPITAL-AJB)*2,NODRAW;
五日集中度:SUM(AMOUNT/筹码峰值,5)/(CAPITAL-AJB)/100*100,NODRAW;
{集中:日集中度 10;
DRAWICON(集中,1.3,2);}
五日集中:五日集中度 30,COLORCYAN;
DRAWTEXT_FIX(1,0.0,0.02,0, 1.低位绿K底高位黄色K线小心顶红K拉升 ),COLORYELLOW;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
VARAA:=MAX(MA5,MAX(MA10,MAX(MA20,MA30)));
VARBB:=MIN(MA5,MIN(MA10,MIN(MA20,MA30)));
阳穿四:=C REF(C,1)ANDC OANDC VARAAANDO VARBBANDMA30 =MA60;
粘合:=(VARAA-VARBB)/VARBB*100 2;
目标:阳穿四AND均线粘合;
M:=20;
N:=10;
VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MA130:=MA(OBV,M);
DRAWBAND(MA130,RGB(0,0,80),OBV1,RGB(160,0,000));
A1:=REF(OBV1,N)=HHV(OBV1,2*N+1);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
D1:=FILTER(C1,N);
T线:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW;
STICKLINE(C 0,T线,T线,6,0),COLORFF6600;
DRAWICON(CROSS(OBV,T线),T线*0.99,1);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MA30:MA(OBV,M);
VAR4赋值:(((最低价 + 最高价) + 收盘价) / 3)
输出操作:VAR4的5日简单移动平均,线宽为2,画黄色
输出拉升:3日内操作的最高值,线宽为1,COLOR0000FF
输出压力:5日内操作的最高值,COLOR00FF00
输出:3日内操作的最低值,线宽为1,COLORFF00FF
输出MV1:收盘价的89日指数移动平均,COLORFFCC00,DOTLINE
公式解读:
每日大智慧公式解答:
公式编写要求:
选出存在如下五根K线组合的票:四天的收盘价开盘价均高于第一天的收盘价。
公式编写方法:
x:=min(c,o);
ref(c o,4)andx ref(c,4)andref(x,1) ref(c,4)andref(x,2) ref(c,4)andref(x,3) ref(c,4);