资源描述:
《【股票指标公式下载】-【通达信】预警大趋势(顶线、多方、空方)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【通达信】预警大趋势(顶线.多方.空方)•指标公式源码VAR1:二MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR2:二2*ABS(VAR1);VAR3:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HTGH,55)-LLV(LOW,55))*100,20,1),15,1));VAR4:二100-(
2、100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(IIIIV(HIGH,55)-LLV(LOW,55))*100,20,1),15,D);VAR5:二(HTGH+LOW+CLOSE)/3;VAR6:=(VAR5-MA(VAR5,10))/(0.015*AVEDEV(VAR5,10));VAR7:二(VAR5-MA(VAR5,30))/(0.015*AVEDEV(VAR5,30));VAR8:二IF(VAR6
3、>二150ANDVAR6<200ANDVAR7>=150ANDVAR7<200,10,0);VAR9:二IF(VAR6〈二-150ANDVAR6>-200ANDVAR7〈二-150ANDVAR7>-200,-10,VARS);VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VARB:=100-ABS(VARA);VARC:=3*SMA((INDEXC-LLV(INDEXL,55))/(IIIIV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXC-L
4、LV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);VARD:二3*SMA((1NDEX0-LLV(INDEXL,55))/(HHV(1NDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((IXDEXO-LLV(IXDEXL,55))/(HHV(IXDEXH,55)-LLV(IXDEXL,55))*100,20,1),15,1);VARE:=REF(LOW,1)*0.9;VARF:二L0W*0・9;VAR10:=(VARF*VOL+V
5、ARE*(CAPITAL-VOL))/CAPITAL;VARI1:二EMA(VAR10,30);VAR12:二VARll-CLOSE;VAR13:=REF(CLOSE,1);VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;VARI5:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;VAR16:二BARSCOUMT(CLOSE);VAR17:二SMA(MAX(CLOSE-REF(CLOSE,1)
6、,0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;VAR18:二((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;VAR19:二(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1A:=(SMA(VAR19,4,1)-50)*2;VAR1B:=SMA(VARIA,3,1);VAR1C:=(1NDEXC-LLV(1NDEXL,14))/(HHV(1NDEXH,14)-LLV(1
7、NDEXL,14))*100;VAR1D:二SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VARIF:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=TF(VAR17<=25ANDVAR18<-95ANDVARlF>20ANDVARlB<-30ANDVARlE<30ANDVAR12>=-0.25ANDVAR14<22ANDVAR15<28ANDVAR16>50,80,0);大趋势:二VAR3;顶线:=IF(VARB<90,VARB,100);多方:=IF(VARl>0,VAR1,O);空方
8、:=0-IF(VARl<0,VAR2,0);抄底:=VAR20ANDPWINNER(5,CLOSE)<1.1;预警系统:IF(VAR7>