资源描述:
《决策主图源码通达信指标公式源码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、■=Of——czj*————-♦-——■PE0,RGB(8Z88Z188)ZRGB(0,0Z0),0Z,02,,0);VAR3:=LLV(HIGHz240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOA4528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*
2、100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1)zO)a34z1)/SMA(ABS(CLOSE-REF(CLOSE4)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,l)zO),13zl)/SMA(ABS(CLOSE-REF(CLOSEzl))z13,l)*100;VAR10:=IF(TROUGHBARS(3Z16Z1)=0ANDHIGH>LOW+0.04,4Z0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1)ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6)
3、,3);VAR12:=ZIG(3/6)[=REF(ZIG(3z6)z3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1)ANDREF(ZIG(3z22),2)<=REF(ZIG(3,22)z3);VAR14:=ZIG(3,22)][=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1)ANDREF(ZIG(3,51)z2)<=REF(ZIG(3z51),3);V]
4、AR16:=ZIG(3z51)[=REF(ZIG(3,51),3);VAR17:=ZIG(3/72)>REF(ZIG(3/72),1)ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR1&二ZIG(3,72)vREF(ZIG(3,72),1)ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR1刀;]
5、REF(ZIG(3,6)zl)<=REF(ZIG(3z6)z2)ANDREF(ZIG(3,6),l)>=REF(ZIG(3/6),2)ANDREF(ZIG(3,22),l)<=REF(ZIG(3z22)z2)ANDREF(ZIG(3,22),l)>=REF(ZIG(3z22),2)ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2)ANDREF(ZIG(3,72)zl)<=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72
6、),2)AND卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0OR买2>0,LOW*0.99/DRAWNULL),CROSSDOT;LINETHICK5/COLOR0800FF;DRAWTEXT(买1>0OR买2>0,LOW*0.98;深筹'),COLORRED;S:IF(卖1>0,HIGH*l・03,DRAWNULL),CROSSDOI;LINETHICK5,COLOR008800;DRAWTEXT(卖1>0,HIGH*l・03,'/卖出COLORGREEN;DRAWICON((ZIG(3,5)>REF(ZIG(3z5),l))A
7、ND(REF(ZIG(3z5)zl)<=REF(ZIG(3,5),2))AND(REF(ZIG(3z5)z2)<=REF(ZIG(3,5),3)),LOW*0.97z34);DRAWICON((ZIG(3,5)[=REF(ZIG(3z5),2))AND(REF(ZIG(3,5)z2)>=REF(ZIG(3,5),3)),HIGH*1.01,35);ZB:=EMA(EMA(VAR3z5),5)*3,COLORSTICK;VARA:=IF(VAR9ANDCROSS(MA(CLOSE,3)/MA(C]
8、LOSE,