【大智慧】超級(jí)組合主圖指標(biāo)公式
攻城獅 2015.11.29 01:49
{K線美化,無未來,可單獨(dú)刪除}
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff7700;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff9900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;
{紅買綠賣點(diǎn)顯示,無未來,可單獨(dú)刪除}
DRAWGBK(c>=0),Color2B5516;平衡:EMA(C,20),CIRCLEDOT,COLORwhite;
STICKLINE((CLOSE >平衡),平衡,平衡,1,0),LINETHICK6,color0000ff;
STICKLINE((平衡 > CLOSE),平衡,平衡,1,0),LINETHICK6,colorff6600;
{畫線顯示,帶未來,正常,可單獨(dú)刪除}
Var1:=DATE>900101 AND DATE<2098108;
Var2:=DATE>2098106;
Var3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),18)/4*Var1;
Var4:=IF(DATE<2098231,IF(Var3>23.16,Var3,0),0);
Var5:=Var3<10;
Var6:=Var3<2;
Var7:=Var5 OR Var6;
長期趨勢(shì): ZIG(3,19)*Var1,COLORBLUE;
短期趨勢(shì): ZIG(3,6.5)*Var1,COLORYELLOW;
{壓力支撐顯示,帶未來,正常,可單獨(dú)刪除}
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); vB1:=FILTER(A1,10); C1:=BACKSET(vB1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); vB2:=FILTER(A2,10); C2:=BACKSET(vB2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
t1:=BARSLAST(HD)t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
壓力線:IF(t1,A,A),ColorFF00FF,POINTDOT;
STICKLINE(t1,A,A,9,0),ColorFF00FF;
支撐線:IF(t2,B,B),Color80FF00,POINTDOT;
STICKLINE(t2,B,B,9,0),Color80FF00;
{BS買賣點(diǎn)顯示,無未來,可單獨(dú)刪除}
a:=”LTFunc5@FORLT2″; {計(jì)算BS點(diǎn)}
s1:=”LTFunc5@LT_S1″; {s1=0,向下; s1=1,向上}
hs:=”LTFunc5@LT_HS”; {短線買入機(jī)會(huì)}
ls:=”LTFunc5@LT_LS”; {短線賣出機(jī)會(huì)}
p1:=”LTFunc5@LT_P1″; {p1=1,顯示BS,p1上穿0線,B點(diǎn) ; p1下穿1線,S點(diǎn)}
upp:=”LTFunc5@LT_UPP”;{明日B點(diǎn)預(yù)測(cè)}
udd:=”LTFunc5@LT_UDD”;{明日S點(di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Zyz-41*Zy;
Zy42:=Zyz-42*Zy;
Zy43:=Zyz-43*Zy;
Zy44:=Zyz-44*Zy;
Zy45:=Zyz-45*Zy;
Zy46:=Zyz-46*Zy;
Zy47:=Zyz-47*Zy;
Zy48:=Zyz-48*Zy;
Zy49:=Zyz-49*Zy;
Z1:=winner(Zyz)*100-winner(Zy4)*100;
Z2:=winner(Zy4)*100-winner(Zy7)*100;
Z3:=winner(Zy7)*100-winner(Zy10)*100;
Z4:=winner(Zy10)*100-winner(Zy13)*100;
Z5:=winner(Zy13)*100-winner(Zy16)*100;
Z6:=winner(Zy16)*100-winner(Zy19)*100;
Z7:=winner(Zy19)*100-winner(Zy22)*100;
Z8:=winner(Zy22)*100-winner(Zy25)*100;
Z9:=winner(Zy25)*100-winner(Zy28)*100;
Z10:=winner(Zy28)*100-winner(Zy31)*100;
Z11:=winner(Zy31)*100-winner(Zy34)*100;
Z12:=winner(Zy34)*100-winner(Zy37)*100;
Z13:=winner(Zy37)*100-winner(Zy40)*100;
Z14:=winner(Zy40)*100-winner(Zy43)*100;
Z15:=winner(Zy43)*100-winner(Zy46)*100;
Z16:=winner(Zy46)*100-winner(Zy49)*100;
STICKLINE( DISPSTATUS=2,Zy1 ,Zy4 ,Z1*50 ,1 ),LAYER7,coloryellow;
STICKLINE( DISPSTATUS=2,Zy5 ,Zy7 ,Z2*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy8 ,Zy10 ,Z3*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy11 ,Zy13 ,Z4*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy14 ,Zy16 ,Z5*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy17 ,Zy19 ,Z6*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy20 ,Zy23 ,Z7*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy24 ,Zy26 ,Z8*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy27 ,Zy29 ,Z9*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy30 ,Zy31 ,Z10*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy32 ,Zy34 ,Z11*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy35 ,Zy37 ,Z12*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy38 ,Zy40 ,Z13*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy41 ,Zy43 ,Z14*50 ,1),LAYER7,DOTLINE;
STICKLINE( DISPSTATUS=2,Zy44 ,Zy46 ,Z15*50 ,1),LAYER7,coloryellow;
STICKLINE( DISPSTATUS=2,Zy47 ,Zy49 ,Z16*50 ,1),LAYER7,coloryellow;
DRAWTEXTABS(5,5,’概念股網(wǎng) www.chiang1015.com’),linethick1,COLOR00EEff;
{文字顯示,帶未來,正常,可單獨(dú)刪除}
DRAWTEXTABS(10,10,’所屬板塊:’+BKNAME),COLOR00FF00,linethick1;
市值:=C*CAPITAL*VOLUNIT/100000000;
股本:=FINANCE2(35)/10000;
流通:=FINANCE2(37)/10000;
人均持股:=CEILING(CAPITAL*100/selfdata(‘shx’));
市盈率:=DYNAINFO(39);
市凈率:=c/FINANCE2(4);
F:=COST(5 );J:=COST(95 );
M:=COST(15 );N:=COST(85 );
F1:=(J-F)/(F+J)*100;M1:=(N-M)/(N+M)*100;
成本集中度:=F1;
蕕利比例:=WINNER(c )*100;
日換手率:=vol/CAPITAL*100;
凈資產(chǎn):=FINANCE2(4);
凈資收益率:=FINANCE2(5);
最新收益:=FINANCE2(3);
每股未分配:=FINANCE2(8);
毛利潤率:=FINANCE2(12);
凈利潤率:=FINANCE2(33)/FINANCE2(27)*100;
股東權(quán)益比:=FINANCE2(9);
每股公積金:=FINANCE2(7);
DRAWTEXTABS(10,30,’市值:’+市值+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(110,30,’股本:’+股本+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(210,30,’流通:’+流通+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(10,50,’市盈率:’+市盈率+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(110,50,’市凈率:’+市凈率+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(210,50,’成本集中度:’+成本集中度+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(10,70,’蕕利比例:’+蕕利比例+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(110,70,’日換手率:’+日換手率+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(210,70,’凈資產(chǎn):’+凈資產(chǎn)+’元 ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(10,90,’凈資收益率:’+凈資收益率+’% ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(110,90,’最新收益:’+最新收益+’元 ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(210,90,’每股未分配:’+每股未分配+’元 ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(10,110,’毛利潤率:’+毛利潤率+’% ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(110,110,’凈利潤率:’+凈利潤率+’% ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(210,110,’股東權(quán)益比:’+股東權(quán)益比+’ ‘),LINETHICK1,Color00FF00;
DRAWTEXTABS(10,130,’每股公積金:’+每股公積金+’元 ‘),LINETHICK1,Color00FF00;
{文字顯示,無未來,可單獨(dú)刪除}
mc:=REF(c,1);
阻力位:=IF((CLOSE > 200),(CLOSE * 1.01),(CLOSE * 1.07));
阻力位1:=IF((CLOSE < 10),(CLOSE * 1.05),阻力位);
止損位:=IF((CLOSE > 200),(CLOSE * 0.99),(CLOSE * 0.93));
止損位1:=IF((CLOSE < 10),(CLOSE * 0.95),止損位);
阻力位a:=IF((mc > 200),(mc * 1.01),(mc * 1.07));
阻力位2:=IF((mc < 10),(mc * 1.05),阻力位a);
止損位b:=IF((mc > 200),(mc * 0.99),(mc * 0.93));
止損位2:=IF((mc < 10),(mc * 0.95),止損位b);
DRAWTEXTABS(10,150,'[昨/今日 止損位 :’+NUMTOSTRn(止損位b,2)+’/’+NUMTOSTRn(止損位1,2)+’]’),LINETHICK1,COLORYELLOW;
DRAWTEXTABS(10,170,'[昨/今日 阻力位 :’+NUMTOSTRn(阻力位2,2)+’/’+NUMTOSTRn(阻力位1,2)+’]’),LINETHICK1,COLORYELLOW;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。