大智慧指标公式 成本分布显示大智慧也做得到指标公式
2015-4-28 10:11:36 股票入门 http://rumen.southmoney.com
成本分布显示
SS:=BARSLAST(DISPSTATUS=1)+1;
HH:=HHVALL(HHV(H,SS));
LL:=LLVALL(LLV(L,SS));
ZZ:=(HH-LL)/10;
SZ:=HHVALL(SS)-SS+1;
HL1:=HHVALL(SUM((C》=HH-ZZ*1)*V,SS));
HL2:=HHVALL(SUM((C《HH-ZZ*1 AND C》=HH-ZZ*2)*V,SS));
HL3:=HHVALL(SUM((C《HH-ZZ*2 AND C》=HH-ZZ*3)*V,SS));
HL4:=HHVALL(SUM((C《HH-ZZ*3 AND C》=HH-ZZ*4)*V,SS));
HL5:=HHVALL(SUM((C《HH-ZZ*4 AND C》=HH-ZZ*5)*V,SS));
HL6:=HHVALL(SUM((C《HH-ZZ*5 AND C》=HH-ZZ*6)*V,SS));
HL7:=HHVALL(SUM((C《HH-ZZ*6 AND C》=HH-ZZ*7)*V,SS));
HL8:=HHVALL(SUM((C《HH-ZZ*7 AND C》=HH-ZZ*8)*V,SS));
HL9:=HHVALL(SUM((C《HH-ZZ*8 AND C》=HH-ZZ*9)*V,SS));
HL10:=HHVALL(SUM((C《HH-ZZ*9)*V,SS));
ZV:=HL1+HL2+HL3+HL4+HL5+HL6+HL7+HL8+HL9+HL10;
STICKLINE(HL1/ZV*HHVALL(SS)*3》=SZ,HH,(HH-ZZ)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL2/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ),(HH-ZZ*2)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL3/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ*2),(HH-ZZ*3)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL4/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ*3),(HH-ZZ*4)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL5/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ*4),(HH-ZZ*5)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL6/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ*5),(HH-ZZ*6)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL7/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ*6),(HH-ZZ*7)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL8/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ*7),(HH-ZZ*8)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL9/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ*8),(HH-ZZ*9)*1.01,20,0),COLOR3C3C3A;
STICKLINE(HL10/ZV*HHVALL(SS)*3》=SZ,(HH-ZZ*9),LL,20,0),COLOR3C3C3A;
STICKLINE(C》=O,C,O,7,1),COLOR5454FF;
STICKLINE(C》=O,H,MAX(C,O),0,0),COLOR5454FF;
STICKLINE(C》=O,L,MIN(C,O),0,0),COLOR5454FF;
STICKLINE(C《=O,C,O,7,0),COLORFFFF54;
STICKLINE(C《=O,H,MAX(C,O),0,0),COLORFFFF54;
STICKLINE(C《=O,L,MIN(C,O),0,0),COLORFFFF54;
起始线:MA(CLOSE,9),COLORGRAY,LAYER0;
二九线:MA(CLOSE,18),COLORRED ,LAYER0;
三九线:MA(C,27),LINETHICK2,COLORYELLOW,LAYER0;
神奇数字线:MA(C,73),LINETHICK2,COLOR000999,LAYER0;
季度线:MA(C,91.25),LINETHICK3,COLORGREEN,LAYER0;
割肉线:MA(C,160),COLORGREEN,LAYER0;
地球公转线:MA(C,365),COLOR0000FF,LINETHICK3,LAYER0;
金星绕太阳线:MA(C,584.92),LINETHICK3,COLORFFCC66,LAYER0;
AD:=SUMBARS(V ,CAPITAL*1);{累计换手=100%的周期}
A2:=SUM(COST(20),AD)/AD;{在A周期里获利20%的平均价}
A1:=SUM(COST(10),AD)/AD;{在A周期里获利10%的平均价}
A3D:=SUM(COST(30),AD)/AD;{在A周期里获利30%的平均价}
A4D:=SUM(COST(40),AD)/AD;{在A周期里获利40%的平均价}
A5D:=SUM(COST(50),AD)/AD;{在A周期里获利50%的平均价}
E:=LLV(L,250)=L;{一年中最低价的位置}
E1:=BARSLAST(E);{求得一年中最低价的位置到现在的周期}
庄家的成本:(5*A1+4*A2+3*A3D+2*A4D+A5D)/15, CIRCLEDOT,COLORRED,LAYER0;{求的启动点的价位}
OK1:STICKLINE(CROSS(C,庄家的成本) AND E1》=40 ,O ,C ,1 ,0 ),COLOR00FFFF;{得到启动点};
龙脉:EMA(CLOSE,453),COLORYELLOW,POINTDOT,LINETHICK4,LAYER0;
成本分布部分 由软件答疑区周易2000老师完成 再次感谢
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。