通达信——精选指标《掌股划线》指标源码
<p data-first-child></p><p >指标源码:</p><blockquote >HIGHN:=10;<br/>LOWN:=10;<br/>LOWDISPLAY:=10;<br/>ZGDISPLAY:=10;<br/>MADISPLAY:=10;<br/>ZB1:=EMA(C,65);<br/>ZB2:EMA(ZB1,45),COLORYELLOW;<br/>AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);<br/>QY:=BACKSET(AA,HIGHN+1);<br/>CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);<br/>DRAWICON(CC,H*1.02,2);<br/>DDD:=BARSLAST(CC);<br/>GDTS:=IF(CC,CURRBARSCOUNT,0);<br/>DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}<br/>DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);<br/>DINGBU1:=REF(DINGBU,DDD+1);<br/>GDCS1:=CONST(DINGBUTS);<br/>DINGBUTS1:=REF(DINGBUTS,DDD+1);<br/>GDCS2:=CONST(DINGBUTS1);<br/>DINGBU2:=REF(DINGBU1,DDD+1);<br/>MM:=IF(CURRBARSCOUNT>GDCS2,0,1);<br/>高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;<br/>DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;<br/>DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;<br/>AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);<br/>QY1:=BACKSET(AA1,LOWN+1);<br/>CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);<br/>DRAWICON(CC1,L*0.98,1);<br/>DD1:=BARSLAST(CC1);<br/>DDTS:=IF(CC1,CURRBARSCOUNT,0);<br/>YDB:=IF(DD1,REF(L,DD1),L);<br/>DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);<br/>DDCS1:=CONST(DDTS1);<br/>ZDB:=REF(YDB,DD1+1);<br/>DDTS2:=REF(DDTS1,DD1+1);<br/>DDCS2:=CONST(DDTS2);<br/>低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;<br/>ZGSTAR:=(高点压力+低点支撑)/2;<br/>ZGEND:=CONST((高点压力+低点支撑)/2);<br/>STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);<br/>中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2;<br/>DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,;<br/>DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;<br/>EMA13:=EMA(C,13),COLORWHITE; <br/>EMA21:=EMA(C,21),COLORYELLOW; <br/>EMA34:=EMA(C,34),COLORFF00FF; <br/>EMA60:=MA(C,60),COLORFFCC66; <br/>VAR2:=(2*CLOSE+HIGH+LOW)/4; <br/>VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1); <br/>VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4); <br/>散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3; <br/>庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3; <br/>DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; <br/>DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN; <br/>DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1); <br/>DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2); </blockquote><h2>欢迎大家自行尝试! 关于指标大家可以私信找我免费领取!</h2> 感谢! 小手一抖,花花到手! 感谢分享优质资源 我是来挣鲜花的,嘿嘿 内容真的很不错 很好的内容,感谢分享!
页:
[1]