大智慧股海波浪主图指标公式,大智慧换手率及板块归属主图指标公式
admin888
|大智慧股海波浪主图指标公式,大智慧换手率及板块归属主图指标公式
大智慧股海波浪主图指标公式
a:=(3*c+l+o+h)/6;
X:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+ref(a,20))/210;
生命线:EMA(X,13),colorFF00FF,LINETHICK2;
M:=MA((C+O+H+L)/4,2);
M3:MA(M,3),COLOR8AFAAA;
M5:MA(M3,5),COLORFF00FF;
买入:CROSS(M3,M5),COLORRED;
卖出:CROSS(M5,M3),COLOR00FF00;
{K线修饰}STICKLINE(M3>=M5,H,L,1,1),COLORRED;
STICKLINE(M3>=M5,OPEN,CLOSE,5,0),COLOR000099;
STICKLINE(M3>=M5,OPEN,CLOSE,3,0),COLOR0000BB;
STICKLINE(M3>=M5,OPEN,CLOSE,1,0),COLOR0000FF;
STICKLINE(M3
STICKLINE(M3
STICKLINE(M3
STICKLINE(M3
{买入显示}DRAWTEXT(买入,LOW*0.98,'▲'),COLOR0000FF;
DRAWTEXT(买入,LOW*0.975,'?'),COLOR0000FF;
DRAWTEXT(买入,LOW*0.975,'‖'),COLOR0000FF;
{买出显示}DRAWTEXT(卖出,HIGH*1.02,'?'),COLOR00FF00;
DRAWTEXT(卖出,HIGH*1.025,'?'),COLOR00FF00;
DRAWTEXT(卖出,HIGH*1.025,'‖'),COLOR00FF00;
{加仓}加仓:M3>REF(M3,1) AND REF(M3,1)M5 AND 买入<>1 AND 卖出<>1,COLORFF00FF;DRAWTEXT(加仓,LOW*0.98,'▲'),COLORFF00FF;
STICKLINE(加仓,H,L,1,1),COLORFF00FF;
STICKLINE(加仓,OPEN,CLOSE,5,0),COLOR660099;
STICKLINE(加仓,OPEN,CLOSE,3,0),COLOR6600CC;
STICKLINE(加仓,OPEN,CLOSE,1,0),COLORFF00FF;
{减仓}减仓:M3REF(M3,2) AND M3>M5 AND 卖出<>1 AND 买入<>1,COLORYELLOW;
DRAWTEXT(减仓,HIGH*1.02,'?'),COLORYELLOW;
STICKLINE(减仓,H,L,1,1),COLORYELLOW;
STICKLINE(减仓,OPEN,CLOSE,5,0),COLOR00CCCC;
STICKLINE(减仓,OPEN,CLOSE,3,0),COLOR33FFCC;
STICKLINE(减仓,OPEN,CLOSE,1,0),COLOR00FFFF;
{波浪顶底}TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A2:=REF(C,BARSLAST(HD));
B2A:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
顶:IF(T1,A2,A2),COLOR00FF00,POINTDOT,LINETHICK2;
STICKLINE(T1,A2,A2,9,0),COLOR00FF00;
底:IF(T2,B2A,B2A),COLORFF00FF,POINTDOT,LINETHICK2;
STICKLINE(T2,B2A,B2A,9,0),COLORFF00FF;
【股海方舟】:0,COLORRED;
大智慧换手率及板块归属主图指标公式
年:=2015;
月:=6;
日:=5;
时间:=(年-1900)*10000+月*100+日;
DRAWTEXT(BARSLAST(DATE>=时间),L*0.94,'换手起点'),COLORRED;
DRAWICON(BARSLAST(DATE>=时间),L*0.98,1);
HSL:100*VOL/(capital),linethick0;
上市日期:(FINANCE2(2)-19000000),linethick0;
{天数:BARSLAST(DATE<=1140101);
累积换手:=SUM(HSL,5);
}HS100:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=100,0),linethick0;
HS200:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=200,0),linethick0;
HS300:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=300,0),linethick0;
HS400:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=400,0),linethick0;
HS500:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=500,0),linethick0;
HS600:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=600,0),linethick0;
HS700:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=700,0),linethick0;
HS800:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=800,0),linethick0;
HS900:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=900,0),linethick0;
HS1000:IF(DATE>=时间,SUM(HSL,if(上市日期<=时间,BARSLAST(DATE<=时间),0))>=1000,0),linethick0;
DRAWTEXT(CROSS(HS100,0.99),L*0.94,'换100'),COLORYELLOW;
DRAWICON(CROSS(HS100,0.99),L*0.98,1);
DRAWTEXT(CROSS(HS200,0.99),L*0.94,'换200'),COLORGREEN;
DRAWICON(CROSS(HS200,0.99),L*0.98,1);
DRAWTEXT(CROSS(HS300,0.99),L*0.94,'换300'),COLORWHITE;
DRAWICON(CROSS(HS300,0.99),L*0.98,1);
DRAWTEXT(CROSS(HS400,0.99),L*0.97,'换400'),COLORWHITE;
DRAWTEXT(CROSS(HS500,0.99),L*0.97,'换500'),COLORWHITE;
DRAWTEXT(CROSS(HS600,0.99),L*0.97,'换600'),COLORWHITE;
DRAWTEXT(CROSS(HS700,0.99),L*0.97,'换700'),COLORWHITE;
DRAWTEXT(CROSS(HS800,0.99),L*0.97,'换800'),COLORWHITE;
DRAWTEXT(CROSS(HS900,0.99),L*0.97,'换900'),COLORWHITE;
DRAWTEXT(CROSS(HS1000,0.99),L*0.97,'换1000'),COLORWHITE;
X1:=STRFIND(BKNAME,'自选股,',1);
x2:=STRFIND(BKNAME,'自选股1底部,',1);
x3:=STRFIND(BKNAME,'自选股2平台,',1);
x4:=STRFIND(BKNAME,'自选股A绩优,',1);
x5:=STRFIND(BKNAME,'自选股B绩优增仓,',1);
x:=max(1,x1,x2,x3,x4,x5);
x1:= if(x=x1,7,if(x=x2 or x=x3 or x=x4,12,if(x=x5,16,0)));
{BK1:=STRMID(BKNAME,x+x1,8);
X6:=if(STRFIND(BK1,',',1)<>0,STRFIND(BK1,',',1),9);
BK:=STRMID(BKNAME,x+x1,x6-1);
}BK:=STRMID(BKNAME,x+x1,200);
DRAWTEXTABS(0,10,'板块名称:'+BK),Color9DFFFF;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。