《股票-大智慧黄金分割江恩八分线指标公式.docx》由会员分享,可在线阅读,更多相关《股票-大智慧黄金分割江恩八分线指标公式.docx(11页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、大智慧黄金分割江恩八分线指标公式_正点财经DRAWGBKLAST(C0,STRIP(RGB(90,90,90),RGB(0,0,0),0);DRAWTEXTREL(0,3,代码:+STKLABEL),ColorFFFFFF;T:=BARSLAST(DISPSTATUS=1)+1;A:=DISPSTATUS=2;HH:=HHV(H,T);LL:=LLV(L,T);HL:=HH-LL;wH:=HHVBARS(H,T);wL:=LLVBARS(L,T);KK:=wH-wL;mHL:=HH-HL*0.5;ifK=1thenbeginHL191:=(HH-LL)*0.191;HL382:=(HH-LL)
2、*0.382;HL618:=(HH-LL)*0.618;HL809:=(HH-LL)*0.809;ifKK0thenbegina1:=HH-HL191;a2:=HH-HL382;a3:=HH-HL618;a4:=HH-HL809;endelsebegina1:=LL+HL191;a2:=LL+HL382;a3:=LL+HL618;a4:=LL+HL809;endendifk=1thenbeginHL125:=(HH-LL)*0.125;HL250:=(HH-LL)*0.25;HL375:=(HH-LL)*0.375;HL625:=(HH-LL)*0.625;HL750:=(HH-LL)*0.7
3、5;HL875:=(HH-LL)*0.875;ifkk0thenbeginb1:=HH-HL125;b2:=HH-HL250;b3:=HH-HL375;b4:=HH-HL625;b5:=HH-HL750;b6:=HH-HL875;endelsebeginb1:=LL+HL125;b2:=LL+HL250;b3:=LL+HL375;b4:=LL+HL625;b5:=LL+HL750;b6:=LL+HL875;endendDRAWTEXT(AandK3,HH,最高价:+HH),ALIGN2,colorgreen;DRAWTEXT(AandK3,LL,最低价:+ll),ALIGN2,VALIGN2,
4、colorgreen;DRAWTEXT(AandK3,mHL,50%:+mHL),ALIGN2,color00ffff;DRAWTEXT(AandK=1,a1,0.191:+NUMTOSTRN(a1,2),ALIGN2,color00ffff;DRAWTEXT(AandK=1,a2,0.382:+NUMTOSTRN(a2,2),ALIGN2,color00ffff;DRAWTEXT(AandK=1,a3,0.618:+NUMTOSTRN(a3,2),ALIGN2,color00ffff;DRAWTEXT(AandK=1,a4,0.809:+NUMTOSTRN(a4,2),ALIGN2,colo
5、r00ffff;DRAWTEXT(AandK=1,b1,1/8:+NUMTOSTRN(b1,2),ALIGN2,colorgreen;DRAWTEXT(AandK=1,b2,1/4:+NUMTOSTRN(b2,2),ALIGN2,colorgreen;DRAWTEXT(AandK=1,b3,3/8:+NUMTOSTRN(b3,2),ALIGN0,colorgreen;DRAWTEXT(AandK=1,b4,5/8:+NUMTOSTRN(b4,2),ALIGN0,colorgreen;DRAWTEXT(AandK=1,b5,3/4:+NUMTOSTRN(b5,2),ALIGN2,colorgre
6、en;DRAWTEXT(AandK=1,b6,7/8:+NUMTOSTRN(b6,2),ALIGN2,colorgreen;DRAWTEXT(AandK3,HH,),ALIGN2,colorred,linethick7;DRAWTEXT(AandK3,LL,),ALIGN2,colorred,linethick7;DRAWTEXT(AandK3,mHL,),ALIGN2,colorff0000,linethick7;DRAWTEXT(AandK=1,a1,),ALIGN2,color208FFF,linethick0;DRAWTEXT(AandK=1,a2,),ALIGN2,color208F
7、FF,linethick0;DRAWTEXT(AandK=1,a3,),ALIGN2,color208FFF,linethick0;DRAWTEXT(AandK=1,a4,),ALIGN2,color208FFF,linethick0;DRAWTEXT(AandK=1,b1,),ALIGN2,color00FF00;DRAWTEXT(AandK=1,b2,),ALIGN2,color00ff00;DRAWTEXT(AandK=1,b3,),ALIGN2,color00ff00;DRAWTEXT(AandK=1,b4,),ALIGN2,color00ff00;DRAWTEXT(AandK=1,b
8、5,),ALIGn2,color00ff00;DRAWTEXT(AandK=1,b6,),ALIGN2,color00FF00;PT:=REF(HIGH,1)-REF(LOW,1);重心:=(HIGH+LOW+CLOSE)/3;压力:=2*重心-LOW;压力:=重心+PT;支撑:=2*重心-HIGH;支撑:=重心-PT;DRAWTEXTABS(75,8,逆势操作),ColorFFFF00;DRAWTEXTABS(150,8,重心:+重心),Color208FFF;DRAWTEXTABS(75,27,支撑),ColorFFFFFF;DRAWTEXTABS(75,44,+支撑),ColorFFFF
9、FF;DRAWTEXTABS(75,62,+支撑),ColorFFFFFF;DRAWTEXTABS(75,27,压力),Color00FF00;DRAWTEXTABS(75,44,+压力),Color00FF00;DRAWTEXTABS(75,62,+压力),Color00FF00;DRAWTEXTABS(75,5,),Color00FFFF;DRAWTEXTABS(75,17,),Color00FFFF;DRAWTEXTABS(75,29,),Color00FFFF;DRAWTEXTABS(75,41,),Color00FFFF;DRAWTEXTABS(75,53,),Color00FFFF
10、;DRAWTEXTABS(75,65,),Color00FFFF;DRAWTEXTABS(218,5,),Color00FFFF;DRAWTEXTABS(218,17,),Color00FFFF;DRAWTEXTABS(218,29,),Color00FFFF;DRAWTEXTABS(218,41,),Color00FFFF;DRAWTEXTABS(218,53,),Color00FFFF;DRAWTEXTABS(218,65,),Color00FFFF;DRAWTEXTABS(146,25,),Color00FFFF;DRAWTEXTABS(146,29,),Color00FFFF;DRAW
11、TEXTABS(146,41,),Color00FFFF;DRAWTEXTABS(146,53,),Color00FFFF;DRAWTEXTABS(146,65,),Color00FFFF;DRAWTEXTABS(80,0,),Color00FFFF;DRAWTEXTABS(80,20,),Color00FFFF;DRAWTEXTABS(80,37,),Color00FFFF;DRAWTEXTABS(80,54,),Color00FFFF;DRAWTEXTABS(80,71,),Color00FFFF;G:=ZIG(3,5)REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1)=R
12、EF(ZIG(3,5),2)ANDREF(ZIG(3,5),2)=REF(ZIG(3,5),3);X:=ZIG(3,5)=REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2)=REF(ZIG(3,5),3);ED:=barslast(G);EF:=barslast(X);买入到卖出天数:ED,LINETHICK0,ColorFFFFFF;卖出到买入天数:EF,LINETHICK0,ColorFFFFFF;换手:VOL/CAPITAL*100,LINETHICK0,colorwhite;DRAWTEXTREL(0,910,买入到到当前周期:+NUMTOSTR(ED)+天+卖出到当前周期:+NUMTOSTR(EF)+天+换手率:+NUMTOSTRN(换手,2)+%),colorFfff00;大智慧黄金分割江恩八分线指标公式实例图解:大智慧黄金分割江恩八分线指标公式