【大智慧】非常實用主圖指標(biāo)公式
攻城獅 2015.11.08 17:34
H均線:=WMA(H,5);
L均線:=WMA(L,5);
轉(zhuǎn)折線:=IF(C>REF(H均線,1),L均線-(MA(H,5)-WMA(H,5)),IF(C 看多:=C>轉(zhuǎn)折線;{,linethick0,color0000ff;}
看空:=C<=轉(zhuǎn)折線;{,linethick0,color00ff00;}
看空期:=BARSLAST(看多);
看多期:=BARSLAST(看空);
預(yù)買:看多期=1,color00ffff,linethick0;
清倉:看空期=1,colorblue,linethick0;
{STICKLINE(C>轉(zhuǎn)折線,H,L,1,0),colorred;
STICKLINE(C>轉(zhuǎn)折線,O,C,6,0),colorred;
STICKLINE(C>轉(zhuǎn)折線 AND CSTICKLINE(C<=轉(zhuǎn)折線,H,L,1,0),color00ff00;
STICKLINE(C<=轉(zhuǎn)折線,O,C,6,0),color00ff00;
STICKLINE(C<=轉(zhuǎn)折線 AND C>O,O,C,6,1),color00ff00;}
STICKLINE(預(yù)買,O,(C+O)/2,6,0),color00ffff;
STICKLINE(清倉,O,(C+O)/2,6,0),colorblue;
{DRAWTEXT(預(yù)買>0,L-0.15,’w’),LINETHICK4,ALIGN1,colorred;
DRAWTEXT(清倉>0,H+0.45,’m’),LINETHICK4,ALIGN1,Colorffffff;}
cci:MA(CLOSE,5);
{MA1:MA(CLOSE,6);
MA2:MA(CLOSE,8),LINETHICK1,COLORff00ff;}
工作線:MA(CLOSE,13),LINETHICK2,COLORBLUE;{colorred;}
價角度:ATAN((cci/REF(cci,1)-1)*100)*180/3.1416,COLOR0000FF,LINETHICK0;
DRAWTEXTABS(160,12,’價角度:’+價角度+’度 ‘),LINETHICK1,Colorffffff;
乖離率 : (CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100,LINETHICK0,colorbbbbbb;
長期: (WMA(c,2)-WMA(c,780))/WMA(c,780)*100,LINETHICK0,colorbbbbbb;
中期:(CLOSE-MA(CLOSE,78))/MA(CLOSE,48)*100,LINETHICK0,colorbbbbbb;
中長期: (WMA(c,2)-WMA(c,280))/WMA(c,280)*100,LINETHICK0,colorbbbbbb;
DRAWTEXTABS(160,24,’乖離率:’+乖離率+’率 ‘),LINETHICK1,Colorffffff;
DRAWTEXTABS(160,36,’中期:’+中期+’率 ‘),LINETHICK1,Colorffffff;
DRAWTEXTABS(160,48,’中長期:’+中長期+’率 ‘),LINETHICK1,Colorffffff;
DRAWTEXTABS(160,60,’長期:’+長期+’率 ‘),LINETHICK1,Colorffffff;
獲利比例:=(WINNER(C)*1000)/10;
平均成本:=(COST(50)*100)/100;
穿透力:=(winner(C)-winner(ref(C,1)))/v*capital;
90%成本:=FLOOR(COST(50-90/2)*100)/100;
~:=CEILING(COST(50+90/2)*100)/100;
90集中度:=INTPART((~-90%成本)/(~+90%成本)*1000)/10;
70%成本:=FLOOR(COST(50-70/2)*100)/100;
~~:=CEILING(COST(50+70/2)*100)/100;
70集中度:=INTPART((~~-70%成本)/(~~+70%成本)*1000)/10;
DRAWTEXTABS(0,12,’ 獲利比例:’+STR(獲利比例)),COLOR44bbff;
DRAWTEXTABS(0,24,’ 平均成本:’+STR(平均成本)),COLOR44bbff;
DRAWTEXTABS(0,36,’ 穿透力:’+STR(穿透力)),COLOR44bbff;
DRAWTEXTABS(0,48,’90%成本:’+STR(90%成本)+’-‘+STR(~)),COLOR44bbff;
DRAWTEXTABS(0,60,’90集中度:’+STR(90集中度)),COLOR44bbff;
DRAWTEXTABS(0,72,’70%成本:’+STR(70%成本)+’-‘+STR(~~)),COLOR44bbff;
DRAWTEXTABS(0,84,’70集中度:’+STR(70集中度)),COLOR44bbff;
partline(工作線,工作線>=ref(工作線,1),rgb(255,0,0),工作線 partline(cci,cci>=ref(cci,1),rgb(255,0,0),cci MID: MA(CLOSE,26),LINETHICK1,coloryellow;{,pointdot;}
UPPER: MID + 2*STD(CLOSE,26),LINETHICK1,Color7F00FF,DOTLINE;
LOWER: MID – 2*STD(CLOSE,26),LINETHICK1,Color7F00FF,DOTLINE;
PARTLINE(MID,(MID>=REF(MID,1))),LINETHICK1,color00ffff;
PARTLINE(MID,(MID
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.guangshenggb.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負(fù)責(zé),投資決策請建立在獨立思考之上。